diff --git a/.gitignore b/.gitignore index fe94dd4..138b225 100644 --- a/.gitignore +++ b/.gitignore @@ -59,9 +59,9 @@ tmp/ .directory # Lunar Rail generated/resource/log folders -src/generated /resources /logs +/proto # Lunar Rail compiled /*.jar diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java new file mode 100644 index 0000000..717c78b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java @@ -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 ActivateFarmElementCsReqOuterClass { + /** + * Protobuf type {@code ActivateFarmElementCsReq} + */ + public static final class ActivateFarmElementCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 world_level = 5; + */ + private int worldLevel; + + /** + * optional uint32 entity_id = 9; + */ + private int entityId; + + private ActivateFarmElementCsReq() { + } + + /** + * @return a new empty instance of {@code ActivateFarmElementCsReq} + */ + public static ActivateFarmElementCsReq newInstance() { + return new ActivateFarmElementCsReq(); + } + + /** + * optional uint32 world_level = 5; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 world_level = 5; + * @return this + */ + public ActivateFarmElementCsReq clearWorldLevel() { + bitField0_ &= ~0x00000001; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 5; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 5; + * @param value the worldLevel to set + * @return this + */ + public ActivateFarmElementCsReq setWorldLevel(final int value) { + bitField0_ |= 0x00000001; + worldLevel = value; + return this; + } + + /** + * optional uint32 entity_id = 9; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 entity_id = 9; + * @return this + */ + public ActivateFarmElementCsReq clearEntityId() { + bitField0_ &= ~0x00000002; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 9; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 9; + * @param value the entityId to set + * @return this + */ + public ActivateFarmElementCsReq setEntityId(final int value) { + bitField0_ |= 0x00000002; + entityId = value; + return this; + } + + @Override + public ActivateFarmElementCsReq copyFrom(final ActivateFarmElementCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + worldLevel = other.worldLevel; + entityId = other.entityId; + } + return this; + } + + @Override + public ActivateFarmElementCsReq mergeFrom(final ActivateFarmElementCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + return this; + } + + @Override + public ActivateFarmElementCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + worldLevel = 0; + entityId = 0; + return this; + } + + @Override + public ActivateFarmElementCsReq 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 ActivateFarmElementCsReq)) { + return false; + } + ActivateFarmElementCsReq other = (ActivateFarmElementCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasEntityId() || entityId == other.entityId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(entityId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivateFarmElementCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // entityId + entityId = 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.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.entityId, entityId); + } + output.endObject(); + } + + @Override + public ActivateFarmElementCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { + if (!input.trySkipNullValue()) { + entityId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivateFarmElementCsReq clone() { + return new ActivateFarmElementCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivateFarmElementCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivateFarmElementCsReq(), data).checkInitialized(); + } + + public static ActivateFarmElementCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivateFarmElementCsReq(), input).checkInitialized(); + } + + public static ActivateFarmElementCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivateFarmElementCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivateFarmElementCsReq messages + */ + public static MessageFactory getFactory() { + return ActivateFarmElementCsReqFactory.INSTANCE; + } + + private enum ActivateFarmElementCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivateFarmElementCsReq create() { + return ActivateFarmElementCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java new file mode 100644 index 0000000..8773ed3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java @@ -0,0 +1,421 @@ +// 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 ActivateFarmElementScRspOuterClass { + /** + * Protobuf type {@code ActivateFarmElementScRsp} + */ + public static final class ActivateFarmElementScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entity_id = 11; + */ + private int entityId; + + /** + * optional uint32 world_level = 12; + */ + private int worldLevel; + + /** + * optional uint32 retcode = 13; + */ + private int retcode; + + private ActivateFarmElementScRsp() { + } + + /** + * @return a new empty instance of {@code ActivateFarmElementScRsp} + */ + public static ActivateFarmElementScRsp newInstance() { + return new ActivateFarmElementScRsp(); + } + + /** + * optional uint32 entity_id = 11; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 11; + * @return this + */ + public ActivateFarmElementScRsp clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 11; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 11; + * @param value the entityId to set + * @return this + */ + public ActivateFarmElementScRsp setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + + /** + * optional uint32 world_level = 12; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 world_level = 12; + * @return this + */ + public ActivateFarmElementScRsp clearWorldLevel() { + bitField0_ &= ~0x00000002; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 12; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 12; + * @param value the worldLevel to set + * @return this + */ + public ActivateFarmElementScRsp setWorldLevel(final int value) { + bitField0_ |= 0x00000002; + worldLevel = value; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 13; + * @return this + */ + public ActivateFarmElementScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public ActivateFarmElementScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + @Override + public ActivateFarmElementScRsp copyFrom(final ActivateFarmElementScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityId = other.entityId; + worldLevel = other.worldLevel; + retcode = other.retcode; + } + return this; + } + + @Override + public ActivateFarmElementScRsp mergeFrom(final ActivateFarmElementScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public ActivateFarmElementScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityId = 0; + worldLevel = 0; + retcode = 0; + return this; + } + + @Override + public ActivateFarmElementScRsp 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 ActivateFarmElementScRsp)) { + return false; + } + ActivateFarmElementScRsp other = (ActivateFarmElementScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ActivateFarmElementScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // retcode + retcode = input.readUInt32(); + 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.entityId, entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public ActivateFarmElementScRsp 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; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ActivateFarmElementScRsp clone() { + return new ActivateFarmElementScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ActivateFarmElementScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ActivateFarmElementScRsp(), data).checkInitialized(); + } + + public static ActivateFarmElementScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivateFarmElementScRsp(), input).checkInitialized(); + } + + public static ActivateFarmElementScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ActivateFarmElementScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ActivateFarmElementScRsp messages + */ + public static MessageFactory getFactory() { + return ActivateFarmElementScRspFactory.INSTANCE; + } + + private enum ActivateFarmElementScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ActivateFarmElementScRsp create() { + return ActivateFarmElementScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarBattleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarBattleInfoOuterClass.java new file mode 100644 index 0000000..4e350dd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarBattleInfoOuterClass.java @@ -0,0 +1,718 @@ +// 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 AvatarBattleInfoOuterClass { + /** + * Protobuf type {@code AvatarBattleInfo} + */ + public static final class AvatarBattleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 2; + */ + private int id; + + /** + * optional uint32 avatar_level = 3; + */ + private int avatarLevel; + + /** + * optional uint32 avatar_rank = 4; + */ + private int avatarRank; + + /** + * optional uint32 avatar_promotion = 5; + */ + private int avatarPromotion; + + /** + * optional .AvatarType avatar_type = 1; + */ + private int avatarType; + + /** + * optional .AvatarProperty avatar_status = 6; + */ + private final AvatarPropertyOuterClass.AvatarProperty avatarStatus = AvatarPropertyOuterClass.AvatarProperty.newInstance(); + + private AvatarBattleInfo() { + } + + /** + * @return a new empty instance of {@code AvatarBattleInfo} + */ + public static AvatarBattleInfo newInstance() { + return new AvatarBattleInfo(); + } + + /** + * optional uint32 id = 2; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 2; + * @return this + */ + public AvatarBattleInfo clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 2; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 2; + * @param value the id to set + * @return this + */ + public AvatarBattleInfo setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 avatar_level = 3; + * @return whether the avatarLevel field is set + */ + public boolean hasAvatarLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_level = 3; + * @return this + */ + public AvatarBattleInfo clearAvatarLevel() { + bitField0_ &= ~0x00000002; + avatarLevel = 0; + return this; + } + + /** + * optional uint32 avatar_level = 3; + * @return the avatarLevel + */ + public int getAvatarLevel() { + return avatarLevel; + } + + /** + * optional uint32 avatar_level = 3; + * @param value the avatarLevel to set + * @return this + */ + public AvatarBattleInfo setAvatarLevel(final int value) { + bitField0_ |= 0x00000002; + avatarLevel = value; + return this; + } + + /** + * optional uint32 avatar_rank = 4; + * @return whether the avatarRank field is set + */ + public boolean hasAvatarRank() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 avatar_rank = 4; + * @return this + */ + public AvatarBattleInfo clearAvatarRank() { + bitField0_ &= ~0x00000004; + avatarRank = 0; + return this; + } + + /** + * optional uint32 avatar_rank = 4; + * @return the avatarRank + */ + public int getAvatarRank() { + return avatarRank; + } + + /** + * optional uint32 avatar_rank = 4; + * @param value the avatarRank to set + * @return this + */ + public AvatarBattleInfo setAvatarRank(final int value) { + bitField0_ |= 0x00000004; + avatarRank = value; + return this; + } + + /** + * optional uint32 avatar_promotion = 5; + * @return whether the avatarPromotion field is set + */ + public boolean hasAvatarPromotion() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 avatar_promotion = 5; + * @return this + */ + public AvatarBattleInfo clearAvatarPromotion() { + bitField0_ &= ~0x00000008; + avatarPromotion = 0; + return this; + } + + /** + * optional uint32 avatar_promotion = 5; + * @return the avatarPromotion + */ + public int getAvatarPromotion() { + return avatarPromotion; + } + + /** + * optional uint32 avatar_promotion = 5; + * @param value the avatarPromotion to set + * @return this + */ + public AvatarBattleInfo setAvatarPromotion(final int value) { + bitField0_ |= 0x00000008; + avatarPromotion = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return this + */ + public AvatarBattleInfo clearAvatarType() { + bitField0_ &= ~0x00000010; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link AvatarBattleInfo#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link AvatarBattleInfo#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public AvatarBattleInfo setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000010; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @param value the avatarType to set + * @return this + */ + public AvatarBattleInfo setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000010; + avatarType = value.getNumber(); + return this; + } + + /** + * optional .AvatarProperty avatar_status = 6; + * @return whether the avatarStatus field is set + */ + public boolean hasAvatarStatus() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .AvatarProperty avatar_status = 6; + * @return this + */ + public AvatarBattleInfo clearAvatarStatus() { + bitField0_ &= ~0x00000020; + avatarStatus.clear(); + return this; + } + + /** + * optional .AvatarProperty avatar_status = 6; + * + * 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 #getMutableAvatarStatus()} if you want to modify it. + * + * @return internal storage object for reading + */ + public AvatarPropertyOuterClass.AvatarProperty getAvatarStatus() { + return avatarStatus; + } + + /** + * optional .AvatarProperty avatar_status = 6; + * + * 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 AvatarPropertyOuterClass.AvatarProperty getMutableAvatarStatus() { + bitField0_ |= 0x00000020; + return avatarStatus; + } + + /** + * optional .AvatarProperty avatar_status = 6; + * @param value the avatarStatus to set + * @return this + */ + public AvatarBattleInfo setAvatarStatus(final AvatarPropertyOuterClass.AvatarProperty value) { + bitField0_ |= 0x00000020; + avatarStatus.copyFrom(value); + return this; + } + + @Override + public AvatarBattleInfo copyFrom(final AvatarBattleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + avatarLevel = other.avatarLevel; + avatarRank = other.avatarRank; + avatarPromotion = other.avatarPromotion; + avatarType = other.avatarType; + avatarStatus.copyFrom(other.avatarStatus); + } + return this; + } + + @Override + public AvatarBattleInfo mergeFrom(final AvatarBattleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasAvatarLevel()) { + setAvatarLevel(other.avatarLevel); + } + if (other.hasAvatarRank()) { + setAvatarRank(other.avatarRank); + } + if (other.hasAvatarPromotion()) { + setAvatarPromotion(other.avatarPromotion); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + if (other.hasAvatarStatus()) { + getMutableAvatarStatus().mergeFrom(other.avatarStatus); + } + return this; + } + + @Override + public AvatarBattleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + avatarLevel = 0; + avatarRank = 0; + avatarPromotion = 0; + avatarType = 0; + avatarStatus.clear(); + return this; + } + + @Override + public AvatarBattleInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarStatus.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AvatarBattleInfo)) { + return false; + } + AvatarBattleInfo other = (AvatarBattleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasAvatarLevel() || avatarLevel == other.avatarLevel) + && (!hasAvatarRank() || avatarRank == other.avatarRank) + && (!hasAvatarPromotion() || avatarPromotion == other.avatarPromotion) + && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasAvatarStatus() || avatarStatus.equals(other.avatarStatus)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(avatarLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(avatarRank); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(avatarPromotion); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(avatarStatus); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarRank); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarPromotion); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(avatarStatus); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarBattleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // avatarLevel + avatarLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // avatarRank + avatarRank = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // avatarPromotion + avatarPromotion = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // avatarStatus + input.readMessage(avatarStatus); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarLevel, avatarLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.avatarRank, avatarRank); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.avatarPromotion, avatarPromotion); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.avatarStatus, avatarStatus); + } + output.endObject(); + } + + @Override + public AvatarBattleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 379312555: + case -576284386: { + if (input.isAtField(FieldNames.avatarLevel)) { + if (!input.trySkipNullValue()) { + avatarLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403231451: + case 397226834: { + if (input.isAtField(FieldNames.avatarRank)) { + if (!input.trySkipNullValue()) { + avatarRank = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2142097226: + case 999660861: { + if (input.isAtField(FieldNames.avatarPromotion)) { + if (!input.trySkipNullValue()) { + avatarPromotion = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -912566613: + case -471300712: { + if (input.isAtField(FieldNames.avatarStatus)) { + if (!input.trySkipNullValue()) { + input.readMessage(avatarStatus); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarBattleInfo clone() { + return new AvatarBattleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarBattleInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarBattleInfo(), data).checkInitialized(); + } + + public static AvatarBattleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarBattleInfo(), input).checkInitialized(); + } + + public static AvatarBattleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarBattleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarBattleInfo messages + */ + public static MessageFactory getFactory() { + return AvatarBattleInfoFactory.INSTANCE; + } + + private enum AvatarBattleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarBattleInfo create() { + return AvatarBattleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName avatarLevel = FieldName.forField("avatarLevel", "avatar_level"); + + static final FieldName avatarRank = FieldName.forField("avatarRank", "avatar_rank"); + + static final FieldName avatarPromotion = FieldName.forField("avatarPromotion", "avatar_promotion"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + + static final FieldName avatarStatus = FieldName.forField("avatarStatus", "avatar_status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java new file mode 100644 index 0000000..3e37041 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java @@ -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 AvatarExpUpCsReqOuterClass { + /** + * Protobuf type {@code AvatarExpUpCsReq} + */ + public static final class AvatarExpUpCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 1; + */ + private int baseAvatarId; + + /** + * optional .ItemCostList item_cost_list = 8; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private AvatarExpUpCsReq() { + } + + /** + * @return a new empty instance of {@code AvatarExpUpCsReq} + */ + public static AvatarExpUpCsReq newInstance() { + return new AvatarExpUpCsReq(); + } + + /** + * optional uint32 base_avatar_id = 1; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 1; + * @return this + */ + public AvatarExpUpCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 1; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 1; + * @param value the baseAvatarId to set + * @return this + */ + public AvatarExpUpCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 8; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 8; + * @return this + */ + public AvatarExpUpCsReq clearItemCostList() { + bitField0_ &= ~0x00000002; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 8; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 8; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000002; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 8; + * @param value the itemCostList to set + * @return this + */ + public AvatarExpUpCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000002; + itemCostList.copyFrom(value); + return this; + } + + @Override + public AvatarExpUpCsReq copyFrom(final AvatarExpUpCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public AvatarExpUpCsReq mergeFrom(final AvatarExpUpCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public AvatarExpUpCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + itemCostList.clear(); + return this; + } + + @Override + public AvatarExpUpCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AvatarExpUpCsReq)) { + return false; + } + AvatarExpUpCsReq other = (AvatarExpUpCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarExpUpCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // itemCostList + input.readMessage(itemCostList); + 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.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public AvatarExpUpCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarExpUpCsReq clone() { + return new AvatarExpUpCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarExpUpCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarExpUpCsReq(), data).checkInitialized(); + } + + public static AvatarExpUpCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarExpUpCsReq(), input).checkInitialized(); + } + + public static AvatarExpUpCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarExpUpCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarExpUpCsReq messages + */ + public static MessageFactory getFactory() { + return AvatarExpUpCsReqFactory.INSTANCE; + } + + private enum AvatarExpUpCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarExpUpCsReq create() { + return AvatarExpUpCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java new file mode 100644 index 0000000..e09acee --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java @@ -0,0 +1,374 @@ +// 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 AvatarExpUpScRspOuterClass { + /** + * Protobuf type {@code AvatarExpUpScRsp} + */ + public static final class AvatarExpUpScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * repeated .PileItem return_item_list = 12; + */ + private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); + + private AvatarExpUpScRsp() { + } + + /** + * @return a new empty instance of {@code AvatarExpUpScRsp} + */ + public static AvatarExpUpScRsp newInstance() { + return new AvatarExpUpScRsp(); + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public AvatarExpUpScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public AvatarExpUpScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated .PileItem return_item_list = 12; + * @return whether the returnItemList field is set + */ + public boolean hasReturnItemList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .PileItem return_item_list = 12; + * @return this + */ + public AvatarExpUpScRsp clearReturnItemList() { + bitField0_ &= ~0x00000002; + returnItemList.clear(); + return this; + } + + /** + * repeated .PileItem return_item_list = 12; + * + * 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 #getMutableReturnItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getReturnItemList() { + return returnItemList; + } + + /** + * repeated .PileItem return_item_list = 12; + * + * 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 getMutableReturnItemList() { + bitField0_ |= 0x00000002; + return returnItemList; + } + + /** + * repeated .PileItem return_item_list = 12; + * @param value the returnItemList to add + * @return this + */ + public AvatarExpUpScRsp addReturnItemList(final PileItemOuterClass.PileItem value) { + bitField0_ |= 0x00000002; + returnItemList.add(value); + return this; + } + + /** + * repeated .PileItem return_item_list = 12; + * @param values the returnItemList to add + * @return this + */ + public AvatarExpUpScRsp addAllReturnItemList(final PileItemOuterClass.PileItem... values) { + bitField0_ |= 0x00000002; + returnItemList.addAll(values); + return this; + } + + @Override + public AvatarExpUpScRsp copyFrom(final AvatarExpUpScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + returnItemList.copyFrom(other.returnItemList); + } + return this; + } + + @Override + public AvatarExpUpScRsp mergeFrom(final AvatarExpUpScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasReturnItemList()) { + getMutableReturnItemList().addAll(other.returnItemList); + } + return this; + } + + @Override + public AvatarExpUpScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + returnItemList.clear(); + return this; + } + + @Override + public AvatarExpUpScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + returnItemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AvatarExpUpScRsp)) { + return false; + } + AvatarExpUpScRsp other = (AvatarExpUpScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < returnItemList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(returnItemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * returnItemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(returnItemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarExpUpScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // returnItemList + tag = input.readRepeatedMessage(returnItemList, 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.returnItemList, returnItemList); + } + output.endObject(); + } + + @Override + public AvatarExpUpScRsp 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 -6533215: + case -807051781: { + if (input.isAtField(FieldNames.returnItemList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(returnItemList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarExpUpScRsp clone() { + return new AvatarExpUpScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarExpUpScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarExpUpScRsp(), data).checkInitialized(); + } + + public static AvatarExpUpScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarExpUpScRsp(), input).checkInitialized(); + } + + public static AvatarExpUpScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarExpUpScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarExpUpScRsp messages + */ + public static MessageFactory getFactory() { + return AvatarExpUpScRspFactory.INSTANCE; + } + + private enum AvatarExpUpScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarExpUpScRsp create() { + return AvatarExpUpScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java new file mode 100644 index 0000000..6e7086d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java @@ -0,0 +1,1092 @@ +// 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 AvatarOuterClass { + /** + * Protobuf type {@code Avatar} + */ + public static final class Avatar extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 first_met_timestamp = 9; + */ + private long firstMetTimestamp; + + /** + * optional uint32 exp = 2; + */ + private int exp; + + /** + * optional uint32 level = 6; + */ + private int level; + + /** + * optional uint32 rank = 7; + */ + private int rank; + + /** + * optional uint32 promotion = 8; + */ + private int promotion; + + /** + * optional uint32 base_avatar_id = 11; + */ + private int baseAvatarId; + + /** + * optional uint32 equipment_unique_id = 12; + */ + private int equipmentUniqueId; + + /** + * repeated uint32 taken_rewards = 13; + */ + private final RepeatedInt takenRewards = RepeatedInt.newEmptyInstance(); + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + */ + private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); + + /** + * repeated .EquipRelic equip_relic_list = 14; + */ + private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); + + private Avatar() { + } + + /** + * @return a new empty instance of {@code Avatar} + */ + public static Avatar newInstance() { + return new Avatar(); + } + + /** + * optional uint64 first_met_timestamp = 9; + * @return whether the firstMetTimestamp field is set + */ + public boolean hasFirstMetTimestamp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 first_met_timestamp = 9; + * @return this + */ + public Avatar clearFirstMetTimestamp() { + bitField0_ &= ~0x00000001; + firstMetTimestamp = 0L; + return this; + } + + /** + * optional uint64 first_met_timestamp = 9; + * @return the firstMetTimestamp + */ + public long getFirstMetTimestamp() { + return firstMetTimestamp; + } + + /** + * optional uint64 first_met_timestamp = 9; + * @param value the firstMetTimestamp to set + * @return this + */ + public Avatar setFirstMetTimestamp(final long value) { + bitField0_ |= 0x00000001; + firstMetTimestamp = value; + return this; + } + + /** + * optional uint32 exp = 2; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 exp = 2; + * @return this + */ + public Avatar clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 2; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 2; + * @param value the exp to set + * @return this + */ + public Avatar setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * optional uint32 level = 6; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 level = 6; + * @return this + */ + public Avatar clearLevel() { + bitField0_ &= ~0x00000004; + level = 0; + return this; + } + + /** + * optional uint32 level = 6; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 6; + * @param value the level to set + * @return this + */ + public Avatar setLevel(final int value) { + bitField0_ |= 0x00000004; + level = value; + return this; + } + + /** + * optional uint32 rank = 7; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 rank = 7; + * @return this + */ + public Avatar clearRank() { + bitField0_ &= ~0x00000008; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 7; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 7; + * @param value the rank to set + * @return this + */ + public Avatar setRank(final int value) { + bitField0_ |= 0x00000008; + rank = value; + return this; + } + + /** + * optional uint32 promotion = 8; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 promotion = 8; + * @return this + */ + public Avatar clearPromotion() { + bitField0_ &= ~0x00000010; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 8; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 8; + * @param value the promotion to set + * @return this + */ + public Avatar setPromotion(final int value) { + bitField0_ |= 0x00000010; + promotion = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 11; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 base_avatar_id = 11; + * @return this + */ + public Avatar clearBaseAvatarId() { + bitField0_ &= ~0x00000020; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 11; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 11; + * @param value the baseAvatarId to set + * @return this + */ + public Avatar setBaseAvatarId(final int value) { + bitField0_ |= 0x00000020; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @return this + */ + public Avatar clearEquipmentUniqueId() { + bitField0_ &= ~0x00000040; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 12; + * @param value the equipmentUniqueId to set + * @return this + */ + public Avatar setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000040; + equipmentUniqueId = value; + return this; + } + + /** + * repeated uint32 taken_rewards = 13; + * @return whether the takenRewards field is set + */ + public boolean hasTakenRewards() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 taken_rewards = 13; + * @return this + */ + public Avatar clearTakenRewards() { + bitField0_ &= ~0x00000080; + takenRewards.clear(); + return this; + } + + /** + * repeated uint32 taken_rewards = 13; + * + * 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 #getMutableTakenRewards()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTakenRewards() { + return takenRewards; + } + + /** + * repeated uint32 taken_rewards = 13; + * + * 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 getMutableTakenRewards() { + bitField0_ |= 0x00000080; + return takenRewards; + } + + /** + * repeated uint32 taken_rewards = 13; + * @param value the takenRewards to add + * @return this + */ + public Avatar addTakenRewards(final int value) { + bitField0_ |= 0x00000080; + takenRewards.add(value); + return this; + } + + /** + * repeated uint32 taken_rewards = 13; + * @param values the takenRewards to add + * @return this + */ + public Avatar addAllTakenRewards(final int... values) { + bitField0_ |= 0x00000080; + takenRewards.addAll(values); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + * @return whether the skilltreeList field is set + */ + public boolean hasSkilltreeList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + * @return this + */ + public Avatar clearSkilltreeList() { + bitField0_ &= ~0x00000100; + skilltreeList.clear(); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + * + * 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 #getMutableSkilltreeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSkilltreeList() { + return skilltreeList; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + * + * 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 getMutableSkilltreeList() { + bitField0_ |= 0x00000100; + return skilltreeList; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + * @param value the skilltreeList to add + * @return this + */ + public Avatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { + bitField0_ |= 0x00000100; + skilltreeList.add(value); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 3; + * @param values the skilltreeList to add + * @return this + */ + public Avatar addAllSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { + bitField0_ |= 0x00000100; + skilltreeList.addAll(values); + return this; + } + + /** + * repeated .EquipRelic equip_relic_list = 14; + * @return whether the equipRelicList field is set + */ + public boolean hasEquipRelicList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .EquipRelic equip_relic_list = 14; + * @return this + */ + public Avatar clearEquipRelicList() { + bitField0_ &= ~0x00000200; + equipRelicList.clear(); + return this; + } + + /** + * repeated .EquipRelic equip_relic_list = 14; + * + * 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 #getMutableEquipRelicList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipRelicList() { + return equipRelicList; + } + + /** + * repeated .EquipRelic equip_relic_list = 14; + * + * 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 getMutableEquipRelicList() { + bitField0_ |= 0x00000200; + return equipRelicList; + } + + /** + * repeated .EquipRelic equip_relic_list = 14; + * @param value the equipRelicList to add + * @return this + */ + public Avatar addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { + bitField0_ |= 0x00000200; + equipRelicList.add(value); + return this; + } + + /** + * repeated .EquipRelic equip_relic_list = 14; + * @param values the equipRelicList to add + * @return this + */ + public Avatar addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) { + bitField0_ |= 0x00000200; + equipRelicList.addAll(values); + return this; + } + + @Override + public Avatar copyFrom(final Avatar other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + firstMetTimestamp = other.firstMetTimestamp; + exp = other.exp; + level = other.level; + rank = other.rank; + promotion = other.promotion; + baseAvatarId = other.baseAvatarId; + equipmentUniqueId = other.equipmentUniqueId; + takenRewards.copyFrom(other.takenRewards); + skilltreeList.copyFrom(other.skilltreeList); + equipRelicList.copyFrom(other.equipRelicList); + } + return this; + } + + @Override + public Avatar mergeFrom(final Avatar other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFirstMetTimestamp()) { + setFirstMetTimestamp(other.firstMetTimestamp); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasTakenRewards()) { + getMutableTakenRewards().addAll(other.takenRewards); + } + if (other.hasSkilltreeList()) { + getMutableSkilltreeList().addAll(other.skilltreeList); + } + if (other.hasEquipRelicList()) { + getMutableEquipRelicList().addAll(other.equipRelicList); + } + return this; + } + + @Override + public Avatar clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + firstMetTimestamp = 0L; + exp = 0; + level = 0; + rank = 0; + promotion = 0; + baseAvatarId = 0; + equipmentUniqueId = 0; + takenRewards.clear(); + skilltreeList.clear(); + equipRelicList.clear(); + return this; + } + + @Override + public Avatar clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + takenRewards.clear(); + skilltreeList.clearQuick(); + equipRelicList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Avatar)) { + return false; + } + Avatar other = (Avatar) o; + return bitField0_ == other.bitField0_ + && (!hasFirstMetTimestamp() || firstMetTimestamp == other.firstMetTimestamp) + && (!hasExp() || exp == other.exp) + && (!hasLevel() || level == other.level) + && (!hasRank() || rank == other.rank) + && (!hasPromotion() || promotion == other.promotion) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasTakenRewards() || takenRewards.equals(other.takenRewards)) + && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) + && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt64NoTag(firstMetTimestamp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < takenRewards.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(takenRewards.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < skilltreeList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(skilltreeList.get(i)); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < equipRelicList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(equipRelicList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(firstMetTimestamp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * takenRewards.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewards); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Avatar mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // firstMetTimestamp + firstMetTimestamp = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // takenRewards [packed=true] + input.readPackedUInt32(takenRewards, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // skilltreeList + tag = input.readRepeatedMessage(skilltreeList, tag); + bitField0_ |= 0x00000100; + if (tag != 114) { + break; + } + } + case 114: { + // equipRelicList + tag = input.readRepeatedMessage(equipRelicList, tag); + bitField0_ |= 0x00000200; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 104: { + // takenRewards [packed=false] + tag = input.readRepeatedUInt32(takenRewards, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.firstMetTimestamp, firstMetTimestamp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.takenRewards, takenRewards); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + } + output.endObject(); + } + + @Override + public Avatar mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1893996906: + case 329864996: { + if (input.isAtField(FieldNames.firstMetTimestamp)) { + if (!input.trySkipNullValue()) { + firstMetTimestamp = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -932367267: + case 500229036: { + if (input.isAtField(FieldNames.takenRewards)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(takenRewards); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1549763245: + case 815647086: { + if (input.isAtField(FieldNames.skilltreeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(skilltreeList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1578968161: + case -795441831: { + if (input.isAtField(FieldNames.equipRelicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(equipRelicList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Avatar clone() { + return new Avatar().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Avatar parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Avatar(), data).checkInitialized(); + } + + public static Avatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Avatar(), input).checkInitialized(); + } + + public static Avatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Avatar(), input).checkInitialized(); + } + + /** + * @return factory for creating Avatar messages + */ + public static MessageFactory getFactory() { + return AvatarFactory.INSTANCE; + } + + private enum AvatarFactory implements MessageFactory { + INSTANCE; + + @Override + public Avatar create() { + return Avatar.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName firstMetTimestamp = FieldName.forField("firstMetTimestamp", "first_met_timestamp"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName takenRewards = FieldName.forField("takenRewards", "taken_rewards"); + + static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); + + static final FieldName equipRelicList = FieldName.forField("equipRelicList", "equip_relic_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarPropertyOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarPropertyOuterClass.java new file mode 100644 index 0000000..62e9286 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarPropertyOuterClass.java @@ -0,0 +1,744 @@ +// 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.ProtoUtil; + +public final class AvatarPropertyOuterClass { + /** + * Protobuf type {@code AvatarProperty} + */ + public static final class AvatarProperty extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional double max_hp = 1; + */ + private double maxHp; + + /** + * optional double attack = 2; + */ + private double attack; + + /** + * optional double defence = 3; + */ + private double defence; + + /** + * optional double speed = 4; + */ + private double speed; + + /** + * optional double left_hp = 5; + */ + private double leftHp; + + /** + * optional double left_sp = 6; + */ + private double leftSp; + + /** + * optional double max_sp = 7; + */ + private double maxSp; + + private AvatarProperty() { + } + + /** + * @return a new empty instance of {@code AvatarProperty} + */ + public static AvatarProperty newInstance() { + return new AvatarProperty(); + } + + /** + * optional double max_hp = 1; + * @return whether the maxHp field is set + */ + public boolean hasMaxHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional double max_hp = 1; + * @return this + */ + public AvatarProperty clearMaxHp() { + bitField0_ &= ~0x00000001; + maxHp = 0D; + return this; + } + + /** + * optional double max_hp = 1; + * @return the maxHp + */ + public double getMaxHp() { + return maxHp; + } + + /** + * optional double max_hp = 1; + * @param value the maxHp to set + * @return this + */ + public AvatarProperty setMaxHp(final double value) { + bitField0_ |= 0x00000001; + maxHp = value; + return this; + } + + /** + * optional double attack = 2; + * @return whether the attack field is set + */ + public boolean hasAttack() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional double attack = 2; + * @return this + */ + public AvatarProperty clearAttack() { + bitField0_ &= ~0x00000002; + attack = 0D; + return this; + } + + /** + * optional double attack = 2; + * @return the attack + */ + public double getAttack() { + return attack; + } + + /** + * optional double attack = 2; + * @param value the attack to set + * @return this + */ + public AvatarProperty setAttack(final double value) { + bitField0_ |= 0x00000002; + attack = value; + return this; + } + + /** + * optional double defence = 3; + * @return whether the defence field is set + */ + public boolean hasDefence() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional double defence = 3; + * @return this + */ + public AvatarProperty clearDefence() { + bitField0_ &= ~0x00000004; + defence = 0D; + return this; + } + + /** + * optional double defence = 3; + * @return the defence + */ + public double getDefence() { + return defence; + } + + /** + * optional double defence = 3; + * @param value the defence to set + * @return this + */ + public AvatarProperty setDefence(final double value) { + bitField0_ |= 0x00000004; + defence = value; + return this; + } + + /** + * optional double speed = 4; + * @return whether the speed field is set + */ + public boolean hasSpeed() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional double speed = 4; + * @return this + */ + public AvatarProperty clearSpeed() { + bitField0_ &= ~0x00000008; + speed = 0D; + return this; + } + + /** + * optional double speed = 4; + * @return the speed + */ + public double getSpeed() { + return speed; + } + + /** + * optional double speed = 4; + * @param value the speed to set + * @return this + */ + public AvatarProperty setSpeed(final double value) { + bitField0_ |= 0x00000008; + speed = value; + return this; + } + + /** + * optional double left_hp = 5; + * @return whether the leftHp field is set + */ + public boolean hasLeftHp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional double left_hp = 5; + * @return this + */ + public AvatarProperty clearLeftHp() { + bitField0_ &= ~0x00000010; + leftHp = 0D; + return this; + } + + /** + * optional double left_hp = 5; + * @return the leftHp + */ + public double getLeftHp() { + return leftHp; + } + + /** + * optional double left_hp = 5; + * @param value the leftHp to set + * @return this + */ + public AvatarProperty setLeftHp(final double value) { + bitField0_ |= 0x00000010; + leftHp = value; + return this; + } + + /** + * optional double left_sp = 6; + * @return whether the leftSp field is set + */ + public boolean hasLeftSp() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional double left_sp = 6; + * @return this + */ + public AvatarProperty clearLeftSp() { + bitField0_ &= ~0x00000020; + leftSp = 0D; + return this; + } + + /** + * optional double left_sp = 6; + * @return the leftSp + */ + public double getLeftSp() { + return leftSp; + } + + /** + * optional double left_sp = 6; + * @param value the leftSp to set + * @return this + */ + public AvatarProperty setLeftSp(final double value) { + bitField0_ |= 0x00000020; + leftSp = value; + return this; + } + + /** + * optional double max_sp = 7; + * @return whether the maxSp field is set + */ + public boolean hasMaxSp() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional double max_sp = 7; + * @return this + */ + public AvatarProperty clearMaxSp() { + bitField0_ &= ~0x00000040; + maxSp = 0D; + return this; + } + + /** + * optional double max_sp = 7; + * @return the maxSp + */ + public double getMaxSp() { + return maxSp; + } + + /** + * optional double max_sp = 7; + * @param value the maxSp to set + * @return this + */ + public AvatarProperty setMaxSp(final double value) { + bitField0_ |= 0x00000040; + maxSp = value; + return this; + } + + @Override + public AvatarProperty copyFrom(final AvatarProperty other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + maxHp = other.maxHp; + attack = other.attack; + defence = other.defence; + speed = other.speed; + leftHp = other.leftHp; + leftSp = other.leftSp; + maxSp = other.maxSp; + } + return this; + } + + @Override + public AvatarProperty mergeFrom(final AvatarProperty other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMaxHp()) { + setMaxHp(other.maxHp); + } + if (other.hasAttack()) { + setAttack(other.attack); + } + if (other.hasDefence()) { + setDefence(other.defence); + } + if (other.hasSpeed()) { + setSpeed(other.speed); + } + if (other.hasLeftHp()) { + setLeftHp(other.leftHp); + } + if (other.hasLeftSp()) { + setLeftSp(other.leftSp); + } + if (other.hasMaxSp()) { + setMaxSp(other.maxSp); + } + return this; + } + + @Override + public AvatarProperty clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + maxHp = 0D; + attack = 0D; + defence = 0D; + speed = 0D; + leftHp = 0D; + leftSp = 0D; + maxSp = 0D; + return this; + } + + @Override + public AvatarProperty 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 AvatarProperty)) { + return false; + } + AvatarProperty other = (AvatarProperty) o; + return bitField0_ == other.bitField0_ + && (!hasMaxHp() || ProtoUtil.isEqual(maxHp, other.maxHp)) + && (!hasAttack() || ProtoUtil.isEqual(attack, other.attack)) + && (!hasDefence() || ProtoUtil.isEqual(defence, other.defence)) + && (!hasSpeed() || ProtoUtil.isEqual(speed, other.speed)) + && (!hasLeftHp() || ProtoUtil.isEqual(leftHp, other.leftHp)) + && (!hasLeftSp() || ProtoUtil.isEqual(leftSp, other.leftSp)) + && (!hasMaxSp() || ProtoUtil.isEqual(maxSp, other.maxSp)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 9); + output.writeDoubleNoTag(maxHp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 17); + output.writeDoubleNoTag(attack); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 25); + output.writeDoubleNoTag(defence); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 33); + output.writeDoubleNoTag(speed); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 41); + output.writeDoubleNoTag(leftHp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 49); + output.writeDoubleNoTag(leftSp); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 57); + output.writeDoubleNoTag(maxSp); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 9; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarProperty mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 9: { + // maxHp + maxHp = input.readDouble(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 17) { + break; + } + } + case 17: { + // attack + attack = input.readDouble(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 25) { + break; + } + } + case 25: { + // defence + defence = input.readDouble(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 33) { + break; + } + } + case 33: { + // speed + speed = input.readDouble(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 41) { + break; + } + } + case 41: { + // leftHp + leftHp = input.readDouble(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 49) { + break; + } + } + case 49: { + // leftSp + leftSp = input.readDouble(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 57) { + break; + } + } + case 57: { + // maxSp + maxSp = input.readDouble(); + bitField0_ |= 0x00000040; + 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.writeDouble(FieldNames.maxHp, maxHp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeDouble(FieldNames.attack, attack); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeDouble(FieldNames.defence, defence); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeDouble(FieldNames.speed, speed); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeDouble(FieldNames.leftHp, leftHp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeDouble(FieldNames.leftSp, leftSp); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeDouble(FieldNames.maxSp, maxSp); + } + output.endObject(); + } + + @Override + public AvatarProperty mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 103671180: + case -1081138749: { + if (input.isAtField(FieldNames.maxHp)) { + if (!input.trySkipNullValue()) { + maxHp = input.readDouble(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1407259064: { + if (input.isAtField(FieldNames.attack)) { + if (!input.trySkipNullValue()) { + attack = input.readDouble(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1544916048: { + if (input.isAtField(FieldNames.defence)) { + if (!input.trySkipNullValue()) { + defence = input.readDouble(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109641799: { + if (input.isAtField(FieldNames.speed)) { + if (!input.trySkipNullValue()) { + speed = input.readDouble(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1106590865: + case 55443520: { + if (input.isAtField(FieldNames.leftHp)) { + if (!input.trySkipNullValue()) { + leftHp = input.readDouble(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1106590524: + case 55443861: { + if (input.isAtField(FieldNames.leftSp)) { + if (!input.trySkipNullValue()) { + leftSp = input.readDouble(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 103671521: + case -1081138408: { + if (input.isAtField(FieldNames.maxSp)) { + if (!input.trySkipNullValue()) { + maxSp = input.readDouble(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarProperty clone() { + return new AvatarProperty().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarProperty parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarProperty(), data).checkInitialized(); + } + + public static AvatarProperty parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarProperty(), input).checkInitialized(); + } + + public static AvatarProperty parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarProperty(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarProperty messages + */ + public static MessageFactory getFactory() { + return AvatarPropertyFactory.INSTANCE; + } + + private enum AvatarPropertyFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarProperty create() { + return AvatarProperty.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName maxHp = FieldName.forField("maxHp", "max_hp"); + + static final FieldName attack = FieldName.forField("attack"); + + static final FieldName defence = FieldName.forField("defence"); + + static final FieldName speed = FieldName.forField("speed"); + + static final FieldName leftHp = FieldName.forField("leftHp", "left_hp"); + + static final FieldName leftSp = FieldName.forField("leftSp", "left_sp"); + + static final FieldName maxSp = FieldName.forField("maxSp", "max_sp"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarSkillTreeOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarSkillTreeOuterClass.java new file mode 100644 index 0000000..b6dd1c0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarSkillTreeOuterClass.java @@ -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 AvatarSkillTreeOuterClass { + /** + * Protobuf type {@code AvatarSkillTree} + */ + public static final class AvatarSkillTree extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 point_id = 1; + */ + private int pointId; + + /** + * optional uint32 level = 2; + */ + private int level; + + private AvatarSkillTree() { + } + + /** + * @return a new empty instance of {@code AvatarSkillTree} + */ + public static AvatarSkillTree newInstance() { + return new AvatarSkillTree(); + } + + /** + * optional uint32 point_id = 1; + * @return whether the pointId field is set + */ + public boolean hasPointId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 point_id = 1; + * @return this + */ + public AvatarSkillTree clearPointId() { + bitField0_ &= ~0x00000001; + pointId = 0; + return this; + } + + /** + * optional uint32 point_id = 1; + * @return the pointId + */ + public int getPointId() { + return pointId; + } + + /** + * optional uint32 point_id = 1; + * @param value the pointId to set + * @return this + */ + public AvatarSkillTree setPointId(final int value) { + bitField0_ |= 0x00000001; + pointId = value; + return this; + } + + /** + * optional uint32 level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 2; + * @return this + */ + public AvatarSkillTree clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 2; + * @param value the level to set + * @return this + */ + public AvatarSkillTree setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + @Override + public AvatarSkillTree copyFrom(final AvatarSkillTree other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pointId = other.pointId; + level = other.level; + } + return this; + } + + @Override + public AvatarSkillTree mergeFrom(final AvatarSkillTree other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPointId()) { + setPointId(other.pointId); + } + if (other.hasLevel()) { + setLevel(other.level); + } + return this; + } + + @Override + public AvatarSkillTree clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pointId = 0; + level = 0; + return this; + } + + @Override + public AvatarSkillTree 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 AvatarSkillTree)) { + return false; + } + AvatarSkillTree other = (AvatarSkillTree) o; + return bitField0_ == other.bitField0_ + && (!hasPointId() || pointId == other.pointId) + && (!hasLevel() || level == other.level); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(pointId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarSkillTree mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // pointId + pointId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = 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.pointId, pointId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + output.endObject(); + } + + @Override + public AvatarSkillTree mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -400606517: + case 466121258: { + if (input.isAtField(FieldNames.pointId)) { + if (!input.trySkipNullValue()) { + pointId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarSkillTree clone() { + return new AvatarSkillTree().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarSkillTree parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarSkillTree(), data).checkInitialized(); + } + + public static AvatarSkillTree parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarSkillTree(), input).checkInitialized(); + } + + public static AvatarSkillTree parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarSkillTree(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarSkillTree messages + */ + public static MessageFactory getFactory() { + return AvatarSkillTreeFactory.INSTANCE; + } + + private enum AvatarSkillTreeFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarSkillTree create() { + return AvatarSkillTree.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pointId = FieldName.forField("pointId", "point_id"); + + static final FieldName level = FieldName.forField("level"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java new file mode 100644 index 0000000..b4f1afc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java @@ -0,0 +1,293 @@ +// 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 AvatarSyncOuterClass { + /** + * Protobuf type {@code AvatarSync} + */ + public static final class AvatarSync extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .Avatar avatar_list = 14; + */ + private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); + + private AvatarSync() { + } + + /** + * @return a new empty instance of {@code AvatarSync} + */ + public static AvatarSync newInstance() { + return new AvatarSync(); + } + + /** + * repeated .Avatar avatar_list = 14; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .Avatar avatar_list = 14; + * @return this + */ + public AvatarSync clearAvatarList() { + bitField0_ &= ~0x00000001; + avatarList.clear(); + return this; + } + + /** + * repeated .Avatar avatar_list = 14; + * + * 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 #getMutableAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarList() { + return avatarList; + } + + /** + * repeated .Avatar avatar_list = 14; + * + * 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 getMutableAvatarList() { + bitField0_ |= 0x00000001; + return avatarList; + } + + /** + * repeated .Avatar avatar_list = 14; + * @param value the avatarList to add + * @return this + */ + public AvatarSync addAvatarList(final AvatarOuterClass.Avatar value) { + bitField0_ |= 0x00000001; + avatarList.add(value); + return this; + } + + /** + * repeated .Avatar avatar_list = 14; + * @param values the avatarList to add + * @return this + */ + public AvatarSync addAllAvatarList(final AvatarOuterClass.Avatar... values) { + bitField0_ |= 0x00000001; + avatarList.addAll(values); + return this; + } + + @Override + public AvatarSync copyFrom(final AvatarSync other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarList.copyFrom(other.avatarList); + } + return this; + } + + @Override + public AvatarSync mergeFrom(final AvatarSync other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarList()) { + getMutableAvatarList().addAll(other.avatarList); + } + return this; + } + + @Override + public AvatarSync clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarList.clear(); + return this; + } + + @Override + public AvatarSync clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AvatarSync)) { + return false; + } + AvatarSync other = (AvatarSync) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarList() || avatarList.equals(other.avatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(avatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarSync mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 114: { + // avatarList + tag = input.readRepeatedMessage(avatarList, 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.avatarList, avatarList); + } + output.endObject(); + } + + @Override + public AvatarSync mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarSync clone() { + return new AvatarSync().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarSync parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarSync(), data).checkInitialized(); + } + + public static AvatarSync parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarSync(), input).checkInitialized(); + } + + public static AvatarSync parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarSync(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarSync messages + */ + public static MessageFactory getFactory() { + return AvatarSyncFactory.INSTANCE; + } + + private enum AvatarSyncFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarSync create() { + return AvatarSync.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java new file mode 100644 index 0000000..a2778bb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java @@ -0,0 +1,160 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class AvatarTypeOuterClass { + /** + * Protobuf enum {@code AvatarType} + */ + public enum AvatarType implements ProtoEnum { + /** + * AVATAR_TYPE_NONE = 0; + */ + AVATAR_TYPE_NONE("AVATAR_TYPE_NONE", 0), + + /** + * AVATAR_TRIAL_TYPE = 1; + */ + AVATAR_TRIAL_TYPE("AVATAR_TRIAL_TYPE", 1), + + /** + * AVATAR_LIMIT_TYPE = 2; + */ + AVATAR_LIMIT_TYPE("AVATAR_LIMIT_TYPE", 2), + + /** + * AVATAR_FORMAL_TYPE = 3; + */ + AVATAR_FORMAL_TYPE("AVATAR_FORMAL_TYPE", 3), + + /** + * AVATAR_ASSIST_TYPE = 4; + */ + AVATAR_ASSIST_TYPE("AVATAR_ASSIST_TYPE", 4); + + /** + * AVATAR_TYPE_NONE = 0; + */ + public static final int AVATAR_TYPE_NONE_VALUE = 0; + + /** + * AVATAR_TRIAL_TYPE = 1; + */ + public static final int AVATAR_TRIAL_TYPE_VALUE = 1; + + /** + * AVATAR_LIMIT_TYPE = 2; + */ + public static final int AVATAR_LIMIT_TYPE_VALUE = 2; + + /** + * AVATAR_FORMAL_TYPE = 3; + */ + public static final int AVATAR_FORMAL_TYPE_VALUE = 3; + + /** + * AVATAR_ASSIST_TYPE = 4; + */ + public static final int AVATAR_ASSIST_TYPE_VALUE = 4; + + private final String name; + + private final int number; + + private AvatarType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return AvatarTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static AvatarType forNumber(int value) { + return AvatarTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static AvatarType forNumberOr(int number, AvatarType other) { + AvatarType value = forNumber(number); + return value == null ? other : value; + } + + enum AvatarTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final AvatarType[] lookup = new AvatarType[5]; + + static { + lookup[0] = AVATAR_TYPE_NONE; + lookup[1] = AVATAR_TRIAL_TYPE; + lookup[2] = AVATAR_LIMIT_TYPE; + lookup[3] = AVATAR_FORMAL_TYPE; + lookup[4] = AVATAR_ASSIST_TYPE; + } + + @Override + public final AvatarType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final AvatarType forName(final CharSequence value) { + if (value.length() == 16) { + if (ProtoUtil.isEqual("AVATAR_TYPE_NONE", value)) { + return AVATAR_TYPE_NONE; + } + } + if (value.length() == 17) { + if (ProtoUtil.isEqual("AVATAR_TRIAL_TYPE", value)) { + return AVATAR_TRIAL_TYPE; + } + if (ProtoUtil.isEqual("AVATAR_LIMIT_TYPE", value)) { + return AVATAR_LIMIT_TYPE; + } + } + if (value.length() == 18) { + if (ProtoUtil.isEqual("AVATAR_FORMAL_TYPE", value)) { + return AVATAR_FORMAL_TYPE; + } + if (ProtoUtil.isEqual("AVATAR_ASSIST_TYPE", value)) { + return AVATAR_ASSIST_TYPE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java new file mode 100644 index 0000000..fc6c0e5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java @@ -0,0 +1,1381 @@ +// 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 BattleAvatarOuterClass { + /** + * Protobuf type {@code BattleAvatar} + */ + public static final class BattleAvatar extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 2; + */ + private int id; + + /** + * optional uint32 level = 3; + */ + private int level; + + /** + * optional uint32 rank = 4; + */ + private int rank; + + /** + * optional uint32 index = 5; + */ + private int index; + + /** + * optional uint32 hp = 8; + */ + private int hp; + + /** + * optional uint32 promotion = 10; + */ + private int promotion; + + /** + * optional uint32 world_level = 12; + */ + private int worldLevel; + + /** + * optional uint32 assist_uid = 13; + */ + private int assistUid; + + /** + * optional .AvatarType avatar_type = 1; + */ + private int avatarType; + + /** + * optional .SpBarInfo sp_bar = 16; + */ + private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance(); + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + */ + private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); + + /** + * repeated .BattleEquipment equipment_list = 7; + */ + private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(BattleEquipmentOuterClass.BattleEquipment.getFactory()); + + /** + * repeated .BattleRelic relic_list = 11; + */ + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(BattleRelicOuterClass.BattleRelic.getFactory()); + + private BattleAvatar() { + } + + /** + * @return a new empty instance of {@code BattleAvatar} + */ + public static BattleAvatar newInstance() { + return new BattleAvatar(); + } + + /** + * optional uint32 id = 2; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 2; + * @return this + */ + public BattleAvatar clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 2; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 2; + * @param value the id to set + * @return this + */ + public BattleAvatar setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 level = 3; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 3; + * @return this + */ + public BattleAvatar clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 3; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 3; + * @param value the level to set + * @return this + */ + public BattleAvatar setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 rank = 4; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 rank = 4; + * @return this + */ + public BattleAvatar clearRank() { + bitField0_ &= ~0x00000004; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 4; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 4; + * @param value the rank to set + * @return this + */ + public BattleAvatar setRank(final int value) { + bitField0_ |= 0x00000004; + rank = value; + return this; + } + + /** + * optional uint32 index = 5; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 index = 5; + * @return this + */ + public BattleAvatar clearIndex() { + bitField0_ &= ~0x00000008; + index = 0; + return this; + } + + /** + * optional uint32 index = 5; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 5; + * @param value the index to set + * @return this + */ + public BattleAvatar setIndex(final int value) { + bitField0_ |= 0x00000008; + index = value; + return this; + } + + /** + * optional uint32 hp = 8; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 hp = 8; + * @return this + */ + public BattleAvatar clearHp() { + bitField0_ &= ~0x00000010; + hp = 0; + return this; + } + + /** + * optional uint32 hp = 8; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional uint32 hp = 8; + * @param value the hp to set + * @return this + */ + public BattleAvatar setHp(final int value) { + bitField0_ |= 0x00000010; + hp = value; + return this; + } + + /** + * optional uint32 promotion = 10; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 promotion = 10; + * @return this + */ + public BattleAvatar clearPromotion() { + bitField0_ &= ~0x00000020; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 10; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 10; + * @param value the promotion to set + * @return this + */ + public BattleAvatar setPromotion(final int value) { + bitField0_ |= 0x00000020; + promotion = value; + return this; + } + + /** + * optional uint32 world_level = 12; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 world_level = 12; + * @return this + */ + public BattleAvatar clearWorldLevel() { + bitField0_ &= ~0x00000040; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 12; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 12; + * @param value the worldLevel to set + * @return this + */ + public BattleAvatar setWorldLevel(final int value) { + bitField0_ |= 0x00000040; + worldLevel = value; + return this; + } + + /** + * optional uint32 assist_uid = 13; + * @return whether the assistUid field is set + */ + public boolean hasAssistUid() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 assist_uid = 13; + * @return this + */ + public BattleAvatar clearAssistUid() { + bitField0_ &= ~0x00000080; + assistUid = 0; + return this; + } + + /** + * optional uint32 assist_uid = 13; + * @return the assistUid + */ + public int getAssistUid() { + return assistUid; + } + + /** + * optional uint32 assist_uid = 13; + * @param value the assistUid to set + * @return this + */ + public BattleAvatar setAssistUid(final int value) { + bitField0_ |= 0x00000080; + assistUid = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return this + */ + public BattleAvatar clearAvatarType() { + bitField0_ &= ~0x00000100; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link BattleAvatar#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link BattleAvatar#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public BattleAvatar setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000100; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @param value the avatarType to set + * @return this + */ + public BattleAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000100; + avatarType = value.getNumber(); + return this; + } + + /** + * optional .SpBarInfo sp_bar = 16; + * @return whether the spBar field is set + */ + public boolean hasSpBar() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .SpBarInfo sp_bar = 16; + * @return this + */ + public BattleAvatar clearSpBar() { + bitField0_ &= ~0x00000200; + spBar.clear(); + return this; + } + + /** + * optional .SpBarInfo sp_bar = 16; + * + * 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 #getMutableSpBar()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SpBarInfoOuterClass.SpBarInfo getSpBar() { + return spBar; + } + + /** + * optional .SpBarInfo sp_bar = 16; + * + * 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 SpBarInfoOuterClass.SpBarInfo getMutableSpBar() { + bitField0_ |= 0x00000200; + return spBar; + } + + /** + * optional .SpBarInfo sp_bar = 16; + * @param value the spBar to set + * @return this + */ + public BattleAvatar setSpBar(final SpBarInfoOuterClass.SpBarInfo value) { + bitField0_ |= 0x00000200; + spBar.copyFrom(value); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + * @return whether the skilltreeList field is set + */ + public boolean hasSkilltreeList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + * @return this + */ + public BattleAvatar clearSkilltreeList() { + bitField0_ &= ~0x00000400; + skilltreeList.clear(); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + * + * 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 #getMutableSkilltreeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSkilltreeList() { + return skilltreeList; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + * + * 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 getMutableSkilltreeList() { + bitField0_ |= 0x00000400; + return skilltreeList; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + * @param value the skilltreeList to add + * @return this + */ + public BattleAvatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { + bitField0_ |= 0x00000400; + skilltreeList.add(value); + return this; + } + + /** + * repeated .AvatarSkillTree skilltree_list = 6; + * @param values the skilltreeList to add + * @return this + */ + public BattleAvatar addAllSkilltreeList( + final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { + bitField0_ |= 0x00000400; + skilltreeList.addAll(values); + return this; + } + + /** + * repeated .BattleEquipment equipment_list = 7; + * @return whether the equipmentList field is set + */ + public boolean hasEquipmentList() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .BattleEquipment equipment_list = 7; + * @return this + */ + public BattleAvatar clearEquipmentList() { + bitField0_ &= ~0x00000800; + equipmentList.clear(); + return this; + } + + /** + * repeated .BattleEquipment equipment_list = 7; + * + * 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 #getMutableEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipmentList() { + return equipmentList; + } + + /** + * repeated .BattleEquipment equipment_list = 7; + * + * 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 getMutableEquipmentList() { + bitField0_ |= 0x00000800; + return equipmentList; + } + + /** + * repeated .BattleEquipment equipment_list = 7; + * @param value the equipmentList to add + * @return this + */ + public BattleAvatar addEquipmentList(final BattleEquipmentOuterClass.BattleEquipment value) { + bitField0_ |= 0x00000800; + equipmentList.add(value); + return this; + } + + /** + * repeated .BattleEquipment equipment_list = 7; + * @param values the equipmentList to add + * @return this + */ + public BattleAvatar addAllEquipmentList( + final BattleEquipmentOuterClass.BattleEquipment... values) { + bitField0_ |= 0x00000800; + equipmentList.addAll(values); + return this; + } + + /** + * repeated .BattleRelic relic_list = 11; + * @return whether the relicList field is set + */ + public boolean hasRelicList() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * repeated .BattleRelic relic_list = 11; + * @return this + */ + public BattleAvatar clearRelicList() { + bitField0_ &= ~0x00001000; + relicList.clear(); + return this; + } + + /** + * repeated .BattleRelic relic_list = 11; + * + * 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 #getMutableRelicList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRelicList() { + return relicList; + } + + /** + * repeated .BattleRelic relic_list = 11; + * + * 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 getMutableRelicList() { + bitField0_ |= 0x00001000; + return relicList; + } + + /** + * repeated .BattleRelic relic_list = 11; + * @param value the relicList to add + * @return this + */ + public BattleAvatar addRelicList(final BattleRelicOuterClass.BattleRelic value) { + bitField0_ |= 0x00001000; + relicList.add(value); + return this; + } + + /** + * repeated .BattleRelic relic_list = 11; + * @param values the relicList to add + * @return this + */ + public BattleAvatar addAllRelicList(final BattleRelicOuterClass.BattleRelic... values) { + bitField0_ |= 0x00001000; + relicList.addAll(values); + return this; + } + + @Override + public BattleAvatar copyFrom(final BattleAvatar other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + level = other.level; + rank = other.rank; + index = other.index; + hp = other.hp; + promotion = other.promotion; + worldLevel = other.worldLevel; + assistUid = other.assistUid; + avatarType = other.avatarType; + spBar.copyFrom(other.spBar); + skilltreeList.copyFrom(other.skilltreeList); + equipmentList.copyFrom(other.equipmentList); + relicList.copyFrom(other.relicList); + } + return this; + } + + @Override + public BattleAvatar mergeFrom(final BattleAvatar other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasAssistUid()) { + setAssistUid(other.assistUid); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + if (other.hasSpBar()) { + getMutableSpBar().mergeFrom(other.spBar); + } + if (other.hasSkilltreeList()) { + getMutableSkilltreeList().addAll(other.skilltreeList); + } + if (other.hasEquipmentList()) { + getMutableEquipmentList().addAll(other.equipmentList); + } + if (other.hasRelicList()) { + getMutableRelicList().addAll(other.relicList); + } + return this; + } + + @Override + public BattleAvatar clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + level = 0; + rank = 0; + index = 0; + hp = 0; + promotion = 0; + worldLevel = 0; + assistUid = 0; + avatarType = 0; + spBar.clear(); + skilltreeList.clear(); + equipmentList.clear(); + relicList.clear(); + return this; + } + + @Override + public BattleAvatar clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + spBar.clearQuick(); + skilltreeList.clearQuick(); + equipmentList.clearQuick(); + relicList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleAvatar)) { + return false; + } + BattleAvatar other = (BattleAvatar) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasLevel() || level == other.level) + && (!hasRank() || rank == other.rank) + && (!hasIndex() || index == other.index) + && (!hasHp() || hp == other.hp) + && (!hasPromotion() || promotion == other.promotion) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasAssistUid() || assistUid == other.assistUid) + && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasSpBar() || spBar.equals(other.spBar)) + && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) + && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) + && (!hasRelicList() || relicList.equals(other.relicList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(hp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(assistUid); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(avatarType); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 386); + output.writeMessageNoTag(spBar); + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < skilltreeList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(skilltreeList.get(i)); + } + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < equipmentList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(equipmentList.get(i)); + } + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(relicList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(assistUid); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(spBar); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleAvatar mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // hp + hp = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // assistUid + assistUid = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000100; + } + tag = input.readTag(); + if (tag != 130) { + break; + } + } + case 130: { + // spBar + input.readMessage(spBar); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // skilltreeList + tag = input.readRepeatedMessage(skilltreeList, tag); + bitField0_ |= 0x00000400; + if (tag != 58) { + break; + } + } + case 58: { + // equipmentList + tag = input.readRepeatedMessage(equipmentList, tag); + bitField0_ |= 0x00000800; + if (tag != 90) { + break; + } + } + case 90: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); + bitField0_ |= 0x00001000; + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.index, index); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.assistUid, assistUid); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.spBar, spBar); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.relicList, relicList); + } + output.endObject(); + } + + @Override + public BattleAvatar mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100346066: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3336: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1429816615: + case 1374951802: { + if (input.isAtField(FieldNames.assistUid)) { + if (!input.trySkipNullValue()) { + assistUid = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000100; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 109608054: + case -896253135: { + if (input.isAtField(FieldNames.spBar)) { + if (!input.trySkipNullValue()) { + input.readMessage(spBar); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1549763245: + case 815647086: { + if (input.isAtField(FieldNames.skilltreeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(skilltreeList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2007143244: + case 2109525167: { + if (input.isAtField(FieldNames.equipmentList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(equipmentList); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(relicList); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleAvatar clone() { + return new BattleAvatar().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleAvatar parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleAvatar(), data).checkInitialized(); + } + + public static BattleAvatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleAvatar(), input).checkInitialized(); + } + + public static BattleAvatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleAvatar(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleAvatar messages + */ + public static MessageFactory getFactory() { + return BattleAvatarFactory.INSTANCE; + } + + private enum BattleAvatarFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleAvatar create() { + return BattleAvatar.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName index = FieldName.forField("index"); + + static final FieldName hp = FieldName.forField("hp"); + + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName assistUid = FieldName.forField("assistUid", "assist_uid"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + + static final FieldName spBar = FieldName.forField("spBar", "sp_bar"); + + static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); + + static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); + + static final FieldName relicList = FieldName.forField("relicList", "relic_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleBuffOuterClass.java new file mode 100644 index 0000000..844e0d8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleBuffOuterClass.java @@ -0,0 +1,1093 @@ +// 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.ProtoUtil; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class BattleBuffOuterClass { + /** + * Protobuf type {@code BattleBuff} + */ + public static final class BattleBuff extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 1; + */ + private int id; + + /** + * optional uint32 level = 2; + */ + private int level; + + /** + * optional uint32 owner_id = 3; + */ + private int ownerId; + + /** + * optional uint32 wave_flag = 4; + */ + private int waveFlag; + + /** + * repeated uint32 target_index_list = 5; + */ + private final RepeatedInt targetIndexList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + */ + private final RepeatedMessage dynamicValues = RepeatedMessage.newEmptyInstance(DynamicValuesEntry.getFactory()); + + private BattleBuff() { + } + + /** + * @return a new empty instance of {@code BattleBuff} + */ + public static BattleBuff newInstance() { + return new BattleBuff(); + } + + /** + * optional uint32 id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 1; + * @return this + */ + public BattleBuff clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 1; + * @param value the id to set + * @return this + */ + public BattleBuff setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 2; + * @return this + */ + public BattleBuff clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 2; + * @param value the level to set + * @return this + */ + public BattleBuff setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 owner_id = 3; + * @return whether the ownerId field is set + */ + public boolean hasOwnerId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 owner_id = 3; + * @return this + */ + public BattleBuff clearOwnerId() { + bitField0_ &= ~0x00000004; + ownerId = 0; + return this; + } + + /** + * optional uint32 owner_id = 3; + * @return the ownerId + */ + public int getOwnerId() { + return ownerId; + } + + /** + * optional uint32 owner_id = 3; + * @param value the ownerId to set + * @return this + */ + public BattleBuff setOwnerId(final int value) { + bitField0_ |= 0x00000004; + ownerId = value; + return this; + } + + /** + * optional uint32 wave_flag = 4; + * @return whether the waveFlag field is set + */ + public boolean hasWaveFlag() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 wave_flag = 4; + * @return this + */ + public BattleBuff clearWaveFlag() { + bitField0_ &= ~0x00000008; + waveFlag = 0; + return this; + } + + /** + * optional uint32 wave_flag = 4; + * @return the waveFlag + */ + public int getWaveFlag() { + return waveFlag; + } + + /** + * optional uint32 wave_flag = 4; + * @param value the waveFlag to set + * @return this + */ + public BattleBuff setWaveFlag(final int value) { + bitField0_ |= 0x00000008; + waveFlag = value; + return this; + } + + /** + * repeated uint32 target_index_list = 5; + * @return whether the targetIndexList field is set + */ + public boolean hasTargetIndexList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 target_index_list = 5; + * @return this + */ + public BattleBuff clearTargetIndexList() { + bitField0_ &= ~0x00000010; + targetIndexList.clear(); + return this; + } + + /** + * repeated uint32 target_index_list = 5; + * + * 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 #getMutableTargetIndexList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTargetIndexList() { + return targetIndexList; + } + + /** + * repeated uint32 target_index_list = 5; + * + * 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 getMutableTargetIndexList() { + bitField0_ |= 0x00000010; + return targetIndexList; + } + + /** + * repeated uint32 target_index_list = 5; + * @param value the targetIndexList to add + * @return this + */ + public BattleBuff addTargetIndexList(final int value) { + bitField0_ |= 0x00000010; + targetIndexList.add(value); + return this; + } + + /** + * repeated uint32 target_index_list = 5; + * @param values the targetIndexList to add + * @return this + */ + public BattleBuff addAllTargetIndexList(final int... values) { + bitField0_ |= 0x00000010; + targetIndexList.addAll(values); + return this; + } + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + * @return whether the dynamicValues field is set + */ + public boolean hasDynamicValues() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + * @return this + */ + public BattleBuff clearDynamicValues() { + bitField0_ &= ~0x00000020; + dynamicValues.clear(); + return this; + } + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + * + * 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 #getMutableDynamicValues()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDynamicValues() { + return dynamicValues; + } + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + * + * 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 getMutableDynamicValues() { + bitField0_ |= 0x00000020; + return dynamicValues; + } + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + * @param value the dynamicValues to add + * @return this + */ + public BattleBuff addDynamicValues(final DynamicValuesEntry value) { + bitField0_ |= 0x00000020; + dynamicValues.add(value); + return this; + } + + /** + * repeated .BattleBuff.DynamicValuesEntry dynamic_values = 6; + * @param values the dynamicValues to add + * @return this + */ + public BattleBuff addAllDynamicValues(final DynamicValuesEntry... values) { + bitField0_ |= 0x00000020; + dynamicValues.addAll(values); + return this; + } + + @Override + public BattleBuff copyFrom(final BattleBuff other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + level = other.level; + ownerId = other.ownerId; + waveFlag = other.waveFlag; + targetIndexList.copyFrom(other.targetIndexList); + dynamicValues.copyFrom(other.dynamicValues); + } + return this; + } + + @Override + public BattleBuff mergeFrom(final BattleBuff other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasOwnerId()) { + setOwnerId(other.ownerId); + } + if (other.hasWaveFlag()) { + setWaveFlag(other.waveFlag); + } + if (other.hasTargetIndexList()) { + getMutableTargetIndexList().addAll(other.targetIndexList); + } + if (other.hasDynamicValues()) { + getMutableDynamicValues().addAll(other.dynamicValues); + } + return this; + } + + @Override + public BattleBuff clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + level = 0; + ownerId = 0; + waveFlag = 0; + targetIndexList.clear(); + dynamicValues.clear(); + return this; + } + + @Override + public BattleBuff clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + targetIndexList.clear(); + dynamicValues.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleBuff)) { + return false; + } + BattleBuff other = (BattleBuff) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasLevel() || level == other.level) + && (!hasOwnerId() || ownerId == other.ownerId) + && (!hasWaveFlag() || waveFlag == other.waveFlag) + && (!hasTargetIndexList() || targetIndexList.equals(other.targetIndexList)) + && (!hasDynamicValues() || dynamicValues.equals(other.dynamicValues)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(ownerId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(waveFlag); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < targetIndexList.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(targetIndexList.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < dynamicValues.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(dynamicValues.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(ownerId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveFlag); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * targetIndexList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(targetIndexList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * dynamicValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dynamicValues); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleBuff mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // ownerId + ownerId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // waveFlag + waveFlag = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // targetIndexList [packed=true] + input.readPackedUInt32(targetIndexList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // dynamicValues + tag = input.readRepeatedMessage(dynamicValues, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // targetIndexList [packed=false] + tag = input.readRepeatedUInt32(targetIndexList, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.ownerId, ownerId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.waveFlag, waveFlag); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.targetIndexList, targetIndexList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.dynamicValues, dynamicValues); + } + output.endObject(); + } + + @Override + public BattleBuff mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1054729426: + case 1663147559: { + if (input.isAtField(FieldNames.ownerId)) { + if (!input.trySkipNullValue()) { + ownerId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 603251205: + case 1543837938: { + if (input.isAtField(FieldNames.waveFlag)) { + if (!input.trySkipNullValue()) { + waveFlag = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1377203711: + case -322772135: { + if (input.isAtField(FieldNames.targetIndexList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(targetIndexList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 571506241: + case 525223202: { + if (input.isAtField(FieldNames.dynamicValues)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dynamicValues); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleBuff clone() { + return new BattleBuff().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleBuff parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleBuff(), data).checkInitialized(); + } + + public static BattleBuff parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleBuff(), input).checkInitialized(); + } + + public static BattleBuff parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleBuff(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleBuff messages + */ + public static MessageFactory getFactory() { + return BattleBuffFactory.INSTANCE; + } + + /** + * Protobuf type {@code DynamicValuesEntry} + */ + public static final class DynamicValuesEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float value = 2; + */ + private float value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private DynamicValuesEntry() { + } + + /** + * @return a new empty instance of {@code DynamicValuesEntry} + */ + public static DynamicValuesEntry newInstance() { + return new DynamicValuesEntry(); + } + + /** + * optional float value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float value = 2; + * @return this + */ + public DynamicValuesEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0F; + return this; + } + + /** + * optional float value = 2; + * @return the value_ + */ + public float getValue() { + return value_; + } + + /** + * optional float value = 2; + * @param value the value_ to set + * @return this + */ + public DynamicValuesEntry setValue(final float value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public DynamicValuesEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public DynamicValuesEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public DynamicValuesEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public DynamicValuesEntry copyFrom(final DynamicValuesEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public DynamicValuesEntry mergeFrom(final DynamicValuesEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public DynamicValuesEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0F; + key.clear(); + return this; + } + + @Override + public DynamicValuesEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DynamicValuesEntry)) { + return false; + } + DynamicValuesEntry other = (DynamicValuesEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || ProtoUtil.isEqual(value_, other.value_)) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 21); + output.writeFloatNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DynamicValuesEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 21: { + // value_ + value_ = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + 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.writeFloat(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public DynamicValuesEntry 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.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DynamicValuesEntry clone() { + return new DynamicValuesEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DynamicValuesEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DynamicValuesEntry(), data).checkInitialized(); + } + + public static DynamicValuesEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DynamicValuesEntry(), input).checkInitialized(); + } + + public static DynamicValuesEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DynamicValuesEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating DynamicValuesEntry messages + */ + public static MessageFactory getFactory() { + return DynamicValuesEntryFactory.INSTANCE; + } + + private enum DynamicValuesEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public DynamicValuesEntry create() { + return DynamicValuesEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum BattleBuffFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleBuff create() { + return BattleBuff.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName ownerId = FieldName.forField("ownerId", "owner_id"); + + static final FieldName waveFlag = FieldName.forField("waveFlag", "wave_flag"); + + static final FieldName targetIndexList = FieldName.forField("targetIndexList", "target_index_list"); + + static final FieldName dynamicValues = FieldName.forField("dynamicValues", "dynamic_values"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java new file mode 100644 index 0000000..acdde11 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java @@ -0,0 +1,144 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class BattleEndStatusOuterClass { + /** + * Protobuf enum {@code BattleEndStatus} + */ + public enum BattleEndStatus implements ProtoEnum { + /** + * BATTLE_END_NONE = 0; + */ + BATTLE_END_NONE("BATTLE_END_NONE", 0), + + /** + * BATTLE_END_WIN = 1; + */ + BATTLE_END_WIN("BATTLE_END_WIN", 1), + + /** + * BATTLE_END_LOSE = 2; + */ + BATTLE_END_LOSE("BATTLE_END_LOSE", 2), + + /** + * BATTLE_END_QUIT = 3; + */ + BATTLE_END_QUIT("BATTLE_END_QUIT", 3); + + /** + * BATTLE_END_NONE = 0; + */ + public static final int BATTLE_END_NONE_VALUE = 0; + + /** + * BATTLE_END_WIN = 1; + */ + public static final int BATTLE_END_WIN_VALUE = 1; + + /** + * BATTLE_END_LOSE = 2; + */ + public static final int BATTLE_END_LOSE_VALUE = 2; + + /** + * BATTLE_END_QUIT = 3; + */ + public static final int BATTLE_END_QUIT_VALUE = 3; + + private final String name; + + private final int number; + + private BattleEndStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return BattleEndStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static BattleEndStatus forNumber(int value) { + return BattleEndStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static BattleEndStatus forNumberOr(int number, BattleEndStatus other) { + BattleEndStatus value = forNumber(number); + return value == null ? other : value; + } + + enum BattleEndStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final BattleEndStatus[] lookup = new BattleEndStatus[4]; + + static { + lookup[0] = BATTLE_END_NONE; + lookup[1] = BATTLE_END_WIN; + lookup[2] = BATTLE_END_LOSE; + lookup[3] = BATTLE_END_QUIT; + } + + @Override + public final BattleEndStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final BattleEndStatus forName(final CharSequence value) { + if (value.length() == 14) { + if (ProtoUtil.isEqual("BATTLE_END_WIN", value)) { + return BATTLE_END_WIN; + } + } + if (value.length() == 15) { + if (ProtoUtil.isEqual("BATTLE_END_NONE", value)) { + return BATTLE_END_NONE; + } + if (ProtoUtil.isEqual("BATTLE_END_LOSE", value)) { + return BATTLE_END_LOSE; + } + if (ProtoUtil.isEqual("BATTLE_END_QUIT", value)) { + return BATTLE_END_QUIT; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleEquipmentOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEquipmentOuterClass.java new file mode 100644 index 0000000..8815159 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleEquipmentOuterClass.java @@ -0,0 +1,499 @@ +// 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 BattleEquipmentOuterClass { + /** + * Protobuf type {@code BattleEquipment} + */ + public static final class BattleEquipment extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 1; + */ + private int id; + + /** + * optional uint32 level = 2; + */ + private int level; + + /** + * optional uint32 promotion = 3; + */ + private int promotion; + + /** + * optional uint32 rank = 4; + */ + private int rank; + + private BattleEquipment() { + } + + /** + * @return a new empty instance of {@code BattleEquipment} + */ + public static BattleEquipment newInstance() { + return new BattleEquipment(); + } + + /** + * optional uint32 id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 1; + * @return this + */ + public BattleEquipment clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 1; + * @param value the id to set + * @return this + */ + public BattleEquipment setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 2; + * @return this + */ + public BattleEquipment clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 2; + * @param value the level to set + * @return this + */ + public BattleEquipment setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 promotion = 3; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 promotion = 3; + * @return this + */ + public BattleEquipment clearPromotion() { + bitField0_ &= ~0x00000004; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 3; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 3; + * @param value the promotion to set + * @return this + */ + public BattleEquipment setPromotion(final int value) { + bitField0_ |= 0x00000004; + promotion = value; + return this; + } + + /** + * optional uint32 rank = 4; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 rank = 4; + * @return this + */ + public BattleEquipment clearRank() { + bitField0_ &= ~0x00000008; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 4; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 4; + * @param value the rank to set + * @return this + */ + public BattleEquipment setRank(final int value) { + bitField0_ |= 0x00000008; + rank = value; + return this; + } + + @Override + public BattleEquipment copyFrom(final BattleEquipment other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + level = other.level; + promotion = other.promotion; + rank = other.rank; + } + return this; + } + + @Override + public BattleEquipment mergeFrom(final BattleEquipment other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasRank()) { + setRank(other.rank); + } + return this; + } + + @Override + public BattleEquipment clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + level = 0; + promotion = 0; + rank = 0; + return this; + } + + @Override + public BattleEquipment 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 BattleEquipment)) { + return false; + } + BattleEquipment other = (BattleEquipment) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasLevel() || level == other.level) + && (!hasPromotion() || promotion == other.promotion) + && (!hasRank() || rank == other.rank); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(rank); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleEquipment mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // rank + rank = input.readUInt32(); + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + output.endObject(); + } + + @Override + public BattleEquipment mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleEquipment clone() { + return new BattleEquipment().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleEquipment parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleEquipment(), data).checkInitialized(); + } + + public static BattleEquipment parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleEquipment(), input).checkInitialized(); + } + + public static BattleEquipment parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleEquipment(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleEquipment messages + */ + public static MessageFactory getFactory() { + return BattleEquipmentFactory.INSTANCE; + } + + private enum BattleEquipmentFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleEquipment create() { + return BattleEquipment.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName rank = FieldName.forField("rank"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleOpOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleOpOuterClass.java new file mode 100644 index 0000000..988f4da --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleOpOuterClass.java @@ -0,0 +1,854 @@ +// 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.Utf8String; + +public final class BattleOpOuterClass { + /** + * Protobuf type {@code BattleOp} + */ + public static final class BattleOp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 turn_counter = 1; + */ + private int turnCounter; + + /** + * optional uint32 state = 2; + */ + private int state; + + /** + * optional uint32 action_entity_id = 3; + */ + private int actionEntityId; + + /** + * optional uint32 target_entity_id = 4; + */ + private int targetEntityId; + + /** + * optional uint32 op_type = 5; + */ + private int opType; + + /** + * optional uint32 skill_index = 6; + */ + private int skillIndex; + + /** + * optional uint32 operation_counter = 7; + */ + private int operationCounter; + + /** + * optional string FHPBGOGGOBH = 8; + */ + private final Utf8String fHPBGOGGOBH = Utf8String.newEmptyInstance(); + + private BattleOp() { + } + + /** + * @return a new empty instance of {@code BattleOp} + */ + public static BattleOp newInstance() { + return new BattleOp(); + } + + /** + * optional uint32 turn_counter = 1; + * @return whether the turnCounter field is set + */ + public boolean hasTurnCounter() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 turn_counter = 1; + * @return this + */ + public BattleOp clearTurnCounter() { + bitField0_ &= ~0x00000001; + turnCounter = 0; + return this; + } + + /** + * optional uint32 turn_counter = 1; + * @return the turnCounter + */ + public int getTurnCounter() { + return turnCounter; + } + + /** + * optional uint32 turn_counter = 1; + * @param value the turnCounter to set + * @return this + */ + public BattleOp setTurnCounter(final int value) { + bitField0_ |= 0x00000001; + turnCounter = value; + return this; + } + + /** + * optional uint32 state = 2; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 state = 2; + * @return this + */ + public BattleOp clearState() { + bitField0_ &= ~0x00000002; + state = 0; + return this; + } + + /** + * optional uint32 state = 2; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 2; + * @param value the state to set + * @return this + */ + public BattleOp setState(final int value) { + bitField0_ |= 0x00000002; + state = value; + return this; + } + + /** + * optional uint32 action_entity_id = 3; + * @return whether the actionEntityId field is set + */ + public boolean hasActionEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 action_entity_id = 3; + * @return this + */ + public BattleOp clearActionEntityId() { + bitField0_ &= ~0x00000004; + actionEntityId = 0; + return this; + } + + /** + * optional uint32 action_entity_id = 3; + * @return the actionEntityId + */ + public int getActionEntityId() { + return actionEntityId; + } + + /** + * optional uint32 action_entity_id = 3; + * @param value the actionEntityId to set + * @return this + */ + public BattleOp setActionEntityId(final int value) { + bitField0_ |= 0x00000004; + actionEntityId = value; + return this; + } + + /** + * optional uint32 target_entity_id = 4; + * @return whether the targetEntityId field is set + */ + public boolean hasTargetEntityId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 target_entity_id = 4; + * @return this + */ + public BattleOp clearTargetEntityId() { + bitField0_ &= ~0x00000008; + targetEntityId = 0; + return this; + } + + /** + * optional uint32 target_entity_id = 4; + * @return the targetEntityId + */ + public int getTargetEntityId() { + return targetEntityId; + } + + /** + * optional uint32 target_entity_id = 4; + * @param value the targetEntityId to set + * @return this + */ + public BattleOp setTargetEntityId(final int value) { + bitField0_ |= 0x00000008; + targetEntityId = value; + return this; + } + + /** + * optional uint32 op_type = 5; + * @return whether the opType field is set + */ + public boolean hasOpType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 op_type = 5; + * @return this + */ + public BattleOp clearOpType() { + bitField0_ &= ~0x00000010; + opType = 0; + return this; + } + + /** + * optional uint32 op_type = 5; + * @return the opType + */ + public int getOpType() { + return opType; + } + + /** + * optional uint32 op_type = 5; + * @param value the opType to set + * @return this + */ + public BattleOp setOpType(final int value) { + bitField0_ |= 0x00000010; + opType = value; + return this; + } + + /** + * optional uint32 skill_index = 6; + * @return whether the skillIndex field is set + */ + public boolean hasSkillIndex() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 skill_index = 6; + * @return this + */ + public BattleOp clearSkillIndex() { + bitField0_ &= ~0x00000020; + skillIndex = 0; + return this; + } + + /** + * optional uint32 skill_index = 6; + * @return the skillIndex + */ + public int getSkillIndex() { + return skillIndex; + } + + /** + * optional uint32 skill_index = 6; + * @param value the skillIndex to set + * @return this + */ + public BattleOp setSkillIndex(final int value) { + bitField0_ |= 0x00000020; + skillIndex = value; + return this; + } + + /** + * optional uint32 operation_counter = 7; + * @return whether the operationCounter field is set + */ + public boolean hasOperationCounter() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 operation_counter = 7; + * @return this + */ + public BattleOp clearOperationCounter() { + bitField0_ &= ~0x00000040; + operationCounter = 0; + return this; + } + + /** + * optional uint32 operation_counter = 7; + * @return the operationCounter + */ + public int getOperationCounter() { + return operationCounter; + } + + /** + * optional uint32 operation_counter = 7; + * @param value the operationCounter to set + * @return this + */ + public BattleOp setOperationCounter(final int value) { + bitField0_ |= 0x00000040; + operationCounter = value; + return this; + } + + /** + * optional string FHPBGOGGOBH = 8; + * @return whether the fHPBGOGGOBH field is set + */ + public boolean hasFHPBGOGGOBH() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string FHPBGOGGOBH = 8; + * @return this + */ + public BattleOp clearFHPBGOGGOBH() { + bitField0_ &= ~0x00000080; + fHPBGOGGOBH.clear(); + return this; + } + + /** + * optional string FHPBGOGGOBH = 8; + * @return the fHPBGOGGOBH + */ + public String getFHPBGOGGOBH() { + return fHPBGOGGOBH.getString(); + } + + /** + * optional string FHPBGOGGOBH = 8; + * @return internal {@code Utf8String} representation of fHPBGOGGOBH for reading + */ + public Utf8String getFHPBGOGGOBHBytes() { + return this.fHPBGOGGOBH; + } + + /** + * optional string FHPBGOGGOBH = 8; + * @return internal {@code Utf8String} representation of fHPBGOGGOBH for modifications + */ + public Utf8String getMutableFHPBGOGGOBHBytes() { + bitField0_ |= 0x00000080; + return this.fHPBGOGGOBH; + } + + /** + * optional string FHPBGOGGOBH = 8; + * @param value the fHPBGOGGOBH to set + * @return this + */ + public BattleOp setFHPBGOGGOBH(final CharSequence value) { + bitField0_ |= 0x00000080; + fHPBGOGGOBH.copyFrom(value); + return this; + } + + /** + * optional string FHPBGOGGOBH = 8; + * @param value the fHPBGOGGOBH to set + * @return this + */ + public BattleOp setFHPBGOGGOBH(final Utf8String value) { + bitField0_ |= 0x00000080; + fHPBGOGGOBH.copyFrom(value); + return this; + } + + @Override + public BattleOp copyFrom(final BattleOp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + turnCounter = other.turnCounter; + state = other.state; + actionEntityId = other.actionEntityId; + targetEntityId = other.targetEntityId; + opType = other.opType; + skillIndex = other.skillIndex; + operationCounter = other.operationCounter; + fHPBGOGGOBH.copyFrom(other.fHPBGOGGOBH); + } + return this; + } + + @Override + public BattleOp mergeFrom(final BattleOp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTurnCounter()) { + setTurnCounter(other.turnCounter); + } + if (other.hasState()) { + setState(other.state); + } + if (other.hasActionEntityId()) { + setActionEntityId(other.actionEntityId); + } + if (other.hasTargetEntityId()) { + setTargetEntityId(other.targetEntityId); + } + if (other.hasOpType()) { + setOpType(other.opType); + } + if (other.hasSkillIndex()) { + setSkillIndex(other.skillIndex); + } + if (other.hasOperationCounter()) { + setOperationCounter(other.operationCounter); + } + if (other.hasFHPBGOGGOBH()) { + getMutableFHPBGOGGOBHBytes().copyFrom(other.fHPBGOGGOBH); + } + return this; + } + + @Override + public BattleOp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + turnCounter = 0; + state = 0; + actionEntityId = 0; + targetEntityId = 0; + opType = 0; + skillIndex = 0; + operationCounter = 0; + fHPBGOGGOBH.clear(); + return this; + } + + @Override + public BattleOp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fHPBGOGGOBH.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleOp)) { + return false; + } + BattleOp other = (BattleOp) o; + return bitField0_ == other.bitField0_ + && (!hasTurnCounter() || turnCounter == other.turnCounter) + && (!hasState() || state == other.state) + && (!hasActionEntityId() || actionEntityId == other.actionEntityId) + && (!hasTargetEntityId() || targetEntityId == other.targetEntityId) + && (!hasOpType() || opType == other.opType) + && (!hasSkillIndex() || skillIndex == other.skillIndex) + && (!hasOperationCounter() || operationCounter == other.operationCounter) + && (!hasFHPBGOGGOBH() || fHPBGOGGOBH.equals(other.fHPBGOGGOBH)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(turnCounter); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(actionEntityId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(targetEntityId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(opType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(skillIndex); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(operationCounter); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 66); + output.writeStringNoTag(fHPBGOGGOBH); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(turnCounter); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(actionEntityId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(targetEntityId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(opType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(operationCounter); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(fHPBGOGGOBH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleOp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // turnCounter + turnCounter = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // actionEntityId + actionEntityId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // targetEntityId + targetEntityId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // opType + opType = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // skillIndex + skillIndex = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // operationCounter + operationCounter = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // fHPBGOGGOBH + input.readString(fHPBGOGGOBH); + bitField0_ |= 0x00000080; + 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.turnCounter, turnCounter); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.state, state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.actionEntityId, actionEntityId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.targetEntityId, targetEntityId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.opType, opType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.skillIndex, skillIndex); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.operationCounter, operationCounter); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.fHPBGOGGOBH, fHPBGOGGOBH); + } + output.endObject(); + } + + @Override + public BattleOp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1656510143: + case -859328454: { + if (input.isAtField(FieldNames.turnCounter)) { + if (!input.trySkipNullValue()) { + turnCounter = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109757585: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2016424780: + case 801410094: { + if (input.isAtField(FieldNames.actionEntityId)) { + if (!input.trySkipNullValue()) { + actionEntityId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 600782095: + case -913618487: { + if (input.isAtField(FieldNames.targetEntityId)) { + if (!input.trySkipNullValue()) { + targetEntityId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1011074885: + case -1268531496: { + if (input.isAtField(FieldNames.opType)) { + if (!input.trySkipNullValue()) { + opType = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1587034369: + case -1716021916: { + if (input.isAtField(FieldNames.skillIndex)) { + if (!input.trySkipNullValue()) { + skillIndex = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1914403179: + case 111508260: { + if (input.isAtField(FieldNames.operationCounter)) { + if (!input.trySkipNullValue()) { + operationCounter = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1084999847: { + if (input.isAtField(FieldNames.fHPBGOGGOBH)) { + if (!input.trySkipNullValue()) { + input.readString(fHPBGOGGOBH); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleOp clone() { + return new BattleOp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleOp parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleOp(), data).checkInitialized(); + } + + public static BattleOp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleOp(), input).checkInitialized(); + } + + public static BattleOp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleOp(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleOp messages + */ + public static MessageFactory getFactory() { + return BattleOpFactory.INSTANCE; + } + + private enum BattleOpFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleOp create() { + return BattleOp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName turnCounter = FieldName.forField("turnCounter", "turn_counter"); + + static final FieldName state = FieldName.forField("state"); + + static final FieldName actionEntityId = FieldName.forField("actionEntityId", "action_entity_id"); + + static final FieldName targetEntityId = FieldName.forField("targetEntityId", "target_entity_id"); + + static final FieldName opType = FieldName.forField("opType", "op_type"); + + static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); + + static final FieldName operationCounter = FieldName.forField("operationCounter", "operation_counter"); + + static final FieldName fHPBGOGGOBH = FieldName.forField("FHPBGOGGOBH"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java new file mode 100644 index 0000000..5f300db --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleRelicOuterClass.java @@ -0,0 +1,855 @@ +// 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 BattleRelicOuterClass { + /** + * Protobuf type {@code BattleRelic} + */ + public static final class BattleRelic extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 1; + */ + private int id; + + /** + * optional uint32 level = 2; + */ + private int level; + + /** + * optional uint32 main_affix_id = 3; + */ + private int mainAffixId; + + /** + * optional uint32 unique_id = 5; + */ + private int uniqueId; + + /** + * optional uint32 NMCBELOCIHC = 6; + */ + private int nMCBELOCIHC; + + /** + * optional uint32 GDPGIDGCGKE = 7; + */ + private int gDPGIDGCGKE; + + /** + * optional uint32 BKGLIPMIAKM = 8; + */ + private int bKGLIPMIAKM; + + /** + * repeated .RelicAffix sub_affix_list = 4; + */ + private final RepeatedMessage subAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); + + private BattleRelic() { + } + + /** + * @return a new empty instance of {@code BattleRelic} + */ + public static BattleRelic newInstance() { + return new BattleRelic(); + } + + /** + * optional uint32 id = 1; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 1; + * @return this + */ + public BattleRelic clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 1; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 1; + * @param value the id to set + * @return this + */ + public BattleRelic setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 2; + * @return this + */ + public BattleRelic clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 2; + * @param value the level to set + * @return this + */ + public BattleRelic setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 main_affix_id = 3; + * @return whether the mainAffixId field is set + */ + public boolean hasMainAffixId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 main_affix_id = 3; + * @return this + */ + public BattleRelic clearMainAffixId() { + bitField0_ &= ~0x00000004; + mainAffixId = 0; + return this; + } + + /** + * optional uint32 main_affix_id = 3; + * @return the mainAffixId + */ + public int getMainAffixId() { + return mainAffixId; + } + + /** + * optional uint32 main_affix_id = 3; + * @param value the mainAffixId to set + * @return this + */ + public BattleRelic setMainAffixId(final int value) { + bitField0_ |= 0x00000004; + mainAffixId = value; + return this; + } + + /** + * optional uint32 unique_id = 5; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 unique_id = 5; + * @return this + */ + public BattleRelic clearUniqueId() { + bitField0_ &= ~0x00000008; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 5; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 5; + * @param value the uniqueId to set + * @return this + */ + public BattleRelic setUniqueId(final int value) { + bitField0_ |= 0x00000008; + uniqueId = value; + return this; + } + + /** + * optional uint32 NMCBELOCIHC = 6; + * @return whether the nMCBELOCIHC field is set + */ + public boolean hasNMCBELOCIHC() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 NMCBELOCIHC = 6; + * @return this + */ + public BattleRelic clearNMCBELOCIHC() { + bitField0_ &= ~0x00000010; + nMCBELOCIHC = 0; + return this; + } + + /** + * optional uint32 NMCBELOCIHC = 6; + * @return the nMCBELOCIHC + */ + public int getNMCBELOCIHC() { + return nMCBELOCIHC; + } + + /** + * optional uint32 NMCBELOCIHC = 6; + * @param value the nMCBELOCIHC to set + * @return this + */ + public BattleRelic setNMCBELOCIHC(final int value) { + bitField0_ |= 0x00000010; + nMCBELOCIHC = value; + return this; + } + + /** + * optional uint32 GDPGIDGCGKE = 7; + * @return whether the gDPGIDGCGKE field is set + */ + public boolean hasGDPGIDGCGKE() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 GDPGIDGCGKE = 7; + * @return this + */ + public BattleRelic clearGDPGIDGCGKE() { + bitField0_ &= ~0x00000020; + gDPGIDGCGKE = 0; + return this; + } + + /** + * optional uint32 GDPGIDGCGKE = 7; + * @return the gDPGIDGCGKE + */ + public int getGDPGIDGCGKE() { + return gDPGIDGCGKE; + } + + /** + * optional uint32 GDPGIDGCGKE = 7; + * @param value the gDPGIDGCGKE to set + * @return this + */ + public BattleRelic setGDPGIDGCGKE(final int value) { + bitField0_ |= 0x00000020; + gDPGIDGCGKE = value; + return this; + } + + /** + * optional uint32 BKGLIPMIAKM = 8; + * @return whether the bKGLIPMIAKM field is set + */ + public boolean hasBKGLIPMIAKM() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 BKGLIPMIAKM = 8; + * @return this + */ + public BattleRelic clearBKGLIPMIAKM() { + bitField0_ &= ~0x00000040; + bKGLIPMIAKM = 0; + return this; + } + + /** + * optional uint32 BKGLIPMIAKM = 8; + * @return the bKGLIPMIAKM + */ + public int getBKGLIPMIAKM() { + return bKGLIPMIAKM; + } + + /** + * optional uint32 BKGLIPMIAKM = 8; + * @param value the bKGLIPMIAKM to set + * @return this + */ + public BattleRelic setBKGLIPMIAKM(final int value) { + bitField0_ |= 0x00000040; + bKGLIPMIAKM = value; + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 4; + * @return whether the subAffixList field is set + */ + public boolean hasSubAffixList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .RelicAffix sub_affix_list = 4; + * @return this + */ + public BattleRelic clearSubAffixList() { + bitField0_ &= ~0x00000080; + subAffixList.clear(); + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 4; + * + * 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 #getMutableSubAffixList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSubAffixList() { + return subAffixList; + } + + /** + * repeated .RelicAffix sub_affix_list = 4; + * + * 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 getMutableSubAffixList() { + bitField0_ |= 0x00000080; + return subAffixList; + } + + /** + * repeated .RelicAffix sub_affix_list = 4; + * @param value the subAffixList to add + * @return this + */ + public BattleRelic addSubAffixList(final RelicAffixOuterClass.RelicAffix value) { + bitField0_ |= 0x00000080; + subAffixList.add(value); + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 4; + * @param values the subAffixList to add + * @return this + */ + public BattleRelic addAllSubAffixList(final RelicAffixOuterClass.RelicAffix... values) { + bitField0_ |= 0x00000080; + subAffixList.addAll(values); + return this; + } + + @Override + public BattleRelic copyFrom(final BattleRelic other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + level = other.level; + mainAffixId = other.mainAffixId; + uniqueId = other.uniqueId; + nMCBELOCIHC = other.nMCBELOCIHC; + gDPGIDGCGKE = other.gDPGIDGCGKE; + bKGLIPMIAKM = other.bKGLIPMIAKM; + subAffixList.copyFrom(other.subAffixList); + } + return this; + } + + @Override + public BattleRelic mergeFrom(final BattleRelic other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); + } + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } + if (other.hasNMCBELOCIHC()) { + setNMCBELOCIHC(other.nMCBELOCIHC); + } + if (other.hasGDPGIDGCGKE()) { + setGDPGIDGCGKE(other.gDPGIDGCGKE); + } + if (other.hasBKGLIPMIAKM()) { + setBKGLIPMIAKM(other.bKGLIPMIAKM); + } + if (other.hasSubAffixList()) { + getMutableSubAffixList().addAll(other.subAffixList); + } + return this; + } + + @Override + public BattleRelic clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + level = 0; + mainAffixId = 0; + uniqueId = 0; + nMCBELOCIHC = 0; + gDPGIDGCGKE = 0; + bKGLIPMIAKM = 0; + subAffixList.clear(); + return this; + } + + @Override + public BattleRelic clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + subAffixList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleRelic)) { + return false; + } + BattleRelic other = (BattleRelic) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasLevel() || level == other.level) + && (!hasMainAffixId() || mainAffixId == other.mainAffixId) + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasNMCBELOCIHC() || nMCBELOCIHC == other.nMCBELOCIHC) + && (!hasGDPGIDGCGKE() || gDPGIDGCGKE == other.gDPGIDGCGKE) + && (!hasBKGLIPMIAKM() || bKGLIPMIAKM == other.bKGLIPMIAKM) + && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(nMCBELOCIHC); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(gDPGIDGCGKE); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(bKGLIPMIAKM); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < subAffixList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(subAffixList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nMCBELOCIHC); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gDPGIDGCGKE); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bKGLIPMIAKM); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * subAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subAffixList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleRelic mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // mainAffixId + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // nMCBELOCIHC + nMCBELOCIHC = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // gDPGIDGCGKE + gDPGIDGCGKE = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // bKGLIPMIAKM + bKGLIPMIAKM = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // subAffixList + tag = input.readRepeatedMessage(subAffixList, tag); + bitField0_ |= 0x00000080; + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.nMCBELOCIHC, nMCBELOCIHC); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.gDPGIDGCGKE, gDPGIDGCGKE); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.bKGLIPMIAKM, bKGLIPMIAKM); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.subAffixList, subAffixList); + } + output.endObject(); + } + + @Override + public BattleRelic mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { + if (!input.trySkipNullValue()) { + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { + if (!input.trySkipNullValue()) { + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 905131083: { + if (input.isAtField(FieldNames.nMCBELOCIHC)) { + if (!input.trySkipNullValue()) { + nMCBELOCIHC = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -511819978: { + if (input.isAtField(FieldNames.gDPGIDGCGKE)) { + if (!input.trySkipNullValue()) { + gDPGIDGCGKE = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1931990318: { + if (input.isAtField(FieldNames.bKGLIPMIAKM)) { + if (!input.trySkipNullValue()) { + bKGLIPMIAKM = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -600836050: + case 919890188: { + if (input.isAtField(FieldNames.subAffixList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(subAffixList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleRelic clone() { + return new BattleRelic().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleRelic parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleRelic(), data).checkInitialized(); + } + + public static BattleRelic parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRelic(), input).checkInitialized(); + } + + public static BattleRelic parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRelic(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleRelic messages + */ + public static MessageFactory getFactory() { + return BattleRelicFactory.INSTANCE; + } + + private enum BattleRelicFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleRelic create() { + return BattleRelic.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + + static final FieldName nMCBELOCIHC = FieldName.forField("NMCBELOCIHC"); + + static final FieldName gDPGIDGCGKE = FieldName.forField("GDPGIDGCGKE"); + + static final FieldName bKGLIPMIAKM = FieldName.forField("BKGLIPMIAKM"); + + static final FieldName subAffixList = FieldName.forField("subAffixList", "sub_affix_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleStatisticsOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleStatisticsOuterClass.java new file mode 100644 index 0000000..bcd810e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleStatisticsOuterClass.java @@ -0,0 +1,1711 @@ +// 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.ProtoUtil; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class BattleStatisticsOuterClass { + /** + * Protobuf type {@code BattleStatistics} + */ + public static final class BattleStatistics extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional double HKCPJKPOKGF = 5; + */ + private double hKCPJKPOKGF; + + /** + * optional double CKGDEAKGMLJ = 6; + */ + private double cKGDEAKGMLJ; + + /** + * optional uint32 total_battle_turns = 1; + */ + private int totalBattleTurns; + + /** + * optional uint32 total_auto_turns = 2; + */ + private int totalAutoTurns; + + /** + * optional uint32 NIFHACPIHFP = 4; + */ + private int nIFHACPIHFP; + + /** + *
+     * repeated MonsterBattleInfo monster_list = 8;
+     * 
+ * + * optional uint32 KIGOIMMHHLE = 9; + */ + private int kIGOIMMHHLE; + + /** + * optional uint32 AOLAHGLLBAG = 10; + */ + private int aOLAHGLLBAG; + + /** + * optional uint32 FCFPKHNLGKA = 11; + */ + private int fCFPKHNLGKA; + + /** + * optional uint32 LIAALHKEHIM = 12; + */ + private int lIAALHKEHIM; + + /** + * optional uint32 BEKMEDAINKG = 14; + */ + private int bEKMEDAINKG; + + /** + * repeated uint32 avatar_id_list = 3; + */ + private final RepeatedInt avatarIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + */ + private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(AvatarBattleInfoOuterClass.AvatarBattleInfo.getFactory()); + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + */ + private final RepeatedMessage customValues = RepeatedMessage.newEmptyInstance(CustomValuesEntry.getFactory()); + + private BattleStatistics() { + } + + /** + * @return a new empty instance of {@code BattleStatistics} + */ + public static BattleStatistics newInstance() { + return new BattleStatistics(); + } + + /** + * optional double HKCPJKPOKGF = 5; + * @return whether the hKCPJKPOKGF field is set + */ + public boolean hasHKCPJKPOKGF() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional double HKCPJKPOKGF = 5; + * @return this + */ + public BattleStatistics clearHKCPJKPOKGF() { + bitField0_ &= ~0x00000001; + hKCPJKPOKGF = 0D; + return this; + } + + /** + * optional double HKCPJKPOKGF = 5; + * @return the hKCPJKPOKGF + */ + public double getHKCPJKPOKGF() { + return hKCPJKPOKGF; + } + + /** + * optional double HKCPJKPOKGF = 5; + * @param value the hKCPJKPOKGF to set + * @return this + */ + public BattleStatistics setHKCPJKPOKGF(final double value) { + bitField0_ |= 0x00000001; + hKCPJKPOKGF = value; + return this; + } + + /** + * optional double CKGDEAKGMLJ = 6; + * @return whether the cKGDEAKGMLJ field is set + */ + public boolean hasCKGDEAKGMLJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional double CKGDEAKGMLJ = 6; + * @return this + */ + public BattleStatistics clearCKGDEAKGMLJ() { + bitField0_ &= ~0x00000002; + cKGDEAKGMLJ = 0D; + return this; + } + + /** + * optional double CKGDEAKGMLJ = 6; + * @return the cKGDEAKGMLJ + */ + public double getCKGDEAKGMLJ() { + return cKGDEAKGMLJ; + } + + /** + * optional double CKGDEAKGMLJ = 6; + * @param value the cKGDEAKGMLJ to set + * @return this + */ + public BattleStatistics setCKGDEAKGMLJ(final double value) { + bitField0_ |= 0x00000002; + cKGDEAKGMLJ = value; + return this; + } + + /** + * optional uint32 total_battle_turns = 1; + * @return whether the totalBattleTurns field is set + */ + public boolean hasTotalBattleTurns() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 total_battle_turns = 1; + * @return this + */ + public BattleStatistics clearTotalBattleTurns() { + bitField0_ &= ~0x00000004; + totalBattleTurns = 0; + return this; + } + + /** + * optional uint32 total_battle_turns = 1; + * @return the totalBattleTurns + */ + public int getTotalBattleTurns() { + return totalBattleTurns; + } + + /** + * optional uint32 total_battle_turns = 1; + * @param value the totalBattleTurns to set + * @return this + */ + public BattleStatistics setTotalBattleTurns(final int value) { + bitField0_ |= 0x00000004; + totalBattleTurns = value; + return this; + } + + /** + * optional uint32 total_auto_turns = 2; + * @return whether the totalAutoTurns field is set + */ + public boolean hasTotalAutoTurns() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 total_auto_turns = 2; + * @return this + */ + public BattleStatistics clearTotalAutoTurns() { + bitField0_ &= ~0x00000008; + totalAutoTurns = 0; + return this; + } + + /** + * optional uint32 total_auto_turns = 2; + * @return the totalAutoTurns + */ + public int getTotalAutoTurns() { + return totalAutoTurns; + } + + /** + * optional uint32 total_auto_turns = 2; + * @param value the totalAutoTurns to set + * @return this + */ + public BattleStatistics setTotalAutoTurns(final int value) { + bitField0_ |= 0x00000008; + totalAutoTurns = value; + return this; + } + + /** + * optional uint32 NIFHACPIHFP = 4; + * @return whether the nIFHACPIHFP field is set + */ + public boolean hasNIFHACPIHFP() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 NIFHACPIHFP = 4; + * @return this + */ + public BattleStatistics clearNIFHACPIHFP() { + bitField0_ &= ~0x00000010; + nIFHACPIHFP = 0; + return this; + } + + /** + * optional uint32 NIFHACPIHFP = 4; + * @return the nIFHACPIHFP + */ + public int getNIFHACPIHFP() { + return nIFHACPIHFP; + } + + /** + * optional uint32 NIFHACPIHFP = 4; + * @param value the nIFHACPIHFP to set + * @return this + */ + public BattleStatistics setNIFHACPIHFP(final int value) { + bitField0_ |= 0x00000010; + nIFHACPIHFP = value; + return this; + } + + /** + *
+     * repeated MonsterBattleInfo monster_list = 8;
+     * 
+ * + * optional uint32 KIGOIMMHHLE = 9; + * @return whether the kIGOIMMHHLE field is set + */ + public boolean hasKIGOIMMHHLE() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + *
+     * repeated MonsterBattleInfo monster_list = 8;
+     * 
+ * + * optional uint32 KIGOIMMHHLE = 9; + * @return this + */ + public BattleStatistics clearKIGOIMMHHLE() { + bitField0_ &= ~0x00000020; + kIGOIMMHHLE = 0; + return this; + } + + /** + *
+     * repeated MonsterBattleInfo monster_list = 8;
+     * 
+ * + * optional uint32 KIGOIMMHHLE = 9; + * @return the kIGOIMMHHLE + */ + public int getKIGOIMMHHLE() { + return kIGOIMMHHLE; + } + + /** + *
+     * repeated MonsterBattleInfo monster_list = 8;
+     * 
+ * + * optional uint32 KIGOIMMHHLE = 9; + * @param value the kIGOIMMHHLE to set + * @return this + */ + public BattleStatistics setKIGOIMMHHLE(final int value) { + bitField0_ |= 0x00000020; + kIGOIMMHHLE = value; + return this; + } + + /** + * optional uint32 AOLAHGLLBAG = 10; + * @return whether the aOLAHGLLBAG field is set + */ + public boolean hasAOLAHGLLBAG() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 AOLAHGLLBAG = 10; + * @return this + */ + public BattleStatistics clearAOLAHGLLBAG() { + bitField0_ &= ~0x00000040; + aOLAHGLLBAG = 0; + return this; + } + + /** + * optional uint32 AOLAHGLLBAG = 10; + * @return the aOLAHGLLBAG + */ + public int getAOLAHGLLBAG() { + return aOLAHGLLBAG; + } + + /** + * optional uint32 AOLAHGLLBAG = 10; + * @param value the aOLAHGLLBAG to set + * @return this + */ + public BattleStatistics setAOLAHGLLBAG(final int value) { + bitField0_ |= 0x00000040; + aOLAHGLLBAG = value; + return this; + } + + /** + * optional uint32 FCFPKHNLGKA = 11; + * @return whether the fCFPKHNLGKA field is set + */ + public boolean hasFCFPKHNLGKA() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 FCFPKHNLGKA = 11; + * @return this + */ + public BattleStatistics clearFCFPKHNLGKA() { + bitField0_ &= ~0x00000080; + fCFPKHNLGKA = 0; + return this; + } + + /** + * optional uint32 FCFPKHNLGKA = 11; + * @return the fCFPKHNLGKA + */ + public int getFCFPKHNLGKA() { + return fCFPKHNLGKA; + } + + /** + * optional uint32 FCFPKHNLGKA = 11; + * @param value the fCFPKHNLGKA to set + * @return this + */ + public BattleStatistics setFCFPKHNLGKA(final int value) { + bitField0_ |= 0x00000080; + fCFPKHNLGKA = value; + return this; + } + + /** + * optional uint32 LIAALHKEHIM = 12; + * @return whether the lIAALHKEHIM field is set + */ + public boolean hasLIAALHKEHIM() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 LIAALHKEHIM = 12; + * @return this + */ + public BattleStatistics clearLIAALHKEHIM() { + bitField0_ &= ~0x00000100; + lIAALHKEHIM = 0; + return this; + } + + /** + * optional uint32 LIAALHKEHIM = 12; + * @return the lIAALHKEHIM + */ + public int getLIAALHKEHIM() { + return lIAALHKEHIM; + } + + /** + * optional uint32 LIAALHKEHIM = 12; + * @param value the lIAALHKEHIM to set + * @return this + */ + public BattleStatistics setLIAALHKEHIM(final int value) { + bitField0_ |= 0x00000100; + lIAALHKEHIM = value; + return this; + } + + /** + * optional uint32 BEKMEDAINKG = 14; + * @return whether the bEKMEDAINKG field is set + */ + public boolean hasBEKMEDAINKG() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional uint32 BEKMEDAINKG = 14; + * @return this + */ + public BattleStatistics clearBEKMEDAINKG() { + bitField0_ &= ~0x00000200; + bEKMEDAINKG = 0; + return this; + } + + /** + * optional uint32 BEKMEDAINKG = 14; + * @return the bEKMEDAINKG + */ + public int getBEKMEDAINKG() { + return bEKMEDAINKG; + } + + /** + * optional uint32 BEKMEDAINKG = 14; + * @param value the bEKMEDAINKG to set + * @return this + */ + public BattleStatistics setBEKMEDAINKG(final int value) { + bitField0_ |= 0x00000200; + bEKMEDAINKG = value; + return this; + } + + /** + * repeated uint32 avatar_id_list = 3; + * @return whether the avatarIdList field is set + */ + public boolean hasAvatarIdList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated uint32 avatar_id_list = 3; + * @return this + */ + public BattleStatistics clearAvatarIdList() { + bitField0_ &= ~0x00000400; + avatarIdList.clear(); + return this; + } + + /** + * repeated uint32 avatar_id_list = 3; + * + * 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 #getMutableAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAvatarIdList() { + return avatarIdList; + } + + /** + * repeated uint32 avatar_id_list = 3; + * + * 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 getMutableAvatarIdList() { + bitField0_ |= 0x00000400; + return avatarIdList; + } + + /** + * repeated uint32 avatar_id_list = 3; + * @param value the avatarIdList to add + * @return this + */ + public BattleStatistics addAvatarIdList(final int value) { + bitField0_ |= 0x00000400; + avatarIdList.add(value); + return this; + } + + /** + * repeated uint32 avatar_id_list = 3; + * @param values the avatarIdList to add + * @return this + */ + public BattleStatistics addAllAvatarIdList(final int... values) { + bitField0_ |= 0x00000400; + avatarIdList.addAll(values); + return this; + } + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + * @return whether the battleAvatarList field is set + */ + public boolean hasBattleAvatarList() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + * @return this + */ + public BattleStatistics clearBattleAvatarList() { + bitField0_ &= ~0x00000800; + battleAvatarList.clear(); + return this; + } + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + * + * 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 #getMutableBattleAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleAvatarList() { + return battleAvatarList; + } + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + * + * 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 getMutableBattleAvatarList( + ) { + bitField0_ |= 0x00000800; + return battleAvatarList; + } + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + * @param value the battleAvatarList to add + * @return this + */ + public BattleStatistics addBattleAvatarList( + final AvatarBattleInfoOuterClass.AvatarBattleInfo value) { + bitField0_ |= 0x00000800; + battleAvatarList.add(value); + return this; + } + + /** + * repeated .AvatarBattleInfo battle_avatar_list = 7; + * @param values the battleAvatarList to add + * @return this + */ + public BattleStatistics addAllBattleAvatarList( + final AvatarBattleInfoOuterClass.AvatarBattleInfo... values) { + bitField0_ |= 0x00000800; + battleAvatarList.addAll(values); + return this; + } + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + * @return whether the customValues field is set + */ + public boolean hasCustomValues() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + * @return this + */ + public BattleStatistics clearCustomValues() { + bitField0_ &= ~0x00001000; + customValues.clear(); + return this; + } + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + * + * 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 #getMutableCustomValues()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getCustomValues() { + return customValues; + } + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + * + * 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 getMutableCustomValues() { + bitField0_ |= 0x00001000; + return customValues; + } + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + * @param value the customValues to add + * @return this + */ + public BattleStatistics addCustomValues(final CustomValuesEntry value) { + bitField0_ |= 0x00001000; + customValues.add(value); + return this; + } + + /** + * repeated .BattleStatistics.CustomValuesEntry custom_values = 13; + * @param values the customValues to add + * @return this + */ + public BattleStatistics addAllCustomValues(final CustomValuesEntry... values) { + bitField0_ |= 0x00001000; + customValues.addAll(values); + return this; + } + + @Override + public BattleStatistics copyFrom(final BattleStatistics other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hKCPJKPOKGF = other.hKCPJKPOKGF; + cKGDEAKGMLJ = other.cKGDEAKGMLJ; + totalBattleTurns = other.totalBattleTurns; + totalAutoTurns = other.totalAutoTurns; + nIFHACPIHFP = other.nIFHACPIHFP; + kIGOIMMHHLE = other.kIGOIMMHHLE; + aOLAHGLLBAG = other.aOLAHGLLBAG; + fCFPKHNLGKA = other.fCFPKHNLGKA; + lIAALHKEHIM = other.lIAALHKEHIM; + bEKMEDAINKG = other.bEKMEDAINKG; + avatarIdList.copyFrom(other.avatarIdList); + battleAvatarList.copyFrom(other.battleAvatarList); + customValues.copyFrom(other.customValues); + } + return this; + } + + @Override + public BattleStatistics mergeFrom(final BattleStatistics other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHKCPJKPOKGF()) { + setHKCPJKPOKGF(other.hKCPJKPOKGF); + } + if (other.hasCKGDEAKGMLJ()) { + setCKGDEAKGMLJ(other.cKGDEAKGMLJ); + } + if (other.hasTotalBattleTurns()) { + setTotalBattleTurns(other.totalBattleTurns); + } + if (other.hasTotalAutoTurns()) { + setTotalAutoTurns(other.totalAutoTurns); + } + if (other.hasNIFHACPIHFP()) { + setNIFHACPIHFP(other.nIFHACPIHFP); + } + if (other.hasKIGOIMMHHLE()) { + setKIGOIMMHHLE(other.kIGOIMMHHLE); + } + if (other.hasAOLAHGLLBAG()) { + setAOLAHGLLBAG(other.aOLAHGLLBAG); + } + if (other.hasFCFPKHNLGKA()) { + setFCFPKHNLGKA(other.fCFPKHNLGKA); + } + if (other.hasLIAALHKEHIM()) { + setLIAALHKEHIM(other.lIAALHKEHIM); + } + if (other.hasBEKMEDAINKG()) { + setBEKMEDAINKG(other.bEKMEDAINKG); + } + if (other.hasAvatarIdList()) { + getMutableAvatarIdList().addAll(other.avatarIdList); + } + if (other.hasBattleAvatarList()) { + getMutableBattleAvatarList().addAll(other.battleAvatarList); + } + if (other.hasCustomValues()) { + getMutableCustomValues().addAll(other.customValues); + } + return this; + } + + @Override + public BattleStatistics clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hKCPJKPOKGF = 0D; + cKGDEAKGMLJ = 0D; + totalBattleTurns = 0; + totalAutoTurns = 0; + nIFHACPIHFP = 0; + kIGOIMMHHLE = 0; + aOLAHGLLBAG = 0; + fCFPKHNLGKA = 0; + lIAALHKEHIM = 0; + bEKMEDAINKG = 0; + avatarIdList.clear(); + battleAvatarList.clear(); + customValues.clear(); + return this; + } + + @Override + public BattleStatistics clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarIdList.clear(); + battleAvatarList.clearQuick(); + customValues.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleStatistics)) { + return false; + } + BattleStatistics other = (BattleStatistics) o; + return bitField0_ == other.bitField0_ + && (!hasHKCPJKPOKGF() || ProtoUtil.isEqual(hKCPJKPOKGF, other.hKCPJKPOKGF)) + && (!hasCKGDEAKGMLJ() || ProtoUtil.isEqual(cKGDEAKGMLJ, other.cKGDEAKGMLJ)) + && (!hasTotalBattleTurns() || totalBattleTurns == other.totalBattleTurns) + && (!hasTotalAutoTurns() || totalAutoTurns == other.totalAutoTurns) + && (!hasNIFHACPIHFP() || nIFHACPIHFP == other.nIFHACPIHFP) + && (!hasKIGOIMMHHLE() || kIGOIMMHHLE == other.kIGOIMMHHLE) + && (!hasAOLAHGLLBAG() || aOLAHGLLBAG == other.aOLAHGLLBAG) + && (!hasFCFPKHNLGKA() || fCFPKHNLGKA == other.fCFPKHNLGKA) + && (!hasLIAALHKEHIM() || lIAALHKEHIM == other.lIAALHKEHIM) + && (!hasBEKMEDAINKG() || bEKMEDAINKG == other.bEKMEDAINKG) + && (!hasAvatarIdList() || avatarIdList.equals(other.avatarIdList)) + && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) + && (!hasCustomValues() || customValues.equals(other.customValues)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 41); + output.writeDoubleNoTag(hKCPJKPOKGF); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 49); + output.writeDoubleNoTag(cKGDEAKGMLJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(totalBattleTurns); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(totalAutoTurns); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(nIFHACPIHFP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(kIGOIMMHHLE); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(aOLAHGLLBAG); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(fCFPKHNLGKA); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(lIAALHKEHIM); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(bEKMEDAINKG); + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < avatarIdList.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(avatarIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < battleAvatarList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(battleAvatarList.get(i)); + } + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < customValues.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(customValues.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 9; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalBattleTurns); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalAutoTurns); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nIFHACPIHFP); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kIGOIMMHHLE); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aOLAHGLLBAG); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fCFPKHNLGKA); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lIAALHKEHIM); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bEKMEDAINKG); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * avatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(avatarIdList); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * customValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(customValues); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleStatistics mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 41: { + // hKCPJKPOKGF + hKCPJKPOKGF = input.readDouble(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 49) { + break; + } + } + case 49: { + // cKGDEAKGMLJ + cKGDEAKGMLJ = input.readDouble(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // totalBattleTurns + totalBattleTurns = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // totalAutoTurns + totalAutoTurns = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // nIFHACPIHFP + nIFHACPIHFP = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // kIGOIMMHHLE + kIGOIMMHHLE = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // aOLAHGLLBAG + aOLAHGLLBAG = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // fCFPKHNLGKA + fCFPKHNLGKA = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // lIAALHKEHIM + lIAALHKEHIM = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // bEKMEDAINKG + bEKMEDAINKG = input.readUInt32(); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // avatarIdList [packed=true] + input.readPackedUInt32(avatarIdList, tag); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // battleAvatarList + tag = input.readRepeatedMessage(battleAvatarList, tag); + bitField0_ |= 0x00000800; + if (tag != 106) { + break; + } + } + case 106: { + // customValues + tag = input.readRepeatedMessage(customValues, tag); + bitField0_ |= 0x00001000; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 24: { + // avatarIdList [packed=false] + tag = input.readRepeatedUInt32(avatarIdList, tag); + bitField0_ |= 0x00000400; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeDouble(FieldNames.hKCPJKPOKGF, hKCPJKPOKGF); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeDouble(FieldNames.cKGDEAKGMLJ, cKGDEAKGMLJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.totalBattleTurns, totalBattleTurns); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.totalAutoTurns, totalAutoTurns); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.nIFHACPIHFP, nIFHACPIHFP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.kIGOIMMHHLE, kIGOIMMHHLE); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.aOLAHGLLBAG, aOLAHGLLBAG); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.fCFPKHNLGKA, fCFPKHNLGKA); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeUInt32(FieldNames.lIAALHKEHIM, lIAALHKEHIM); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeUInt32(FieldNames.bEKMEDAINKG, bEKMEDAINKG); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedUInt32(FieldNames.avatarIdList, avatarIdList); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.customValues, customValues); + } + output.endObject(); + } + + @Override + public BattleStatistics mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2060289862: { + if (input.isAtField(FieldNames.hKCPJKPOKGF)) { + if (!input.trySkipNullValue()) { + hKCPJKPOKGF = input.readDouble(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -177934930: { + if (input.isAtField(FieldNames.cKGDEAKGMLJ)) { + if (!input.trySkipNullValue()) { + cKGDEAKGMLJ = input.readDouble(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1501027290: + case -1314204054: { + if (input.isAtField(FieldNames.totalBattleTurns)) { + if (!input.trySkipNullValue()) { + totalBattleTurns = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1823561661: + case 1641879777: { + if (input.isAtField(FieldNames.totalAutoTurns)) { + if (!input.trySkipNullValue()) { + totalAutoTurns = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1375859398: { + if (input.isAtField(FieldNames.nIFHACPIHFP)) { + if (!input.trySkipNullValue()) { + nIFHACPIHFP = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 315896860: { + if (input.isAtField(FieldNames.kIGOIMMHHLE)) { + if (!input.trySkipNullValue()) { + kIGOIMMHHLE = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -210507450: { + if (input.isAtField(FieldNames.aOLAHGLLBAG)) { + if (!input.trySkipNullValue()) { + aOLAHGLLBAG = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1516966405: { + if (input.isAtField(FieldNames.fCFPKHNLGKA)) { + if (!input.trySkipNullValue()) { + fCFPKHNLGKA = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 366658265: { + if (input.isAtField(FieldNames.lIAALHKEHIM)) { + if (!input.trySkipNullValue()) { + lIAALHKEHIM = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1554616514: { + if (input.isAtField(FieldNames.bEKMEDAINKG)) { + if (!input.trySkipNullValue()) { + bEKMEDAINKG = input.readUInt32(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1214270702: + case 1824281692: { + if (input.isAtField(FieldNames.avatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(avatarIdList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 768292975: + case 328463037: { + if (input.isAtField(FieldNames.battleAvatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(battleAvatarList); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 455932915: + case 1237417392: { + if (input.isAtField(FieldNames.customValues)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(customValues); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleStatistics clone() { + return new BattleStatistics().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleStatistics parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleStatistics(), data).checkInitialized(); + } + + public static BattleStatistics parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleStatistics(), input).checkInitialized(); + } + + public static BattleStatistics parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleStatistics(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleStatistics messages + */ + public static MessageFactory getFactory() { + return BattleStatisticsFactory.INSTANCE; + } + + /** + * Protobuf type {@code CustomValuesEntry} + */ + public static final class CustomValuesEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float value = 2; + */ + private float value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private CustomValuesEntry() { + } + + /** + * @return a new empty instance of {@code CustomValuesEntry} + */ + public static CustomValuesEntry newInstance() { + return new CustomValuesEntry(); + } + + /** + * optional float value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float value = 2; + * @return this + */ + public CustomValuesEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0F; + return this; + } + + /** + * optional float value = 2; + * @return the value_ + */ + public float getValue() { + return value_; + } + + /** + * optional float value = 2; + * @param value the value_ to set + * @return this + */ + public CustomValuesEntry setValue(final float value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public CustomValuesEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public CustomValuesEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public CustomValuesEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public CustomValuesEntry copyFrom(final CustomValuesEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public CustomValuesEntry mergeFrom(final CustomValuesEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public CustomValuesEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0F; + key.clear(); + return this; + } + + @Override + public CustomValuesEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CustomValuesEntry)) { + return false; + } + CustomValuesEntry other = (CustomValuesEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || ProtoUtil.isEqual(value_, other.value_)) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 21); + output.writeFloatNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CustomValuesEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 21: { + // value_ + value_ = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + 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.writeFloat(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public CustomValuesEntry 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.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CustomValuesEntry clone() { + return new CustomValuesEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CustomValuesEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CustomValuesEntry(), data).checkInitialized(); + } + + public static CustomValuesEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CustomValuesEntry(), input).checkInitialized(); + } + + public static CustomValuesEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CustomValuesEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating CustomValuesEntry messages + */ + public static MessageFactory getFactory() { + return CustomValuesEntryFactory.INSTANCE; + } + + private enum CustomValuesEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public CustomValuesEntry create() { + return CustomValuesEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum BattleStatisticsFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleStatistics create() { + return BattleStatistics.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hKCPJKPOKGF = FieldName.forField("HKCPJKPOKGF"); + + static final FieldName cKGDEAKGMLJ = FieldName.forField("CKGDEAKGMLJ"); + + static final FieldName totalBattleTurns = FieldName.forField("totalBattleTurns", "total_battle_turns"); + + static final FieldName totalAutoTurns = FieldName.forField("totalAutoTurns", "total_auto_turns"); + + static final FieldName nIFHACPIHFP = FieldName.forField("NIFHACPIHFP"); + + static final FieldName kIGOIMMHHLE = FieldName.forField("KIGOIMMHHLE"); + + static final FieldName aOLAHGLLBAG = FieldName.forField("AOLAHGLLBAG"); + + static final FieldName fCFPKHNLGKA = FieldName.forField("FCFPKHNLGKA"); + + static final FieldName lIAALHKEHIM = FieldName.forField("LIAALHKEHIM"); + + static final FieldName bEKMEDAINKG = FieldName.forField("BEKMEDAINKG"); + + static final FieldName avatarIdList = FieldName.forField("avatarIdList", "avatar_id_list"); + + static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); + + static final FieldName customValues = FieldName.forField("customValues", "custom_values"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BlackInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/BlackInfoOuterClass.java new file mode 100644 index 0000000..6bdc02c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BlackInfoOuterClass.java @@ -0,0 +1,502 @@ +// 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 BlackInfoOuterClass { + /** + * Protobuf type {@code BlackInfo} + */ + public static final class BlackInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 begin_time = 1; + */ + private long beginTime; + + /** + * optional int64 end_time = 2; + */ + private long endTime; + + /** + * optional uint32 limit_level = 3; + */ + private int limitLevel; + + /** + * optional uint32 ban_type = 4; + */ + private int banType; + + private BlackInfo() { + } + + /** + * @return a new empty instance of {@code BlackInfo} + */ + public static BlackInfo newInstance() { + return new BlackInfo(); + } + + /** + * optional int64 begin_time = 1; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 begin_time = 1; + * @return this + */ + public BlackInfo clearBeginTime() { + bitField0_ &= ~0x00000001; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 1; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 1; + * @param value the beginTime to set + * @return this + */ + public BlackInfo setBeginTime(final long value) { + bitField0_ |= 0x00000001; + beginTime = value; + return this; + } + + /** + * optional int64 end_time = 2; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 end_time = 2; + * @return this + */ + public BlackInfo clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 2; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 2; + * @param value the endTime to set + * @return this + */ + public BlackInfo setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; + return this; + } + + /** + * optional uint32 limit_level = 3; + * @return whether the limitLevel field is set + */ + public boolean hasLimitLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 limit_level = 3; + * @return this + */ + public BlackInfo clearLimitLevel() { + bitField0_ &= ~0x00000004; + limitLevel = 0; + return this; + } + + /** + * optional uint32 limit_level = 3; + * @return the limitLevel + */ + public int getLimitLevel() { + return limitLevel; + } + + /** + * optional uint32 limit_level = 3; + * @param value the limitLevel to set + * @return this + */ + public BlackInfo setLimitLevel(final int value) { + bitField0_ |= 0x00000004; + limitLevel = value; + return this; + } + + /** + * optional uint32 ban_type = 4; + * @return whether the banType field is set + */ + public boolean hasBanType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 ban_type = 4; + * @return this + */ + public BlackInfo clearBanType() { + bitField0_ &= ~0x00000008; + banType = 0; + return this; + } + + /** + * optional uint32 ban_type = 4; + * @return the banType + */ + public int getBanType() { + return banType; + } + + /** + * optional uint32 ban_type = 4; + * @param value the banType to set + * @return this + */ + public BlackInfo setBanType(final int value) { + bitField0_ |= 0x00000008; + banType = value; + return this; + } + + @Override + public BlackInfo copyFrom(final BlackInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + beginTime = other.beginTime; + endTime = other.endTime; + limitLevel = other.limitLevel; + banType = other.banType; + } + return this; + } + + @Override + public BlackInfo mergeFrom(final BlackInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasLimitLevel()) { + setLimitLevel(other.limitLevel); + } + if (other.hasBanType()) { + setBanType(other.banType); + } + return this; + } + + @Override + public BlackInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + beginTime = 0L; + endTime = 0L; + limitLevel = 0; + banType = 0; + return this; + } + + @Override + public BlackInfo 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 BlackInfo)) { + return false; + } + BlackInfo other = (BlackInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) + && (!hasLimitLevel() || limitLevel == other.limitLevel) + && (!hasBanType() || banType == other.banType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(limitLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(banType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(limitLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(banType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BlackInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // limitLevel + limitLevel = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // banType + banType = input.readUInt32(); + 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.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.limitLevel, limitLevel); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.banType, banType); + } + output.endObject(); + } + + @Override + public BlackInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1767080823: + case 1604997632: { + if (input.isAtField(FieldNames.limitLevel)) { + if (!input.trySkipNullValue()) { + limitLevel = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -337715223: + case -1869218454: { + if (input.isAtField(FieldNames.banType)) { + if (!input.trySkipNullValue()) { + banType = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BlackInfo clone() { + return new BlackInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BlackInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BlackInfo(), data).checkInitialized(); + } + + public static BlackInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BlackInfo(), input).checkInitialized(); + } + + public static BlackInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BlackInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating BlackInfo messages + */ + public static MessageFactory getFactory() { + return BlackInfoFactory.INSTANCE; + } + + private enum BlackInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public BlackInfo create() { + return BlackInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + + static final FieldName limitLevel = FieldName.forField("limitLevel", "limit_level"); + + static final FieldName banType = FieldName.forField("banType", "ban_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java new file mode 100644 index 0000000..1baa7b8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java @@ -0,0 +1,483 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class BoardDataSyncOuterClass { + /** + * Protobuf type {@code BoardDataSync} + */ + public static final class BoardDataSync extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool PFFKMBMFBCN = 3; + */ + private boolean pFFKMBMFBCN; + + /** + * optional string signature = 6; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + */ + private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); + + private BoardDataSync() { + } + + /** + * @return a new empty instance of {@code BoardDataSync} + */ + public static BoardDataSync newInstance() { + return new BoardDataSync(); + } + + /** + * optional bool PFFKMBMFBCN = 3; + * @return whether the pFFKMBMFBCN field is set + */ + public boolean hasPFFKMBMFBCN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool PFFKMBMFBCN = 3; + * @return this + */ + public BoardDataSync clearPFFKMBMFBCN() { + bitField0_ &= ~0x00000001; + pFFKMBMFBCN = false; + return this; + } + + /** + * optional bool PFFKMBMFBCN = 3; + * @return the pFFKMBMFBCN + */ + public boolean getPFFKMBMFBCN() { + return pFFKMBMFBCN; + } + + /** + * optional bool PFFKMBMFBCN = 3; + * @param value the pFFKMBMFBCN to set + * @return this + */ + public BoardDataSync setPFFKMBMFBCN(final boolean value) { + bitField0_ |= 0x00000001; + pFFKMBMFBCN = value; + return this; + } + + /** + * optional string signature = 6; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string signature = 6; + * @return this + */ + public BoardDataSync clearSignature() { + bitField0_ &= ~0x00000002; + signature.clear(); + return this; + } + + /** + * optional string signature = 6; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 6; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 6; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00000002; + return this.signature; + } + + /** + * optional string signature = 6; + * @param value the signature to set + * @return this + */ + public BoardDataSync setSignature(final CharSequence value) { + bitField0_ |= 0x00000002; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 6; + * @param value the signature to set + * @return this + */ + public BoardDataSync setSignature(final Utf8String value) { + bitField0_ |= 0x00000002; + signature.copyFrom(value); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + * @return whether the unlockedHeadIconList field is set + */ + public boolean hasUnlockedHeadIconList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + * @return this + */ + public BoardDataSync clearUnlockedHeadIconList() { + bitField0_ &= ~0x00000004; + unlockedHeadIconList.clear(); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + * + * 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 #getMutableUnlockedHeadIconList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUnlockedHeadIconList() { + return unlockedHeadIconList; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + * + * 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 getMutableUnlockedHeadIconList() { + bitField0_ |= 0x00000004; + return unlockedHeadIconList; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + * @param value the unlockedHeadIconList to add + * @return this + */ + public BoardDataSync addUnlockedHeadIconList(final HeadIconOuterClass.HeadIcon value) { + bitField0_ |= 0x00000004; + unlockedHeadIconList.add(value); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 7; + * @param values the unlockedHeadIconList to add + * @return this + */ + public BoardDataSync addAllUnlockedHeadIconList(final HeadIconOuterClass.HeadIcon... values) { + bitField0_ |= 0x00000004; + unlockedHeadIconList.addAll(values); + return this; + } + + @Override + public BoardDataSync copyFrom(final BoardDataSync other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pFFKMBMFBCN = other.pFFKMBMFBCN; + signature.copyFrom(other.signature); + unlockedHeadIconList.copyFrom(other.unlockedHeadIconList); + } + return this; + } + + @Override + public BoardDataSync mergeFrom(final BoardDataSync other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPFFKMBMFBCN()) { + setPFFKMBMFBCN(other.pFFKMBMFBCN); + } + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + if (other.hasUnlockedHeadIconList()) { + getMutableUnlockedHeadIconList().addAll(other.unlockedHeadIconList); + } + return this; + } + + @Override + public BoardDataSync clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pFFKMBMFBCN = false; + signature.clear(); + unlockedHeadIconList.clear(); + return this; + } + + @Override + public BoardDataSync clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + signature.clear(); + unlockedHeadIconList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BoardDataSync)) { + return false; + } + BoardDataSync other = (BoardDataSync) o; + return bitField0_ == other.bitField0_ + && (!hasPFFKMBMFBCN() || pFFKMBMFBCN == other.pFFKMBMFBCN) + && (!hasSignature() || signature.equals(other.signature)) + && (!hasUnlockedHeadIconList() || unlockedHeadIconList.equals(other.unlockedHeadIconList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(pFFKMBMFBCN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < unlockedHeadIconList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(unlockedHeadIconList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * unlockedHeadIconList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedHeadIconList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BoardDataSync mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // pFFKMBMFBCN + pFFKMBMFBCN = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // signature + input.readString(signature); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // unlockedHeadIconList + tag = input.readRepeatedMessage(unlockedHeadIconList, 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.writeBool(FieldNames.pFFKMBMFBCN, pFFKMBMFBCN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.unlockedHeadIconList, unlockedHeadIconList); + } + output.endObject(); + } + + @Override + public BoardDataSync mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1418143260: { + if (input.isAtField(FieldNames.pFFKMBMFBCN)) { + if (!input.trySkipNullValue()) { + pFFKMBMFBCN = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1875382586: + case -1276395039: { + if (input.isAtField(FieldNames.unlockedHeadIconList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(unlockedHeadIconList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BoardDataSync clone() { + return new BoardDataSync().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BoardDataSync parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BoardDataSync(), data).checkInitialized(); + } + + public static BoardDataSync parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BoardDataSync(), input).checkInitialized(); + } + + public static BoardDataSync parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BoardDataSync(), input).checkInitialized(); + } + + /** + * @return factory for creating BoardDataSync messages + */ + public static MessageFactory getFactory() { + return BoardDataSyncFactory.INSTANCE; + } + + private enum BoardDataSyncFactory implements MessageFactory { + INSTANCE; + + @Override + public BoardDataSync create() { + return BoardDataSync.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pFFKMBMFBCN = FieldName.forField("PFFKMBMFBCN"); + + static final FieldName signature = FieldName.forField("signature"); + + static final FieldName unlockedHeadIconList = FieldName.forField("unlockedHeadIconList", "unlocked_head_icon_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java new file mode 100644 index 0000000..51367b3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java @@ -0,0 +1,1130 @@ +// 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.ProtoUtil; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class BuffInfoOuterClass { + /** + * Protobuf type {@code BuffInfo} + */ + public static final class BuffInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 FEDNBDBBHHN = 1; + */ + private long fEDNBDBBHHN; + + /** + * optional float BNEOPNNPFLE = 6; + */ + private float bNEOPNNPFLE; + + /** + * optional uint32 level = 2; + */ + private int level; + + /** + * optional uint32 IPFABMCJDMN = 4; + */ + private int iPFABMCJDMN; + + /** + * optional uint32 count = 12; + */ + private int count; + + /** + * optional uint32 base_avatar_id = 14; + */ + private int baseAvatarId; + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + */ + private final RepeatedMessage dynamicValues = RepeatedMessage.newEmptyInstance(DynamicValuesEntry.getFactory()); + + private BuffInfo() { + } + + /** + * @return a new empty instance of {@code BuffInfo} + */ + public static BuffInfo newInstance() { + return new BuffInfo(); + } + + /** + * optional uint64 FEDNBDBBHHN = 1; + * @return whether the fEDNBDBBHHN field is set + */ + public boolean hasFEDNBDBBHHN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 FEDNBDBBHHN = 1; + * @return this + */ + public BuffInfo clearFEDNBDBBHHN() { + bitField0_ &= ~0x00000001; + fEDNBDBBHHN = 0L; + return this; + } + + /** + * optional uint64 FEDNBDBBHHN = 1; + * @return the fEDNBDBBHHN + */ + public long getFEDNBDBBHHN() { + return fEDNBDBBHHN; + } + + /** + * optional uint64 FEDNBDBBHHN = 1; + * @param value the fEDNBDBBHHN to set + * @return this + */ + public BuffInfo setFEDNBDBBHHN(final long value) { + bitField0_ |= 0x00000001; + fEDNBDBBHHN = value; + return this; + } + + /** + * optional float BNEOPNNPFLE = 6; + * @return whether the bNEOPNNPFLE field is set + */ + public boolean hasBNEOPNNPFLE() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional float BNEOPNNPFLE = 6; + * @return this + */ + public BuffInfo clearBNEOPNNPFLE() { + bitField0_ &= ~0x00000002; + bNEOPNNPFLE = 0F; + return this; + } + + /** + * optional float BNEOPNNPFLE = 6; + * @return the bNEOPNNPFLE + */ + public float getBNEOPNNPFLE() { + return bNEOPNNPFLE; + } + + /** + * optional float BNEOPNNPFLE = 6; + * @param value the bNEOPNNPFLE to set + * @return this + */ + public BuffInfo setBNEOPNNPFLE(final float value) { + bitField0_ |= 0x00000002; + bNEOPNNPFLE = value; + return this; + } + + /** + * optional uint32 level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 level = 2; + * @return this + */ + public BuffInfo clearLevel() { + bitField0_ &= ~0x00000004; + level = 0; + return this; + } + + /** + * optional uint32 level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 2; + * @param value the level to set + * @return this + */ + public BuffInfo setLevel(final int value) { + bitField0_ |= 0x00000004; + level = value; + return this; + } + + /** + * optional uint32 IPFABMCJDMN = 4; + * @return whether the iPFABMCJDMN field is set + */ + public boolean hasIPFABMCJDMN() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 IPFABMCJDMN = 4; + * @return this + */ + public BuffInfo clearIPFABMCJDMN() { + bitField0_ &= ~0x00000008; + iPFABMCJDMN = 0; + return this; + } + + /** + * optional uint32 IPFABMCJDMN = 4; + * @return the iPFABMCJDMN + */ + public int getIPFABMCJDMN() { + return iPFABMCJDMN; + } + + /** + * optional uint32 IPFABMCJDMN = 4; + * @param value the iPFABMCJDMN to set + * @return this + */ + public BuffInfo setIPFABMCJDMN(final int value) { + bitField0_ |= 0x00000008; + iPFABMCJDMN = value; + return this; + } + + /** + * optional uint32 count = 12; + * @return whether the count field is set + */ + public boolean hasCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 count = 12; + * @return this + */ + public BuffInfo clearCount() { + bitField0_ &= ~0x00000010; + count = 0; + return this; + } + + /** + * optional uint32 count = 12; + * @return the count + */ + public int getCount() { + return count; + } + + /** + * optional uint32 count = 12; + * @param value the count to set + * @return this + */ + public BuffInfo setCount(final int value) { + bitField0_ |= 0x00000010; + count = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return this + */ + public BuffInfo clearBaseAvatarId() { + bitField0_ &= ~0x00000020; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 14; + * @param value the baseAvatarId to set + * @return this + */ + public BuffInfo setBaseAvatarId(final int value) { + bitField0_ |= 0x00000020; + baseAvatarId = value; + return this; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + * @return whether the dynamicValues field is set + */ + public boolean hasDynamicValues() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + * @return this + */ + public BuffInfo clearDynamicValues() { + bitField0_ &= ~0x00000040; + dynamicValues.clear(); + return this; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + * + * 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 #getMutableDynamicValues()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDynamicValues() { + return dynamicValues; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + * + * 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 getMutableDynamicValues() { + bitField0_ |= 0x00000040; + return dynamicValues; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + * @param value the dynamicValues to add + * @return this + */ + public BuffInfo addDynamicValues(final DynamicValuesEntry value) { + bitField0_ |= 0x00000040; + dynamicValues.add(value); + return this; + } + + /** + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 3; + * @param values the dynamicValues to add + * @return this + */ + public BuffInfo addAllDynamicValues(final DynamicValuesEntry... values) { + bitField0_ |= 0x00000040; + dynamicValues.addAll(values); + return this; + } + + @Override + public BuffInfo copyFrom(final BuffInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fEDNBDBBHHN = other.fEDNBDBBHHN; + bNEOPNNPFLE = other.bNEOPNNPFLE; + level = other.level; + iPFABMCJDMN = other.iPFABMCJDMN; + count = other.count; + baseAvatarId = other.baseAvatarId; + dynamicValues.copyFrom(other.dynamicValues); + } + return this; + } + + @Override + public BuffInfo mergeFrom(final BuffInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFEDNBDBBHHN()) { + setFEDNBDBBHHN(other.fEDNBDBBHHN); + } + if (other.hasBNEOPNNPFLE()) { + setBNEOPNNPFLE(other.bNEOPNNPFLE); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasIPFABMCJDMN()) { + setIPFABMCJDMN(other.iPFABMCJDMN); + } + if (other.hasCount()) { + setCount(other.count); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasDynamicValues()) { + getMutableDynamicValues().addAll(other.dynamicValues); + } + return this; + } + + @Override + public BuffInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fEDNBDBBHHN = 0L; + bNEOPNNPFLE = 0F; + level = 0; + iPFABMCJDMN = 0; + count = 0; + baseAvatarId = 0; + dynamicValues.clear(); + return this; + } + + @Override + public BuffInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dynamicValues.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BuffInfo)) { + return false; + } + BuffInfo other = (BuffInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFEDNBDBBHHN() || fEDNBDBBHHN == other.fEDNBDBBHHN) + && (!hasBNEOPNNPFLE() || ProtoUtil.isEqual(bNEOPNNPFLE, other.bNEOPNNPFLE)) + && (!hasLevel() || level == other.level) + && (!hasIPFABMCJDMN() || iPFABMCJDMN == other.iPFABMCJDMN) + && (!hasCount() || count == other.count) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasDynamicValues() || dynamicValues.equals(other.dynamicValues)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt64NoTag(fEDNBDBBHHN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 53); + output.writeFloatNoTag(bNEOPNNPFLE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(iPFABMCJDMN); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(count); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < dynamicValues.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(dynamicValues.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(fEDNBDBBHHN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iPFABMCJDMN); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * dynamicValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dynamicValues); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BuffInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // fEDNBDBBHHN + fEDNBDBBHHN = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 53) { + break; + } + } + case 53: { + // bNEOPNNPFLE + bNEOPNNPFLE = input.readFloat(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // iPFABMCJDMN + iPFABMCJDMN = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // count + count = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // dynamicValues + tag = input.readRepeatedMessage(dynamicValues, tag); + bitField0_ |= 0x00000040; + 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.writeUInt64(FieldNames.fEDNBDBBHHN, fEDNBDBBHHN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeFloat(FieldNames.bNEOPNNPFLE, bNEOPNNPFLE); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.iPFABMCJDMN, iPFABMCJDMN); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.count, count); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.dynamicValues, dynamicValues); + } + output.endObject(); + } + + @Override + public BuffInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1304199581: { + if (input.isAtField(FieldNames.fEDNBDBBHHN)) { + if (!input.trySkipNullValue()) { + fEDNBDBBHHN = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -406688439: { + if (input.isAtField(FieldNames.bNEOPNNPFLE)) { + if (!input.trySkipNullValue()) { + bNEOPNNPFLE = input.readFloat(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -509586607: { + if (input.isAtField(FieldNames.iPFABMCJDMN)) { + if (!input.trySkipNullValue()) { + iPFABMCJDMN = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 94851343: { + if (input.isAtField(FieldNames.count)) { + if (!input.trySkipNullValue()) { + count = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 571506241: + case 525223202: { + if (input.isAtField(FieldNames.dynamicValues)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dynamicValues); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BuffInfo clone() { + return new BuffInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BuffInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BuffInfo(), data).checkInitialized(); + } + + public static BuffInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuffInfo(), input).checkInitialized(); + } + + public static BuffInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BuffInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating BuffInfo messages + */ + public static MessageFactory getFactory() { + return BuffInfoFactory.INSTANCE; + } + + /** + * Protobuf type {@code DynamicValuesEntry} + */ + public static final class DynamicValuesEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float value = 2; + */ + private float value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private DynamicValuesEntry() { + } + + /** + * @return a new empty instance of {@code DynamicValuesEntry} + */ + public static DynamicValuesEntry newInstance() { + return new DynamicValuesEntry(); + } + + /** + * optional float value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float value = 2; + * @return this + */ + public DynamicValuesEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0F; + return this; + } + + /** + * optional float value = 2; + * @return the value_ + */ + public float getValue() { + return value_; + } + + /** + * optional float value = 2; + * @param value the value_ to set + * @return this + */ + public DynamicValuesEntry setValue(final float value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public DynamicValuesEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public DynamicValuesEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public DynamicValuesEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public DynamicValuesEntry copyFrom(final DynamicValuesEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public DynamicValuesEntry mergeFrom(final DynamicValuesEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public DynamicValuesEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0F; + key.clear(); + return this; + } + + @Override + public DynamicValuesEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DynamicValuesEntry)) { + return false; + } + DynamicValuesEntry other = (DynamicValuesEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || ProtoUtil.isEqual(value_, other.value_)) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 21); + output.writeFloatNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DynamicValuesEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 21: { + // value_ + value_ = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + 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.writeFloat(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public DynamicValuesEntry 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.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DynamicValuesEntry clone() { + return new DynamicValuesEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DynamicValuesEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DynamicValuesEntry(), data).checkInitialized(); + } + + public static DynamicValuesEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DynamicValuesEntry(), input).checkInitialized(); + } + + public static DynamicValuesEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DynamicValuesEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating DynamicValuesEntry messages + */ + public static MessageFactory getFactory() { + return DynamicValuesEntryFactory.INSTANCE; + } + + private enum DynamicValuesEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public DynamicValuesEntry create() { + return DynamicValuesEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum BuffInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public BuffInfo create() { + return BuffInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fEDNBDBBHHN = FieldName.forField("FEDNBDBBHHN"); + + static final FieldName bNEOPNNPFLE = FieldName.forField("BNEOPNNPFLE"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName iPFABMCJDMN = FieldName.forField("IPFABMCJDMN"); + + static final FieldName count = FieldName.forField("count"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName dynamicValues = FieldName.forField("dynamicValues", "dynamic_values"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java new file mode 100644 index 0000000..ea60bfd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java @@ -0,0 +1,566 @@ +// 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 ChallengeInfoOuterClass { + /** + * Protobuf type {@code ChallengeInfo} + */ + public static final class ChallengeInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 EAPKGFJDABE = 6; + */ + private int eAPKGFJDABE; + + /** + * optional uint32 challenge_id = 14; + */ + private int challengeId; + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + */ + private int extraLineupType; + + /** + * optional .ChallengeStatus status = 8; + */ + private int status; + + private ChallengeInfo() { + } + + /** + * @return a new empty instance of {@code ChallengeInfo} + */ + public static ChallengeInfo newInstance() { + return new ChallengeInfo(); + } + + /** + * optional uint32 EAPKGFJDABE = 6; + * @return whether the eAPKGFJDABE field is set + */ + public boolean hasEAPKGFJDABE() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 EAPKGFJDABE = 6; + * @return this + */ + public ChallengeInfo clearEAPKGFJDABE() { + bitField0_ &= ~0x00000001; + eAPKGFJDABE = 0; + return this; + } + + /** + * optional uint32 EAPKGFJDABE = 6; + * @return the eAPKGFJDABE + */ + public int getEAPKGFJDABE() { + return eAPKGFJDABE; + } + + /** + * optional uint32 EAPKGFJDABE = 6; + * @param value the eAPKGFJDABE to set + * @return this + */ + public ChallengeInfo setEAPKGFJDABE(final int value) { + bitField0_ |= 0x00000001; + eAPKGFJDABE = value; + return this; + } + + /** + * optional uint32 challenge_id = 14; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 challenge_id = 14; + * @return this + */ + public ChallengeInfo clearChallengeId() { + bitField0_ &= ~0x00000002; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 14; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 14; + * @param value the challengeId to set + * @return this + */ + public ChallengeInfo setChallengeId(final int value) { + bitField0_ |= 0x00000002; + challengeId = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @return this + */ + public ChallengeInfo clearExtraLineupType() { + bitField0_ &= ~0x00000004; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChallengeInfo#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link ChallengeInfo#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChallengeInfo setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000004; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @param value the extraLineupType to set + * @return this + */ + public ChallengeInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000004; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional .ChallengeStatus status = 8; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChallengeStatus status = 8; + * @return this + */ + public ChallengeInfo clearStatus() { + bitField0_ &= ~0x00000008; + status = 0; + return this; + } + + /** + * optional .ChallengeStatus status = 8; + * @return the status + */ + public ChallengeStatusOuterClass.ChallengeStatus getStatus() { + return ChallengeStatusOuterClass.ChallengeStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChallengeInfo#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ChallengeStatusOuterClass.ChallengeStatus}. Setting an invalid value + * can cause {@link ChallengeInfo#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChallengeInfo setStatusValue(final int value) { + bitField0_ |= 0x00000008; + status = value; + return this; + } + + /** + * optional .ChallengeStatus status = 8; + * @param value the status to set + * @return this + */ + public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { + bitField0_ |= 0x00000008; + status = value.getNumber(); + return this; + } + + @Override + public ChallengeInfo copyFrom(final ChallengeInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eAPKGFJDABE = other.eAPKGFJDABE; + challengeId = other.challengeId; + extraLineupType = other.extraLineupType; + status = other.status; + } + return this; + } + + @Override + public ChallengeInfo mergeFrom(final ChallengeInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEAPKGFJDABE()) { + setEAPKGFJDABE(other.eAPKGFJDABE); + } + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + return this; + } + + @Override + public ChallengeInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eAPKGFJDABE = 0; + challengeId = 0; + extraLineupType = 0; + status = 0; + return this; + } + + @Override + public ChallengeInfo 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 ChallengeInfo)) { + return false; + } + ChallengeInfo other = (ChallengeInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEAPKGFJDABE() || eAPKGFJDABE == other.eAPKGFJDABE) + && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasStatus() || status == other.status); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(eAPKGFJDABE); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(challengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeEnumNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeEnumNoTag(status); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eAPKGFJDABE); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengeInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // eAPKGFJDABE + eAPKGFJDABE = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // status + final int value = input.readInt32(); + if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) { + status = value; + 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.eAPKGFJDABE, eAPKGFJDABE); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.challengeId, challengeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); + } + output.endObject(); + } + + @Override + public ChallengeInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 337975252: { + if (input.isAtField(FieldNames.eAPKGFJDABE)) { + if (!input.trySkipNullValue()) { + eAPKGFJDABE = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { + if (!input.trySkipNullValue()) { + challengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final ChallengeStatusOuterClass.ChallengeStatus value = input.readEnum(ChallengeStatusOuterClass.ChallengeStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengeInfo clone() { + return new ChallengeInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengeInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengeInfo(), data).checkInitialized(); + } + + public static ChallengeInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeInfo(), input).checkInitialized(); + } + + public static ChallengeInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengeInfo messages + */ + public static MessageFactory getFactory() { + return ChallengeInfoFactory.INSTANCE; + } + + private enum ChallengeInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengeInfo create() { + return ChallengeInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eAPKGFJDABE = FieldName.forField("EAPKGFJDABE"); + + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + + static final FieldName status = FieldName.forField("status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java new file mode 100644 index 0000000..36c4d26 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java @@ -0,0 +1,294 @@ +// 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 ChallengeLineupNotifyOuterClass { + /** + * Protobuf type {@code ChallengeLineupNotify} + */ + public static final class ChallengeLineupNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + */ + private int extraLineupType; + + private ChallengeLineupNotify() { + } + + /** + * @return a new empty instance of {@code ChallengeLineupNotify} + */ + public static ChallengeLineupNotify newInstance() { + return new ChallengeLineupNotify(); + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @return this + */ + public ChallengeLineupNotify clearExtraLineupType() { + bitField0_ &= ~0x00000001; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChallengeLineupNotify#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link ChallengeLineupNotify#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChallengeLineupNotify setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000001; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @param value the extraLineupType to set + * @return this + */ + public ChallengeLineupNotify setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000001; + extraLineupType = value.getNumber(); + return this; + } + + @Override + public ChallengeLineupNotify copyFrom(final ChallengeLineupNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + extraLineupType = other.extraLineupType; + } + return this; + } + + @Override + public ChallengeLineupNotify mergeFrom(final ChallengeLineupNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + return this; + } + + @Override + public ChallengeLineupNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + extraLineupType = 0; + return this; + } + + @Override + public ChallengeLineupNotify 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 ChallengeLineupNotify)) { + return false; + } + ChallengeLineupNotify other = (ChallengeLineupNotify) o; + return bitField0_ == other.bitField0_ + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeEnumNoTag(extraLineupType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengeLineupNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = 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.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + output.endObject(); + } + + @Override + public ChallengeLineupNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengeLineupNotify clone() { + return new ChallengeLineupNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengeLineupNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengeLineupNotify(), data).checkInitialized(); + } + + public static ChallengeLineupNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeLineupNotify(), input).checkInitialized(); + } + + public static ChallengeLineupNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeLineupNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengeLineupNotify messages + */ + public static MessageFactory getFactory() { + return ChallengeLineupNotifyFactory.INSTANCE; + } + + private enum ChallengeLineupNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengeLineupNotify create() { + return ChallengeLineupNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java new file mode 100644 index 0000000..f8c71cb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java @@ -0,0 +1,420 @@ +// 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 ChallengeOuterClass { + /** + * Protobuf type {@code Challenge} + */ + public static final class Challenge extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 stars = 2; + */ + private int stars; + + /** + * optional uint32 taken_reward = 5; + */ + private int takenReward; + + /** + * optional uint32 challenge_id = 13; + */ + private int challengeId; + + private Challenge() { + } + + /** + * @return a new empty instance of {@code Challenge} + */ + public static Challenge newInstance() { + return new Challenge(); + } + + /** + * optional uint32 stars = 2; + * @return whether the stars field is set + */ + public boolean hasStars() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 stars = 2; + * @return this + */ + public Challenge clearStars() { + bitField0_ &= ~0x00000001; + stars = 0; + return this; + } + + /** + * optional uint32 stars = 2; + * @return the stars + */ + public int getStars() { + return stars; + } + + /** + * optional uint32 stars = 2; + * @param value the stars to set + * @return this + */ + public Challenge setStars(final int value) { + bitField0_ |= 0x00000001; + stars = value; + return this; + } + + /** + * optional uint32 taken_reward = 5; + * @return whether the takenReward field is set + */ + public boolean hasTakenReward() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 taken_reward = 5; + * @return this + */ + public Challenge clearTakenReward() { + bitField0_ &= ~0x00000002; + takenReward = 0; + return this; + } + + /** + * optional uint32 taken_reward = 5; + * @return the takenReward + */ + public int getTakenReward() { + return takenReward; + } + + /** + * optional uint32 taken_reward = 5; + * @param value the takenReward to set + * @return this + */ + public Challenge setTakenReward(final int value) { + bitField0_ |= 0x00000002; + takenReward = value; + return this; + } + + /** + * optional uint32 challenge_id = 13; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 challenge_id = 13; + * @return this + */ + public Challenge clearChallengeId() { + bitField0_ &= ~0x00000004; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 13; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 13; + * @param value the challengeId to set + * @return this + */ + public Challenge setChallengeId(final int value) { + bitField0_ |= 0x00000004; + challengeId = value; + return this; + } + + @Override + public Challenge copyFrom(final Challenge other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + stars = other.stars; + takenReward = other.takenReward; + challengeId = other.challengeId; + } + return this; + } + + @Override + public Challenge mergeFrom(final Challenge other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStars()) { + setStars(other.stars); + } + if (other.hasTakenReward()) { + setTakenReward(other.takenReward); + } + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } + return this; + } + + @Override + public Challenge clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stars = 0; + takenReward = 0; + challengeId = 0; + return this; + } + + @Override + public Challenge 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 Challenge)) { + return false; + } + Challenge other = (Challenge) o; + return bitField0_ == other.bitField0_ + && (!hasStars() || stars == other.stars) + && (!hasTakenReward() || takenReward == other.takenReward) + && (!hasChallengeId() || challengeId == other.challengeId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(stars); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(takenReward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(challengeId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(takenReward); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Challenge mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // stars + stars = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // takenReward + takenReward = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // challengeId + challengeId = input.readUInt32(); + 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.stars, stars); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.takenReward, takenReward); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.challengeId, challengeId); + } + output.endObject(); + } + + @Override + public Challenge mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109757537: { + if (input.isAtField(FieldNames.stars)) { + if (!input.trySkipNullValue()) { + stars = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1216849622: + case -1923526233: { + if (input.isAtField(FieldNames.takenReward)) { + if (!input.trySkipNullValue()) { + takenReward = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { + if (!input.trySkipNullValue()) { + challengeId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Challenge clone() { + return new Challenge().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Challenge parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Challenge(), data).checkInitialized(); + } + + public static Challenge parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Challenge(), input).checkInitialized(); + } + + public static Challenge parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Challenge(), input).checkInitialized(); + } + + /** + * @return factory for creating Challenge messages + */ + public static MessageFactory getFactory() { + return ChallengeFactory.INSTANCE; + } + + private enum ChallengeFactory implements MessageFactory { + INSTANCE; + + @Override + public Challenge create() { + return Challenge.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName stars = FieldName.forField("stars"); + + static final FieldName takenReward = FieldName.forField("takenReward", "taken_reward"); + + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java new file mode 100644 index 0000000..4cffacb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java @@ -0,0 +1,522 @@ +// 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 ChallengeSettleNotifyOuterClass { + /** + * Protobuf type {@code ChallengeSettleNotify} + */ + public static final class ChallengeSettleNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_id = 3; + */ + private int challengeId; + + /** + * optional uint32 stars = 6; + */ + private int stars; + + /** + * optional bool is_win = 7; + */ + private boolean isWin; + + /** + * optional .ItemList reward = 4; + */ + private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); + + private ChallengeSettleNotify() { + } + + /** + * @return a new empty instance of {@code ChallengeSettleNotify} + */ + public static ChallengeSettleNotify newInstance() { + return new ChallengeSettleNotify(); + } + + /** + * optional uint32 challenge_id = 3; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_id = 3; + * @return this + */ + public ChallengeSettleNotify clearChallengeId() { + bitField0_ &= ~0x00000001; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 3; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 3; + * @param value the challengeId to set + * @return this + */ + public ChallengeSettleNotify setChallengeId(final int value) { + bitField0_ |= 0x00000001; + challengeId = value; + return this; + } + + /** + * optional uint32 stars = 6; + * @return whether the stars field is set + */ + public boolean hasStars() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 stars = 6; + * @return this + */ + public ChallengeSettleNotify clearStars() { + bitField0_ &= ~0x00000002; + stars = 0; + return this; + } + + /** + * optional uint32 stars = 6; + * @return the stars + */ + public int getStars() { + return stars; + } + + /** + * optional uint32 stars = 6; + * @param value the stars to set + * @return this + */ + public ChallengeSettleNotify setStars(final int value) { + bitField0_ |= 0x00000002; + stars = value; + return this; + } + + /** + * optional bool is_win = 7; + * @return whether the isWin field is set + */ + public boolean hasIsWin() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_win = 7; + * @return this + */ + public ChallengeSettleNotify clearIsWin() { + bitField0_ &= ~0x00000004; + isWin = false; + return this; + } + + /** + * optional bool is_win = 7; + * @return the isWin + */ + public boolean getIsWin() { + return isWin; + } + + /** + * optional bool is_win = 7; + * @param value the isWin to set + * @return this + */ + public ChallengeSettleNotify setIsWin(final boolean value) { + bitField0_ |= 0x00000004; + isWin = value; + return this; + } + + /** + * optional .ItemList reward = 4; + * @return whether the reward field is set + */ + public boolean hasReward() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ItemList reward = 4; + * @return this + */ + public ChallengeSettleNotify clearReward() { + bitField0_ &= ~0x00000008; + reward.clear(); + return this; + } + + /** + * optional .ItemList reward = 4; + * + * 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 #getMutableReward()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getReward() { + return reward; + } + + /** + * optional .ItemList reward = 4; + * + * 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 getMutableReward() { + bitField0_ |= 0x00000008; + return reward; + } + + /** + * optional .ItemList reward = 4; + * @param value the reward to set + * @return this + */ + public ChallengeSettleNotify setReward(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000008; + reward.copyFrom(value); + return this; + } + + @Override + public ChallengeSettleNotify copyFrom(final ChallengeSettleNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengeId = other.challengeId; + stars = other.stars; + isWin = other.isWin; + reward.copyFrom(other.reward); + } + return this; + } + + @Override + public ChallengeSettleNotify mergeFrom(final ChallengeSettleNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } + if (other.hasStars()) { + setStars(other.stars); + } + if (other.hasIsWin()) { + setIsWin(other.isWin); + } + if (other.hasReward()) { + getMutableReward().mergeFrom(other.reward); + } + return this; + } + + @Override + public ChallengeSettleNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeId = 0; + stars = 0; + isWin = false; + reward.clear(); + return this; + } + + @Override + public ChallengeSettleNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reward.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChallengeSettleNotify)) { + return false; + } + ChallengeSettleNotify other = (ChallengeSettleNotify) o; + return bitField0_ == other.bitField0_ + && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasStars() || stars == other.stars) + && (!hasIsWin() || isWin == other.isWin) + && (!hasReward() || reward.equals(other.reward)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(challengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(stars); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(isWin); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(reward); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengeSettleNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // stars + stars = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // isWin + isWin = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // reward + input.readMessage(reward); + 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.challengeId, challengeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.stars, stars); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isWin, isWin); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.reward, reward); + } + output.endObject(); + } + + @Override + public ChallengeSettleNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { + if (!input.trySkipNullValue()) { + challengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109757537: { + if (input.isAtField(FieldNames.stars)) { + if (!input.trySkipNullValue()) { + stars = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100482642: + case -1179753657: { + if (input.isAtField(FieldNames.isWin)) { + if (!input.trySkipNullValue()) { + isWin = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -934326481: { + if (input.isAtField(FieldNames.reward)) { + if (!input.trySkipNullValue()) { + input.readMessage(reward); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengeSettleNotify clone() { + return new ChallengeSettleNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengeSettleNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengeSettleNotify(), data).checkInitialized(); + } + + public static ChallengeSettleNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeSettleNotify(), input).checkInitialized(); + } + + public static ChallengeSettleNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeSettleNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengeSettleNotify messages + */ + public static MessageFactory getFactory() { + return ChallengeSettleNotifyFactory.INSTANCE; + } + + private enum ChallengeSettleNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengeSettleNotify create() { + return ChallengeSettleNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + + static final FieldName stars = FieldName.forField("stars"); + + static final FieldName isWin = FieldName.forField("isWin", "is_win"); + + static final FieldName reward = FieldName.forField("reward"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java new file mode 100644 index 0000000..1b5b58a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java @@ -0,0 +1,146 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChallengeStatusOuterClass { + /** + * Protobuf enum {@code ChallengeStatus} + */ + public enum ChallengeStatus implements ProtoEnum { + /** + * CHALLENGE_UNKNOWN = 0; + */ + CHALLENGE_UNKNOWN("CHALLENGE_UNKNOWN", 0), + + /** + * CHALLENGE_DOING = 1; + */ + CHALLENGE_DOING("CHALLENGE_DOING", 1), + + /** + * CHALLENGE_FINISH = 2; + */ + CHALLENGE_FINISH("CHALLENGE_FINISH", 2), + + /** + * CHALLENGE_FAILED = 3; + */ + CHALLENGE_FAILED("CHALLENGE_FAILED", 3); + + /** + * CHALLENGE_UNKNOWN = 0; + */ + public static final int CHALLENGE_UNKNOWN_VALUE = 0; + + /** + * CHALLENGE_DOING = 1; + */ + public static final int CHALLENGE_DOING_VALUE = 1; + + /** + * CHALLENGE_FINISH = 2; + */ + public static final int CHALLENGE_FINISH_VALUE = 2; + + /** + * CHALLENGE_FAILED = 3; + */ + public static final int CHALLENGE_FAILED_VALUE = 3; + + private final String name; + + private final int number; + + private ChallengeStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return ChallengeStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static ChallengeStatus forNumber(int value) { + return ChallengeStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static ChallengeStatus forNumberOr(int number, ChallengeStatus other) { + ChallengeStatus value = forNumber(number); + return value == null ? other : value; + } + + enum ChallengeStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChallengeStatus[] lookup = new ChallengeStatus[4]; + + static { + lookup[0] = CHALLENGE_UNKNOWN; + lookup[1] = CHALLENGE_DOING; + lookup[2] = CHALLENGE_FINISH; + lookup[3] = CHALLENGE_FAILED; + } + + @Override + public final ChallengeStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChallengeStatus forName(final CharSequence value) { + if (value.length() == 15) { + if (ProtoUtil.isEqual("CHALLENGE_DOING", value)) { + return CHALLENGE_DOING; + } + } + if (value.length() == 16) { + if (ProtoUtil.isEqual("CHALLENGE_FINISH", value)) { + return CHALLENGE_FINISH; + } + if (ProtoUtil.isEqual("CHALLENGE_FAILED", value)) { + return CHALLENGE_FAILED; + } + } + if (value.length() == 17) { + if (ProtoUtil.isEqual("CHALLENGE_UNKNOWN", value)) { + return CHALLENGE_UNKNOWN; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java new file mode 100644 index 0000000..723b166 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java @@ -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 ChangeLineupLeaderCsReqOuterClass { + /** + * Protobuf type {@code ChangeLineupLeaderCsReq} + */ + public static final class ChangeLineupLeaderCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 slot = 9; + */ + private int slot; + + private ChangeLineupLeaderCsReq() { + } + + /** + * @return a new empty instance of {@code ChangeLineupLeaderCsReq} + */ + public static ChangeLineupLeaderCsReq newInstance() { + return new ChangeLineupLeaderCsReq(); + } + + /** + * optional uint32 slot = 9; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 slot = 9; + * @return this + */ + public ChangeLineupLeaderCsReq clearSlot() { + bitField0_ &= ~0x00000001; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 9; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 9; + * @param value the slot to set + * @return this + */ + public ChangeLineupLeaderCsReq setSlot(final int value) { + bitField0_ |= 0x00000001; + slot = value; + return this; + } + + @Override + public ChangeLineupLeaderCsReq copyFrom(final ChangeLineupLeaderCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + slot = other.slot; + } + return this; + } + + @Override + public ChangeLineupLeaderCsReq mergeFrom(final ChangeLineupLeaderCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSlot()) { + setSlot(other.slot); + } + return this; + } + + @Override + public ChangeLineupLeaderCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slot = 0; + return this; + } + + @Override + public ChangeLineupLeaderCsReq 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 ChangeLineupLeaderCsReq)) { + return false; + } + ChangeLineupLeaderCsReq other = (ChangeLineupLeaderCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasSlot() || slot == other.slot); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(slot); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChangeLineupLeaderCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // slot + slot = 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.slot, slot); + } + output.endObject(); + } + + @Override + public ChangeLineupLeaderCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChangeLineupLeaderCsReq clone() { + return new ChangeLineupLeaderCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChangeLineupLeaderCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChangeLineupLeaderCsReq(), data).checkInitialized(); + } + + public static ChangeLineupLeaderCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChangeLineupLeaderCsReq(), input).checkInitialized(); + } + + public static ChangeLineupLeaderCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChangeLineupLeaderCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChangeLineupLeaderCsReq messages + */ + public static MessageFactory getFactory() { + return ChangeLineupLeaderCsReqFactory.INSTANCE; + } + + private enum ChangeLineupLeaderCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChangeLineupLeaderCsReq create() { + return ChangeLineupLeaderCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName slot = FieldName.forField("slot"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java new file mode 100644 index 0000000..81efd82 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java @@ -0,0 +1,339 @@ +// 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 ChangeLineupLeaderScRspOuterClass { + /** + * Protobuf type {@code ChangeLineupLeaderScRsp} + */ + public static final class ChangeLineupLeaderScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 slot = 7; + */ + private int slot; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + private ChangeLineupLeaderScRsp() { + } + + /** + * @return a new empty instance of {@code ChangeLineupLeaderScRsp} + */ + public static ChangeLineupLeaderScRsp newInstance() { + return new ChangeLineupLeaderScRsp(); + } + + /** + * optional uint32 slot = 7; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 slot = 7; + * @return this + */ + public ChangeLineupLeaderScRsp clearSlot() { + bitField0_ &= ~0x00000001; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 7; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 7; + * @param value the slot to set + * @return this + */ + public ChangeLineupLeaderScRsp setSlot(final int value) { + bitField0_ |= 0x00000001; + slot = value; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public ChangeLineupLeaderScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public ChangeLineupLeaderScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public ChangeLineupLeaderScRsp copyFrom(final ChangeLineupLeaderScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + slot = other.slot; + retcode = other.retcode; + } + return this; + } + + @Override + public ChangeLineupLeaderScRsp mergeFrom(final ChangeLineupLeaderScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public ChangeLineupLeaderScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slot = 0; + retcode = 0; + return this; + } + + @Override + public ChangeLineupLeaderScRsp 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 ChangeLineupLeaderScRsp)) { + return false; + } + ChangeLineupLeaderScRsp other = (ChangeLineupLeaderScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasSlot() || slot == other.slot) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChangeLineupLeaderScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // retcode + retcode = 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.slot, slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public ChangeLineupLeaderScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChangeLineupLeaderScRsp clone() { + return new ChangeLineupLeaderScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChangeLineupLeaderScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChangeLineupLeaderScRsp(), data).checkInitialized(); + } + + public static ChangeLineupLeaderScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChangeLineupLeaderScRsp(), input).checkInitialized(); + } + + public static ChangeLineupLeaderScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChangeLineupLeaderScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ChangeLineupLeaderScRsp messages + */ + public static MessageFactory getFactory() { + return ChangeLineupLeaderScRspFactory.INSTANCE; + } + + private enum ChangeLineupLeaderScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ChangeLineupLeaderScRsp create() { + return ChangeLineupLeaderScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java new file mode 100644 index 0000000..9ed5fdc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java @@ -0,0 +1,644 @@ +// 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.Utf8String; + +public final class ChatOuterClass { + /** + * Protobuf type {@code Chat} + */ + public static final class Chat extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 sent_time = 3; + */ + private long sentTime; + + /** + * optional uint32 emote = 2; + */ + private int emote; + + /** + * optional uint32 sender_uid = 9; + */ + private int senderUid; + + /** + * optional .MsgType msg_type = 5; + */ + private int msgType; + + /** + * optional string text = 1; + */ + private final Utf8String text = Utf8String.newEmptyInstance(); + + private Chat() { + } + + /** + * @return a new empty instance of {@code Chat} + */ + public static Chat newInstance() { + return new Chat(); + } + + /** + * optional uint64 sent_time = 3; + * @return whether the sentTime field is set + */ + public boolean hasSentTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 sent_time = 3; + * @return this + */ + public Chat clearSentTime() { + bitField0_ &= ~0x00000001; + sentTime = 0L; + return this; + } + + /** + * optional uint64 sent_time = 3; + * @return the sentTime + */ + public long getSentTime() { + return sentTime; + } + + /** + * optional uint64 sent_time = 3; + * @param value the sentTime to set + * @return this + */ + public Chat setSentTime(final long value) { + bitField0_ |= 0x00000001; + sentTime = value; + return this; + } + + /** + * optional uint32 emote = 2; + * @return whether the emote field is set + */ + public boolean hasEmote() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 emote = 2; + * @return this + */ + public Chat clearEmote() { + bitField0_ &= ~0x00000002; + emote = 0; + return this; + } + + /** + * optional uint32 emote = 2; + * @return the emote + */ + public int getEmote() { + return emote; + } + + /** + * optional uint32 emote = 2; + * @param value the emote to set + * @return this + */ + public Chat setEmote(final int value) { + bitField0_ |= 0x00000002; + emote = value; + return this; + } + + /** + * optional uint32 sender_uid = 9; + * @return whether the senderUid field is set + */ + public boolean hasSenderUid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 sender_uid = 9; + * @return this + */ + public Chat clearSenderUid() { + bitField0_ &= ~0x00000004; + senderUid = 0; + return this; + } + + /** + * optional uint32 sender_uid = 9; + * @return the senderUid + */ + public int getSenderUid() { + return senderUid; + } + + /** + * optional uint32 sender_uid = 9; + * @param value the senderUid to set + * @return this + */ + public Chat setSenderUid(final int value) { + bitField0_ |= 0x00000004; + senderUid = value; + return this; + } + + /** + * optional .MsgType msg_type = 5; + * @return whether the msgType field is set + */ + public boolean hasMsgType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .MsgType msg_type = 5; + * @return this + */ + public Chat clearMsgType() { + bitField0_ &= ~0x00000008; + msgType = 0; + return this; + } + + /** + * optional .MsgType msg_type = 5; + * @return the msgType + */ + public MsgTypeOuterClass.MsgType getMsgType() { + return MsgTypeOuterClass.MsgType.forNumber(msgType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link Chat#getMsgType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getMsgTypeValue() { + return msgType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value + * can cause {@link Chat#getMsgType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public Chat setMsgTypeValue(final int value) { + bitField0_ |= 0x00000008; + msgType = value; + return this; + } + + /** + * optional .MsgType msg_type = 5; + * @param value the msgType to set + * @return this + */ + public Chat setMsgType(final MsgTypeOuterClass.MsgType value) { + bitField0_ |= 0x00000008; + msgType = value.getNumber(); + return this; + } + + /** + * optional string text = 1; + * @return whether the text field is set + */ + public boolean hasText() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional string text = 1; + * @return this + */ + public Chat clearText() { + bitField0_ &= ~0x00000010; + text.clear(); + return this; + } + + /** + * optional string text = 1; + * @return the text + */ + public String getText() { + return text.getString(); + } + + /** + * optional string text = 1; + * @return internal {@code Utf8String} representation of text for reading + */ + public Utf8String getTextBytes() { + return this.text; + } + + /** + * optional string text = 1; + * @return internal {@code Utf8String} representation of text for modifications + */ + public Utf8String getMutableTextBytes() { + bitField0_ |= 0x00000010; + return this.text; + } + + /** + * optional string text = 1; + * @param value the text to set + * @return this + */ + public Chat setText(final CharSequence value) { + bitField0_ |= 0x00000010; + text.copyFrom(value); + return this; + } + + /** + * optional string text = 1; + * @param value the text to set + * @return this + */ + public Chat setText(final Utf8String value) { + bitField0_ |= 0x00000010; + text.copyFrom(value); + return this; + } + + @Override + public Chat copyFrom(final Chat other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + sentTime = other.sentTime; + emote = other.emote; + senderUid = other.senderUid; + msgType = other.msgType; + text.copyFrom(other.text); + } + return this; + } + + @Override + public Chat mergeFrom(final Chat other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSentTime()) { + setSentTime(other.sentTime); + } + if (other.hasEmote()) { + setEmote(other.emote); + } + if (other.hasSenderUid()) { + setSenderUid(other.senderUid); + } + if (other.hasMsgType()) { + setMsgTypeValue(other.msgType); + } + if (other.hasText()) { + getMutableTextBytes().copyFrom(other.text); + } + return this; + } + + @Override + public Chat clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sentTime = 0L; + emote = 0; + senderUid = 0; + msgType = 0; + text.clear(); + return this; + } + + @Override + public Chat clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + text.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Chat)) { + return false; + } + Chat other = (Chat) o; + return bitField0_ == other.bitField0_ + && (!hasSentTime() || sentTime == other.sentTime) + && (!hasEmote() || emote == other.emote) + && (!hasSenderUid() || senderUid == other.senderUid) + && (!hasMsgType() || msgType == other.msgType) + && (!hasText() || text.equals(other.text)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt64NoTag(sentTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(emote); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(senderUid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeEnumNoTag(msgType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(text); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(sentTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(text); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Chat mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // sentTime + sentTime = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // emote + emote = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // senderUid + senderUid = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // msgType + final int value = input.readInt32(); + if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { + msgType = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // text + input.readString(text); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.sentTime, sentTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.emote, emote); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.senderUid, senderUid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeString(FieldNames.text, text); + } + output.endObject(); + } + + @Override + public Chat mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1262226053: + case 484784916: { + if (input.isAtField(FieldNames.sentTime)) { + if (!input.trySkipNullValue()) { + sentTime = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 96633208: { + if (input.isAtField(FieldNames.emote)) { + if (!input.trySkipNullValue()) { + emote = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 32180699: + case 997911366: { + if (input.isAtField(FieldNames.senderUid)) { + if (!input.trySkipNullValue()) { + senderUid = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1343750747: + case -1283380936: { + if (input.isAtField(FieldNames.msgType)) { + if (!input.trySkipNullValue()) { + final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); + if (value != null) { + msgType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 3556653: { + if (input.isAtField(FieldNames.text)) { + if (!input.trySkipNullValue()) { + input.readString(text); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Chat clone() { + return new Chat().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Chat parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Chat(), data).checkInitialized(); + } + + public static Chat parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Chat(), input).checkInitialized(); + } + + public static Chat parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Chat(), input).checkInitialized(); + } + + /** + * @return factory for creating Chat messages + */ + public static MessageFactory getFactory() { + return ChatFactory.INSTANCE; + } + + private enum ChatFactory implements MessageFactory { + INSTANCE; + + @Override + public Chat create() { + return Chat.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName sentTime = FieldName.forField("sentTime", "sent_time"); + + static final FieldName emote = FieldName.forField("emote"); + + static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); + + static final FieldName msgType = FieldName.forField("msgType", "msg_type"); + + static final FieldName text = FieldName.forField("text"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java new file mode 100644 index 0000000..8a50a9d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ChatTypeOuterClass { + /** + * Protobuf enum {@code ChatType} + */ + public enum ChatType implements ProtoEnum { + /** + * CHAT_TYPE_NONE = 0; + */ + CHAT_TYPE_NONE("CHAT_TYPE_NONE", 0), + + /** + * CHAT_TYPE_PRIVATE = 1; + */ + CHAT_TYPE_PRIVATE("CHAT_TYPE_PRIVATE", 1), + + /** + * CHAT_TYPE_GROUP = 2; + */ + CHAT_TYPE_GROUP("CHAT_TYPE_GROUP", 2); + + /** + * CHAT_TYPE_NONE = 0; + */ + public static final int CHAT_TYPE_NONE_VALUE = 0; + + /** + * CHAT_TYPE_PRIVATE = 1; + */ + public static final int CHAT_TYPE_PRIVATE_VALUE = 1; + + /** + * CHAT_TYPE_GROUP = 2; + */ + public static final int CHAT_TYPE_GROUP_VALUE = 2; + + private final String name; + + private final int number; + + private ChatType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return ChatTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static ChatType forNumber(int value) { + return ChatTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static ChatType forNumberOr(int number, ChatType other) { + ChatType value = forNumber(number); + return value == null ? other : value; + } + + enum ChatTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ChatType[] lookup = new ChatType[3]; + + static { + lookup[0] = CHAT_TYPE_NONE; + lookup[1] = CHAT_TYPE_PRIVATE; + lookup[2] = CHAT_TYPE_GROUP; + } + + @Override + public final ChatType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ChatType forName(final CharSequence value) { + if (value.length() == 14) { + if (ProtoUtil.isEqual("CHAT_TYPE_NONE", value)) { + return CHAT_TYPE_NONE; + } + } + if (value.length() == 15) { + if (ProtoUtil.isEqual("CHAT_TYPE_GROUP", value)) { + return CHAT_TYPE_GROUP; + } + } + if (value.length() == 17) { + if (ProtoUtil.isEqual("CHAT_TYPE_PRIVATE", value)) { + return CHAT_TYPE_PRIVATE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ClientUploadDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientUploadDataOuterClass.java new file mode 100644 index 0000000..dc30da7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ClientUploadDataOuterClass.java @@ -0,0 +1,398 @@ +// 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.Utf8String; + +public final class ClientUploadDataOuterClass { + /** + * Protobuf type {@code ClientUploadData} + */ + public static final class ClientUploadData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional string tag = 1; + */ + private final Utf8String tag_ = Utf8String.newEmptyInstance(); + + /** + * optional string value = 2; + */ + private final Utf8String value_ = Utf8String.newEmptyInstance(); + + private ClientUploadData() { + } + + /** + * @return a new empty instance of {@code ClientUploadData} + */ + public static ClientUploadData newInstance() { + return new ClientUploadData(); + } + + /** + * optional string tag = 1; + * @return whether the tag_ field is set + */ + public boolean hasTag() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional string tag = 1; + * @return this + */ + public ClientUploadData clearTag() { + bitField0_ &= ~0x00000001; + tag_.clear(); + return this; + } + + /** + * optional string tag = 1; + * @return the tag_ + */ + public String getTag() { + return tag_.getString(); + } + + /** + * optional string tag = 1; + * @return internal {@code Utf8String} representation of tag_ for reading + */ + public Utf8String getTagBytes() { + return this.tag_; + } + + /** + * optional string tag = 1; + * @return internal {@code Utf8String} representation of tag_ for modifications + */ + public Utf8String getMutableTagBytes() { + bitField0_ |= 0x00000001; + return this.tag_; + } + + /** + * optional string tag = 1; + * @param value the tag_ to set + * @return this + */ + public ClientUploadData setTag(final CharSequence value) { + bitField0_ |= 0x00000001; + tag_.copyFrom(value); + return this; + } + + /** + * optional string tag = 1; + * @param value the tag_ to set + * @return this + */ + public ClientUploadData setTag(final Utf8String value) { + bitField0_ |= 0x00000001; + tag_.copyFrom(value); + return this; + } + + /** + * optional string value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string value = 2; + * @return this + */ + public ClientUploadData clearValue() { + bitField0_ &= ~0x00000002; + value_.clear(); + return this; + } + + /** + * optional string value = 2; + * @return the value_ + */ + public String getValue() { + return value_.getString(); + } + + /** + * optional string value = 2; + * @return internal {@code Utf8String} representation of value_ for reading + */ + public Utf8String getValueBytes() { + return this.value_; + } + + /** + * optional string value = 2; + * @return internal {@code Utf8String} representation of value_ for modifications + */ + public Utf8String getMutableValueBytes() { + bitField0_ |= 0x00000002; + return this.value_; + } + + /** + * optional string value = 2; + * @param value the value_ to set + * @return this + */ + public ClientUploadData setValue(final CharSequence value) { + bitField0_ |= 0x00000002; + value_.copyFrom(value); + return this; + } + + /** + * optional string value = 2; + * @param value the value_ to set + * @return this + */ + public ClientUploadData setValue(final Utf8String value) { + bitField0_ |= 0x00000002; + value_.copyFrom(value); + return this; + } + + @Override + public ClientUploadData copyFrom(final ClientUploadData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + tag_.copyFrom(other.tag_); + value_.copyFrom(other.value_); + } + return this; + } + + @Override + public ClientUploadData mergeFrom(final ClientUploadData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTag()) { + getMutableTagBytes().copyFrom(other.tag_); + } + if (other.hasValue()) { + getMutableValueBytes().copyFrom(other.value_); + } + return this; + } + + @Override + public ClientUploadData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tag_.clear(); + value_.clear(); + return this; + } + + @Override + public ClientUploadData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tag_.clear(); + value_.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ClientUploadData)) { + return false; + } + ClientUploadData other = (ClientUploadData) o; + return bitField0_ == other.bitField0_ + && (!hasTag() || tag_.equals(other.tag_)) + && (!hasValue() || value_.equals(other.value_)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(tag_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(tag_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ClientUploadData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // tag_ + input.readString(tag_); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // value_ + input.readString(value_); + 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.writeString(FieldNames.tag_, tag_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public ClientUploadData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 114586: { + if (input.isAtField(FieldNames.tag_)) { + if (!input.trySkipNullValue()) { + input.readString(tag_); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + input.readString(value_); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ClientUploadData clone() { + return new ClientUploadData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ClientUploadData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ClientUploadData(), data).checkInitialized(); + } + + public static ClientUploadData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ClientUploadData(), input).checkInitialized(); + } + + public static ClientUploadData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ClientUploadData(), input).checkInitialized(); + } + + /** + * @return factory for creating ClientUploadData messages + */ + public static MessageFactory getFactory() { + return ClientUploadDataFactory.INSTANCE; + } + + private enum ClientUploadDataFactory implements MessageFactory { + INSTANCE; + + @Override + public ClientUploadData create() { + return ClientUploadData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName tag_ = FieldName.forField("tag"); + + static final FieldName value_ = FieldName.forField("value"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DispatchRegionDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/DispatchRegionDataOuterClass.java new file mode 100644 index 0000000..8a6276e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DispatchRegionDataOuterClass.java @@ -0,0 +1,704 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class DispatchRegionDataOuterClass { + /** + * Protobuf type {@code DispatchRegionData} + */ + public static final class DispatchRegionData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + /** + * optional string msg = 2; + */ + private final Utf8String msg = Utf8String.newEmptyInstance(); + + /** + * optional string top_sever_region_name = 3; + */ + private final Utf8String topSeverRegionName = Utf8String.newEmptyInstance(); + + /** + * optional string stop_desc = 5; + */ + private final Utf8String stopDesc = Utf8String.newEmptyInstance(); + + /** + * repeated .RegionEntry region_list = 4; + */ + private final RepeatedMessage regionList = RepeatedMessage.newEmptyInstance(RegionEntryOuterClass.RegionEntry.getFactory()); + + private DispatchRegionData() { + } + + /** + * @return a new empty instance of {@code DispatchRegionData} + */ + public static DispatchRegionData newInstance() { + return new DispatchRegionData(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public DispatchRegionData clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public DispatchRegionData setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional string msg = 2; + * @return whether the msg field is set + */ + public boolean hasMsg() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string msg = 2; + * @return this + */ + public DispatchRegionData clearMsg() { + bitField0_ &= ~0x00000002; + msg.clear(); + return this; + } + + /** + * optional string msg = 2; + * @return the msg + */ + public String getMsg() { + return msg.getString(); + } + + /** + * optional string msg = 2; + * @return internal {@code Utf8String} representation of msg for reading + */ + public Utf8String getMsgBytes() { + return this.msg; + } + + /** + * optional string msg = 2; + * @return internal {@code Utf8String} representation of msg for modifications + */ + public Utf8String getMutableMsgBytes() { + bitField0_ |= 0x00000002; + return this.msg; + } + + /** + * optional string msg = 2; + * @param value the msg to set + * @return this + */ + public DispatchRegionData setMsg(final CharSequence value) { + bitField0_ |= 0x00000002; + msg.copyFrom(value); + return this; + } + + /** + * optional string msg = 2; + * @param value the msg to set + * @return this + */ + public DispatchRegionData setMsg(final Utf8String value) { + bitField0_ |= 0x00000002; + msg.copyFrom(value); + return this; + } + + /** + * optional string top_sever_region_name = 3; + * @return whether the topSeverRegionName field is set + */ + public boolean hasTopSeverRegionName() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string top_sever_region_name = 3; + * @return this + */ + public DispatchRegionData clearTopSeverRegionName() { + bitField0_ &= ~0x00000004; + topSeverRegionName.clear(); + return this; + } + + /** + * optional string top_sever_region_name = 3; + * @return the topSeverRegionName + */ + public String getTopSeverRegionName() { + return topSeverRegionName.getString(); + } + + /** + * optional string top_sever_region_name = 3; + * @return internal {@code Utf8String} representation of topSeverRegionName for reading + */ + public Utf8String getTopSeverRegionNameBytes() { + return this.topSeverRegionName; + } + + /** + * optional string top_sever_region_name = 3; + * @return internal {@code Utf8String} representation of topSeverRegionName for modifications + */ + public Utf8String getMutableTopSeverRegionNameBytes() { + bitField0_ |= 0x00000004; + return this.topSeverRegionName; + } + + /** + * optional string top_sever_region_name = 3; + * @param value the topSeverRegionName to set + * @return this + */ + public DispatchRegionData setTopSeverRegionName(final CharSequence value) { + bitField0_ |= 0x00000004; + topSeverRegionName.copyFrom(value); + return this; + } + + /** + * optional string top_sever_region_name = 3; + * @param value the topSeverRegionName to set + * @return this + */ + public DispatchRegionData setTopSeverRegionName(final Utf8String value) { + bitField0_ |= 0x00000004; + topSeverRegionName.copyFrom(value); + return this; + } + + /** + * optional string stop_desc = 5; + * @return whether the stopDesc field is set + */ + public boolean hasStopDesc() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string stop_desc = 5; + * @return this + */ + public DispatchRegionData clearStopDesc() { + bitField0_ &= ~0x00000008; + stopDesc.clear(); + return this; + } + + /** + * optional string stop_desc = 5; + * @return the stopDesc + */ + public String getStopDesc() { + return stopDesc.getString(); + } + + /** + * optional string stop_desc = 5; + * @return internal {@code Utf8String} representation of stopDesc for reading + */ + public Utf8String getStopDescBytes() { + return this.stopDesc; + } + + /** + * optional string stop_desc = 5; + * @return internal {@code Utf8String} representation of stopDesc for modifications + */ + public Utf8String getMutableStopDescBytes() { + bitField0_ |= 0x00000008; + return this.stopDesc; + } + + /** + * optional string stop_desc = 5; + * @param value the stopDesc to set + * @return this + */ + public DispatchRegionData setStopDesc(final CharSequence value) { + bitField0_ |= 0x00000008; + stopDesc.copyFrom(value); + return this; + } + + /** + * optional string stop_desc = 5; + * @param value the stopDesc to set + * @return this + */ + public DispatchRegionData setStopDesc(final Utf8String value) { + bitField0_ |= 0x00000008; + stopDesc.copyFrom(value); + return this; + } + + /** + * repeated .RegionEntry region_list = 4; + * @return whether the regionList field is set + */ + public boolean hasRegionList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .RegionEntry region_list = 4; + * @return this + */ + public DispatchRegionData clearRegionList() { + bitField0_ &= ~0x00000010; + regionList.clear(); + return this; + } + + /** + * repeated .RegionEntry region_list = 4; + * + * 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 #getMutableRegionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRegionList() { + return regionList; + } + + /** + * repeated .RegionEntry region_list = 4; + * + * 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 getMutableRegionList() { + bitField0_ |= 0x00000010; + return regionList; + } + + /** + * repeated .RegionEntry region_list = 4; + * @param value the regionList to add + * @return this + */ + public DispatchRegionData addRegionList(final RegionEntryOuterClass.RegionEntry value) { + bitField0_ |= 0x00000010; + regionList.add(value); + return this; + } + + /** + * repeated .RegionEntry region_list = 4; + * @param values the regionList to add + * @return this + */ + public DispatchRegionData addAllRegionList(final RegionEntryOuterClass.RegionEntry... values) { + bitField0_ |= 0x00000010; + regionList.addAll(values); + return this; + } + + @Override + public DispatchRegionData copyFrom(final DispatchRegionData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + msg.copyFrom(other.msg); + topSeverRegionName.copyFrom(other.topSeverRegionName); + stopDesc.copyFrom(other.stopDesc); + regionList.copyFrom(other.regionList); + } + return this; + } + + @Override + public DispatchRegionData mergeFrom(final DispatchRegionData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasMsg()) { + getMutableMsgBytes().copyFrom(other.msg); + } + if (other.hasTopSeverRegionName()) { + getMutableTopSeverRegionNameBytes().copyFrom(other.topSeverRegionName); + } + if (other.hasStopDesc()) { + getMutableStopDescBytes().copyFrom(other.stopDesc); + } + if (other.hasRegionList()) { + getMutableRegionList().addAll(other.regionList); + } + return this; + } + + @Override + public DispatchRegionData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + msg.clear(); + topSeverRegionName.clear(); + stopDesc.clear(); + regionList.clear(); + return this; + } + + @Override + public DispatchRegionData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + msg.clear(); + topSeverRegionName.clear(); + stopDesc.clear(); + regionList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DispatchRegionData)) { + return false; + } + DispatchRegionData other = (DispatchRegionData) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasMsg() || msg.equals(other.msg)) + && (!hasTopSeverRegionName() || topSeverRegionName.equals(other.topSeverRegionName)) + && (!hasStopDesc() || stopDesc.equals(other.stopDesc)) + && (!hasRegionList() || regionList.equals(other.regionList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(msg); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(topSeverRegionName); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(stopDesc); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < regionList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(regionList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(msg); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(topSeverRegionName); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(stopDesc); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * regionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(regionList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DispatchRegionData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // msg + input.readString(msg); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // topSeverRegionName + input.readString(topSeverRegionName); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // stopDesc + input.readString(stopDesc); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // regionList + tag = input.readRepeatedMessage(regionList, tag); + bitField0_ |= 0x00000010; + 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.writeString(FieldNames.msg, msg); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.topSeverRegionName, topSeverRegionName); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.stopDesc, stopDesc); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.regionList, regionList); + } + output.endObject(); + } + + @Override + public DispatchRegionData 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 108417: { + if (input.isAtField(FieldNames.msg)) { + if (!input.trySkipNullValue()) { + input.readString(msg); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1102313595: + case -2020003490: { + if (input.isAtField(FieldNames.topSeverRegionName)) { + if (!input.trySkipNullValue()) { + input.readString(topSeverRegionName); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1714334131: + case 1629642926: { + if (input.isAtField(FieldNames.stopDesc)) { + if (!input.trySkipNullValue()) { + input.readString(stopDesc); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1990741582: + case -1565820151: { + if (input.isAtField(FieldNames.regionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(regionList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DispatchRegionData clone() { + return new DispatchRegionData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DispatchRegionData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DispatchRegionData(), data).checkInitialized(); + } + + public static DispatchRegionData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DispatchRegionData(), input).checkInitialized(); + } + + public static DispatchRegionData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DispatchRegionData(), input).checkInitialized(); + } + + /** + * @return factory for creating DispatchRegionData messages + */ + public static MessageFactory getFactory() { + return DispatchRegionDataFactory.INSTANCE; + } + + private enum DispatchRegionDataFactory implements MessageFactory { + INSTANCE; + + @Override + public DispatchRegionData create() { + return DispatchRegionData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName msg = FieldName.forField("msg"); + + static final FieldName topSeverRegionName = FieldName.forField("topSeverRegionName", "top_sever_region_name"); + + static final FieldName stopDesc = FieldName.forField("stopDesc", "stop_desc"); + + static final FieldName regionList = FieldName.forField("regionList", "region_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java new file mode 100644 index 0000000..b44dfed --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java @@ -0,0 +1,502 @@ +// 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 DoGachaCsReqOuterClass { + /** + * Protobuf type {@code DoGachaCsReq} + */ + public static final class DoGachaCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 gacha_num = 6; + */ + private int gachaNum; + + /** + * optional uint32 gacha_random = 9; + */ + private int gachaRandom; + + /** + * optional uint32 gacha_id = 10; + */ + private int gachaId; + + /** + * optional uint32 simulate_magic = 15; + */ + private int simulateMagic; + + private DoGachaCsReq() { + } + + /** + * @return a new empty instance of {@code DoGachaCsReq} + */ + public static DoGachaCsReq newInstance() { + return new DoGachaCsReq(); + } + + /** + * optional uint32 gacha_num = 6; + * @return whether the gachaNum field is set + */ + public boolean hasGachaNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 gacha_num = 6; + * @return this + */ + public DoGachaCsReq clearGachaNum() { + bitField0_ &= ~0x00000001; + gachaNum = 0; + return this; + } + + /** + * optional uint32 gacha_num = 6; + * @return the gachaNum + */ + public int getGachaNum() { + return gachaNum; + } + + /** + * optional uint32 gacha_num = 6; + * @param value the gachaNum to set + * @return this + */ + public DoGachaCsReq setGachaNum(final int value) { + bitField0_ |= 0x00000001; + gachaNum = value; + return this; + } + + /** + * optional uint32 gacha_random = 9; + * @return whether the gachaRandom field is set + */ + public boolean hasGachaRandom() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 gacha_random = 9; + * @return this + */ + public DoGachaCsReq clearGachaRandom() { + bitField0_ &= ~0x00000002; + gachaRandom = 0; + return this; + } + + /** + * optional uint32 gacha_random = 9; + * @return the gachaRandom + */ + public int getGachaRandom() { + return gachaRandom; + } + + /** + * optional uint32 gacha_random = 9; + * @param value the gachaRandom to set + * @return this + */ + public DoGachaCsReq setGachaRandom(final int value) { + bitField0_ |= 0x00000002; + gachaRandom = value; + return this; + } + + /** + * optional uint32 gacha_id = 10; + * @return whether the gachaId field is set + */ + public boolean hasGachaId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 gacha_id = 10; + * @return this + */ + public DoGachaCsReq clearGachaId() { + bitField0_ &= ~0x00000004; + gachaId = 0; + return this; + } + + /** + * optional uint32 gacha_id = 10; + * @return the gachaId + */ + public int getGachaId() { + return gachaId; + } + + /** + * optional uint32 gacha_id = 10; + * @param value the gachaId to set + * @return this + */ + public DoGachaCsReq setGachaId(final int value) { + bitField0_ |= 0x00000004; + gachaId = value; + return this; + } + + /** + * optional uint32 simulate_magic = 15; + * @return whether the simulateMagic field is set + */ + public boolean hasSimulateMagic() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 simulate_magic = 15; + * @return this + */ + public DoGachaCsReq clearSimulateMagic() { + bitField0_ &= ~0x00000008; + simulateMagic = 0; + return this; + } + + /** + * optional uint32 simulate_magic = 15; + * @return the simulateMagic + */ + public int getSimulateMagic() { + return simulateMagic; + } + + /** + * optional uint32 simulate_magic = 15; + * @param value the simulateMagic to set + * @return this + */ + public DoGachaCsReq setSimulateMagic(final int value) { + bitField0_ |= 0x00000008; + simulateMagic = value; + return this; + } + + @Override + public DoGachaCsReq copyFrom(final DoGachaCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gachaNum = other.gachaNum; + gachaRandom = other.gachaRandom; + gachaId = other.gachaId; + simulateMagic = other.simulateMagic; + } + return this; + } + + @Override + public DoGachaCsReq mergeFrom(final DoGachaCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGachaNum()) { + setGachaNum(other.gachaNum); + } + if (other.hasGachaRandom()) { + setGachaRandom(other.gachaRandom); + } + if (other.hasGachaId()) { + setGachaId(other.gachaId); + } + if (other.hasSimulateMagic()) { + setSimulateMagic(other.simulateMagic); + } + return this; + } + + @Override + public DoGachaCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gachaNum = 0; + gachaRandom = 0; + gachaId = 0; + simulateMagic = 0; + return this; + } + + @Override + public DoGachaCsReq 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 DoGachaCsReq)) { + return false; + } + DoGachaCsReq other = (DoGachaCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasGachaNum() || gachaNum == other.gachaNum) + && (!hasGachaRandom() || gachaRandom == other.gachaRandom) + && (!hasGachaId() || gachaId == other.gachaId) + && (!hasSimulateMagic() || simulateMagic == other.simulateMagic); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(gachaNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(gachaRandom); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(gachaId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(simulateMagic); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DoGachaCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // gachaNum + gachaNum = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // gachaRandom + gachaRandom = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // gachaId + gachaId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // simulateMagic + simulateMagic = input.readUInt32(); + 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.gachaNum, gachaNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gachaRandom, gachaRandom); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.gachaId, gachaId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.simulateMagic, simulateMagic); + } + output.endObject(); + } + + @Override + public DoGachaCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2052317532: + case 803166025: { + if (input.isAtField(FieldNames.gachaNum)) { + if (!input.trySkipNullValue()) { + gachaNum = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1635961627: + case -47579616: { + if (input.isAtField(FieldNames.gachaRandom)) { + if (!input.trySkipNullValue()) { + gachaRandom = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -204751299: + case -2052301576: { + if (input.isAtField(FieldNames.gachaId)) { + if (!input.trySkipNullValue()) { + gachaId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -370053655: + case 1939465170: { + if (input.isAtField(FieldNames.simulateMagic)) { + if (!input.trySkipNullValue()) { + simulateMagic = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DoGachaCsReq clone() { + return new DoGachaCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DoGachaCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DoGachaCsReq(), data).checkInitialized(); + } + + public static DoGachaCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaCsReq(), input).checkInitialized(); + } + + public static DoGachaCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DoGachaCsReq messages + */ + public static MessageFactory getFactory() { + return DoGachaCsReqFactory.INSTANCE; + } + + private enum DoGachaCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DoGachaCsReq create() { + return DoGachaCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); + + static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); + + static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); + + static final FieldName simulateMagic = FieldName.forField("simulateMagic", "simulate_magic"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java new file mode 100644 index 0000000..67bb737 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java @@ -0,0 +1,936 @@ +// 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 DoGachaScRspOuterClass { + /** + * Protobuf type {@code DoGachaScRsp} + */ + public static final class DoGachaScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 gacha_id = 3; + */ + private int gachaId; + + /** + * optional uint32 MNPCOHFBLFD = 8; + */ + private int mNPCOHFBLFD; + + /** + * optional uint32 retcode = 9; + */ + private int retcode; + + /** + * optional uint32 gacha_random = 10; + */ + private int gachaRandom; + + /** + * optional uint32 NMAOJEIEDAK = 11; + */ + private int nMAOJEIEDAK; + + /** + * optional uint32 LAHIAEICENE = 12; + */ + private int lAHIAEICENE; + + /** + * optional uint32 MNDHFONAGNL = 13; + */ + private int mNDHFONAGNL; + + /** + * optional uint32 gacha_num = 14; + */ + private int gachaNum; + + /** + * repeated .GachaItem gacha_item_list = 1; + */ + private final RepeatedMessage gachaItemList = RepeatedMessage.newEmptyInstance(GachaItemOuterClass.GachaItem.getFactory()); + + private DoGachaScRsp() { + } + + /** + * @return a new empty instance of {@code DoGachaScRsp} + */ + public static DoGachaScRsp newInstance() { + return new DoGachaScRsp(); + } + + /** + * optional uint32 gacha_id = 3; + * @return whether the gachaId field is set + */ + public boolean hasGachaId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 gacha_id = 3; + * @return this + */ + public DoGachaScRsp clearGachaId() { + bitField0_ &= ~0x00000001; + gachaId = 0; + return this; + } + + /** + * optional uint32 gacha_id = 3; + * @return the gachaId + */ + public int getGachaId() { + return gachaId; + } + + /** + * optional uint32 gacha_id = 3; + * @param value the gachaId to set + * @return this + */ + public DoGachaScRsp setGachaId(final int value) { + bitField0_ |= 0x00000001; + gachaId = value; + return this; + } + + /** + * optional uint32 MNPCOHFBLFD = 8; + * @return whether the mNPCOHFBLFD field is set + */ + public boolean hasMNPCOHFBLFD() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 MNPCOHFBLFD = 8; + * @return this + */ + public DoGachaScRsp clearMNPCOHFBLFD() { + bitField0_ &= ~0x00000002; + mNPCOHFBLFD = 0; + return this; + } + + /** + * optional uint32 MNPCOHFBLFD = 8; + * @return the mNPCOHFBLFD + */ + public int getMNPCOHFBLFD() { + return mNPCOHFBLFD; + } + + /** + * optional uint32 MNPCOHFBLFD = 8; + * @param value the mNPCOHFBLFD to set + * @return this + */ + public DoGachaScRsp setMNPCOHFBLFD(final int value) { + bitField0_ |= 0x00000002; + mNPCOHFBLFD = value; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 9; + * @return this + */ + public DoGachaScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 9; + * @param value the retcode to set + * @return this + */ + public DoGachaScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional uint32 gacha_random = 10; + * @return whether the gachaRandom field is set + */ + public boolean hasGachaRandom() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 gacha_random = 10; + * @return this + */ + public DoGachaScRsp clearGachaRandom() { + bitField0_ &= ~0x00000008; + gachaRandom = 0; + return this; + } + + /** + * optional uint32 gacha_random = 10; + * @return the gachaRandom + */ + public int getGachaRandom() { + return gachaRandom; + } + + /** + * optional uint32 gacha_random = 10; + * @param value the gachaRandom to set + * @return this + */ + public DoGachaScRsp setGachaRandom(final int value) { + bitField0_ |= 0x00000008; + gachaRandom = value; + return this; + } + + /** + * optional uint32 NMAOJEIEDAK = 11; + * @return whether the nMAOJEIEDAK field is set + */ + public boolean hasNMAOJEIEDAK() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 NMAOJEIEDAK = 11; + * @return this + */ + public DoGachaScRsp clearNMAOJEIEDAK() { + bitField0_ &= ~0x00000010; + nMAOJEIEDAK = 0; + return this; + } + + /** + * optional uint32 NMAOJEIEDAK = 11; + * @return the nMAOJEIEDAK + */ + public int getNMAOJEIEDAK() { + return nMAOJEIEDAK; + } + + /** + * optional uint32 NMAOJEIEDAK = 11; + * @param value the nMAOJEIEDAK to set + * @return this + */ + public DoGachaScRsp setNMAOJEIEDAK(final int value) { + bitField0_ |= 0x00000010; + nMAOJEIEDAK = value; + return this; + } + + /** + * optional uint32 LAHIAEICENE = 12; + * @return whether the lAHIAEICENE field is set + */ + public boolean hasLAHIAEICENE() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 LAHIAEICENE = 12; + * @return this + */ + public DoGachaScRsp clearLAHIAEICENE() { + bitField0_ &= ~0x00000020; + lAHIAEICENE = 0; + return this; + } + + /** + * optional uint32 LAHIAEICENE = 12; + * @return the lAHIAEICENE + */ + public int getLAHIAEICENE() { + return lAHIAEICENE; + } + + /** + * optional uint32 LAHIAEICENE = 12; + * @param value the lAHIAEICENE to set + * @return this + */ + public DoGachaScRsp setLAHIAEICENE(final int value) { + bitField0_ |= 0x00000020; + lAHIAEICENE = value; + return this; + } + + /** + * optional uint32 MNDHFONAGNL = 13; + * @return whether the mNDHFONAGNL field is set + */ + public boolean hasMNDHFONAGNL() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 MNDHFONAGNL = 13; + * @return this + */ + public DoGachaScRsp clearMNDHFONAGNL() { + bitField0_ &= ~0x00000040; + mNDHFONAGNL = 0; + return this; + } + + /** + * optional uint32 MNDHFONAGNL = 13; + * @return the mNDHFONAGNL + */ + public int getMNDHFONAGNL() { + return mNDHFONAGNL; + } + + /** + * optional uint32 MNDHFONAGNL = 13; + * @param value the mNDHFONAGNL to set + * @return this + */ + public DoGachaScRsp setMNDHFONAGNL(final int value) { + bitField0_ |= 0x00000040; + mNDHFONAGNL = value; + return this; + } + + /** + * optional uint32 gacha_num = 14; + * @return whether the gachaNum field is set + */ + public boolean hasGachaNum() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 gacha_num = 14; + * @return this + */ + public DoGachaScRsp clearGachaNum() { + bitField0_ &= ~0x00000080; + gachaNum = 0; + return this; + } + + /** + * optional uint32 gacha_num = 14; + * @return the gachaNum + */ + public int getGachaNum() { + return gachaNum; + } + + /** + * optional uint32 gacha_num = 14; + * @param value the gachaNum to set + * @return this + */ + public DoGachaScRsp setGachaNum(final int value) { + bitField0_ |= 0x00000080; + gachaNum = value; + return this; + } + + /** + * repeated .GachaItem gacha_item_list = 1; + * @return whether the gachaItemList field is set + */ + public boolean hasGachaItemList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .GachaItem gacha_item_list = 1; + * @return this + */ + public DoGachaScRsp clearGachaItemList() { + bitField0_ &= ~0x00000100; + gachaItemList.clear(); + return this; + } + + /** + * repeated .GachaItem gacha_item_list = 1; + * + * 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 #getMutableGachaItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGachaItemList() { + return gachaItemList; + } + + /** + * repeated .GachaItem gacha_item_list = 1; + * + * 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 getMutableGachaItemList() { + bitField0_ |= 0x00000100; + return gachaItemList; + } + + /** + * repeated .GachaItem gacha_item_list = 1; + * @param value the gachaItemList to add + * @return this + */ + public DoGachaScRsp addGachaItemList(final GachaItemOuterClass.GachaItem value) { + bitField0_ |= 0x00000100; + gachaItemList.add(value); + return this; + } + + /** + * repeated .GachaItem gacha_item_list = 1; + * @param values the gachaItemList to add + * @return this + */ + public DoGachaScRsp addAllGachaItemList(final GachaItemOuterClass.GachaItem... values) { + bitField0_ |= 0x00000100; + gachaItemList.addAll(values); + return this; + } + + @Override + public DoGachaScRsp copyFrom(final DoGachaScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + gachaId = other.gachaId; + mNPCOHFBLFD = other.mNPCOHFBLFD; + retcode = other.retcode; + gachaRandom = other.gachaRandom; + nMAOJEIEDAK = other.nMAOJEIEDAK; + lAHIAEICENE = other.lAHIAEICENE; + mNDHFONAGNL = other.mNDHFONAGNL; + gachaNum = other.gachaNum; + gachaItemList.copyFrom(other.gachaItemList); + } + return this; + } + + @Override + public DoGachaScRsp mergeFrom(final DoGachaScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGachaId()) { + setGachaId(other.gachaId); + } + if (other.hasMNPCOHFBLFD()) { + setMNPCOHFBLFD(other.mNPCOHFBLFD); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasGachaRandom()) { + setGachaRandom(other.gachaRandom); + } + if (other.hasNMAOJEIEDAK()) { + setNMAOJEIEDAK(other.nMAOJEIEDAK); + } + if (other.hasLAHIAEICENE()) { + setLAHIAEICENE(other.lAHIAEICENE); + } + if (other.hasMNDHFONAGNL()) { + setMNDHFONAGNL(other.mNDHFONAGNL); + } + if (other.hasGachaNum()) { + setGachaNum(other.gachaNum); + } + if (other.hasGachaItemList()) { + getMutableGachaItemList().addAll(other.gachaItemList); + } + return this; + } + + @Override + public DoGachaScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gachaId = 0; + mNPCOHFBLFD = 0; + retcode = 0; + gachaRandom = 0; + nMAOJEIEDAK = 0; + lAHIAEICENE = 0; + mNDHFONAGNL = 0; + gachaNum = 0; + gachaItemList.clear(); + return this; + } + + @Override + public DoGachaScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gachaItemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DoGachaScRsp)) { + return false; + } + DoGachaScRsp other = (DoGachaScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasGachaId() || gachaId == other.gachaId) + && (!hasMNPCOHFBLFD() || mNPCOHFBLFD == other.mNPCOHFBLFD) + && (!hasRetcode() || retcode == other.retcode) + && (!hasGachaRandom() || gachaRandom == other.gachaRandom) + && (!hasNMAOJEIEDAK() || nMAOJEIEDAK == other.nMAOJEIEDAK) + && (!hasLAHIAEICENE() || lAHIAEICENE == other.lAHIAEICENE) + && (!hasMNDHFONAGNL() || mNDHFONAGNL == other.mNDHFONAGNL) + && (!hasGachaNum() || gachaNum == other.gachaNum) + && (!hasGachaItemList() || gachaItemList.equals(other.gachaItemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(gachaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(mNPCOHFBLFD); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(gachaRandom); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(nMAOJEIEDAK); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(lAHIAEICENE); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(mNDHFONAGNL); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(gachaNum); + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < gachaItemList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(gachaItemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mNPCOHFBLFD); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nMAOJEIEDAK); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lAHIAEICENE); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mNDHFONAGNL); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * gachaItemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gachaItemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DoGachaScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // gachaId + gachaId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // mNPCOHFBLFD + mNPCOHFBLFD = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // gachaRandom + gachaRandom = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // nMAOJEIEDAK + nMAOJEIEDAK = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // lAHIAEICENE + lAHIAEICENE = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // mNDHFONAGNL + mNDHFONAGNL = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // gachaNum + gachaNum = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // gachaItemList + tag = input.readRepeatedMessage(gachaItemList, tag); + bitField0_ |= 0x00000100; + 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.gachaId, gachaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.mNPCOHFBLFD, mNPCOHFBLFD); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.gachaRandom, gachaRandom); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.nMAOJEIEDAK, nMAOJEIEDAK); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.lAHIAEICENE, lAHIAEICENE); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.mNDHFONAGNL, mNDHFONAGNL); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.gachaNum, gachaNum); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.gachaItemList, gachaItemList); + } + output.endObject(); + } + + @Override + public DoGachaScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -204751299: + case -2052301576: { + if (input.isAtField(FieldNames.gachaId)) { + if (!input.trySkipNullValue()) { + gachaId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1906412607: { + if (input.isAtField(FieldNames.mNPCOHFBLFD)) { + if (!input.trySkipNullValue()) { + mNPCOHFBLFD = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1635961627: + case -47579616: { + if (input.isAtField(FieldNames.gachaRandom)) { + if (!input.trySkipNullValue()) { + gachaRandom = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1343431082: { + if (input.isAtField(FieldNames.nMAOJEIEDAK)) { + if (!input.trySkipNullValue()) { + nMAOJEIEDAK = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1968665032: { + if (input.isAtField(FieldNames.lAHIAEICENE)) { + if (!input.trySkipNullValue()) { + lAHIAEICENE = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -757519100: { + if (input.isAtField(FieldNames.mNDHFONAGNL)) { + if (!input.trySkipNullValue()) { + mNDHFONAGNL = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2052317532: + case 803166025: { + if (input.isAtField(FieldNames.gachaNum)) { + if (!input.trySkipNullValue()) { + gachaNum = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 725790195: + case -1418891315: { + if (input.isAtField(FieldNames.gachaItemList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(gachaItemList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DoGachaScRsp clone() { + return new DoGachaScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DoGachaScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DoGachaScRsp(), data).checkInitialized(); + } + + public static DoGachaScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaScRsp(), input).checkInitialized(); + } + + public static DoGachaScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DoGachaScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating DoGachaScRsp messages + */ + public static MessageFactory getFactory() { + return DoGachaScRspFactory.INSTANCE; + } + + private enum DoGachaScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public DoGachaScRsp create() { + return DoGachaScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); + + static final FieldName mNPCOHFBLFD = FieldName.forField("MNPCOHFBLFD"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); + + static final FieldName nMAOJEIEDAK = FieldName.forField("NMAOJEIEDAK"); + + static final FieldName lAHIAEICENE = FieldName.forField("LAHIAEICENE"); + + static final FieldName mNDHFONAGNL = FieldName.forField("MNDHFONAGNL"); + + static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); + + static final FieldName gachaItemList = FieldName.forField("gachaItemList", "gacha_item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java new file mode 100644 index 0000000..d792820 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java @@ -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 DressAvatarCsReqOuterClass { + /** + * Protobuf type {@code DressAvatarCsReq} + */ + public static final class DressAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 equipment_unique_id = 2; + */ + private int equipmentUniqueId; + + /** + * optional uint32 base_avatar_id = 12; + */ + private int baseAvatarId; + + private DressAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code DressAvatarCsReq} + */ + public static DressAvatarCsReq newInstance() { + return new DressAvatarCsReq(); + } + + /** + * optional uint32 equipment_unique_id = 2; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 equipment_unique_id = 2; + * @return this + */ + public DressAvatarCsReq clearEquipmentUniqueId() { + bitField0_ &= ~0x00000001; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 2; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 2; + * @param value the equipmentUniqueId to set + * @return this + */ + public DressAvatarCsReq setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000001; + equipmentUniqueId = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return this + */ + public DressAvatarCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000002; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 12; + * @param value the baseAvatarId to set + * @return this + */ + public DressAvatarCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000002; + baseAvatarId = value; + return this; + } + + @Override + public DressAvatarCsReq copyFrom(final DressAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + equipmentUniqueId = other.equipmentUniqueId; + baseAvatarId = other.baseAvatarId; + } + return this; + } + + @Override + public DressAvatarCsReq mergeFrom(final DressAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + return this; + } + + @Override + public DressAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + equipmentUniqueId = 0; + baseAvatarId = 0; + return this; + } + + @Override + public DressAvatarCsReq 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 DressAvatarCsReq)) { + return false; + } + DressAvatarCsReq other = (DressAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(baseAvatarId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DressAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // baseAvatarId + baseAvatarId = 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.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + output.endObject(); + } + + @Override + public DressAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DressAvatarCsReq clone() { + return new DressAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DressAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DressAvatarCsReq(), data).checkInitialized(); + } + + public static DressAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DressAvatarCsReq(), input).checkInitialized(); + } + + public static DressAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DressAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DressAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return DressAvatarCsReqFactory.INSTANCE; + } + + private enum DressAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DressAvatarCsReq create() { + return DressAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java new file mode 100644 index 0000000..084946b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java @@ -0,0 +1,375 @@ +// 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 DressRelicAvatarCsReqOuterClass { + /** + * Protobuf type {@code DressRelicAvatarCsReq} + */ + public static final class DressRelicAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 10; + */ + private int baseAvatarId; + + /** + * repeated .RelicParam param_list = 15; + */ + private final RepeatedMessage paramList = RepeatedMessage.newEmptyInstance(RelicParamOuterClass.RelicParam.getFactory()); + + private DressRelicAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code DressRelicAvatarCsReq} + */ + public static DressRelicAvatarCsReq newInstance() { + return new DressRelicAvatarCsReq(); + } + + /** + * optional uint32 base_avatar_id = 10; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return this + */ + public DressRelicAvatarCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 10; + * @param value the baseAvatarId to set + * @return this + */ + public DressRelicAvatarCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + /** + * repeated .RelicParam param_list = 15; + * @return whether the paramList field is set + */ + public boolean hasParamList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .RelicParam param_list = 15; + * @return this + */ + public DressRelicAvatarCsReq clearParamList() { + bitField0_ &= ~0x00000002; + paramList.clear(); + return this; + } + + /** + * repeated .RelicParam param_list = 15; + * + * 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 #getMutableParamList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getParamList() { + return paramList; + } + + /** + * repeated .RelicParam param_list = 15; + * + * 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 getMutableParamList() { + bitField0_ |= 0x00000002; + return paramList; + } + + /** + * repeated .RelicParam param_list = 15; + * @param value the paramList to add + * @return this + */ + public DressRelicAvatarCsReq addParamList(final RelicParamOuterClass.RelicParam value) { + bitField0_ |= 0x00000002; + paramList.add(value); + return this; + } + + /** + * repeated .RelicParam param_list = 15; + * @param values the paramList to add + * @return this + */ + public DressRelicAvatarCsReq addAllParamList(final RelicParamOuterClass.RelicParam... values) { + bitField0_ |= 0x00000002; + paramList.addAll(values); + return this; + } + + @Override + public DressRelicAvatarCsReq copyFrom(final DressRelicAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + paramList.copyFrom(other.paramList); + } + return this; + } + + @Override + public DressRelicAvatarCsReq mergeFrom(final DressRelicAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasParamList()) { + getMutableParamList().addAll(other.paramList); + } + return this; + } + + @Override + public DressRelicAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + paramList.clear(); + return this; + } + + @Override + public DressRelicAvatarCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + paramList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DressRelicAvatarCsReq)) { + return false; + } + DressRelicAvatarCsReq other = (DressRelicAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasParamList() || paramList.equals(other.paramList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < paramList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(paramList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * paramList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(paramList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DressRelicAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // paramList + tag = input.readRepeatedMessage(paramList, 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.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.paramList, paramList); + } + output.endObject(); + } + + @Override + public DressRelicAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1953705675: + case 452960528: { + if (input.isAtField(FieldNames.paramList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(paramList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DressRelicAvatarCsReq clone() { + return new DressRelicAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DressRelicAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DressRelicAvatarCsReq(), data).checkInitialized(); + } + + public static DressRelicAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DressRelicAvatarCsReq(), input).checkInitialized(); + } + + public static DressRelicAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DressRelicAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating DressRelicAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return DressRelicAvatarCsReqFactory.INSTANCE; + } + + private enum DressRelicAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public DressRelicAvatarCsReq create() { + return DressRelicAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName paramList = FieldName.forField("paramList", "param_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java new file mode 100644 index 0000000..730c7d0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java @@ -0,0 +1,495 @@ +// 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 EnterSceneByServerScNotifyOuterClass { + /** + * Protobuf type {@code EnterSceneByServerScNotify} + */ + public static final class EnterSceneByServerScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .EnterSceneReason reason = 5; + */ + private int reason; + + /** + * optional .LineupInfo lineup = 14; + */ + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + /** + * optional .SceneInfo scene = 15; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + + private EnterSceneByServerScNotify() { + } + + /** + * @return a new empty instance of {@code EnterSceneByServerScNotify} + */ + public static EnterSceneByServerScNotify newInstance() { + return new EnterSceneByServerScNotify(); + } + + /** + * optional .EnterSceneReason reason = 5; + * @return whether the reason field is set + */ + public boolean hasReason() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .EnterSceneReason reason = 5; + * @return this + */ + public EnterSceneByServerScNotify clearReason() { + bitField0_ &= ~0x00000001; + reason = 0; + return this; + } + + /** + * optional .EnterSceneReason reason = 5; + * @return the reason + */ + public EnterSceneReasonOuterClass.EnterSceneReason getReason() { + return EnterSceneReasonOuterClass.EnterSceneReason.forNumber(reason); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link EnterSceneByServerScNotify#getReason()}.getNumber(). + * + * @return numeric wire representation + */ + public int getReasonValue() { + return reason; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link EnterSceneReasonOuterClass.EnterSceneReason}. Setting an invalid value + * can cause {@link EnterSceneByServerScNotify#getReason()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public EnterSceneByServerScNotify setReasonValue(final int value) { + bitField0_ |= 0x00000001; + reason = value; + return this; + } + + /** + * optional .EnterSceneReason reason = 5; + * @param value the reason to set + * @return this + */ + public EnterSceneByServerScNotify setReason( + final EnterSceneReasonOuterClass.EnterSceneReason value) { + bitField0_ |= 0x00000001; + reason = value.getNumber(); + return this; + } + + /** + * optional .LineupInfo lineup = 14; + * @return whether the lineup field is set + */ + public boolean hasLineup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .LineupInfo lineup = 14; + * @return this + */ + public EnterSceneByServerScNotify clearLineup() { + bitField0_ &= ~0x00000002; + lineup.clear(); + return this; + } + + /** + * optional .LineupInfo lineup = 14; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 14; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 14; + * @param value the lineup to set + * @return this + */ + public EnterSceneByServerScNotify setLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000002; + lineup.copyFrom(value); + return this; + } + + /** + * optional .SceneInfo scene = 15; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneInfo scene = 15; + * @return this + */ + public EnterSceneByServerScNotify clearScene() { + bitField0_ &= ~0x00000004; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 15; + * + * 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; + } + + /** + * optional .SceneInfo scene = 15; + * + * 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; + } + + /** + * optional .SceneInfo scene = 15; + * @param value the scene to set + * @return this + */ + public EnterSceneByServerScNotify setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000004; + scene.copyFrom(value); + return this; + } + + @Override + public EnterSceneByServerScNotify copyFrom(final EnterSceneByServerScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reason = other.reason; + lineup.copyFrom(other.lineup); + scene.copyFrom(other.scene); + } + return this; + } + + @Override + public EnterSceneByServerScNotify mergeFrom(final EnterSceneByServerScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReason()) { + setReasonValue(other.reason); + } + if (other.hasLineup()) { + getMutableLineup().mergeFrom(other.lineup); + } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } + return this; + } + + @Override + public EnterSceneByServerScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reason = 0; + lineup.clear(); + scene.clear(); + return this; + } + + @Override + public EnterSceneByServerScNotify 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 EnterSceneByServerScNotify)) { + return false; + } + EnterSceneByServerScNotify other = (EnterSceneByServerScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasReason() || reason == other.reason) + && (!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) 40); + output.writeEnumNoTag(reason); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(lineup); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(scene); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(reason); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnterSceneByServerScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // reason + final int value = input.readInt32(); + if (EnterSceneReasonOuterClass.EnterSceneReason.forNumber(value) != null) { + reason = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // lineup + input.readMessage(lineup); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // scene + input.readMessage(scene); + 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.writeEnum(FieldNames.reason, reason, EnterSceneReasonOuterClass.EnterSceneReason.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.lineup, lineup); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.scene, scene); + } + output.endObject(); + } + + @Override + public EnterSceneByServerScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -934964668: { + if (input.isAtField(FieldNames.reason)) { + if (!input.trySkipNullValue()) { + final EnterSceneReasonOuterClass.EnterSceneReason value = input.readEnum(EnterSceneReasonOuterClass.EnterSceneReason.converter()); + if (value != null) { + reason = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnterSceneByServerScNotify clone() { + return new EnterSceneByServerScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnterSceneByServerScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnterSceneByServerScNotify(), data).checkInitialized(); + } + + public static EnterSceneByServerScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnterSceneByServerScNotify(), input).checkInitialized(); + } + + public static EnterSceneByServerScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnterSceneByServerScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating EnterSceneByServerScNotify messages + */ + public static MessageFactory getFactory() { + return EnterSceneByServerScNotifyFactory.INSTANCE; + } + + private enum EnterSceneByServerScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public EnterSceneByServerScNotify create() { + return EnterSceneByServerScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reason = FieldName.forField("reason"); + + static final FieldName lineup = FieldName.forField("lineup"); + + static final FieldName scene = FieldName.forField("scene"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java new file mode 100644 index 0000000..66722e8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java @@ -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 EnterSceneCsReqOuterClass { + /** + * Protobuf type {@code EnterSceneCsReq} + */ + public static final class EnterSceneCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entry_id = 4; + */ + private int entryId; + + /** + * optional uint32 teleport_id = 9; + */ + private int teleportId; + + private EnterSceneCsReq() { + } + + /** + * @return a new empty instance of {@code EnterSceneCsReq} + */ + public static EnterSceneCsReq newInstance() { + return new EnterSceneCsReq(); + } + + /** + * optional uint32 entry_id = 4; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entry_id = 4; + * @return this + */ + public EnterSceneCsReq clearEntryId() { + bitField0_ &= ~0x00000001; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 4; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 4; + * @param value the entryId to set + * @return this + */ + public EnterSceneCsReq setEntryId(final int value) { + bitField0_ |= 0x00000001; + entryId = value; + return this; + } + + /** + * optional uint32 teleport_id = 9; + * @return whether the teleportId field is set + */ + public boolean hasTeleportId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 teleport_id = 9; + * @return this + */ + public EnterSceneCsReq clearTeleportId() { + bitField0_ &= ~0x00000002; + teleportId = 0; + return this; + } + + /** + * optional uint32 teleport_id = 9; + * @return the teleportId + */ + public int getTeleportId() { + return teleportId; + } + + /** + * optional uint32 teleport_id = 9; + * @param value the teleportId to set + * @return this + */ + public EnterSceneCsReq setTeleportId(final int value) { + bitField0_ |= 0x00000002; + teleportId = value; + return this; + } + + @Override + public EnterSceneCsReq copyFrom(final EnterSceneCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entryId = other.entryId; + teleportId = other.teleportId; + } + return this; + } + + @Override + public EnterSceneCsReq mergeFrom(final EnterSceneCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasTeleportId()) { + setTeleportId(other.teleportId); + } + return this; + } + + @Override + public EnterSceneCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entryId = 0; + teleportId = 0; + return this; + } + + @Override + public EnterSceneCsReq 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 EnterSceneCsReq)) { + return false; + } + EnterSceneCsReq other = (EnterSceneCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEntryId() || entryId == other.entryId) + && (!hasTeleportId() || teleportId == other.teleportId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(teleportId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(teleportId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EnterSceneCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // teleportId + teleportId = 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.entryId, entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.teleportId, teleportId); + } + output.endObject(); + } + + @Override + public EnterSceneCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1484004954: + case 1240508079: { + if (input.isAtField(FieldNames.teleportId)) { + if (!input.trySkipNullValue()) { + teleportId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EnterSceneCsReq clone() { + return new EnterSceneCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EnterSceneCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EnterSceneCsReq(), data).checkInitialized(); + } + + public static EnterSceneCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnterSceneCsReq(), input).checkInitialized(); + } + + public static EnterSceneCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EnterSceneCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating EnterSceneCsReq messages + */ + public static MessageFactory getFactory() { + return EnterSceneCsReqFactory.INSTANCE; + } + + private enum EnterSceneCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public EnterSceneCsReq create() { + return EnterSceneCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName teleportId = FieldName.forField("teleportId", "teleport_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java new file mode 100644 index 0000000..34ef346 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class EnterSceneReasonOuterClass { + /** + * Protobuf enum {@code EnterSceneReason} + */ + public enum EnterSceneReason implements ProtoEnum { + /** + * ENTER_SCENE_REASON_NONE = 0; + */ + ENTER_SCENE_REASON_NONE("ENTER_SCENE_REASON_NONE", 0), + + /** + * ENTER_SCENE_REASON_CHALLENGE_TIMEOUT = 1; + */ + ENTER_SCENE_REASON_CHALLENGE_TIMEOUT("ENTER_SCENE_REASON_CHALLENGE_TIMEOUT", 1), + + /** + * ENTER_SCENE_REASON_ROGUE_TIMEOUT = 2; + */ + ENTER_SCENE_REASON_ROGUE_TIMEOUT("ENTER_SCENE_REASON_ROGUE_TIMEOUT", 2); + + /** + * ENTER_SCENE_REASON_NONE = 0; + */ + public static final int ENTER_SCENE_REASON_NONE_VALUE = 0; + + /** + * ENTER_SCENE_REASON_CHALLENGE_TIMEOUT = 1; + */ + public static final int ENTER_SCENE_REASON_CHALLENGE_TIMEOUT_VALUE = 1; + + /** + * ENTER_SCENE_REASON_ROGUE_TIMEOUT = 2; + */ + public static final int ENTER_SCENE_REASON_ROGUE_TIMEOUT_VALUE = 2; + + private final String name; + + private final int number; + + private EnterSceneReason(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return EnterSceneReasonConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static EnterSceneReason forNumber(int value) { + return EnterSceneReasonConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static EnterSceneReason forNumberOr(int number, EnterSceneReason other) { + EnterSceneReason value = forNumber(number); + return value == null ? other : value; + } + + enum EnterSceneReasonConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final EnterSceneReason[] lookup = new EnterSceneReason[3]; + + static { + lookup[0] = ENTER_SCENE_REASON_NONE; + lookup[1] = ENTER_SCENE_REASON_CHALLENGE_TIMEOUT; + lookup[2] = ENTER_SCENE_REASON_ROGUE_TIMEOUT; + } + + @Override + public final EnterSceneReason forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final EnterSceneReason forName(final CharSequence value) { + if (value.length() == 23) { + if (ProtoUtil.isEqual("ENTER_SCENE_REASON_NONE", value)) { + return ENTER_SCENE_REASON_NONE; + } + } + if (value.length() == 32) { + if (ProtoUtil.isEqual("ENTER_SCENE_REASON_ROGUE_TIMEOUT", value)) { + return ENTER_SCENE_REASON_ROGUE_TIMEOUT; + } + } + if (value.length() == 36) { + if (ProtoUtil.isEqual("ENTER_SCENE_REASON_CHALLENGE_TIMEOUT", value)) { + return ENTER_SCENE_REASON_CHALLENGE_TIMEOUT; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java new file mode 100644 index 0000000..f44162f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EntityBuffInfoOuterClass.java @@ -0,0 +1,375 @@ +// 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 EntityBuffInfoOuterClass { + /** + * Protobuf type {@code EntityBuffInfo} + */ + public static final class EntityBuffInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entity_id = 7; + */ + private int entityId; + + /** + * repeated .BuffInfo buff_list = 6; + */ + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BuffInfoOuterClass.BuffInfo.getFactory()); + + private EntityBuffInfo() { + } + + /** + * @return a new empty instance of {@code EntityBuffInfo} + */ + public static EntityBuffInfo newInstance() { + return new EntityBuffInfo(); + } + + /** + * optional uint32 entity_id = 7; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 7; + * @return this + */ + public EntityBuffInfo clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 7; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 7; + * @param value the entityId to set + * @return this + */ + public EntityBuffInfo setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + + /** + * repeated .BuffInfo buff_list = 6; + * @return whether the buffList field is set + */ + public boolean hasBuffList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .BuffInfo buff_list = 6; + * @return this + */ + public EntityBuffInfo clearBuffList() { + bitField0_ &= ~0x00000002; + buffList.clear(); + return this; + } + + /** + * repeated .BuffInfo buff_list = 6; + * + * 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 getBuffList() { + return buffList; + } + + /** + * repeated .BuffInfo buff_list = 6; + * + * 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 getMutableBuffList() { + bitField0_ |= 0x00000002; + return buffList; + } + + /** + * repeated .BuffInfo buff_list = 6; + * @param value the buffList to add + * @return this + */ + public EntityBuffInfo addBuffList(final BuffInfoOuterClass.BuffInfo value) { + bitField0_ |= 0x00000002; + buffList.add(value); + return this; + } + + /** + * repeated .BuffInfo buff_list = 6; + * @param values the buffList to add + * @return this + */ + public EntityBuffInfo addAllBuffList(final BuffInfoOuterClass.BuffInfo... values) { + bitField0_ |= 0x00000002; + buffList.addAll(values); + return this; + } + + @Override + public EntityBuffInfo copyFrom(final EntityBuffInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityId = other.entityId; + buffList.copyFrom(other.buffList); + } + return this; + } + + @Override + public EntityBuffInfo mergeFrom(final EntityBuffInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); + } + return this; + } + + @Override + public EntityBuffInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityId = 0; + buffList.clear(); + return this; + } + + @Override + public EntityBuffInfo 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 EntityBuffInfo)) { + return false; + } + EntityBuffInfo other = (EntityBuffInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId) + && (!hasBuffList() || buffList.equals(other.buffList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(buffList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EntityBuffInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // buffList + tag = input.readRepeatedMessage(buffList, 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.entityId, entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.buffList, buffList); + } + output.endObject(); + } + + @Override + public EntityBuffInfo 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; + } + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(buffList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EntityBuffInfo clone() { + return new EntityBuffInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EntityBuffInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EntityBuffInfo(), data).checkInitialized(); + } + + public static EntityBuffInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EntityBuffInfo(), input).checkInitialized(); + } + + public static EntityBuffInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EntityBuffInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating EntityBuffInfo messages + */ + public static MessageFactory getFactory() { + return EntityBuffInfoFactory.INSTANCE; + } + + private enum EntityBuffInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public EntityBuffInfo create() { + return EntityBuffInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + + static final FieldName buffList = FieldName.forField("buffList", "buff_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java new file mode 100644 index 0000000..a4e417a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java @@ -0,0 +1,441 @@ +// 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 EntityMotionOuterClass { + /** + * Protobuf type {@code EntityMotion} + */ + public static final class EntityMotion extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entity_id = 2; + */ + private int entityId; + + /** + * optional uint32 map_layer = 6; + */ + private int mapLayer; + + /** + * optional .MotionInfo motion = 9; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + + private EntityMotion() { + } + + /** + * @return a new empty instance of {@code EntityMotion} + */ + public static EntityMotion newInstance() { + return new EntityMotion(); + } + + /** + * optional uint32 entity_id = 2; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 2; + * @return this + */ + public EntityMotion clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 2; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 2; + * @param value the entityId to set + * @return this + */ + public EntityMotion setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + + /** + * optional uint32 map_layer = 6; + * @return whether the mapLayer field is set + */ + public boolean hasMapLayer() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 map_layer = 6; + * @return this + */ + public EntityMotion clearMapLayer() { + bitField0_ &= ~0x00000002; + mapLayer = 0; + return this; + } + + /** + * optional uint32 map_layer = 6; + * @return the mapLayer + */ + public int getMapLayer() { + return mapLayer; + } + + /** + * optional uint32 map_layer = 6; + * @param value the mapLayer to set + * @return this + */ + public EntityMotion setMapLayer(final int value) { + bitField0_ |= 0x00000002; + mapLayer = value; + return this; + } + + /** + * optional .MotionInfo motion = 9; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MotionInfo motion = 9; + * @return this + */ + public EntityMotion clearMotion() { + bitField0_ &= ~0x00000004; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 9; + * + * 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 #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 9; + * + * 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 MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000004; + return motion; + } + + /** + * optional .MotionInfo motion = 9; + * @param value the motion to set + * @return this + */ + public EntityMotion setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000004; + motion.copyFrom(value); + return this; + } + + @Override + public EntityMotion copyFrom(final EntityMotion other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityId = other.entityId; + mapLayer = other.mapLayer; + motion.copyFrom(other.motion); + } + return this; + } + + @Override + public EntityMotion mergeFrom(final EntityMotion other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + if (other.hasMapLayer()) { + setMapLayer(other.mapLayer); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + return this; + } + + @Override + public EntityMotion clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityId = 0; + mapLayer = 0; + motion.clear(); + return this; + } + + @Override + public EntityMotion clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + motion.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof EntityMotion)) { + return false; + } + EntityMotion other = (EntityMotion) o; + return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId) + && (!hasMapLayer() || mapLayer == other.mapLayer) + && (!hasMotion() || motion.equals(other.motion)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(motion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EntityMotion mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // mapLayer + mapLayer = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // motion + input.readMessage(motion); + 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.entityId, entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.mapLayer, mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + output.endObject(); + } + + @Override + public EntityMotion 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; + } + case 160971093: + case 1248553134: { + if (input.isAtField(FieldNames.mapLayer)) { + if (!input.trySkipNullValue()) { + mapLayer = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EntityMotion clone() { + return new EntityMotion().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EntityMotion parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EntityMotion(), data).checkInitialized(); + } + + public static EntityMotion parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EntityMotion(), input).checkInitialized(); + } + + public static EntityMotion parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EntityMotion(), input).checkInitialized(); + } + + /** + * @return factory for creating EntityMotion messages + */ + public static MessageFactory getFactory() { + return EntityMotionFactory.INSTANCE; + } + + private enum EntityMotionFactory implements MessageFactory { + INSTANCE; + + @Override + public EntityMotion create() { + return EntityMotion.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + + static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); + + static final FieldName motion = FieldName.forField("motion"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java new file mode 100644 index 0000000..fe29c00 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java @@ -0,0 +1,339 @@ +// 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 EquipRelicOuterClass { + /** + * Protobuf type {@code EquipRelic} + */ + public static final class EquipRelic extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 slot = 4; + */ + private int slot; + + /** + * optional uint32 relic_unique_id = 14; + */ + private int relicUniqueId; + + private EquipRelic() { + } + + /** + * @return a new empty instance of {@code EquipRelic} + */ + public static EquipRelic newInstance() { + return new EquipRelic(); + } + + /** + * optional uint32 slot = 4; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 slot = 4; + * @return this + */ + public EquipRelic clearSlot() { + bitField0_ &= ~0x00000001; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 4; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 4; + * @param value the slot to set + * @return this + */ + public EquipRelic setSlot(final int value) { + bitField0_ |= 0x00000001; + slot = value; + return this; + } + + /** + * optional uint32 relic_unique_id = 14; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 relic_unique_id = 14; + * @return this + */ + public EquipRelic clearRelicUniqueId() { + bitField0_ &= ~0x00000002; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 14; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 14; + * @param value the relicUniqueId to set + * @return this + */ + public EquipRelic setRelicUniqueId(final int value) { + bitField0_ |= 0x00000002; + relicUniqueId = value; + return this; + } + + @Override + public EquipRelic copyFrom(final EquipRelic other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + slot = other.slot; + relicUniqueId = other.relicUniqueId; + } + return this; + } + + @Override + public EquipRelic mergeFrom(final EquipRelic other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + return this; + } + + @Override + public EquipRelic clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slot = 0; + relicUniqueId = 0; + return this; + } + + @Override + public EquipRelic 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 EquipRelic)) { + return false; + } + EquipRelic other = (EquipRelic) o; + return bitField0_ == other.bitField0_ + && (!hasSlot() || slot == other.slot) + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(relicUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public EquipRelic mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // relicUniqueId + relicUniqueId = 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.slot, slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + } + output.endObject(); + } + + @Override + public EquipRelic mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public EquipRelic clone() { + return new EquipRelic().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static EquipRelic parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new EquipRelic(), data).checkInitialized(); + } + + public static EquipRelic parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new EquipRelic(), input).checkInitialized(); + } + + public static EquipRelic parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new EquipRelic(), input).checkInitialized(); + } + + /** + * @return factory for creating EquipRelic messages + */ + public static MessageFactory getFactory() { + return EquipRelicFactory.INSTANCE; + } + + private enum EquipRelicFactory implements MessageFactory { + INSTANCE; + + @Override + public EquipRelic create() { + return EquipRelic.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java new file mode 100644 index 0000000..831b5d8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java @@ -0,0 +1,821 @@ +// 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 EquipmentOuterClass { + /** + * Protobuf type {@code Equipment} + */ + public static final class Equipment extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 promotion = 2; + */ + private int promotion; + + /** + * optional uint32 unique_id = 4; + */ + private int uniqueId; + + /** + * optional uint32 base_avatar_id = 5; + */ + private int baseAvatarId; + + /** + * optional uint32 tid = 6; + */ + private int tid; + + /** + * optional uint32 exp = 7; + */ + private int exp; + + /** + * optional uint32 level = 9; + */ + private int level; + + /** + * optional uint32 rank = 11; + */ + private int rank; + + /** + * optional bool is_protected = 12; + */ + private boolean isProtected; + + private Equipment() { + } + + /** + * @return a new empty instance of {@code Equipment} + */ + public static Equipment newInstance() { + return new Equipment(); + } + + /** + * optional uint32 promotion = 2; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 promotion = 2; + * @return this + */ + public Equipment clearPromotion() { + bitField0_ &= ~0x00000001; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 2; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 2; + * @param value the promotion to set + * @return this + */ + public Equipment setPromotion(final int value) { + bitField0_ |= 0x00000001; + promotion = value; + return this; + } + + /** + * optional uint32 unique_id = 4; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 unique_id = 4; + * @return this + */ + public Equipment clearUniqueId() { + bitField0_ &= ~0x00000002; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 4; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 4; + * @param value the uniqueId to set + * @return this + */ + public Equipment setUniqueId(final int value) { + bitField0_ |= 0x00000002; + uniqueId = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 5; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 5; + * @return this + */ + public Equipment clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 5; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 5; + * @param value the baseAvatarId to set + * @return this + */ + public Equipment setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 tid = 6; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 tid = 6; + * @return this + */ + public Equipment clearTid() { + bitField0_ &= ~0x00000008; + tid = 0; + return this; + } + + /** + * optional uint32 tid = 6; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 tid = 6; + * @param value the tid to set + * @return this + */ + public Equipment setTid(final int value) { + bitField0_ |= 0x00000008; + tid = value; + return this; + } + + /** + * optional uint32 exp = 7; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 exp = 7; + * @return this + */ + public Equipment clearExp() { + bitField0_ &= ~0x00000010; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 7; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 7; + * @param value the exp to set + * @return this + */ + public Equipment setExp(final int value) { + bitField0_ |= 0x00000010; + exp = value; + return this; + } + + /** + * optional uint32 level = 9; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 level = 9; + * @return this + */ + public Equipment clearLevel() { + bitField0_ &= ~0x00000020; + level = 0; + return this; + } + + /** + * optional uint32 level = 9; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 9; + * @param value the level to set + * @return this + */ + public Equipment setLevel(final int value) { + bitField0_ |= 0x00000020; + level = value; + return this; + } + + /** + * optional uint32 rank = 11; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 rank = 11; + * @return this + */ + public Equipment clearRank() { + bitField0_ &= ~0x00000040; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 11; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 11; + * @param value the rank to set + * @return this + */ + public Equipment setRank(final int value) { + bitField0_ |= 0x00000040; + rank = value; + return this; + } + + /** + * optional bool is_protected = 12; + * @return whether the isProtected field is set + */ + public boolean hasIsProtected() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool is_protected = 12; + * @return this + */ + public Equipment clearIsProtected() { + bitField0_ &= ~0x00000080; + isProtected = false; + return this; + } + + /** + * optional bool is_protected = 12; + * @return the isProtected + */ + public boolean getIsProtected() { + return isProtected; + } + + /** + * optional bool is_protected = 12; + * @param value the isProtected to set + * @return this + */ + public Equipment setIsProtected(final boolean value) { + bitField0_ |= 0x00000080; + isProtected = value; + return this; + } + + @Override + public Equipment copyFrom(final Equipment other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + promotion = other.promotion; + uniqueId = other.uniqueId; + baseAvatarId = other.baseAvatarId; + tid = other.tid; + exp = other.exp; + level = other.level; + rank = other.rank; + isProtected = other.isProtected; + } + return this; + } + + @Override + public Equipment mergeFrom(final Equipment other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasIsProtected()) { + setIsProtected(other.isProtected); + } + return this; + } + + @Override + public Equipment clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + promotion = 0; + uniqueId = 0; + baseAvatarId = 0; + tid = 0; + exp = 0; + level = 0; + rank = 0; + isProtected = false; + return this; + } + + @Override + public Equipment 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 Equipment)) { + return false; + } + Equipment other = (Equipment) o; + return bitField0_ == other.bitField0_ + && (!hasPromotion() || promotion == other.promotion) + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasTid() || tid == other.tid) + && (!hasExp() || exp == other.exp) + && (!hasLevel() || level == other.level) + && (!hasRank() || rank == other.rank) + && (!hasIsProtected() || isProtected == other.isProtected); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(uniqueId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 96); + output.writeBoolNoTag(isProtected); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Equipment mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // isProtected + isProtected = input.readBool(); + bitField0_ |= 0x00000080; + 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.promotion, promotion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.isProtected, isProtected); + } + output.endObject(); + } + + @Override + public Equipment mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { + if (!input.trySkipNullValue()) { + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 114831: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 569879972: + case -1919645991: { + if (input.isAtField(FieldNames.isProtected)) { + if (!input.trySkipNullValue()) { + isProtected = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Equipment clone() { + return new Equipment().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Equipment parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Equipment(), data).checkInitialized(); + } + + public static Equipment parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Equipment(), input).checkInitialized(); + } + + public static Equipment parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Equipment(), input).checkInitialized(); + } + + /** + * @return factory for creating Equipment messages + */ + public static MessageFactory getFactory() { + return EquipmentFactory.INSTANCE; + } + + private enum EquipmentFactory implements MessageFactory { + INSTANCE; + + @Override + public Equipment create() { + return Equipment.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName tid = FieldName.forField("tid"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java new file mode 100644 index 0000000..0b0aad5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java @@ -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 ExchangeHcoinCsReqOuterClass { + /** + * Protobuf type {@code ExchangeHcoinCsReq} + */ + public static final class ExchangeHcoinCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 num = 6; + */ + private int num; + + private ExchangeHcoinCsReq() { + } + + /** + * @return a new empty instance of {@code ExchangeHcoinCsReq} + */ + public static ExchangeHcoinCsReq newInstance() { + return new ExchangeHcoinCsReq(); + } + + /** + * optional uint32 num = 6; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 num = 6; + * @return this + */ + public ExchangeHcoinCsReq clearNum() { + bitField0_ &= ~0x00000001; + num = 0; + return this; + } + + /** + * optional uint32 num = 6; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 6; + * @param value the num to set + * @return this + */ + public ExchangeHcoinCsReq setNum(final int value) { + bitField0_ |= 0x00000001; + num = value; + return this; + } + + @Override + public ExchangeHcoinCsReq copyFrom(final ExchangeHcoinCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + num = other.num; + } + return this; + } + + @Override + public ExchangeHcoinCsReq mergeFrom(final ExchangeHcoinCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNum()) { + setNum(other.num); + } + return this; + } + + @Override + public ExchangeHcoinCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + num = 0; + return this; + } + + @Override + public ExchangeHcoinCsReq 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 ExchangeHcoinCsReq)) { + return false; + } + ExchangeHcoinCsReq other = (ExchangeHcoinCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasNum() || num == other.num); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(num); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ExchangeHcoinCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // num + num = 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.num, num); + } + output.endObject(); + } + + @Override + public ExchangeHcoinCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ExchangeHcoinCsReq clone() { + return new ExchangeHcoinCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ExchangeHcoinCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ExchangeHcoinCsReq(), data).checkInitialized(); + } + + public static ExchangeHcoinCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExchangeHcoinCsReq(), input).checkInitialized(); + } + + public static ExchangeHcoinCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExchangeHcoinCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ExchangeHcoinCsReq messages + */ + public static MessageFactory getFactory() { + return ExchangeHcoinCsReqFactory.INSTANCE; + } + + private enum ExchangeHcoinCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ExchangeHcoinCsReq create() { + return ExchangeHcoinCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName num = FieldName.forField("num"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java new file mode 100644 index 0000000..36d8b0a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java @@ -0,0 +1,339 @@ +// 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 ExchangeHcoinScRspOuterClass { + /** + * Protobuf type {@code ExchangeHcoinScRsp} + */ + public static final class ExchangeHcoinScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 num = 2; + */ + private int num; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + private ExchangeHcoinScRsp() { + } + + /** + * @return a new empty instance of {@code ExchangeHcoinScRsp} + */ + public static ExchangeHcoinScRsp newInstance() { + return new ExchangeHcoinScRsp(); + } + + /** + * optional uint32 num = 2; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 num = 2; + * @return this + */ + public ExchangeHcoinScRsp clearNum() { + bitField0_ &= ~0x00000001; + num = 0; + return this; + } + + /** + * optional uint32 num = 2; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 2; + * @param value the num to set + * @return this + */ + public ExchangeHcoinScRsp setNum(final int value) { + bitField0_ |= 0x00000001; + num = value; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public ExchangeHcoinScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public ExchangeHcoinScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public ExchangeHcoinScRsp copyFrom(final ExchangeHcoinScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + num = other.num; + retcode = other.retcode; + } + return this; + } + + @Override + public ExchangeHcoinScRsp mergeFrom(final ExchangeHcoinScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNum()) { + setNum(other.num); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public ExchangeHcoinScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + num = 0; + retcode = 0; + return this; + } + + @Override + public ExchangeHcoinScRsp 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 ExchangeHcoinScRsp)) { + return false; + } + ExchangeHcoinScRsp other = (ExchangeHcoinScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasNum() || num == other.num) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(num); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ExchangeHcoinScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // num + num = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // retcode + retcode = 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.num, num); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public ExchangeHcoinScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ExchangeHcoinScRsp clone() { + return new ExchangeHcoinScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ExchangeHcoinScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ExchangeHcoinScRsp(), data).checkInitialized(); + } + + public static ExchangeHcoinScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExchangeHcoinScRsp(), input).checkInitialized(); + } + + public static ExchangeHcoinScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExchangeHcoinScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ExchangeHcoinScRsp messages + */ + public static MessageFactory getFactory() { + return ExchangeHcoinScRspFactory.INSTANCE; + } + + private enum ExchangeHcoinScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ExchangeHcoinScRsp create() { + return ExchangeHcoinScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName num = FieldName.forField("num"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java new file mode 100644 index 0000000..29fce20 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java @@ -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 ExpUpEquipmentCsReqOuterClass { + /** + * Protobuf type {@code ExpUpEquipmentCsReq} + */ + public static final class ExpUpEquipmentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 equipment_unique_id = 6; + */ + private int equipmentUniqueId; + + /** + * optional .ItemCostList item_cost_list = 3; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private ExpUpEquipmentCsReq() { + } + + /** + * @return a new empty instance of {@code ExpUpEquipmentCsReq} + */ + public static ExpUpEquipmentCsReq newInstance() { + return new ExpUpEquipmentCsReq(); + } + + /** + * optional uint32 equipment_unique_id = 6; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 equipment_unique_id = 6; + * @return this + */ + public ExpUpEquipmentCsReq clearEquipmentUniqueId() { + bitField0_ &= ~0x00000001; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 6; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 6; + * @param value the equipmentUniqueId to set + * @return this + */ + public ExpUpEquipmentCsReq setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000001; + equipmentUniqueId = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 3; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 3; + * @return this + */ + public ExpUpEquipmentCsReq clearItemCostList() { + bitField0_ &= ~0x00000002; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 3; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 3; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000002; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 3; + * @param value the itemCostList to set + * @return this + */ + public ExpUpEquipmentCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000002; + itemCostList.copyFrom(value); + return this; + } + + @Override + public ExpUpEquipmentCsReq copyFrom(final ExpUpEquipmentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + equipmentUniqueId = other.equipmentUniqueId; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public ExpUpEquipmentCsReq mergeFrom(final ExpUpEquipmentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public ExpUpEquipmentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + equipmentUniqueId = 0; + itemCostList.clear(); + return this; + } + + @Override + public ExpUpEquipmentCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ExpUpEquipmentCsReq)) { + return false; + } + ExpUpEquipmentCsReq other = (ExpUpEquipmentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ExpUpEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // itemCostList + input.readMessage(itemCostList); + 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.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public ExpUpEquipmentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ExpUpEquipmentCsReq clone() { + return new ExpUpEquipmentCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ExpUpEquipmentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ExpUpEquipmentCsReq(), data).checkInitialized(); + } + + public static ExpUpEquipmentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpEquipmentCsReq(), input).checkInitialized(); + } + + public static ExpUpEquipmentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpEquipmentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ExpUpEquipmentCsReq messages + */ + public static MessageFactory getFactory() { + return ExpUpEquipmentCsReqFactory.INSTANCE; + } + + private enum ExpUpEquipmentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ExpUpEquipmentCsReq create() { + return ExpUpEquipmentCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java new file mode 100644 index 0000000..18910bd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java @@ -0,0 +1,374 @@ +// 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 ExpUpEquipmentScRspOuterClass { + /** + * Protobuf type {@code ExpUpEquipmentScRsp} + */ + public static final class ExpUpEquipmentScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * repeated .PileItem return_item_list = 11; + */ + private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); + + private ExpUpEquipmentScRsp() { + } + + /** + * @return a new empty instance of {@code ExpUpEquipmentScRsp} + */ + public static ExpUpEquipmentScRsp newInstance() { + return new ExpUpEquipmentScRsp(); + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public ExpUpEquipmentScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public ExpUpEquipmentScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated .PileItem return_item_list = 11; + * @return whether the returnItemList field is set + */ + public boolean hasReturnItemList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .PileItem return_item_list = 11; + * @return this + */ + public ExpUpEquipmentScRsp clearReturnItemList() { + bitField0_ &= ~0x00000002; + returnItemList.clear(); + return this; + } + + /** + * repeated .PileItem return_item_list = 11; + * + * 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 #getMutableReturnItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getReturnItemList() { + return returnItemList; + } + + /** + * repeated .PileItem return_item_list = 11; + * + * 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 getMutableReturnItemList() { + bitField0_ |= 0x00000002; + return returnItemList; + } + + /** + * repeated .PileItem return_item_list = 11; + * @param value the returnItemList to add + * @return this + */ + public ExpUpEquipmentScRsp addReturnItemList(final PileItemOuterClass.PileItem value) { + bitField0_ |= 0x00000002; + returnItemList.add(value); + return this; + } + + /** + * repeated .PileItem return_item_list = 11; + * @param values the returnItemList to add + * @return this + */ + public ExpUpEquipmentScRsp addAllReturnItemList(final PileItemOuterClass.PileItem... values) { + bitField0_ |= 0x00000002; + returnItemList.addAll(values); + return this; + } + + @Override + public ExpUpEquipmentScRsp copyFrom(final ExpUpEquipmentScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + returnItemList.copyFrom(other.returnItemList); + } + return this; + } + + @Override + public ExpUpEquipmentScRsp mergeFrom(final ExpUpEquipmentScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasReturnItemList()) { + getMutableReturnItemList().addAll(other.returnItemList); + } + return this; + } + + @Override + public ExpUpEquipmentScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + returnItemList.clear(); + return this; + } + + @Override + public ExpUpEquipmentScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + returnItemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ExpUpEquipmentScRsp)) { + return false; + } + ExpUpEquipmentScRsp other = (ExpUpEquipmentScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < returnItemList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(returnItemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * returnItemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(returnItemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ExpUpEquipmentScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // returnItemList + tag = input.readRepeatedMessage(returnItemList, 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.returnItemList, returnItemList); + } + output.endObject(); + } + + @Override + public ExpUpEquipmentScRsp 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 -6533215: + case -807051781: { + if (input.isAtField(FieldNames.returnItemList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(returnItemList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ExpUpEquipmentScRsp clone() { + return new ExpUpEquipmentScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ExpUpEquipmentScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ExpUpEquipmentScRsp(), data).checkInitialized(); + } + + public static ExpUpEquipmentScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpEquipmentScRsp(), input).checkInitialized(); + } + + public static ExpUpEquipmentScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpEquipmentScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ExpUpEquipmentScRsp messages + */ + public static MessageFactory getFactory() { + return ExpUpEquipmentScRspFactory.INSTANCE; + } + + private enum ExpUpEquipmentScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ExpUpEquipmentScRsp create() { + return ExpUpEquipmentScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java new file mode 100644 index 0000000..7485fc2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java @@ -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 ExpUpRelicCsReqOuterClass { + /** + * Protobuf type {@code ExpUpRelicCsReq} + */ + public static final class ExpUpRelicCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 relic_unique_id = 6; + */ + private int relicUniqueId; + + /** + * optional .ItemCostList item_cost_list = 1; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private ExpUpRelicCsReq() { + } + + /** + * @return a new empty instance of {@code ExpUpRelicCsReq} + */ + public static ExpUpRelicCsReq newInstance() { + return new ExpUpRelicCsReq(); + } + + /** + * optional uint32 relic_unique_id = 6; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 relic_unique_id = 6; + * @return this + */ + public ExpUpRelicCsReq clearRelicUniqueId() { + bitField0_ &= ~0x00000001; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 6; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 6; + * @param value the relicUniqueId to set + * @return this + */ + public ExpUpRelicCsReq setRelicUniqueId(final int value) { + bitField0_ |= 0x00000001; + relicUniqueId = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 1; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 1; + * @return this + */ + public ExpUpRelicCsReq clearItemCostList() { + bitField0_ &= ~0x00000002; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 1; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 1; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000002; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 1; + * @param value the itemCostList to set + * @return this + */ + public ExpUpRelicCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000002; + itemCostList.copyFrom(value); + return this; + } + + @Override + public ExpUpRelicCsReq copyFrom(final ExpUpRelicCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + relicUniqueId = other.relicUniqueId; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public ExpUpRelicCsReq mergeFrom(final ExpUpRelicCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public ExpUpRelicCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + relicUniqueId = 0; + itemCostList.clear(); + return this; + } + + @Override + public ExpUpRelicCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ExpUpRelicCsReq)) { + return false; + } + ExpUpRelicCsReq other = (ExpUpRelicCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ExpUpRelicCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // relicUniqueId + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // itemCostList + input.readMessage(itemCostList); + 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.relicUniqueId, relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public ExpUpRelicCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ExpUpRelicCsReq clone() { + return new ExpUpRelicCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ExpUpRelicCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ExpUpRelicCsReq(), data).checkInitialized(); + } + + public static ExpUpRelicCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpRelicCsReq(), input).checkInitialized(); + } + + public static ExpUpRelicCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpRelicCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ExpUpRelicCsReq messages + */ + public static MessageFactory getFactory() { + return ExpUpRelicCsReqFactory.INSTANCE; + } + + private enum ExpUpRelicCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ExpUpRelicCsReq create() { + return ExpUpRelicCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java new file mode 100644 index 0000000..5b0de43 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java @@ -0,0 +1,374 @@ +// 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 ExpUpRelicScRspOuterClass { + /** + * Protobuf type {@code ExpUpRelicScRsp} + */ + public static final class ExpUpRelicScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * repeated .PileItem return_item_list = 3; + */ + private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); + + private ExpUpRelicScRsp() { + } + + /** + * @return a new empty instance of {@code ExpUpRelicScRsp} + */ + public static ExpUpRelicScRsp newInstance() { + return new ExpUpRelicScRsp(); + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public ExpUpRelicScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public ExpUpRelicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated .PileItem return_item_list = 3; + * @return whether the returnItemList field is set + */ + public boolean hasReturnItemList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .PileItem return_item_list = 3; + * @return this + */ + public ExpUpRelicScRsp clearReturnItemList() { + bitField0_ &= ~0x00000002; + returnItemList.clear(); + return this; + } + + /** + * repeated .PileItem return_item_list = 3; + * + * 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 #getMutableReturnItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getReturnItemList() { + return returnItemList; + } + + /** + * repeated .PileItem return_item_list = 3; + * + * 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 getMutableReturnItemList() { + bitField0_ |= 0x00000002; + return returnItemList; + } + + /** + * repeated .PileItem return_item_list = 3; + * @param value the returnItemList to add + * @return this + */ + public ExpUpRelicScRsp addReturnItemList(final PileItemOuterClass.PileItem value) { + bitField0_ |= 0x00000002; + returnItemList.add(value); + return this; + } + + /** + * repeated .PileItem return_item_list = 3; + * @param values the returnItemList to add + * @return this + */ + public ExpUpRelicScRsp addAllReturnItemList(final PileItemOuterClass.PileItem... values) { + bitField0_ |= 0x00000002; + returnItemList.addAll(values); + return this; + } + + @Override + public ExpUpRelicScRsp copyFrom(final ExpUpRelicScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + returnItemList.copyFrom(other.returnItemList); + } + return this; + } + + @Override + public ExpUpRelicScRsp mergeFrom(final ExpUpRelicScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasReturnItemList()) { + getMutableReturnItemList().addAll(other.returnItemList); + } + return this; + } + + @Override + public ExpUpRelicScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + returnItemList.clear(); + return this; + } + + @Override + public ExpUpRelicScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + returnItemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ExpUpRelicScRsp)) { + return false; + } + ExpUpRelicScRsp other = (ExpUpRelicScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < returnItemList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(returnItemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * returnItemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(returnItemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ExpUpRelicScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // returnItemList + tag = input.readRepeatedMessage(returnItemList, 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.returnItemList, returnItemList); + } + output.endObject(); + } + + @Override + public ExpUpRelicScRsp 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 -6533215: + case -807051781: { + if (input.isAtField(FieldNames.returnItemList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(returnItemList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ExpUpRelicScRsp clone() { + return new ExpUpRelicScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ExpUpRelicScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ExpUpRelicScRsp(), data).checkInitialized(); + } + + public static ExpUpRelicScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpRelicScRsp(), input).checkInitialized(); + } + + public static ExpUpRelicScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ExpUpRelicScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ExpUpRelicScRsp messages + */ + public static MessageFactory getFactory() { + return ExpUpRelicScRspFactory.INSTANCE; + } + + private enum ExpUpRelicScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ExpUpRelicScRsp create() { + return ExpUpRelicScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java new file mode 100644 index 0000000..8d70a32 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java @@ -0,0 +1,275 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class ExtraLineupTypeOuterClass { + /** + * Protobuf enum {@code ExtraLineupType} + */ + public enum ExtraLineupType implements ProtoEnum { + /** + * LINEUP_NONE = 0; + */ + LINEUP_NONE("LINEUP_NONE", 0), + + /** + * LINEUP_CHALLENGE = 1; + */ + LINEUP_CHALLENGE("LINEUP_CHALLENGE", 1), + + /** + * LINEUP_ROGUE = 2; + */ + LINEUP_ROGUE("LINEUP_ROGUE", 2), + + /** + * LINEUP_CHALLENGE_2 = 3; + */ + LINEUP_CHALLENGE_2("LINEUP_CHALLENGE_2", 3), + + /** + * LINEUP_CHALLENGE_3 = 4; + */ + LINEUP_CHALLENGE_3("LINEUP_CHALLENGE_3", 4), + + /** + * LINEUP_ROGUE_CHALLENGE = 5; + */ + LINEUP_ROGUE_CHALLENGE("LINEUP_ROGUE_CHALLENGE", 5), + + /** + * LINEUP_STAGE_TRIAL = 6; + */ + LINEUP_STAGE_TRIAL("LINEUP_STAGE_TRIAL", 6), + + /** + * LINEUP_ROGUE_TRIAL = 7; + */ + LINEUP_ROGUE_TRIAL("LINEUP_ROGUE_TRIAL", 7), + + /** + * LINEUP_ACTIVITY = 8; + */ + LINEUP_ACTIVITY("LINEUP_ACTIVITY", 8), + + /** + * LINEUP_BOXING_CLUB = 9; + */ + LINEUP_BOXING_CLUB("LINEUP_BOXING_CLUB", 9), + + /** + * LINEUP_TREASURE_DUNGEON = 11; + */ + LINEUP_TREASURE_DUNGEON("LINEUP_TREASURE_DUNGEON", 11), + + /** + * LINEUP_CHESS_ROGUE = 12; + */ + LINEUP_CHESS_ROGUE("LINEUP_CHESS_ROGUE", 12); + + /** + * LINEUP_NONE = 0; + */ + public static final int LINEUP_NONE_VALUE = 0; + + /** + * LINEUP_CHALLENGE = 1; + */ + public static final int LINEUP_CHALLENGE_VALUE = 1; + + /** + * LINEUP_ROGUE = 2; + */ + public static final int LINEUP_ROGUE_VALUE = 2; + + /** + * LINEUP_CHALLENGE_2 = 3; + */ + public static final int LINEUP_CHALLENGE_2_VALUE = 3; + + /** + * LINEUP_CHALLENGE_3 = 4; + */ + public static final int LINEUP_CHALLENGE_3_VALUE = 4; + + /** + * LINEUP_ROGUE_CHALLENGE = 5; + */ + public static final int LINEUP_ROGUE_CHALLENGE_VALUE = 5; + + /** + * LINEUP_STAGE_TRIAL = 6; + */ + public static final int LINEUP_STAGE_TRIAL_VALUE = 6; + + /** + * LINEUP_ROGUE_TRIAL = 7; + */ + public static final int LINEUP_ROGUE_TRIAL_VALUE = 7; + + /** + * LINEUP_ACTIVITY = 8; + */ + public static final int LINEUP_ACTIVITY_VALUE = 8; + + /** + * LINEUP_BOXING_CLUB = 9; + */ + public static final int LINEUP_BOXING_CLUB_VALUE = 9; + + /** + * LINEUP_TREASURE_DUNGEON = 11; + */ + public static final int LINEUP_TREASURE_DUNGEON_VALUE = 11; + + /** + * LINEUP_CHESS_ROGUE = 12; + */ + public static final int LINEUP_CHESS_ROGUE_VALUE = 12; + + private final String name; + + private final int number; + + private ExtraLineupType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return ExtraLineupTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static ExtraLineupType forNumber(int value) { + return ExtraLineupTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static ExtraLineupType forNumberOr(int number, ExtraLineupType other) { + ExtraLineupType value = forNumber(number); + return value == null ? other : value; + } + + enum ExtraLineupTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ExtraLineupType[] lookup = new ExtraLineupType[13]; + + static { + lookup[0] = LINEUP_NONE; + lookup[1] = LINEUP_CHALLENGE; + lookup[2] = LINEUP_ROGUE; + lookup[3] = LINEUP_CHALLENGE_2; + lookup[4] = LINEUP_CHALLENGE_3; + lookup[5] = LINEUP_ROGUE_CHALLENGE; + lookup[6] = LINEUP_STAGE_TRIAL; + lookup[7] = LINEUP_ROGUE_TRIAL; + lookup[8] = LINEUP_ACTIVITY; + lookup[9] = LINEUP_BOXING_CLUB; + lookup[11] = LINEUP_TREASURE_DUNGEON; + lookup[12] = LINEUP_CHESS_ROGUE; + } + + @Override + public final ExtraLineupType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ExtraLineupType forName(final CharSequence value) { + switch (value.length()) { + case 11: { + if (ProtoUtil.isEqual("LINEUP_NONE", value)) { + return LINEUP_NONE; + } + break; + } + case 12: { + if (ProtoUtil.isEqual("LINEUP_ROGUE", value)) { + return LINEUP_ROGUE; + } + break; + } + case 15: { + if (ProtoUtil.isEqual("LINEUP_ACTIVITY", value)) { + return LINEUP_ACTIVITY; + } + break; + } + case 16: { + if (ProtoUtil.isEqual("LINEUP_CHALLENGE", value)) { + return LINEUP_CHALLENGE; + } + break; + } + case 18: { + if (ProtoUtil.isEqual("LINEUP_CHALLENGE_2", value)) { + return LINEUP_CHALLENGE_2; + } + if (ProtoUtil.isEqual("LINEUP_CHALLENGE_3", value)) { + return LINEUP_CHALLENGE_3; + } + if (ProtoUtil.isEqual("LINEUP_STAGE_TRIAL", value)) { + return LINEUP_STAGE_TRIAL; + } + if (ProtoUtil.isEqual("LINEUP_ROGUE_TRIAL", value)) { + return LINEUP_ROGUE_TRIAL; + } + if (ProtoUtil.isEqual("LINEUP_BOXING_CLUB", value)) { + return LINEUP_BOXING_CLUB; + } + if (ProtoUtil.isEqual("LINEUP_CHESS_ROGUE", value)) { + return LINEUP_CHESS_ROGUE; + } + break; + } + case 22: { + if (ProtoUtil.isEqual("LINEUP_ROGUE_CHALLENGE", value)) { + return LINEUP_ROGUE_CHALLENGE; + } + break; + } + case 23: { + if (ProtoUtil.isEqual("LINEUP_TREASURE_DUNGEON", value)) { + return LINEUP_TREASURE_DUNGEON; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FriendAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendAvatarInfoOuterClass.java new file mode 100644 index 0000000..e6c6d39 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FriendAvatarInfoOuterClass.java @@ -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 FriendAvatarInfoOuterClass { + /** + * Protobuf type {@code FriendAvatarInfo} + */ + public static final class FriendAvatarInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 level = 8; + */ + private int level; + + /** + * optional uint32 avatar_id = 13; + */ + private int avatarId; + + private FriendAvatarInfo() { + } + + /** + * @return a new empty instance of {@code FriendAvatarInfo} + */ + public static FriendAvatarInfo newInstance() { + return new FriendAvatarInfo(); + } + + /** + * optional uint32 level = 8; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 level = 8; + * @return this + */ + public FriendAvatarInfo clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 level = 8; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 8; + * @param value the level to set + * @return this + */ + public FriendAvatarInfo setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 avatar_id = 13; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 13; + * @return this + */ + public FriendAvatarInfo clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 13; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 13; + * @param value the avatarId to set + * @return this + */ + public FriendAvatarInfo setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + @Override + public FriendAvatarInfo copyFrom(final FriendAvatarInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + avatarId = other.avatarId; + } + return this; + } + + @Override + public FriendAvatarInfo mergeFrom(final FriendAvatarInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + return this; + } + + @Override + public FriendAvatarInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + avatarId = 0; + return this; + } + + @Override + public FriendAvatarInfo 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 FriendAvatarInfo)) { + return false; + } + FriendAvatarInfo other = (FriendAvatarInfo) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasAvatarId() || avatarId == other.avatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(avatarId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FriendAvatarInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // 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.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + output.endObject(); + } + + @Override + public FriendAvatarInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = 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 FriendAvatarInfo clone() { + return new FriendAvatarInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FriendAvatarInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FriendAvatarInfo(), data).checkInitialized(); + } + + public static FriendAvatarInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendAvatarInfo(), input).checkInitialized(); + } + + public static FriendAvatarInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendAvatarInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FriendAvatarInfo messages + */ + public static MessageFactory getFactory() { + return FriendAvatarInfoFactory.INSTANCE; + } + + private enum FriendAvatarInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FriendAvatarInfo create() { + return FriendAvatarInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("level"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java new file mode 100644 index 0000000..d3dc78b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java @@ -0,0 +1,391 @@ +// 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.Utf8String; + +public final class FriendListInfoOuterClass { + /** + * Protobuf type {@code FriendListInfo} + */ + public static final class FriendListInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .SimpleInfo simple_info = 9; + */ + private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); + + /** + * optional string EOLJAAMDENK = 4; + */ + private final Utf8String eOLJAAMDENK = Utf8String.newEmptyInstance(); + + private FriendListInfo() { + } + + /** + * @return a new empty instance of {@code FriendListInfo} + */ + public static FriendListInfo newInstance() { + return new FriendListInfo(); + } + + /** + * optional .SimpleInfo simple_info = 9; + * @return whether the simpleInfo field is set + */ + public boolean hasSimpleInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .SimpleInfo simple_info = 9; + * @return this + */ + public FriendListInfo clearSimpleInfo() { + bitField0_ &= ~0x00000001; + simpleInfo.clear(); + return this; + } + + /** + * optional .SimpleInfo simple_info = 9; + * + * 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 #getMutableSimpleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { + return simpleInfo; + } + + /** + * optional .SimpleInfo simple_info = 9; + * + * 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 SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { + bitField0_ |= 0x00000001; + return simpleInfo; + } + + /** + * optional .SimpleInfo simple_info = 9; + * @param value the simpleInfo to set + * @return this + */ + public FriendListInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + bitField0_ |= 0x00000001; + simpleInfo.copyFrom(value); + return this; + } + + /** + * optional string EOLJAAMDENK = 4; + * @return whether the eOLJAAMDENK field is set + */ + public boolean hasEOLJAAMDENK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string EOLJAAMDENK = 4; + * @return this + */ + public FriendListInfo clearEOLJAAMDENK() { + bitField0_ &= ~0x00000002; + eOLJAAMDENK.clear(); + return this; + } + + /** + * optional string EOLJAAMDENK = 4; + * @return the eOLJAAMDENK + */ + public String getEOLJAAMDENK() { + return eOLJAAMDENK.getString(); + } + + /** + * optional string EOLJAAMDENK = 4; + * @return internal {@code Utf8String} representation of eOLJAAMDENK for reading + */ + public Utf8String getEOLJAAMDENKBytes() { + return this.eOLJAAMDENK; + } + + /** + * optional string EOLJAAMDENK = 4; + * @return internal {@code Utf8String} representation of eOLJAAMDENK for modifications + */ + public Utf8String getMutableEOLJAAMDENKBytes() { + bitField0_ |= 0x00000002; + return this.eOLJAAMDENK; + } + + /** + * optional string EOLJAAMDENK = 4; + * @param value the eOLJAAMDENK to set + * @return this + */ + public FriendListInfo setEOLJAAMDENK(final CharSequence value) { + bitField0_ |= 0x00000002; + eOLJAAMDENK.copyFrom(value); + return this; + } + + /** + * optional string EOLJAAMDENK = 4; + * @param value the eOLJAAMDENK to set + * @return this + */ + public FriendListInfo setEOLJAAMDENK(final Utf8String value) { + bitField0_ |= 0x00000002; + eOLJAAMDENK.copyFrom(value); + return this; + } + + @Override + public FriendListInfo copyFrom(final FriendListInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + simpleInfo.copyFrom(other.simpleInfo); + eOLJAAMDENK.copyFrom(other.eOLJAAMDENK); + } + return this; + } + + @Override + public FriendListInfo mergeFrom(final FriendListInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSimpleInfo()) { + getMutableSimpleInfo().mergeFrom(other.simpleInfo); + } + if (other.hasEOLJAAMDENK()) { + getMutableEOLJAAMDENKBytes().copyFrom(other.eOLJAAMDENK); + } + return this; + } + + @Override + public FriendListInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + simpleInfo.clear(); + eOLJAAMDENK.clear(); + return this; + } + + @Override + public FriendListInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + simpleInfo.clearQuick(); + eOLJAAMDENK.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FriendListInfo)) { + return false; + } + FriendListInfo other = (FriendListInfo) o; + return bitField0_ == other.bitField0_ + && (!hasSimpleInfo() || simpleInfo.equals(other.simpleInfo)) + && (!hasEOLJAAMDENK() || eOLJAAMDENK.equals(other.eOLJAAMDENK)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(simpleInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(eOLJAAMDENK); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(simpleInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(eOLJAAMDENK); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FriendListInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // simpleInfo + input.readMessage(simpleInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // eOLJAAMDENK + input.readString(eOLJAAMDENK); + 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.simpleInfo, simpleInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.eOLJAAMDENK, eOLJAAMDENK); + } + output.endObject(); + } + + @Override + public FriendListInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1431903872: + case -1419171045: { + if (input.isAtField(FieldNames.simpleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(simpleInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1903367939: { + if (input.isAtField(FieldNames.eOLJAAMDENK)) { + if (!input.trySkipNullValue()) { + input.readString(eOLJAAMDENK); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FriendListInfo clone() { + return new FriendListInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FriendListInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FriendListInfo(), data).checkInitialized(); + } + + public static FriendListInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendListInfo(), input).checkInitialized(); + } + + public static FriendListInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendListInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FriendListInfo messages + */ + public static MessageFactory getFactory() { + return FriendListInfoFactory.INSTANCE; + } + + private enum FriendListInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FriendListInfo create() { + return FriendListInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName simpleInfo = FieldName.forField("simpleInfo", "simple_info"); + + static final FieldName eOLJAAMDENK = FieldName.forField("EOLJAAMDENK"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java new file mode 100644 index 0000000..8ffc47c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java @@ -0,0 +1,116 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class FriendOnlineStatusOuterClass { + /** + * Protobuf enum {@code FriendOnlineStatus} + */ + public enum FriendOnlineStatus implements ProtoEnum { + /** + * FRIEND_ONLINE_STATUS_OFFLINE = 0; + */ + FRIEND_ONLINE_STATUS_OFFLINE("FRIEND_ONLINE_STATUS_OFFLINE", 0), + + /** + * FRIEND_ONLINE_STATUS_ONLINE = 1; + */ + FRIEND_ONLINE_STATUS_ONLINE("FRIEND_ONLINE_STATUS_ONLINE", 1); + + /** + * FRIEND_ONLINE_STATUS_OFFLINE = 0; + */ + public static final int FRIEND_ONLINE_STATUS_OFFLINE_VALUE = 0; + + /** + * FRIEND_ONLINE_STATUS_ONLINE = 1; + */ + public static final int FRIEND_ONLINE_STATUS_ONLINE_VALUE = 1; + + private final String name; + + private final int number; + + private FriendOnlineStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return FriendOnlineStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static FriendOnlineStatus forNumber(int value) { + return FriendOnlineStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static FriendOnlineStatus forNumberOr(int number, FriendOnlineStatus other) { + FriendOnlineStatus value = forNumber(number); + return value == null ? other : value; + } + + enum FriendOnlineStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final FriendOnlineStatus[] lookup = new FriendOnlineStatus[2]; + + static { + lookup[0] = FRIEND_ONLINE_STATUS_OFFLINE; + lookup[1] = FRIEND_ONLINE_STATUS_ONLINE; + } + + @Override + public final FriendOnlineStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final FriendOnlineStatus forName(final CharSequence value) { + if (value.length() == 27) { + if (ProtoUtil.isEqual("FRIEND_ONLINE_STATUS_ONLINE", value)) { + return FRIEND_ONLINE_STATUS_ONLINE; + } + } + if (value.length() == 28) { + if (ProtoUtil.isEqual("FRIEND_ONLINE_STATUS_OFFLINE", value)) { + return FRIEND_ONLINE_STATUS_OFFLINE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java new file mode 100644 index 0000000..366ed33 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingAvatarOuterClass.java @@ -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 GachaCeilingAvatarOuterClass { + /** + * Protobuf type {@code GachaCeilingAvatar} + */ + public static final class GachaCeilingAvatar extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 repeated_cnt = 1; + */ + private int repeatedCnt; + + /** + * optional uint32 avatar_id = 14; + */ + private int avatarId; + + private GachaCeilingAvatar() { + } + + /** + * @return a new empty instance of {@code GachaCeilingAvatar} + */ + public static GachaCeilingAvatar newInstance() { + return new GachaCeilingAvatar(); + } + + /** + * optional uint32 repeated_cnt = 1; + * @return whether the repeatedCnt field is set + */ + public boolean hasRepeatedCnt() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 repeated_cnt = 1; + * @return this + */ + public GachaCeilingAvatar clearRepeatedCnt() { + bitField0_ &= ~0x00000001; + repeatedCnt = 0; + return this; + } + + /** + * optional uint32 repeated_cnt = 1; + * @return the repeatedCnt + */ + public int getRepeatedCnt() { + return repeatedCnt; + } + + /** + * optional uint32 repeated_cnt = 1; + * @param value the repeatedCnt to set + * @return this + */ + public GachaCeilingAvatar setRepeatedCnt(final int value) { + bitField0_ |= 0x00000001; + repeatedCnt = value; + return this; + } + + /** + * optional uint32 avatar_id = 14; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 14; + * @return this + */ + public GachaCeilingAvatar clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 14; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 14; + * @param value the avatarId to set + * @return this + */ + public GachaCeilingAvatar setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + @Override + public GachaCeilingAvatar copyFrom(final GachaCeilingAvatar other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + repeatedCnt = other.repeatedCnt; + avatarId = other.avatarId; + } + return this; + } + + @Override + public GachaCeilingAvatar mergeFrom(final GachaCeilingAvatar other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRepeatedCnt()) { + setRepeatedCnt(other.repeatedCnt); + } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + return this; + } + + @Override + public GachaCeilingAvatar clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + repeatedCnt = 0; + avatarId = 0; + return this; + } + + @Override + public GachaCeilingAvatar 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 GachaCeilingAvatar)) { + return false; + } + GachaCeilingAvatar other = (GachaCeilingAvatar) o; + return bitField0_ == other.bitField0_ + && (!hasRepeatedCnt() || repeatedCnt == other.repeatedCnt) + && (!hasAvatarId() || avatarId == other.avatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(repeatedCnt); + } + 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(repeatedCnt); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GachaCeilingAvatar mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // repeatedCnt + repeatedCnt = 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.repeatedCnt, repeatedCnt); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + output.endObject(); + } + + @Override + public GachaCeilingAvatar mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1602543503: + case -1859935452: { + if (input.isAtField(FieldNames.repeatedCnt)) { + if (!input.trySkipNullValue()) { + repeatedCnt = 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 GachaCeilingAvatar clone() { + return new GachaCeilingAvatar().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GachaCeilingAvatar parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GachaCeilingAvatar(), data).checkInitialized(); + } + + public static GachaCeilingAvatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaCeilingAvatar(), input).checkInitialized(); + } + + public static GachaCeilingAvatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaCeilingAvatar(), input).checkInitialized(); + } + + /** + * @return factory for creating GachaCeilingAvatar messages + */ + public static MessageFactory getFactory() { + return GachaCeilingAvatarFactory.INSTANCE; + } + + private enum GachaCeilingAvatarFactory implements MessageFactory { + INSTANCE; + + @Override + public GachaCeilingAvatar create() { + return GachaCeilingAvatar.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName repeatedCnt = FieldName.forField("repeatedCnt", "repeated_cnt"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java new file mode 100644 index 0000000..971eb3e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java @@ -0,0 +1,454 @@ +// 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 GachaCeilingOuterClass { + /** + * Protobuf type {@code GachaCeiling} + */ + public static final class GachaCeiling extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LAHIAEICENE = 6; + */ + private int lAHIAEICENE; + + /** + * optional bool JOOHKLJIKOF = 2; + */ + private boolean jOOHKLJIKOF; + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + */ + private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(GachaCeilingAvatarOuterClass.GachaCeilingAvatar.getFactory()); + + private GachaCeiling() { + } + + /** + * @return a new empty instance of {@code GachaCeiling} + */ + public static GachaCeiling newInstance() { + return new GachaCeiling(); + } + + /** + * optional uint32 LAHIAEICENE = 6; + * @return whether the lAHIAEICENE field is set + */ + public boolean hasLAHIAEICENE() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LAHIAEICENE = 6; + * @return this + */ + public GachaCeiling clearLAHIAEICENE() { + bitField0_ &= ~0x00000001; + lAHIAEICENE = 0; + return this; + } + + /** + * optional uint32 LAHIAEICENE = 6; + * @return the lAHIAEICENE + */ + public int getLAHIAEICENE() { + return lAHIAEICENE; + } + + /** + * optional uint32 LAHIAEICENE = 6; + * @param value the lAHIAEICENE to set + * @return this + */ + public GachaCeiling setLAHIAEICENE(final int value) { + bitField0_ |= 0x00000001; + lAHIAEICENE = value; + return this; + } + + /** + * optional bool JOOHKLJIKOF = 2; + * @return whether the jOOHKLJIKOF field is set + */ + public boolean hasJOOHKLJIKOF() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool JOOHKLJIKOF = 2; + * @return this + */ + public GachaCeiling clearJOOHKLJIKOF() { + bitField0_ &= ~0x00000002; + jOOHKLJIKOF = false; + return this; + } + + /** + * optional bool JOOHKLJIKOF = 2; + * @return the jOOHKLJIKOF + */ + public boolean getJOOHKLJIKOF() { + return jOOHKLJIKOF; + } + + /** + * optional bool JOOHKLJIKOF = 2; + * @param value the jOOHKLJIKOF to set + * @return this + */ + public GachaCeiling setJOOHKLJIKOF(final boolean value) { + bitField0_ |= 0x00000002; + jOOHKLJIKOF = value; + return this; + } + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + * @return this + */ + public GachaCeiling clearAvatarList() { + bitField0_ &= ~0x00000004; + avatarList.clear(); + return this; + } + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + * + * 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 #getMutableAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarList() { + return avatarList; + } + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + * + * 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 getMutableAvatarList() { + bitField0_ |= 0x00000004; + return avatarList; + } + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + * @param value the avatarList to add + * @return this + */ + public GachaCeiling addAvatarList(final GachaCeilingAvatarOuterClass.GachaCeilingAvatar value) { + bitField0_ |= 0x00000004; + avatarList.add(value); + return this; + } + + /** + * repeated .GachaCeilingAvatar avatar_list = 5; + * @param values the avatarList to add + * @return this + */ + public GachaCeiling addAllAvatarList( + final GachaCeilingAvatarOuterClass.GachaCeilingAvatar... values) { + bitField0_ |= 0x00000004; + avatarList.addAll(values); + return this; + } + + @Override + public GachaCeiling copyFrom(final GachaCeiling other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lAHIAEICENE = other.lAHIAEICENE; + jOOHKLJIKOF = other.jOOHKLJIKOF; + avatarList.copyFrom(other.avatarList); + } + return this; + } + + @Override + public GachaCeiling mergeFrom(final GachaCeiling other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLAHIAEICENE()) { + setLAHIAEICENE(other.lAHIAEICENE); + } + if (other.hasJOOHKLJIKOF()) { + setJOOHKLJIKOF(other.jOOHKLJIKOF); + } + if (other.hasAvatarList()) { + getMutableAvatarList().addAll(other.avatarList); + } + return this; + } + + @Override + public GachaCeiling clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lAHIAEICENE = 0; + jOOHKLJIKOF = false; + avatarList.clear(); + return this; + } + + @Override + public GachaCeiling clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GachaCeiling)) { + return false; + } + GachaCeiling other = (GachaCeiling) o; + return bitField0_ == other.bitField0_ + && (!hasLAHIAEICENE() || lAHIAEICENE == other.lAHIAEICENE) + && (!hasJOOHKLJIKOF() || jOOHKLJIKOF == other.jOOHKLJIKOF) + && (!hasAvatarList() || avatarList.equals(other.avatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(lAHIAEICENE); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(jOOHKLJIKOF); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(avatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lAHIAEICENE); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GachaCeiling mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // lAHIAEICENE + lAHIAEICENE = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // jOOHKLJIKOF + jOOHKLJIKOF = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // avatarList + tag = input.readRepeatedMessage(avatarList, 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.lAHIAEICENE, lAHIAEICENE); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.jOOHKLJIKOF, jOOHKLJIKOF); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.avatarList, avatarList); + } + output.endObject(); + } + + @Override + public GachaCeiling mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1968665032: { + if (input.isAtField(FieldNames.lAHIAEICENE)) { + if (!input.trySkipNullValue()) { + lAHIAEICENE = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787903332: { + if (input.isAtField(FieldNames.jOOHKLJIKOF)) { + if (!input.trySkipNullValue()) { + jOOHKLJIKOF = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GachaCeiling clone() { + return new GachaCeiling().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GachaCeiling parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GachaCeiling(), data).checkInitialized(); + } + + public static GachaCeiling parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaCeiling(), input).checkInitialized(); + } + + public static GachaCeiling parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaCeiling(), input).checkInitialized(); + } + + /** + * @return factory for creating GachaCeiling messages + */ + public static MessageFactory getFactory() { + return GachaCeilingFactory.INSTANCE; + } + + private enum GachaCeilingFactory implements MessageFactory { + INSTANCE; + + @Override + public GachaCeiling create() { + return GachaCeiling.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lAHIAEICENE = FieldName.forField("LAHIAEICENE"); + + static final FieldName jOOHKLJIKOF = FieldName.forField("JOOHKLJIKOF"); + + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java new file mode 100644 index 0000000..7fb53fd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java @@ -0,0 +1,1202 @@ +// 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.Utf8String; + +public final class GachaInfoOuterClass { + /** + * Protobuf type {@code GachaInfo} + */ + public static final class GachaInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 begin_time = 1; + */ + private long beginTime; + + /** + * optional int64 end_time = 3; + */ + private long endTime; + + /** + * optional uint32 MNDHFONAGNL = 5; + */ + private int mNDHFONAGNL; + + /** + * optional uint32 gacha_id = 10; + */ + private int gachaId; + + /** + * optional uint32 MNPCOHFBLFD = 15; + */ + private int mNPCOHFBLFD; + + /** + * optional .GachaCeiling gacha_ceiling = 4; + */ + private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); + + /** + * optional string history_url = 12; + */ + private final Utf8String historyUrl = Utf8String.newEmptyInstance(); + + /** + * optional string detail_url = 13; + */ + private final Utf8String detailUrl = Utf8String.newEmptyInstance(); + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + */ + private final RepeatedInt featured = RepeatedInt.newEmptyInstance(); + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + */ + private final RepeatedInt upInfo = RepeatedInt.newEmptyInstance(); + + private GachaInfo() { + } + + /** + * @return a new empty instance of {@code GachaInfo} + */ + public static GachaInfo newInstance() { + return new GachaInfo(); + } + + /** + * optional int64 begin_time = 1; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 begin_time = 1; + * @return this + */ + public GachaInfo clearBeginTime() { + bitField0_ &= ~0x00000001; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 1; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 1; + * @param value the beginTime to set + * @return this + */ + public GachaInfo setBeginTime(final long value) { + bitField0_ |= 0x00000001; + beginTime = value; + return this; + } + + /** + * optional int64 end_time = 3; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 end_time = 3; + * @return this + */ + public GachaInfo clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 3; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 3; + * @param value the endTime to set + * @return this + */ + public GachaInfo setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; + return this; + } + + /** + * optional uint32 MNDHFONAGNL = 5; + * @return whether the mNDHFONAGNL field is set + */ + public boolean hasMNDHFONAGNL() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 MNDHFONAGNL = 5; + * @return this + */ + public GachaInfo clearMNDHFONAGNL() { + bitField0_ &= ~0x00000004; + mNDHFONAGNL = 0; + return this; + } + + /** + * optional uint32 MNDHFONAGNL = 5; + * @return the mNDHFONAGNL + */ + public int getMNDHFONAGNL() { + return mNDHFONAGNL; + } + + /** + * optional uint32 MNDHFONAGNL = 5; + * @param value the mNDHFONAGNL to set + * @return this + */ + public GachaInfo setMNDHFONAGNL(final int value) { + bitField0_ |= 0x00000004; + mNDHFONAGNL = value; + return this; + } + + /** + * optional uint32 gacha_id = 10; + * @return whether the gachaId field is set + */ + public boolean hasGachaId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 gacha_id = 10; + * @return this + */ + public GachaInfo clearGachaId() { + bitField0_ &= ~0x00000008; + gachaId = 0; + return this; + } + + /** + * optional uint32 gacha_id = 10; + * @return the gachaId + */ + public int getGachaId() { + return gachaId; + } + + /** + * optional uint32 gacha_id = 10; + * @param value the gachaId to set + * @return this + */ + public GachaInfo setGachaId(final int value) { + bitField0_ |= 0x00000008; + gachaId = value; + return this; + } + + /** + * optional uint32 MNPCOHFBLFD = 15; + * @return whether the mNPCOHFBLFD field is set + */ + public boolean hasMNPCOHFBLFD() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 MNPCOHFBLFD = 15; + * @return this + */ + public GachaInfo clearMNPCOHFBLFD() { + bitField0_ &= ~0x00000010; + mNPCOHFBLFD = 0; + return this; + } + + /** + * optional uint32 MNPCOHFBLFD = 15; + * @return the mNPCOHFBLFD + */ + public int getMNPCOHFBLFD() { + return mNPCOHFBLFD; + } + + /** + * optional uint32 MNPCOHFBLFD = 15; + * @param value the mNPCOHFBLFD to set + * @return this + */ + public GachaInfo setMNPCOHFBLFD(final int value) { + bitField0_ |= 0x00000010; + mNPCOHFBLFD = value; + return this; + } + + /** + * optional .GachaCeiling gacha_ceiling = 4; + * @return whether the gachaCeiling field is set + */ + public boolean hasGachaCeiling() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .GachaCeiling gacha_ceiling = 4; + * @return this + */ + public GachaInfo clearGachaCeiling() { + bitField0_ &= ~0x00000020; + gachaCeiling.clear(); + return this; + } + + /** + * optional .GachaCeiling gacha_ceiling = 4; + * + * 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 #getMutableGachaCeiling()} if you want to modify it. + * + * @return internal storage object for reading + */ + public GachaCeilingOuterClass.GachaCeiling getGachaCeiling() { + return gachaCeiling; + } + + /** + * optional .GachaCeiling gacha_ceiling = 4; + * + * 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 GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { + bitField0_ |= 0x00000020; + return gachaCeiling; + } + + /** + * optional .GachaCeiling gacha_ceiling = 4; + * @param value the gachaCeiling to set + * @return this + */ + public GachaInfo setGachaCeiling(final GachaCeilingOuterClass.GachaCeiling value) { + bitField0_ |= 0x00000020; + gachaCeiling.copyFrom(value); + return this; + } + + /** + * optional string history_url = 12; + * @return whether the historyUrl field is set + */ + public boolean hasHistoryUrl() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string history_url = 12; + * @return this + */ + public GachaInfo clearHistoryUrl() { + bitField0_ &= ~0x00000040; + historyUrl.clear(); + return this; + } + + /** + * optional string history_url = 12; + * @return the historyUrl + */ + public String getHistoryUrl() { + return historyUrl.getString(); + } + + /** + * optional string history_url = 12; + * @return internal {@code Utf8String} representation of historyUrl for reading + */ + public Utf8String getHistoryUrlBytes() { + return this.historyUrl; + } + + /** + * optional string history_url = 12; + * @return internal {@code Utf8String} representation of historyUrl for modifications + */ + public Utf8String getMutableHistoryUrlBytes() { + bitField0_ |= 0x00000040; + return this.historyUrl; + } + + /** + * optional string history_url = 12; + * @param value the historyUrl to set + * @return this + */ + public GachaInfo setHistoryUrl(final CharSequence value) { + bitField0_ |= 0x00000040; + historyUrl.copyFrom(value); + return this; + } + + /** + * optional string history_url = 12; + * @param value the historyUrl to set + * @return this + */ + public GachaInfo setHistoryUrl(final Utf8String value) { + bitField0_ |= 0x00000040; + historyUrl.copyFrom(value); + return this; + } + + /** + * optional string detail_url = 13; + * @return whether the detailUrl field is set + */ + public boolean hasDetailUrl() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string detail_url = 13; + * @return this + */ + public GachaInfo clearDetailUrl() { + bitField0_ &= ~0x00000080; + detailUrl.clear(); + return this; + } + + /** + * optional string detail_url = 13; + * @return the detailUrl + */ + public String getDetailUrl() { + return detailUrl.getString(); + } + + /** + * optional string detail_url = 13; + * @return internal {@code Utf8String} representation of detailUrl for reading + */ + public Utf8String getDetailUrlBytes() { + return this.detailUrl; + } + + /** + * optional string detail_url = 13; + * @return internal {@code Utf8String} representation of detailUrl for modifications + */ + public Utf8String getMutableDetailUrlBytes() { + bitField0_ |= 0x00000080; + return this.detailUrl; + } + + /** + * optional string detail_url = 13; + * @param value the detailUrl to set + * @return this + */ + public GachaInfo setDetailUrl(final CharSequence value) { + bitField0_ |= 0x00000080; + detailUrl.copyFrom(value); + return this; + } + + /** + * optional string detail_url = 13; + * @param value the detailUrl to set + * @return this + */ + public GachaInfo setDetailUrl(final Utf8String value) { + bitField0_ |= 0x00000080; + detailUrl.copyFrom(value); + return this; + } + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + * @return whether the featured field is set + */ + public boolean hasFeatured() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + * @return this + */ + public GachaInfo clearFeatured() { + bitField0_ &= ~0x00000100; + featured.clear(); + return this; + } + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + * + * 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 #getMutableFeatured()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFeatured() { + return featured; + } + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + * + * 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 getMutableFeatured() { + bitField0_ |= 0x00000100; + return featured; + } + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + * @param value the featured to add + * @return this + */ + public GachaInfo addFeatured(final int value) { + bitField0_ |= 0x00000100; + featured.add(value); + return this; + } + + /** + *
+     *  prize
+     * 
+ * + * repeated uint32 featured = 6; + * @param values the featured to add + * @return this + */ + public GachaInfo addAllFeatured(final int... values) { + bitField0_ |= 0x00000100; + featured.addAll(values); + return this; + } + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + * @return whether the upInfo field is set + */ + public boolean hasUpInfo() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + * @return this + */ + public GachaInfo clearUpInfo() { + bitField0_ &= ~0x00000200; + upInfo.clear(); + return this; + } + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + * + * 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 #getMutableUpInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUpInfo() { + return upInfo; + } + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + * + * 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 getMutableUpInfo() { + bitField0_ |= 0x00000200; + return upInfo; + } + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + * @param value the upInfo to add + * @return this + */ + public GachaInfo addUpInfo(final int value) { + bitField0_ |= 0x00000200; + upInfo.add(value); + return this; + } + + /** + *
+     *  details
+     * 
+ * + * repeated uint32 up_info = 11; + * @param values the upInfo to add + * @return this + */ + public GachaInfo addAllUpInfo(final int... values) { + bitField0_ |= 0x00000200; + upInfo.addAll(values); + return this; + } + + @Override + public GachaInfo copyFrom(final GachaInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + beginTime = other.beginTime; + endTime = other.endTime; + mNDHFONAGNL = other.mNDHFONAGNL; + gachaId = other.gachaId; + mNPCOHFBLFD = other.mNPCOHFBLFD; + gachaCeiling.copyFrom(other.gachaCeiling); + historyUrl.copyFrom(other.historyUrl); + detailUrl.copyFrom(other.detailUrl); + featured.copyFrom(other.featured); + upInfo.copyFrom(other.upInfo); + } + return this; + } + + @Override + public GachaInfo mergeFrom(final GachaInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasMNDHFONAGNL()) { + setMNDHFONAGNL(other.mNDHFONAGNL); + } + if (other.hasGachaId()) { + setGachaId(other.gachaId); + } + if (other.hasMNPCOHFBLFD()) { + setMNPCOHFBLFD(other.mNPCOHFBLFD); + } + if (other.hasGachaCeiling()) { + getMutableGachaCeiling().mergeFrom(other.gachaCeiling); + } + if (other.hasHistoryUrl()) { + getMutableHistoryUrlBytes().copyFrom(other.historyUrl); + } + if (other.hasDetailUrl()) { + getMutableDetailUrlBytes().copyFrom(other.detailUrl); + } + if (other.hasFeatured()) { + getMutableFeatured().addAll(other.featured); + } + if (other.hasUpInfo()) { + getMutableUpInfo().addAll(other.upInfo); + } + return this; + } + + @Override + public GachaInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + beginTime = 0L; + endTime = 0L; + mNDHFONAGNL = 0; + gachaId = 0; + mNPCOHFBLFD = 0; + gachaCeiling.clear(); + historyUrl.clear(); + detailUrl.clear(); + featured.clear(); + upInfo.clear(); + return this; + } + + @Override + public GachaInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gachaCeiling.clearQuick(); + historyUrl.clear(); + detailUrl.clear(); + featured.clear(); + upInfo.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GachaInfo)) { + return false; + } + GachaInfo other = (GachaInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) + && (!hasMNDHFONAGNL() || mNDHFONAGNL == other.mNDHFONAGNL) + && (!hasGachaId() || gachaId == other.gachaId) + && (!hasMNPCOHFBLFD() || mNPCOHFBLFD == other.mNPCOHFBLFD) + && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)) + && (!hasHistoryUrl() || historyUrl.equals(other.historyUrl)) + && (!hasDetailUrl() || detailUrl.equals(other.detailUrl)) + && (!hasFeatured() || featured.equals(other.featured)) + && (!hasUpInfo() || upInfo.equals(other.upInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(mNDHFONAGNL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(gachaId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(mNPCOHFBLFD); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(gachaCeiling); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 98); + output.writeStringNoTag(historyUrl); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 106); + output.writeStringNoTag(detailUrl); + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < featured.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(featured.array()[i]); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < upInfo.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(upInfo.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mNDHFONAGNL); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mNPCOHFBLFD); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(historyUrl); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(detailUrl); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * featured.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(featured); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * upInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(upInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GachaInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // mNDHFONAGNL + mNDHFONAGNL = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // gachaId + gachaId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // mNPCOHFBLFD + mNPCOHFBLFD = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // gachaCeiling + input.readMessage(gachaCeiling); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // historyUrl + input.readString(historyUrl); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // detailUrl + input.readString(detailUrl); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // featured [packed=true] + input.readPackedUInt32(featured, tag); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // upInfo [packed=true] + input.readPackedUInt32(upInfo, tag); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 48: { + // featured [packed=false] + tag = input.readRepeatedUInt32(featured, tag); + bitField0_ |= 0x00000100; + break; + } + case 88: { + // upInfo [packed=false] + tag = input.readRepeatedUInt32(upInfo, tag); + bitField0_ |= 0x00000200; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.mNDHFONAGNL, mNDHFONAGNL); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.gachaId, gachaId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.mNPCOHFBLFD, mNPCOHFBLFD); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.historyUrl, historyUrl); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.detailUrl, detailUrl); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedUInt32(FieldNames.featured, featured); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedUInt32(FieldNames.upInfo, upInfo); + } + output.endObject(); + } + + @Override + public GachaInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -757519100: { + if (input.isAtField(FieldNames.mNDHFONAGNL)) { + if (!input.trySkipNullValue()) { + mNDHFONAGNL = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -204751299: + case -2052301576: { + if (input.isAtField(FieldNames.gachaId)) { + if (!input.trySkipNullValue()) { + gachaId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1906412607: { + if (input.isAtField(FieldNames.mNPCOHFBLFD)) { + if (!input.trySkipNullValue()) { + mNPCOHFBLFD = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 507275483: + case -1792489728: { + if (input.isAtField(FieldNames.gachaCeiling)) { + if (!input.trySkipNullValue()) { + input.readMessage(gachaCeiling); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1951019067: + case 352350020: { + if (input.isAtField(FieldNames.historyUrl)) { + if (!input.trySkipNullValue()) { + input.readString(historyUrl); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1973090466: + case -1035961215: { + if (input.isAtField(FieldNames.detailUrl)) { + if (!input.trySkipNullValue()) { + input.readString(detailUrl); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -290659282: { + if (input.isAtField(FieldNames.featured)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(featured); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -839638551: + case -238815278: { + if (input.isAtField(FieldNames.upInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(upInfo); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GachaInfo clone() { + return new GachaInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GachaInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GachaInfo(), data).checkInitialized(); + } + + public static GachaInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaInfo(), input).checkInitialized(); + } + + public static GachaInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating GachaInfo messages + */ + public static MessageFactory getFactory() { + return GachaInfoFactory.INSTANCE; + } + + private enum GachaInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public GachaInfo create() { + return GachaInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + + static final FieldName mNDHFONAGNL = FieldName.forField("MNDHFONAGNL"); + + static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); + + static final FieldName mNPCOHFBLFD = FieldName.forField("MNPCOHFBLFD"); + + static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); + + static final FieldName historyUrl = FieldName.forField("historyUrl", "history_url"); + + static final FieldName detailUrl = FieldName.forField("detailUrl", "detail_url"); + + static final FieldName featured = FieldName.forField("featured"); + + static final FieldName upInfo = FieldName.forField("upInfo", "up_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java new file mode 100644 index 0000000..3436eda --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java @@ -0,0 +1,565 @@ +// 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 GachaItemOuterClass { + /** + * Protobuf type {@code GachaItem} + */ + public static final class GachaItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool is_new = 11; + */ + private boolean isNew; + + /** + * optional .ItemList token_item = 4; + */ + private final ItemListOuterClass.ItemList tokenItem = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .Item gacha_item = 7; + */ + private final ItemOuterClass.Item gachaItem = ItemOuterClass.Item.newInstance(); + + /** + * optional .ItemList transfer_item_list = 15; + */ + private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); + + private GachaItem() { + } + + /** + * @return a new empty instance of {@code GachaItem} + */ + public static GachaItem newInstance() { + return new GachaItem(); + } + + /** + * optional bool is_new = 11; + * @return whether the isNew field is set + */ + public boolean hasIsNew() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool is_new = 11; + * @return this + */ + public GachaItem clearIsNew() { + bitField0_ &= ~0x00000001; + isNew = false; + return this; + } + + /** + * optional bool is_new = 11; + * @return the isNew + */ + public boolean getIsNew() { + return isNew; + } + + /** + * optional bool is_new = 11; + * @param value the isNew to set + * @return this + */ + public GachaItem setIsNew(final boolean value) { + bitField0_ |= 0x00000001; + isNew = value; + return this; + } + + /** + * optional .ItemList token_item = 4; + * @return whether the tokenItem field is set + */ + public boolean hasTokenItem() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemList token_item = 4; + * @return this + */ + public GachaItem clearTokenItem() { + bitField0_ &= ~0x00000002; + tokenItem.clear(); + return this; + } + + /** + * optional .ItemList token_item = 4; + * + * 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 #getMutableTokenItem()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getTokenItem() { + return tokenItem; + } + + /** + * optional .ItemList token_item = 4; + * + * 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 getMutableTokenItem() { + bitField0_ |= 0x00000002; + return tokenItem; + } + + /** + * optional .ItemList token_item = 4; + * @param value the tokenItem to set + * @return this + */ + public GachaItem setTokenItem(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000002; + tokenItem.copyFrom(value); + return this; + } + + /** + * optional .Item gacha_item = 7; + * @return whether the gachaItem field is set + */ + public boolean hasGachaItem() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .Item gacha_item = 7; + * @return this + */ + public GachaItem clearGachaItem() { + bitField0_ &= ~0x00000004; + gachaItem.clear(); + return this; + } + + /** + * optional .Item gacha_item = 7; + * + * 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 #getMutableGachaItem()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemOuterClass.Item getGachaItem() { + return gachaItem; + } + + /** + * optional .Item gacha_item = 7; + * + * 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 ItemOuterClass.Item getMutableGachaItem() { + bitField0_ |= 0x00000004; + return gachaItem; + } + + /** + * optional .Item gacha_item = 7; + * @param value the gachaItem to set + * @return this + */ + public GachaItem setGachaItem(final ItemOuterClass.Item value) { + bitField0_ |= 0x00000004; + gachaItem.copyFrom(value); + return this; + } + + /** + * optional .ItemList transfer_item_list = 15; + * @return whether the transferItemList field is set + */ + public boolean hasTransferItemList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ItemList transfer_item_list = 15; + * @return this + */ + public GachaItem clearTransferItemList() { + bitField0_ &= ~0x00000008; + transferItemList.clear(); + return this; + } + + /** + * optional .ItemList transfer_item_list = 15; + * + * 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 #getMutableTransferItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getTransferItemList() { + return transferItemList; + } + + /** + * optional .ItemList transfer_item_list = 15; + * + * 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 getMutableTransferItemList() { + bitField0_ |= 0x00000008; + return transferItemList; + } + + /** + * optional .ItemList transfer_item_list = 15; + * @param value the transferItemList to set + * @return this + */ + public GachaItem setTransferItemList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000008; + transferItemList.copyFrom(value); + return this; + } + + @Override + public GachaItem copyFrom(final GachaItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + isNew = other.isNew; + tokenItem.copyFrom(other.tokenItem); + gachaItem.copyFrom(other.gachaItem); + transferItemList.copyFrom(other.transferItemList); + } + return this; + } + + @Override + public GachaItem mergeFrom(final GachaItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIsNew()) { + setIsNew(other.isNew); + } + if (other.hasTokenItem()) { + getMutableTokenItem().mergeFrom(other.tokenItem); + } + if (other.hasGachaItem()) { + getMutableGachaItem().mergeFrom(other.gachaItem); + } + if (other.hasTransferItemList()) { + getMutableTransferItemList().mergeFrom(other.transferItemList); + } + return this; + } + + @Override + public GachaItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + isNew = false; + tokenItem.clear(); + gachaItem.clear(); + transferItemList.clear(); + return this; + } + + @Override + public GachaItem clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tokenItem.clearQuick(); + gachaItem.clearQuick(); + transferItemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GachaItem)) { + return false; + } + GachaItem other = (GachaItem) o; + return bitField0_ == other.bitField0_ + && (!hasIsNew() || isNew == other.isNew) + && (!hasTokenItem() || tokenItem.equals(other.tokenItem)) + && (!hasGachaItem() || gachaItem.equals(other.gachaItem)) + && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(isNew); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(tokenItem); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(gachaItem); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(transferItemList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(tokenItem); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(gachaItem); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GachaItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // isNew + isNew = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // tokenItem + input.readMessage(tokenItem); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // gachaItem + input.readMessage(gachaItem); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // transferItemList + input.readMessage(transferItemList); + 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.writeBool(FieldNames.isNew, isNew); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.tokenItem, tokenItem); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.gachaItem, gachaItem); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.transferItemList, transferItemList); + } + output.endObject(); + } + + @Override + public GachaItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 100473878: + case -1179762421: { + if (input.isAtField(FieldNames.isNew)) { + if (!input.trySkipNullValue()) { + isNew = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 141165740: + case 101174681: { + if (input.isAtField(FieldNames.tokenItem)) { + if (!input.trySkipNullValue()) { + input.readMessage(tokenItem); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 802515893: + case -871807056: { + if (input.isAtField(FieldNames.gachaItem)) { + if (!input.trySkipNullValue()) { + input.readMessage(gachaItem); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -997597348: + case 263056118: { + if (input.isAtField(FieldNames.transferItemList)) { + if (!input.trySkipNullValue()) { + input.readMessage(transferItemList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GachaItem clone() { + return new GachaItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GachaItem parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GachaItem(), data).checkInitialized(); + } + + public static GachaItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaItem(), input).checkInitialized(); + } + + public static GachaItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GachaItem(), input).checkInitialized(); + } + + /** + * @return factory for creating GachaItem messages + */ + public static MessageFactory getFactory() { + return GachaItemFactory.INSTANCE; + } + + private enum GachaItemFactory implements MessageFactory { + INSTANCE; + + @Override + public GachaItem create() { + return GachaItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName isNew = FieldName.forField("isNew", "is_new"); + + static final FieldName tokenItem = FieldName.forField("tokenItem", "token_item"); + + static final FieldName gachaItem = FieldName.forField("gachaItem", "gacha_item"); + + static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java new file mode 100644 index 0000000..54840f5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java @@ -0,0 +1,1488 @@ +// 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.Utf8String; + +public final class GateserverOuterClass { + /** + * Protobuf type {@code Gateserver} + */ + public static final class Gateserver extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 port = 2; + */ + private int port; + + /** + * optional bool unk1 = 3; + */ + private boolean unk1; + + /** + * optional bool unk2 = 1325; + */ + private boolean unk2; + + /** + * optional bool unk3 = 2043; + */ + private boolean unk3; + + /** + * optional string asset_bundle_url = 1; + */ + private final Utf8String assetBundleUrl = Utf8String.newEmptyInstance(); + + /** + * optional string lua_url = 4; + */ + private final Utf8String luaUrl = Utf8String.newEmptyInstance(); + + /** + * optional string region_name = 6; + */ + private final Utf8String regionName = Utf8String.newEmptyInstance(); + + /** + * optional string ex_resource_url = 12; + */ + private final Utf8String exResourceUrl = Utf8String.newEmptyInstance(); + + /** + * optional string ip = 14; + */ + private final Utf8String ip = Utf8String.newEmptyInstance(); + + /** + * optional string mdk_res_version = 427; + */ + private final Utf8String mdkResVersion = Utf8String.newEmptyInstance(); + + /** + * optional string login_white_msg = 579; + */ + private final Utf8String loginWhiteMsg = Utf8String.newEmptyInstance(); + + /** + * optional string ifix_url = 723; + */ + private final Utf8String ifixUrl = Utf8String.newEmptyInstance(); + + /** + * optional string client_secret_key = 2009; + */ + private final Utf8String clientSecretKey = Utf8String.newEmptyInstance(); + + private Gateserver() { + } + + /** + * @return a new empty instance of {@code Gateserver} + */ + public static Gateserver newInstance() { + return new Gateserver(); + } + + /** + * optional uint32 port = 2; + * @return whether the port field is set + */ + public boolean hasPort() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 port = 2; + * @return this + */ + public Gateserver clearPort() { + bitField0_ &= ~0x00000001; + port = 0; + return this; + } + + /** + * optional uint32 port = 2; + * @return the port + */ + public int getPort() { + return port; + } + + /** + * optional uint32 port = 2; + * @param value the port to set + * @return this + */ + public Gateserver setPort(final int value) { + bitField0_ |= 0x00000001; + port = value; + return this; + } + + /** + * optional bool unk1 = 3; + * @return whether the unk1 field is set + */ + public boolean hasUnk1() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool unk1 = 3; + * @return this + */ + public Gateserver clearUnk1() { + bitField0_ &= ~0x00000002; + unk1 = false; + return this; + } + + /** + * optional bool unk1 = 3; + * @return the unk1 + */ + public boolean getUnk1() { + return unk1; + } + + /** + * optional bool unk1 = 3; + * @param value the unk1 to set + * @return this + */ + public Gateserver setUnk1(final boolean value) { + bitField0_ |= 0x00000002; + unk1 = value; + return this; + } + + /** + * optional bool unk2 = 1325; + * @return whether the unk2 field is set + */ + public boolean hasUnk2() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool unk2 = 1325; + * @return this + */ + public Gateserver clearUnk2() { + bitField0_ &= ~0x00000004; + unk2 = false; + return this; + } + + /** + * optional bool unk2 = 1325; + * @return the unk2 + */ + public boolean getUnk2() { + return unk2; + } + + /** + * optional bool unk2 = 1325; + * @param value the unk2 to set + * @return this + */ + public Gateserver setUnk2(final boolean value) { + bitField0_ |= 0x00000004; + unk2 = value; + return this; + } + + /** + * optional bool unk3 = 2043; + * @return whether the unk3 field is set + */ + public boolean hasUnk3() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool unk3 = 2043; + * @return this + */ + public Gateserver clearUnk3() { + bitField0_ &= ~0x00000008; + unk3 = false; + return this; + } + + /** + * optional bool unk3 = 2043; + * @return the unk3 + */ + public boolean getUnk3() { + return unk3; + } + + /** + * optional bool unk3 = 2043; + * @param value the unk3 to set + * @return this + */ + public Gateserver setUnk3(final boolean value) { + bitField0_ |= 0x00000008; + unk3 = value; + return this; + } + + /** + * optional string asset_bundle_url = 1; + * @return whether the assetBundleUrl field is set + */ + public boolean hasAssetBundleUrl() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional string asset_bundle_url = 1; + * @return this + */ + public Gateserver clearAssetBundleUrl() { + bitField0_ &= ~0x00000010; + assetBundleUrl.clear(); + return this; + } + + /** + * optional string asset_bundle_url = 1; + * @return the assetBundleUrl + */ + public String getAssetBundleUrl() { + return assetBundleUrl.getString(); + } + + /** + * optional string asset_bundle_url = 1; + * @return internal {@code Utf8String} representation of assetBundleUrl for reading + */ + public Utf8String getAssetBundleUrlBytes() { + return this.assetBundleUrl; + } + + /** + * optional string asset_bundle_url = 1; + * @return internal {@code Utf8String} representation of assetBundleUrl for modifications + */ + public Utf8String getMutableAssetBundleUrlBytes() { + bitField0_ |= 0x00000010; + return this.assetBundleUrl; + } + + /** + * optional string asset_bundle_url = 1; + * @param value the assetBundleUrl to set + * @return this + */ + public Gateserver setAssetBundleUrl(final CharSequence value) { + bitField0_ |= 0x00000010; + assetBundleUrl.copyFrom(value); + return this; + } + + /** + * optional string asset_bundle_url = 1; + * @param value the assetBundleUrl to set + * @return this + */ + public Gateserver setAssetBundleUrl(final Utf8String value) { + bitField0_ |= 0x00000010; + assetBundleUrl.copyFrom(value); + return this; + } + + /** + * optional string lua_url = 4; + * @return whether the luaUrl field is set + */ + public boolean hasLuaUrl() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string lua_url = 4; + * @return this + */ + public Gateserver clearLuaUrl() { + bitField0_ &= ~0x00000020; + luaUrl.clear(); + return this; + } + + /** + * optional string lua_url = 4; + * @return the luaUrl + */ + public String getLuaUrl() { + return luaUrl.getString(); + } + + /** + * optional string lua_url = 4; + * @return internal {@code Utf8String} representation of luaUrl for reading + */ + public Utf8String getLuaUrlBytes() { + return this.luaUrl; + } + + /** + * optional string lua_url = 4; + * @return internal {@code Utf8String} representation of luaUrl for modifications + */ + public Utf8String getMutableLuaUrlBytes() { + bitField0_ |= 0x00000020; + return this.luaUrl; + } + + /** + * optional string lua_url = 4; + * @param value the luaUrl to set + * @return this + */ + public Gateserver setLuaUrl(final CharSequence value) { + bitField0_ |= 0x00000020; + luaUrl.copyFrom(value); + return this; + } + + /** + * optional string lua_url = 4; + * @param value the luaUrl to set + * @return this + */ + public Gateserver setLuaUrl(final Utf8String value) { + bitField0_ |= 0x00000020; + luaUrl.copyFrom(value); + return this; + } + + /** + * optional string region_name = 6; + * @return whether the regionName field is set + */ + public boolean hasRegionName() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string region_name = 6; + * @return this + */ + public Gateserver clearRegionName() { + bitField0_ &= ~0x00000040; + regionName.clear(); + return this; + } + + /** + * optional string region_name = 6; + * @return the regionName + */ + public String getRegionName() { + return regionName.getString(); + } + + /** + * optional string region_name = 6; + * @return internal {@code Utf8String} representation of regionName for reading + */ + public Utf8String getRegionNameBytes() { + return this.regionName; + } + + /** + * optional string region_name = 6; + * @return internal {@code Utf8String} representation of regionName for modifications + */ + public Utf8String getMutableRegionNameBytes() { + bitField0_ |= 0x00000040; + return this.regionName; + } + + /** + * optional string region_name = 6; + * @param value the regionName to set + * @return this + */ + public Gateserver setRegionName(final CharSequence value) { + bitField0_ |= 0x00000040; + regionName.copyFrom(value); + return this; + } + + /** + * optional string region_name = 6; + * @param value the regionName to set + * @return this + */ + public Gateserver setRegionName(final Utf8String value) { + bitField0_ |= 0x00000040; + regionName.copyFrom(value); + return this; + } + + /** + * optional string ex_resource_url = 12; + * @return whether the exResourceUrl field is set + */ + public boolean hasExResourceUrl() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string ex_resource_url = 12; + * @return this + */ + public Gateserver clearExResourceUrl() { + bitField0_ &= ~0x00000080; + exResourceUrl.clear(); + return this; + } + + /** + * optional string ex_resource_url = 12; + * @return the exResourceUrl + */ + public String getExResourceUrl() { + return exResourceUrl.getString(); + } + + /** + * optional string ex_resource_url = 12; + * @return internal {@code Utf8String} representation of exResourceUrl for reading + */ + public Utf8String getExResourceUrlBytes() { + return this.exResourceUrl; + } + + /** + * optional string ex_resource_url = 12; + * @return internal {@code Utf8String} representation of exResourceUrl for modifications + */ + public Utf8String getMutableExResourceUrlBytes() { + bitField0_ |= 0x00000080; + return this.exResourceUrl; + } + + /** + * optional string ex_resource_url = 12; + * @param value the exResourceUrl to set + * @return this + */ + public Gateserver setExResourceUrl(final CharSequence value) { + bitField0_ |= 0x00000080; + exResourceUrl.copyFrom(value); + return this; + } + + /** + * optional string ex_resource_url = 12; + * @param value the exResourceUrl to set + * @return this + */ + public Gateserver setExResourceUrl(final Utf8String value) { + bitField0_ |= 0x00000080; + exResourceUrl.copyFrom(value); + return this; + } + + /** + * optional string ip = 14; + * @return whether the ip field is set + */ + public boolean hasIp() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional string ip = 14; + * @return this + */ + public Gateserver clearIp() { + bitField0_ &= ~0x00000100; + ip.clear(); + return this; + } + + /** + * optional string ip = 14; + * @return the ip + */ + public String getIp() { + return ip.getString(); + } + + /** + * optional string ip = 14; + * @return internal {@code Utf8String} representation of ip for reading + */ + public Utf8String getIpBytes() { + return this.ip; + } + + /** + * optional string ip = 14; + * @return internal {@code Utf8String} representation of ip for modifications + */ + public Utf8String getMutableIpBytes() { + bitField0_ |= 0x00000100; + return this.ip; + } + + /** + * optional string ip = 14; + * @param value the ip to set + * @return this + */ + public Gateserver setIp(final CharSequence value) { + bitField0_ |= 0x00000100; + ip.copyFrom(value); + return this; + } + + /** + * optional string ip = 14; + * @param value the ip to set + * @return this + */ + public Gateserver setIp(final Utf8String value) { + bitField0_ |= 0x00000100; + ip.copyFrom(value); + return this; + } + + /** + * optional string mdk_res_version = 427; + * @return whether the mdkResVersion field is set + */ + public boolean hasMdkResVersion() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string mdk_res_version = 427; + * @return this + */ + public Gateserver clearMdkResVersion() { + bitField0_ &= ~0x00000200; + mdkResVersion.clear(); + return this; + } + + /** + * optional string mdk_res_version = 427; + * @return the mdkResVersion + */ + public String getMdkResVersion() { + return mdkResVersion.getString(); + } + + /** + * optional string mdk_res_version = 427; + * @return internal {@code Utf8String} representation of mdkResVersion for reading + */ + public Utf8String getMdkResVersionBytes() { + return this.mdkResVersion; + } + + /** + * optional string mdk_res_version = 427; + * @return internal {@code Utf8String} representation of mdkResVersion for modifications + */ + public Utf8String getMutableMdkResVersionBytes() { + bitField0_ |= 0x00000200; + return this.mdkResVersion; + } + + /** + * optional string mdk_res_version = 427; + * @param value the mdkResVersion to set + * @return this + */ + public Gateserver setMdkResVersion(final CharSequence value) { + bitField0_ |= 0x00000200; + mdkResVersion.copyFrom(value); + return this; + } + + /** + * optional string mdk_res_version = 427; + * @param value the mdkResVersion to set + * @return this + */ + public Gateserver setMdkResVersion(final Utf8String value) { + bitField0_ |= 0x00000200; + mdkResVersion.copyFrom(value); + return this; + } + + /** + * optional string login_white_msg = 579; + * @return whether the loginWhiteMsg field is set + */ + public boolean hasLoginWhiteMsg() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional string login_white_msg = 579; + * @return this + */ + public Gateserver clearLoginWhiteMsg() { + bitField0_ &= ~0x00000400; + loginWhiteMsg.clear(); + return this; + } + + /** + * optional string login_white_msg = 579; + * @return the loginWhiteMsg + */ + public String getLoginWhiteMsg() { + return loginWhiteMsg.getString(); + } + + /** + * optional string login_white_msg = 579; + * @return internal {@code Utf8String} representation of loginWhiteMsg for reading + */ + public Utf8String getLoginWhiteMsgBytes() { + return this.loginWhiteMsg; + } + + /** + * optional string login_white_msg = 579; + * @return internal {@code Utf8String} representation of loginWhiteMsg for modifications + */ + public Utf8String getMutableLoginWhiteMsgBytes() { + bitField0_ |= 0x00000400; + return this.loginWhiteMsg; + } + + /** + * optional string login_white_msg = 579; + * @param value the loginWhiteMsg to set + * @return this + */ + public Gateserver setLoginWhiteMsg(final CharSequence value) { + bitField0_ |= 0x00000400; + loginWhiteMsg.copyFrom(value); + return this; + } + + /** + * optional string login_white_msg = 579; + * @param value the loginWhiteMsg to set + * @return this + */ + public Gateserver setLoginWhiteMsg(final Utf8String value) { + bitField0_ |= 0x00000400; + loginWhiteMsg.copyFrom(value); + return this; + } + + /** + * optional string ifix_url = 723; + * @return whether the ifixUrl field is set + */ + public boolean hasIfixUrl() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional string ifix_url = 723; + * @return this + */ + public Gateserver clearIfixUrl() { + bitField0_ &= ~0x00000800; + ifixUrl.clear(); + return this; + } + + /** + * optional string ifix_url = 723; + * @return the ifixUrl + */ + public String getIfixUrl() { + return ifixUrl.getString(); + } + + /** + * optional string ifix_url = 723; + * @return internal {@code Utf8String} representation of ifixUrl for reading + */ + public Utf8String getIfixUrlBytes() { + return this.ifixUrl; + } + + /** + * optional string ifix_url = 723; + * @return internal {@code Utf8String} representation of ifixUrl for modifications + */ + public Utf8String getMutableIfixUrlBytes() { + bitField0_ |= 0x00000800; + return this.ifixUrl; + } + + /** + * optional string ifix_url = 723; + * @param value the ifixUrl to set + * @return this + */ + public Gateserver setIfixUrl(final CharSequence value) { + bitField0_ |= 0x00000800; + ifixUrl.copyFrom(value); + return this; + } + + /** + * optional string ifix_url = 723; + * @param value the ifixUrl to set + * @return this + */ + public Gateserver setIfixUrl(final Utf8String value) { + bitField0_ |= 0x00000800; + ifixUrl.copyFrom(value); + return this; + } + + /** + * optional string client_secret_key = 2009; + * @return whether the clientSecretKey field is set + */ + public boolean hasClientSecretKey() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string client_secret_key = 2009; + * @return this + */ + public Gateserver clearClientSecretKey() { + bitField0_ &= ~0x00001000; + clientSecretKey.clear(); + return this; + } + + /** + * optional string client_secret_key = 2009; + * @return the clientSecretKey + */ + public String getClientSecretKey() { + return clientSecretKey.getString(); + } + + /** + * optional string client_secret_key = 2009; + * @return internal {@code Utf8String} representation of clientSecretKey for reading + */ + public Utf8String getClientSecretKeyBytes() { + return this.clientSecretKey; + } + + /** + * optional string client_secret_key = 2009; + * @return internal {@code Utf8String} representation of clientSecretKey for modifications + */ + public Utf8String getMutableClientSecretKeyBytes() { + bitField0_ |= 0x00001000; + return this.clientSecretKey; + } + + /** + * optional string client_secret_key = 2009; + * @param value the clientSecretKey to set + * @return this + */ + public Gateserver setClientSecretKey(final CharSequence value) { + bitField0_ |= 0x00001000; + clientSecretKey.copyFrom(value); + return this; + } + + /** + * optional string client_secret_key = 2009; + * @param value the clientSecretKey to set + * @return this + */ + public Gateserver setClientSecretKey(final Utf8String value) { + bitField0_ |= 0x00001000; + clientSecretKey.copyFrom(value); + return this; + } + + @Override + public Gateserver copyFrom(final Gateserver other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + port = other.port; + unk1 = other.unk1; + unk2 = other.unk2; + unk3 = other.unk3; + assetBundleUrl.copyFrom(other.assetBundleUrl); + luaUrl.copyFrom(other.luaUrl); + regionName.copyFrom(other.regionName); + exResourceUrl.copyFrom(other.exResourceUrl); + ip.copyFrom(other.ip); + mdkResVersion.copyFrom(other.mdkResVersion); + loginWhiteMsg.copyFrom(other.loginWhiteMsg); + ifixUrl.copyFrom(other.ifixUrl); + clientSecretKey.copyFrom(other.clientSecretKey); + } + return this; + } + + @Override + public Gateserver mergeFrom(final Gateserver other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPort()) { + setPort(other.port); + } + if (other.hasUnk1()) { + setUnk1(other.unk1); + } + if (other.hasUnk2()) { + setUnk2(other.unk2); + } + if (other.hasUnk3()) { + setUnk3(other.unk3); + } + if (other.hasAssetBundleUrl()) { + getMutableAssetBundleUrlBytes().copyFrom(other.assetBundleUrl); + } + if (other.hasLuaUrl()) { + getMutableLuaUrlBytes().copyFrom(other.luaUrl); + } + if (other.hasRegionName()) { + getMutableRegionNameBytes().copyFrom(other.regionName); + } + if (other.hasExResourceUrl()) { + getMutableExResourceUrlBytes().copyFrom(other.exResourceUrl); + } + if (other.hasIp()) { + getMutableIpBytes().copyFrom(other.ip); + } + if (other.hasMdkResVersion()) { + getMutableMdkResVersionBytes().copyFrom(other.mdkResVersion); + } + if (other.hasLoginWhiteMsg()) { + getMutableLoginWhiteMsgBytes().copyFrom(other.loginWhiteMsg); + } + if (other.hasIfixUrl()) { + getMutableIfixUrlBytes().copyFrom(other.ifixUrl); + } + if (other.hasClientSecretKey()) { + getMutableClientSecretKeyBytes().copyFrom(other.clientSecretKey); + } + return this; + } + + @Override + public Gateserver clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + port = 0; + unk1 = false; + unk2 = false; + unk3 = false; + assetBundleUrl.clear(); + luaUrl.clear(); + regionName.clear(); + exResourceUrl.clear(); + ip.clear(); + mdkResVersion.clear(); + loginWhiteMsg.clear(); + ifixUrl.clear(); + clientSecretKey.clear(); + return this; + } + + @Override + public Gateserver clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + assetBundleUrl.clear(); + luaUrl.clear(); + regionName.clear(); + exResourceUrl.clear(); + ip.clear(); + mdkResVersion.clear(); + loginWhiteMsg.clear(); + ifixUrl.clear(); + clientSecretKey.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Gateserver)) { + return false; + } + Gateserver other = (Gateserver) o; + return bitField0_ == other.bitField0_ + && (!hasPort() || port == other.port) + && (!hasUnk1() || unk1 == other.unk1) + && (!hasUnk2() || unk2 == other.unk2) + && (!hasUnk3() || unk3 == other.unk3) + && (!hasAssetBundleUrl() || assetBundleUrl.equals(other.assetBundleUrl)) + && (!hasLuaUrl() || luaUrl.equals(other.luaUrl)) + && (!hasRegionName() || regionName.equals(other.regionName)) + && (!hasExResourceUrl() || exResourceUrl.equals(other.exResourceUrl)) + && (!hasIp() || ip.equals(other.ip)) + && (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion)) + && (!hasLoginWhiteMsg() || loginWhiteMsg.equals(other.loginWhiteMsg)) + && (!hasIfixUrl() || ifixUrl.equals(other.ifixUrl)) + && (!hasClientSecretKey() || clientSecretKey.equals(other.clientSecretKey)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(port); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(unk1); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 21224); + output.writeBoolNoTag(unk2); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 32728); + output.writeBoolNoTag(unk3); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(assetBundleUrl); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(luaUrl); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(regionName); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 98); + output.writeStringNoTag(exResourceUrl); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 114); + output.writeStringNoTag(ip); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 6874); + output.writeStringNoTag(mdkResVersion); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawLittleEndian16((short) 9370); + output.writeStringNoTag(loginWhiteMsg); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawLittleEndian16((short) 11674); + output.writeStringNoTag(ifixUrl); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawLittleEndian16((short) 32202); + output.writeStringNoTag(clientSecretKey); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(port); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 3; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 3; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(luaUrl); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(regionName); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(ip); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(mdkResVersion); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(loginWhiteMsg); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(ifixUrl); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(clientSecretKey); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Gateserver mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // port + port = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // unk1 + unk1 = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10600) { + break; + } + } + case 10600: { + // unk2 + unk2 = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16344) { + break; + } + } + case 16344: { + // unk3 + unk3 = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // assetBundleUrl + input.readString(assetBundleUrl); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // luaUrl + input.readString(luaUrl); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // regionName + input.readString(regionName); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // exResourceUrl + input.readString(exResourceUrl); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // ip + input.readString(ip); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 3418) { + break; + } + } + case 3418: { + // mdkResVersion + input.readString(mdkResVersion); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 4634) { + break; + } + } + case 4634: { + // loginWhiteMsg + input.readString(loginWhiteMsg); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 5786) { + break; + } + } + case 5786: { + // ifixUrl + input.readString(ifixUrl); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 16074) { + break; + } + } + case 16074: { + // clientSecretKey + input.readString(clientSecretKey); + bitField0_ |= 0x00001000; + 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.port, port); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.unk1, unk1); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.unk2, unk2); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.unk3, unk3); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.luaUrl, luaUrl); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.regionName, regionName); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.exResourceUrl, exResourceUrl); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeString(FieldNames.ip, ip); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeString(FieldNames.mdkResVersion, mdkResVersion); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeString(FieldNames.loginWhiteMsg, loginWhiteMsg); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeString(FieldNames.ifixUrl, ifixUrl); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeString(FieldNames.clientSecretKey, clientSecretKey); + } + output.endObject(); + } + + @Override + public Gateserver mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3446913: { + if (input.isAtField(FieldNames.port)) { + if (!input.trySkipNullValue()) { + port = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594623: { + if (input.isAtField(FieldNames.unk1)) { + if (!input.trySkipNullValue()) { + unk1 = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594624: { + if (input.isAtField(FieldNames.unk2)) { + if (!input.trySkipNullValue()) { + unk2 = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594625: { + if (input.isAtField(FieldNames.unk3)) { + if (!input.trySkipNullValue()) { + unk3 = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1116358531: + case 1973569761: { + if (input.isAtField(FieldNames.assetBundleUrl)) { + if (!input.trySkipNullValue()) { + input.readString(assetBundleUrl); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1091991977: + case 508288168: { + if (input.isAtField(FieldNames.luaUrl)) { + if (!input.trySkipNullValue()) { + input.readString(luaUrl); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1990689889: + case -1565768458: { + if (input.isAtField(FieldNames.regionName)) { + if (!input.trySkipNullValue()) { + input.readString(regionName); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1643520974: + case -1086137910: { + if (input.isAtField(FieldNames.exResourceUrl)) { + if (!input.trySkipNullValue()) { + input.readString(exResourceUrl); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3367: { + if (input.isAtField(FieldNames.ip)) { + if (!input.trySkipNullValue()) { + input.readString(ip); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1415579412: + case -204279250: { + if (input.isAtField(FieldNames.mdkResVersion)) { + if (!input.trySkipNullValue()) { + input.readString(mdkResVersion); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1235575073: + case 893116693: { + if (input.isAtField(FieldNames.loginWhiteMsg)) { + if (!input.trySkipNullValue()) { + input.readString(loginWhiteMsg); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1719409347: + case 1762383292: { + if (input.isAtField(FieldNames.ifixUrl)) { + if (!input.trySkipNullValue()) { + input.readString(ifixUrl); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -584558076: + case 904194372: { + if (input.isAtField(FieldNames.clientSecretKey)) { + if (!input.trySkipNullValue()) { + input.readString(clientSecretKey); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Gateserver clone() { + return new Gateserver().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Gateserver parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Gateserver(), data).checkInitialized(); + } + + public static Gateserver parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Gateserver(), input).checkInitialized(); + } + + public static Gateserver parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Gateserver(), input).checkInitialized(); + } + + /** + * @return factory for creating Gateserver messages + */ + public static MessageFactory getFactory() { + return GateserverFactory.INSTANCE; + } + + private enum GateserverFactory implements MessageFactory { + INSTANCE; + + @Override + public Gateserver create() { + return Gateserver.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName port = FieldName.forField("port"); + + static final FieldName unk1 = FieldName.forField("unk1"); + + static final FieldName unk2 = FieldName.forField("unk2"); + + static final FieldName unk3 = FieldName.forField("unk3"); + + static final FieldName assetBundleUrl = FieldName.forField("assetBundleUrl", "asset_bundle_url"); + + static final FieldName luaUrl = FieldName.forField("luaUrl", "lua_url"); + + static final FieldName regionName = FieldName.forField("regionName", "region_name"); + + static final FieldName exResourceUrl = FieldName.forField("exResourceUrl", "ex_resource_url"); + + static final FieldName ip = FieldName.forField("ip"); + + static final FieldName mdkResVersion = FieldName.forField("mdkResVersion", "mdk_res_version"); + + static final FieldName loginWhiteMsg = FieldName.forField("loginWhiteMsg", "login_white_msg"); + + static final FieldName ifixUrl = FieldName.forField("ifixUrl", "ifix_url"); + + static final FieldName clientSecretKey = FieldName.forField("clientSecretKey", "client_secret_key"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java b/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java new file mode 100644 index 0000000..5e3f533 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class GenderOuterClass { + /** + * Protobuf enum {@code Gender} + */ + public enum Gender implements ProtoEnum { + /** + * GenderNone = 0; + */ + GenderNone("GenderNone", 0), + + /** + * GenderMan = 1; + */ + GenderMan("GenderMan", 1), + + /** + * GenderWoman = 2; + */ + GenderWoman("GenderWoman", 2); + + /** + * GenderNone = 0; + */ + public static final int GenderNone_VALUE = 0; + + /** + * GenderMan = 1; + */ + public static final int GenderMan_VALUE = 1; + + /** + * GenderWoman = 2; + */ + public static final int GenderWoman_VALUE = 2; + + private final String name; + + private final int number; + + private Gender(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return GenderConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static Gender forNumber(int value) { + return GenderConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static Gender forNumberOr(int number, Gender other) { + Gender value = forNumber(number); + return value == null ? other : value; + } + + enum GenderConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final Gender[] lookup = new Gender[3]; + + static { + lookup[0] = GenderNone; + lookup[1] = GenderMan; + lookup[2] = GenderWoman; + } + + @Override + public final Gender forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final Gender forName(final CharSequence value) { + if (value.length() == 9) { + if (ProtoUtil.isEqual("GenderMan", value)) { + return GenderMan; + } + } + if (value.length() == 10) { + if (ProtoUtil.isEqual("GenderNone", value)) { + return GenderNone; + } + } + if (value.length() == 11) { + if (ProtoUtil.isEqual("GenderWoman", value)) { + return GenderWoman; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java new file mode 100644 index 0000000..101d846 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java @@ -0,0 +1,455 @@ +// 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 GetAllLineupDataScRspOuterClass { + /** + * Protobuf type {@code GetAllLineupDataScRsp} + */ + public static final class GetAllLineupDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional uint32 cur_index = 11; + */ + private int curIndex; + + /** + * repeated .LineupInfo lineup_list = 6; + */ + private final RepeatedMessage lineupList = RepeatedMessage.newEmptyInstance(LineupInfoOuterClass.LineupInfo.getFactory()); + + private GetAllLineupDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetAllLineupDataScRsp} + */ + public static GetAllLineupDataScRsp newInstance() { + return new GetAllLineupDataScRsp(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public GetAllLineupDataScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public GetAllLineupDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 cur_index = 11; + * @return whether the curIndex field is set + */ + public boolean hasCurIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_index = 11; + * @return this + */ + public GetAllLineupDataScRsp clearCurIndex() { + bitField0_ &= ~0x00000002; + curIndex = 0; + return this; + } + + /** + * optional uint32 cur_index = 11; + * @return the curIndex + */ + public int getCurIndex() { + return curIndex; + } + + /** + * optional uint32 cur_index = 11; + * @param value the curIndex to set + * @return this + */ + public GetAllLineupDataScRsp setCurIndex(final int value) { + bitField0_ |= 0x00000002; + curIndex = value; + return this; + } + + /** + * repeated .LineupInfo lineup_list = 6; + * @return whether the lineupList field is set + */ + public boolean hasLineupList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .LineupInfo lineup_list = 6; + * @return this + */ + public GetAllLineupDataScRsp clearLineupList() { + bitField0_ &= ~0x00000004; + lineupList.clear(); + return this; + } + + /** + * repeated .LineupInfo lineup_list = 6; + * + * 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 #getMutableLineupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLineupList() { + return lineupList; + } + + /** + * repeated .LineupInfo lineup_list = 6; + * + * 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 getMutableLineupList() { + bitField0_ |= 0x00000004; + return lineupList; + } + + /** + * repeated .LineupInfo lineup_list = 6; + * @param value the lineupList to add + * @return this + */ + public GetAllLineupDataScRsp addLineupList(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000004; + lineupList.add(value); + return this; + } + + /** + * repeated .LineupInfo lineup_list = 6; + * @param values the lineupList to add + * @return this + */ + public GetAllLineupDataScRsp addAllLineupList(final LineupInfoOuterClass.LineupInfo... values) { + bitField0_ |= 0x00000004; + lineupList.addAll(values); + return this; + } + + @Override + public GetAllLineupDataScRsp copyFrom(final GetAllLineupDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + curIndex = other.curIndex; + lineupList.copyFrom(other.lineupList); + } + return this; + } + + @Override + public GetAllLineupDataScRsp mergeFrom(final GetAllLineupDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurIndex()) { + setCurIndex(other.curIndex); + } + if (other.hasLineupList()) { + getMutableLineupList().addAll(other.lineupList); + } + return this; + } + + @Override + public GetAllLineupDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + curIndex = 0; + lineupList.clear(); + return this; + } + + @Override + public GetAllLineupDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lineupList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetAllLineupDataScRsp)) { + return false; + } + GetAllLineupDataScRsp other = (GetAllLineupDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurIndex() || curIndex == other.curIndex) + && (!hasLineupList() || lineupList.equals(other.lineupList)); + } + + @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) 88); + output.writeUInt32NoTag(curIndex); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < lineupList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(lineupList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curIndex); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * lineupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lineupList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetAllLineupDataScRsp 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 != 88) { + break; + } + } + case 88: { + // curIndex + curIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // lineupList + tag = input.readRepeatedMessage(lineupList, 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.writeUInt32(FieldNames.curIndex, curIndex); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.lineupList, lineupList); + } + output.endObject(); + } + + @Override + public GetAllLineupDataScRsp 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 537796210: + case 117333523: { + if (input.isAtField(FieldNames.curIndex)) { + if (!input.trySkipNullValue()) { + curIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 781801165: + case -1516340914: { + if (input.isAtField(FieldNames.lineupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(lineupList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetAllLineupDataScRsp clone() { + return new GetAllLineupDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetAllLineupDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetAllLineupDataScRsp(), data).checkInitialized(); + } + + public static GetAllLineupDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAllLineupDataScRsp(), input).checkInitialized(); + } + + public static GetAllLineupDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAllLineupDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetAllLineupDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetAllLineupDataScRspFactory.INSTANCE; + } + + private enum GetAllLineupDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetAllLineupDataScRsp create() { + return GetAllLineupDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curIndex = FieldName.forField("curIndex", "cur_index"); + + static final FieldName lineupList = FieldName.forField("lineupList", "lineup_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java new file mode 100644 index 0000000..7f5a651 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java @@ -0,0 +1,382 @@ +// 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 GetAvatarDataCsReqOuterClass { + /** + * Protobuf type {@code GetAvatarDataCsReq} + */ + public static final class GetAvatarDataCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool is_get_all = 11; + */ + private boolean isGetAll; + + /** + * repeated uint32 base_avatar_id_list = 15; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + private GetAvatarDataCsReq() { + } + + /** + * @return a new empty instance of {@code GetAvatarDataCsReq} + */ + public static GetAvatarDataCsReq newInstance() { + return new GetAvatarDataCsReq(); + } + + /** + * optional bool is_get_all = 11; + * @return whether the isGetAll field is set + */ + public boolean hasIsGetAll() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool is_get_all = 11; + * @return this + */ + public GetAvatarDataCsReq clearIsGetAll() { + bitField0_ &= ~0x00000001; + isGetAll = false; + return this; + } + + /** + * optional bool is_get_all = 11; + * @return the isGetAll + */ + public boolean getIsGetAll() { + return isGetAll; + } + + /** + * optional bool is_get_all = 11; + * @param value the isGetAll to set + * @return this + */ + public GetAvatarDataCsReq setIsGetAll(final boolean value) { + bitField0_ |= 0x00000001; + isGetAll = value; + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 15; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 15; + * @return this + */ + public GetAvatarDataCsReq clearBaseAvatarIdList() { + bitField0_ &= ~0x00000002; + baseAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 15; + * + * 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; + } + + /** + * repeated uint32 base_avatar_id_list = 15; + * + * 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_ |= 0x00000002; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 15; + * @param value the baseAvatarIdList to add + * @return this + */ + public GetAvatarDataCsReq addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000002; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 15; + * @param values the baseAvatarIdList to add + * @return this + */ + public GetAvatarDataCsReq addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000002; + baseAvatarIdList.addAll(values); + return this; + } + + @Override + public GetAvatarDataCsReq copyFrom(final GetAvatarDataCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + isGetAll = other.isGetAll; + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + } + return this; + } + + @Override + public GetAvatarDataCsReq mergeFrom(final GetAvatarDataCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIsGetAll()) { + setIsGetAll(other.isGetAll); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + return this; + } + + @Override + public GetAvatarDataCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + isGetAll = false; + baseAvatarIdList.clear(); + return this; + } + + @Override + public GetAvatarDataCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetAvatarDataCsReq)) { + return false; + } + GetAvatarDataCsReq other = (GetAvatarDataCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasIsGetAll() || isGetAll == other.isGetAll) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(isGetAll); + } + if ((bitField0_ & 0x00000002) != 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 += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetAvatarDataCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // isGetAll + isGetAll = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, 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 120: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.isGetAll, isGetAll); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + output.endObject(); + } + + @Override + public GetAvatarDataCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -575333323: + case 1425508131: { + if (input.isAtField(FieldNames.isGetAll)) { + if (!input.trySkipNullValue()) { + isGetAll = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetAvatarDataCsReq clone() { + return new GetAvatarDataCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetAvatarDataCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetAvatarDataCsReq(), data).checkInitialized(); + } + + public static GetAvatarDataCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAvatarDataCsReq(), input).checkInitialized(); + } + + public static GetAvatarDataCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAvatarDataCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetAvatarDataCsReq messages + */ + public static MessageFactory getFactory() { + return GetAvatarDataCsReqFactory.INSTANCE; + } + + private enum GetAvatarDataCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetAvatarDataCsReq create() { + return GetAvatarDataCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName isGetAll = FieldName.forField("isGetAll", "is_get_all"); + + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java new file mode 100644 index 0000000..336e662 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java @@ -0,0 +1,455 @@ +// 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 GetAvatarDataScRspOuterClass { + /** + * Protobuf type {@code GetAvatarDataScRsp} + */ + public static final class GetAvatarDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 12; + */ + private int retcode; + + /** + * optional bool is_get_all = 4; + */ + private boolean isGetAll; + + /** + * repeated .Avatar avatar_list = 8; + */ + private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); + + private GetAvatarDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetAvatarDataScRsp} + */ + public static GetAvatarDataScRsp newInstance() { + return new GetAvatarDataScRsp(); + } + + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public GetAvatarDataScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public GetAvatarDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional bool is_get_all = 4; + * @return whether the isGetAll field is set + */ + public boolean hasIsGetAll() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_get_all = 4; + * @return this + */ + public GetAvatarDataScRsp clearIsGetAll() { + bitField0_ &= ~0x00000002; + isGetAll = false; + return this; + } + + /** + * optional bool is_get_all = 4; + * @return the isGetAll + */ + public boolean getIsGetAll() { + return isGetAll; + } + + /** + * optional bool is_get_all = 4; + * @param value the isGetAll to set + * @return this + */ + public GetAvatarDataScRsp setIsGetAll(final boolean value) { + bitField0_ |= 0x00000002; + isGetAll = value; + return this; + } + + /** + * repeated .Avatar avatar_list = 8; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .Avatar avatar_list = 8; + * @return this + */ + public GetAvatarDataScRsp clearAvatarList() { + bitField0_ &= ~0x00000004; + avatarList.clear(); + return this; + } + + /** + * repeated .Avatar avatar_list = 8; + * + * 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 #getMutableAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarList() { + return avatarList; + } + + /** + * repeated .Avatar avatar_list = 8; + * + * 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 getMutableAvatarList() { + bitField0_ |= 0x00000004; + return avatarList; + } + + /** + * repeated .Avatar avatar_list = 8; + * @param value the avatarList to add + * @return this + */ + public GetAvatarDataScRsp addAvatarList(final AvatarOuterClass.Avatar value) { + bitField0_ |= 0x00000004; + avatarList.add(value); + return this; + } + + /** + * repeated .Avatar avatar_list = 8; + * @param values the avatarList to add + * @return this + */ + public GetAvatarDataScRsp addAllAvatarList(final AvatarOuterClass.Avatar... values) { + bitField0_ |= 0x00000004; + avatarList.addAll(values); + return this; + } + + @Override + public GetAvatarDataScRsp copyFrom(final GetAvatarDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + isGetAll = other.isGetAll; + avatarList.copyFrom(other.avatarList); + } + return this; + } + + @Override + public GetAvatarDataScRsp mergeFrom(final GetAvatarDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasIsGetAll()) { + setIsGetAll(other.isGetAll); + } + if (other.hasAvatarList()) { + getMutableAvatarList().addAll(other.avatarList); + } + return this; + } + + @Override + public GetAvatarDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + isGetAll = false; + avatarList.clear(); + return this; + } + + @Override + public GetAvatarDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetAvatarDataScRsp)) { + return false; + } + GetAvatarDataScRsp other = (GetAvatarDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasIsGetAll() || isGetAll == other.isGetAll) + && (!hasAvatarList() || avatarList.equals(other.avatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isGetAll); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(avatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetAvatarDataScRsp 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 != 32) { + break; + } + } + case 32: { + // isGetAll + isGetAll = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // avatarList + tag = input.readRepeatedMessage(avatarList, 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.writeBool(FieldNames.isGetAll, isGetAll); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.avatarList, avatarList); + } + output.endObject(); + } + + @Override + public GetAvatarDataScRsp 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 -575333323: + case 1425508131: { + if (input.isAtField(FieldNames.isGetAll)) { + if (!input.trySkipNullValue()) { + isGetAll = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetAvatarDataScRsp clone() { + return new GetAvatarDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetAvatarDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetAvatarDataScRsp(), data).checkInitialized(); + } + + public static GetAvatarDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAvatarDataScRsp(), input).checkInitialized(); + } + + public static GetAvatarDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAvatarDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetAvatarDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetAvatarDataScRspFactory.INSTANCE; + } + + private enum GetAvatarDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetAvatarDataScRsp create() { + return GetAvatarDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName isGetAll = FieldName.forField("isGetAll", "is_get_all"); + + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java new file mode 100644 index 0000000..1f06d3d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java @@ -0,0 +1,1088 @@ +// 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 GetBagScRspOuterClass { + /** + * Protobuf type {@code GetBagScRsp} + */ + public static final class GetBagScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional uint32 AGDPOHEPDDK = 14; + */ + private int aGDPOHEPDDK; + + /** + * repeated uint32 FCCFAPHDPIB = 8; + */ + private final RepeatedInt fCCFAPHDPIB = RepeatedInt.newEmptyInstance(); + + /** + * repeated .Material material_list = 1; + */ + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + */ + private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + */ + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + */ + private final RepeatedMessage waitDelResourceList = RepeatedMessage.newEmptyInstance(WaitDelResourceOuterClass.WaitDelResource.getFactory()); + + /** + * repeated .Material EANGCGPDMBM = 13; + */ + private final RepeatedMessage eANGCGPDMBM = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + + private GetBagScRsp() { + } + + /** + * @return a new empty instance of {@code GetBagScRsp} + */ + public static GetBagScRsp newInstance() { + return new GetBagScRsp(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public GetBagScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public GetBagScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 AGDPOHEPDDK = 14; + * @return whether the aGDPOHEPDDK field is set + */ + public boolean hasAGDPOHEPDDK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 AGDPOHEPDDK = 14; + * @return this + */ + public GetBagScRsp clearAGDPOHEPDDK() { + bitField0_ &= ~0x00000002; + aGDPOHEPDDK = 0; + return this; + } + + /** + * optional uint32 AGDPOHEPDDK = 14; + * @return the aGDPOHEPDDK + */ + public int getAGDPOHEPDDK() { + return aGDPOHEPDDK; + } + + /** + * optional uint32 AGDPOHEPDDK = 14; + * @param value the aGDPOHEPDDK to set + * @return this + */ + public GetBagScRsp setAGDPOHEPDDK(final int value) { + bitField0_ |= 0x00000002; + aGDPOHEPDDK = value; + return this; + } + + /** + * repeated uint32 FCCFAPHDPIB = 8; + * @return whether the fCCFAPHDPIB field is set + */ + public boolean hasFCCFAPHDPIB() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 FCCFAPHDPIB = 8; + * @return this + */ + public GetBagScRsp clearFCCFAPHDPIB() { + bitField0_ &= ~0x00000004; + fCCFAPHDPIB.clear(); + return this; + } + + /** + * repeated uint32 FCCFAPHDPIB = 8; + * + * 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 #getMutableFCCFAPHDPIB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFCCFAPHDPIB() { + return fCCFAPHDPIB; + } + + /** + * repeated uint32 FCCFAPHDPIB = 8; + * + * 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 getMutableFCCFAPHDPIB() { + bitField0_ |= 0x00000004; + return fCCFAPHDPIB; + } + + /** + * repeated uint32 FCCFAPHDPIB = 8; + * @param value the fCCFAPHDPIB to add + * @return this + */ + public GetBagScRsp addFCCFAPHDPIB(final int value) { + bitField0_ |= 0x00000004; + fCCFAPHDPIB.add(value); + return this; + } + + /** + * repeated uint32 FCCFAPHDPIB = 8; + * @param values the fCCFAPHDPIB to add + * @return this + */ + public GetBagScRsp addAllFCCFAPHDPIB(final int... values) { + bitField0_ |= 0x00000004; + fCCFAPHDPIB.addAll(values); + return this; + } + + /** + * repeated .Material material_list = 1; + * @return whether the materialList field is set + */ + public boolean hasMaterialList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .Material material_list = 1; + * @return this + */ + public GetBagScRsp clearMaterialList() { + bitField0_ &= ~0x00000008; + materialList.clear(); + return this; + } + + /** + * repeated .Material material_list = 1; + * + * 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 #getMutableMaterialList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMaterialList() { + return materialList; + } + + /** + * repeated .Material material_list = 1; + * + * 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 getMutableMaterialList() { + bitField0_ |= 0x00000008; + return materialList; + } + + /** + * repeated .Material material_list = 1; + * @param value the materialList to add + * @return this + */ + public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000008; + materialList.add(value); + return this; + } + + /** + * repeated .Material material_list = 1; + * @param values the materialList to add + * @return this + */ + public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000008; + materialList.addAll(values); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + * @return whether the equipmentList field is set + */ + public boolean hasEquipmentList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + * @return this + */ + public GetBagScRsp clearEquipmentList() { + bitField0_ &= ~0x00000010; + equipmentList.clear(); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + * + * 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 #getMutableEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipmentList() { + return equipmentList; + } + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + * + * 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 getMutableEquipmentList() { + bitField0_ |= 0x00000010; + return equipmentList; + } + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + * @param value the equipmentList to add + * @return this + */ + public GetBagScRsp addEquipmentList(final EquipmentOuterClass.Equipment value) { + bitField0_ |= 0x00000010; + equipmentList.add(value); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN KPBMGJKOKDA = 11;
+     * 
+ * + * repeated .Equipment equipment_list = 2; + * @param values the equipmentList to add + * @return this + */ + public GetBagScRsp addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { + bitField0_ |= 0x00000010; + equipmentList.addAll(values); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @return whether the relicList field is set + */ + public boolean hasRelicList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @return this + */ + public GetBagScRsp clearRelicList() { + bitField0_ &= ~0x00000020; + relicList.clear(); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * + * 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 #getMutableRelicList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRelicList() { + return relicList; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * + * 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 getMutableRelicList() { + bitField0_ |= 0x00000020; + return relicList; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @param value the relicList to add + * @return this + */ + public GetBagScRsp addRelicList(final RelicOuterClass.Relic value) { + bitField0_ |= 0x00000020; + relicList.add(value); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @param values the relicList to add + * @return this + */ + public GetBagScRsp addAllRelicList(final RelicOuterClass.Relic... values) { + bitField0_ |= 0x00000020; + relicList.addAll(values); + return this; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + * @return whether the waitDelResourceList field is set + */ + public boolean hasWaitDelResourceList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + * @return this + */ + public GetBagScRsp clearWaitDelResourceList() { + bitField0_ &= ~0x00000040; + waitDelResourceList.clear(); + return this; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + * + * 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 #getMutableWaitDelResourceList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getWaitDelResourceList() { + return waitDelResourceList; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + * + * 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 getMutableWaitDelResourceList( + ) { + bitField0_ |= 0x00000040; + return waitDelResourceList; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + * @param value the waitDelResourceList to add + * @return this + */ + public GetBagScRsp addWaitDelResourceList( + final WaitDelResourceOuterClass.WaitDelResource value) { + bitField0_ |= 0x00000040; + waitDelResourceList.add(value); + return this; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 9; + * @param values the waitDelResourceList to add + * @return this + */ + public GetBagScRsp addAllWaitDelResourceList( + final WaitDelResourceOuterClass.WaitDelResource... values) { + bitField0_ |= 0x00000040; + waitDelResourceList.addAll(values); + return this; + } + + /** + * repeated .Material EANGCGPDMBM = 13; + * @return whether the eANGCGPDMBM field is set + */ + public boolean hasEANGCGPDMBM() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .Material EANGCGPDMBM = 13; + * @return this + */ + public GetBagScRsp clearEANGCGPDMBM() { + bitField0_ &= ~0x00000080; + eANGCGPDMBM.clear(); + return this; + } + + /** + * repeated .Material EANGCGPDMBM = 13; + * + * 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 #getMutableEANGCGPDMBM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEANGCGPDMBM() { + return eANGCGPDMBM; + } + + /** + * repeated .Material EANGCGPDMBM = 13; + * + * 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 getMutableEANGCGPDMBM() { + bitField0_ |= 0x00000080; + return eANGCGPDMBM; + } + + /** + * repeated .Material EANGCGPDMBM = 13; + * @param value the eANGCGPDMBM to add + * @return this + */ + public GetBagScRsp addEANGCGPDMBM(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000080; + eANGCGPDMBM.add(value); + return this; + } + + /** + * repeated .Material EANGCGPDMBM = 13; + * @param values the eANGCGPDMBM to add + * @return this + */ + public GetBagScRsp addAllEANGCGPDMBM(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000080; + eANGCGPDMBM.addAll(values); + return this; + } + + @Override + public GetBagScRsp copyFrom(final GetBagScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + aGDPOHEPDDK = other.aGDPOHEPDDK; + fCCFAPHDPIB.copyFrom(other.fCCFAPHDPIB); + materialList.copyFrom(other.materialList); + equipmentList.copyFrom(other.equipmentList); + relicList.copyFrom(other.relicList); + waitDelResourceList.copyFrom(other.waitDelResourceList); + eANGCGPDMBM.copyFrom(other.eANGCGPDMBM); + } + return this; + } + + @Override + public GetBagScRsp mergeFrom(final GetBagScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasAGDPOHEPDDK()) { + setAGDPOHEPDDK(other.aGDPOHEPDDK); + } + if (other.hasFCCFAPHDPIB()) { + getMutableFCCFAPHDPIB().addAll(other.fCCFAPHDPIB); + } + if (other.hasMaterialList()) { + getMutableMaterialList().addAll(other.materialList); + } + if (other.hasEquipmentList()) { + getMutableEquipmentList().addAll(other.equipmentList); + } + if (other.hasRelicList()) { + getMutableRelicList().addAll(other.relicList); + } + if (other.hasWaitDelResourceList()) { + getMutableWaitDelResourceList().addAll(other.waitDelResourceList); + } + if (other.hasEANGCGPDMBM()) { + getMutableEANGCGPDMBM().addAll(other.eANGCGPDMBM); + } + return this; + } + + @Override + public GetBagScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + aGDPOHEPDDK = 0; + fCCFAPHDPIB.clear(); + materialList.clear(); + equipmentList.clear(); + relicList.clear(); + waitDelResourceList.clear(); + eANGCGPDMBM.clear(); + return this; + } + + @Override + public GetBagScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fCCFAPHDPIB.clear(); + materialList.clearQuick(); + equipmentList.clearQuick(); + relicList.clearQuick(); + waitDelResourceList.clearQuick(); + eANGCGPDMBM.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetBagScRsp)) { + return false; + } + GetBagScRsp other = (GetBagScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasAGDPOHEPDDK() || aGDPOHEPDDK == other.aGDPOHEPDDK) + && (!hasFCCFAPHDPIB() || fCCFAPHDPIB.equals(other.fCCFAPHDPIB)) + && (!hasMaterialList() || materialList.equals(other.materialList)) + && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) + && (!hasRelicList() || relicList.equals(other.relicList)) + && (!hasWaitDelResourceList() || waitDelResourceList.equals(other.waitDelResourceList)) + && (!hasEANGCGPDMBM() || eANGCGPDMBM.equals(other.eANGCGPDMBM)); + } + + @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) 112); + output.writeUInt32NoTag(aGDPOHEPDDK); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < fCCFAPHDPIB.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(fCCFAPHDPIB.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(materialList.get(i)); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < equipmentList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(equipmentList.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(relicList.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < waitDelResourceList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(waitDelResourceList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < eANGCGPDMBM.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(eANGCGPDMBM.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aGDPOHEPDDK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * fCCFAPHDPIB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(fCCFAPHDPIB); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * waitDelResourceList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(waitDelResourceList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * eANGCGPDMBM.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eANGCGPDMBM); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetBagScRsp 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 != 112) { + break; + } + } + case 112: { + // aGDPOHEPDDK + aGDPOHEPDDK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // fCCFAPHDPIB [packed=true] + input.readPackedUInt32(fCCFAPHDPIB, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // materialList + tag = input.readRepeatedMessage(materialList, tag); + bitField0_ |= 0x00000008; + if (tag != 18) { + break; + } + } + case 18: { + // equipmentList + tag = input.readRepeatedMessage(equipmentList, tag); + bitField0_ |= 0x00000010; + if (tag != 58) { + break; + } + } + case 58: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); + bitField0_ |= 0x00000020; + if (tag != 74) { + break; + } + } + case 74: { + // waitDelResourceList + tag = input.readRepeatedMessage(waitDelResourceList, tag); + bitField0_ |= 0x00000040; + if (tag != 106) { + break; + } + } + case 106: { + // eANGCGPDMBM + tag = input.readRepeatedMessage(eANGCGPDMBM, tag); + bitField0_ |= 0x00000080; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 64: { + // fCCFAPHDPIB [packed=false] + tag = input.readRepeatedUInt32(fCCFAPHDPIB, tag); + bitField0_ |= 0x00000004; + 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.aGDPOHEPDDK, aGDPOHEPDDK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.fCCFAPHDPIB, fCCFAPHDPIB); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.materialList, materialList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.relicList, relicList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.waitDelResourceList, waitDelResourceList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.eANGCGPDMBM, eANGCGPDMBM); + } + output.endObject(); + } + + @Override + public GetBagScRsp 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 953562517: { + if (input.isAtField(FieldNames.aGDPOHEPDDK)) { + if (!input.trySkipNullValue()) { + aGDPOHEPDDK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -699644354: { + if (input.isAtField(FieldNames.fCCFAPHDPIB)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(fCCFAPHDPIB); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(materialList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2007143244: + case 2109525167: { + if (input.isAtField(FieldNames.equipmentList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(equipmentList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(relicList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -299057342: + case -402862927: { + if (input.isAtField(FieldNames.waitDelResourceList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(waitDelResourceList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2055744523: { + if (input.isAtField(FieldNames.eANGCGPDMBM)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(eANGCGPDMBM); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetBagScRsp clone() { + return new GetBagScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetBagScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetBagScRsp(), data).checkInitialized(); + } + + public static GetBagScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBagScRsp(), input).checkInitialized(); + } + + public static GetBagScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBagScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetBagScRsp messages + */ + public static MessageFactory getFactory() { + return GetBagScRspFactory.INSTANCE; + } + + private enum GetBagScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetBagScRsp create() { + return GetBagScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName aGDPOHEPDDK = FieldName.forField("AGDPOHEPDDK"); + + static final FieldName fCCFAPHDPIB = FieldName.forField("FCCFAPHDPIB"); + + static final FieldName materialList = FieldName.forField("materialList", "material_list"); + + static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); + + static final FieldName relicList = FieldName.forField("relicList", "relic_list"); + + static final FieldName waitDelResourceList = FieldName.forField("waitDelResourceList", "wait_del_resource_list"); + + static final FieldName eANGCGPDMBM = FieldName.forField("EANGCGPDMBM"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java new file mode 100644 index 0000000..f2b3630 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java @@ -0,0 +1,848 @@ +// 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 GetBasicInfoScRspOuterClass { + /** + * Protobuf type {@code GetBasicInfoScRsp} + */ + public static final class GetBasicInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 last_set_nickname_time = 14; + */ + private long lastSetNicknameTime; + + /** + * optional int64 next_recover_time = 15; + */ + private long nextRecoverTime; + + /** + * optional uint32 gameplay_birthday = 2; + */ + private int gameplayBirthday; + + /** + * optional uint32 exchange_times = 3; + */ + private int exchangeTimes; + + /** + * optional uint32 cur_day = 7; + */ + private int curDay; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + /** + * optional uint32 week_cocoon_finished_count = 13; + */ + private int weekCocoonFinishedCount; + + /** + * optional .PlayerSettingInfo player_setting_info = 12; + */ + private final PlayerSettingInfoOuterClass.PlayerSettingInfo playerSettingInfo = PlayerSettingInfoOuterClass.PlayerSettingInfo.newInstance(); + + private GetBasicInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetBasicInfoScRsp} + */ + public static GetBasicInfoScRsp newInstance() { + return new GetBasicInfoScRsp(); + } + + /** + * optional int64 last_set_nickname_time = 14; + * @return whether the lastSetNicknameTime field is set + */ + public boolean hasLastSetNicknameTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 last_set_nickname_time = 14; + * @return this + */ + public GetBasicInfoScRsp clearLastSetNicknameTime() { + bitField0_ &= ~0x00000001; + lastSetNicknameTime = 0L; + return this; + } + + /** + * optional int64 last_set_nickname_time = 14; + * @return the lastSetNicknameTime + */ + public long getLastSetNicknameTime() { + return lastSetNicknameTime; + } + + /** + * optional int64 last_set_nickname_time = 14; + * @param value the lastSetNicknameTime to set + * @return this + */ + public GetBasicInfoScRsp setLastSetNicknameTime(final long value) { + bitField0_ |= 0x00000001; + lastSetNicknameTime = value; + return this; + } + + /** + * optional int64 next_recover_time = 15; + * @return whether the nextRecoverTime field is set + */ + public boolean hasNextRecoverTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 next_recover_time = 15; + * @return this + */ + public GetBasicInfoScRsp clearNextRecoverTime() { + bitField0_ &= ~0x00000002; + nextRecoverTime = 0L; + return this; + } + + /** + * optional int64 next_recover_time = 15; + * @return the nextRecoverTime + */ + public long getNextRecoverTime() { + return nextRecoverTime; + } + + /** + * optional int64 next_recover_time = 15; + * @param value the nextRecoverTime to set + * @return this + */ + public GetBasicInfoScRsp setNextRecoverTime(final long value) { + bitField0_ |= 0x00000002; + nextRecoverTime = value; + return this; + } + + /** + * optional uint32 gameplay_birthday = 2; + * @return whether the gameplayBirthday field is set + */ + public boolean hasGameplayBirthday() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 gameplay_birthday = 2; + * @return this + */ + public GetBasicInfoScRsp clearGameplayBirthday() { + bitField0_ &= ~0x00000004; + gameplayBirthday = 0; + return this; + } + + /** + * optional uint32 gameplay_birthday = 2; + * @return the gameplayBirthday + */ + public int getGameplayBirthday() { + return gameplayBirthday; + } + + /** + * optional uint32 gameplay_birthday = 2; + * @param value the gameplayBirthday to set + * @return this + */ + public GetBasicInfoScRsp setGameplayBirthday(final int value) { + bitField0_ |= 0x00000004; + gameplayBirthday = value; + return this; + } + + /** + * optional uint32 exchange_times = 3; + * @return whether the exchangeTimes field is set + */ + public boolean hasExchangeTimes() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 exchange_times = 3; + * @return this + */ + public GetBasicInfoScRsp clearExchangeTimes() { + bitField0_ &= ~0x00000008; + exchangeTimes = 0; + return this; + } + + /** + * optional uint32 exchange_times = 3; + * @return the exchangeTimes + */ + public int getExchangeTimes() { + return exchangeTimes; + } + + /** + * optional uint32 exchange_times = 3; + * @param value the exchangeTimes to set + * @return this + */ + public GetBasicInfoScRsp setExchangeTimes(final int value) { + bitField0_ |= 0x00000008; + exchangeTimes = value; + return this; + } + + /** + * optional uint32 cur_day = 7; + * @return whether the curDay field is set + */ + public boolean hasCurDay() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 cur_day = 7; + * @return this + */ + public GetBasicInfoScRsp clearCurDay() { + bitField0_ &= ~0x00000010; + curDay = 0; + return this; + } + + /** + * optional uint32 cur_day = 7; + * @return the curDay + */ + public int getCurDay() { + return curDay; + } + + /** + * optional uint32 cur_day = 7; + * @param value the curDay to set + * @return this + */ + public GetBasicInfoScRsp setCurDay(final int value) { + bitField0_ |= 0x00000010; + curDay = value; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public GetBasicInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000020; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public GetBasicInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000020; + retcode = value; + return this; + } + + /** + * optional uint32 week_cocoon_finished_count = 13; + * @return whether the weekCocoonFinishedCount field is set + */ + public boolean hasWeekCocoonFinishedCount() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 week_cocoon_finished_count = 13; + * @return this + */ + public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { + bitField0_ &= ~0x00000040; + weekCocoonFinishedCount = 0; + return this; + } + + /** + * optional uint32 week_cocoon_finished_count = 13; + * @return the weekCocoonFinishedCount + */ + public int getWeekCocoonFinishedCount() { + return weekCocoonFinishedCount; + } + + /** + * optional uint32 week_cocoon_finished_count = 13; + * @param value the weekCocoonFinishedCount to set + * @return this + */ + public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { + bitField0_ |= 0x00000040; + weekCocoonFinishedCount = value; + return this; + } + + /** + * optional .PlayerSettingInfo player_setting_info = 12; + * @return whether the playerSettingInfo field is set + */ + public boolean hasPlayerSettingInfo() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .PlayerSettingInfo player_setting_info = 12; + * @return this + */ + public GetBasicInfoScRsp clearPlayerSettingInfo() { + bitField0_ &= ~0x00000080; + playerSettingInfo.clear(); + return this; + } + + /** + * optional .PlayerSettingInfo player_setting_info = 12; + * + * 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 #getMutablePlayerSettingInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerSettingInfoOuterClass.PlayerSettingInfo getPlayerSettingInfo() { + return playerSettingInfo; + } + + /** + * optional .PlayerSettingInfo player_setting_info = 12; + * + * 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 PlayerSettingInfoOuterClass.PlayerSettingInfo getMutablePlayerSettingInfo() { + bitField0_ |= 0x00000080; + return playerSettingInfo; + } + + /** + * optional .PlayerSettingInfo player_setting_info = 12; + * @param value the playerSettingInfo to set + * @return this + */ + public GetBasicInfoScRsp setPlayerSettingInfo( + final PlayerSettingInfoOuterClass.PlayerSettingInfo value) { + bitField0_ |= 0x00000080; + playerSettingInfo.copyFrom(value); + return this; + } + + @Override + public GetBasicInfoScRsp copyFrom(final GetBasicInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lastSetNicknameTime = other.lastSetNicknameTime; + nextRecoverTime = other.nextRecoverTime; + gameplayBirthday = other.gameplayBirthday; + exchangeTimes = other.exchangeTimes; + curDay = other.curDay; + retcode = other.retcode; + weekCocoonFinishedCount = other.weekCocoonFinishedCount; + playerSettingInfo.copyFrom(other.playerSettingInfo); + } + return this; + } + + @Override + public GetBasicInfoScRsp mergeFrom(final GetBasicInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLastSetNicknameTime()) { + setLastSetNicknameTime(other.lastSetNicknameTime); + } + if (other.hasNextRecoverTime()) { + setNextRecoverTime(other.nextRecoverTime); + } + if (other.hasGameplayBirthday()) { + setGameplayBirthday(other.gameplayBirthday); + } + if (other.hasExchangeTimes()) { + setExchangeTimes(other.exchangeTimes); + } + if (other.hasCurDay()) { + setCurDay(other.curDay); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasWeekCocoonFinishedCount()) { + setWeekCocoonFinishedCount(other.weekCocoonFinishedCount); + } + if (other.hasPlayerSettingInfo()) { + getMutablePlayerSettingInfo().mergeFrom(other.playerSettingInfo); + } + return this; + } + + @Override + public GetBasicInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lastSetNicknameTime = 0L; + nextRecoverTime = 0L; + gameplayBirthday = 0; + exchangeTimes = 0; + curDay = 0; + retcode = 0; + weekCocoonFinishedCount = 0; + playerSettingInfo.clear(); + return this; + } + + @Override + public GetBasicInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + playerSettingInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetBasicInfoScRsp)) { + return false; + } + GetBasicInfoScRsp other = (GetBasicInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasLastSetNicknameTime() || lastSetNicknameTime == other.lastSetNicknameTime) + && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) + && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) + && (!hasExchangeTimes() || exchangeTimes == other.exchangeTimes) + && (!hasCurDay() || curDay == other.curDay) + && (!hasRetcode() || retcode == other.retcode) + && (!hasWeekCocoonFinishedCount() || weekCocoonFinishedCount == other.weekCocoonFinishedCount) + && (!hasPlayerSettingInfo() || playerSettingInfo.equals(other.playerSettingInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeInt64NoTag(lastSetNicknameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeInt64NoTag(nextRecoverTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(gameplayBirthday); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(exchangeTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(curDay); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(weekCocoonFinishedCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(playerSettingInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(lastSetNicknameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exchangeTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curDay); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerSettingInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetBasicInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // lastSetNicknameTime + lastSetNicknameTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // nextRecoverTime + nextRecoverTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // gameplayBirthday + gameplayBirthday = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // exchangeTimes + exchangeTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // curDay + curDay = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // weekCocoonFinishedCount + weekCocoonFinishedCount = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // playerSettingInfo + input.readMessage(playerSettingInfo); + bitField0_ |= 0x00000080; + 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.writeInt64(FieldNames.lastSetNicknameTime, lastSetNicknameTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.exchangeTimes, exchangeTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.curDay, curDay); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.playerSettingInfo, playerSettingInfo); + } + output.endObject(); + } + + @Override + public GetBasicInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1278606439: + case 400029048: { + if (input.isAtField(FieldNames.lastSetNicknameTime)) { + if (!input.trySkipNullValue()) { + lastSetNicknameTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1964148386: + case 394600084: { + if (input.isAtField(FieldNames.nextRecoverTime)) { + if (!input.trySkipNullValue()) { + nextRecoverTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 686542531: + case 172986486: { + if (input.isAtField(FieldNames.gameplayBirthday)) { + if (!input.trySkipNullValue()) { + gameplayBirthday = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1371137763: + case -119434710: { + if (input.isAtField(FieldNames.exchangeTimes)) { + if (!input.trySkipNullValue()) { + exchangeTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1349164740: + case 1126372637: { + if (input.isAtField(FieldNames.curDay)) { + if (!input.trySkipNullValue()) { + curDay = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1387396786: + case 668486783: { + if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { + if (!input.trySkipNullValue()) { + weekCocoonFinishedCount = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 616260989: + case -1071462949: { + if (input.isAtField(FieldNames.playerSettingInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerSettingInfo); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetBasicInfoScRsp clone() { + return new GetBasicInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetBasicInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetBasicInfoScRsp(), data).checkInitialized(); + } + + public static GetBasicInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBasicInfoScRsp(), input).checkInitialized(); + } + + public static GetBasicInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBasicInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetBasicInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetBasicInfoScRspFactory.INSTANCE; + } + + private enum GetBasicInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetBasicInfoScRsp create() { + return GetBasicInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lastSetNicknameTime = FieldName.forField("lastSetNicknameTime", "last_set_nickname_time"); + + static final FieldName nextRecoverTime = FieldName.forField("nextRecoverTime", "next_recover_time"); + + static final FieldName gameplayBirthday = FieldName.forField("gameplayBirthday", "gameplay_birthday"); + + static final FieldName exchangeTimes = FieldName.forField("exchangeTimes", "exchange_times"); + + static final FieldName curDay = FieldName.forField("curDay", "cur_day"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName weekCocoonFinishedCount = FieldName.forField("weekCocoonFinishedCount", "week_cocoon_finished_count"); + + static final FieldName playerSettingInfo = FieldName.forField("playerSettingInfo", "player_setting_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java new file mode 100644 index 0000000..99666ef --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java @@ -0,0 +1,394 @@ +// 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 GetChallengeScRspOuterClass { + /** + * Protobuf type {@code GetChallengeScRsp} + */ + public static final class GetChallengeScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * repeated .Challenge challenge_list = 11; + */ + private final RepeatedMessage challengeList = RepeatedMessage.newEmptyInstance(ChallengeOuterClass.Challenge.getFactory()); + + private GetChallengeScRsp() { + } + + /** + * @return a new empty instance of {@code GetChallengeScRsp} + */ + public static GetChallengeScRsp newInstance() { + return new GetChallengeScRsp(); + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public GetChallengeScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public GetChallengeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated .Challenge challenge_list = 11; + * @return whether the challengeList field is set + */ + public boolean hasChallengeList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .Challenge challenge_list = 11; + * @return this + */ + public GetChallengeScRsp clearChallengeList() { + bitField0_ &= ~0x00000002; + challengeList.clear(); + return this; + } + + /** + * repeated .Challenge challenge_list = 11; + * + * 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 #getMutableChallengeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChallengeList() { + return challengeList; + } + + /** + * repeated .Challenge challenge_list = 11; + * + * 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 getMutableChallengeList() { + bitField0_ |= 0x00000002; + return challengeList; + } + + /** + * repeated .Challenge challenge_list = 11; + * @param value the challengeList to add + * @return this + */ + public GetChallengeScRsp addChallengeList(final ChallengeOuterClass.Challenge value) { + bitField0_ |= 0x00000002; + challengeList.add(value); + return this; + } + + /** + * repeated .Challenge challenge_list = 11; + * @param values the challengeList to add + * @return this + */ + public GetChallengeScRsp addAllChallengeList(final ChallengeOuterClass.Challenge... values) { + bitField0_ |= 0x00000002; + challengeList.addAll(values); + return this; + } + + @Override + public GetChallengeScRsp copyFrom(final GetChallengeScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + challengeList.copyFrom(other.challengeList); + } + return this; + } + + @Override + public GetChallengeScRsp mergeFrom(final GetChallengeScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasChallengeList()) { + getMutableChallengeList().addAll(other.challengeList); + } + return this; + } + + @Override + public GetChallengeScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + challengeList.clear(); + return this; + } + + @Override + public GetChallengeScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChallengeScRsp)) { + return false; + } + GetChallengeScRsp other = (GetChallengeScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasChallengeList() || challengeList.equals(other.challengeList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < challengeList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(challengeList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * challengeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengeList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChallengeScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // challengeList + tag = input.readRepeatedMessage(challengeList, 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.challengeList, challengeList); + } + output.endObject(); + } + + @Override + public GetChallengeScRsp 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 -812402783: + case 602944250: { + if (input.isAtField(FieldNames.challengeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(challengeList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChallengeScRsp clone() { + return new GetChallengeScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChallengeScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChallengeScRsp(), data).checkInitialized(); + } + + public static GetChallengeScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetChallengeScRsp(), input).checkInitialized(); + } + + public static GetChallengeScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetChallengeScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChallengeScRsp messages + */ + public static MessageFactory getFactory() { + return GetChallengeScRspFactory.INSTANCE; + } + + private enum GetChallengeScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChallengeScRsp create() { + return GetChallengeScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName challengeList = FieldName.forField("challengeList", "challenge_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java new file mode 100644 index 0000000..b3daa9c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java @@ -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 GetCurChallengeScRspOuterClass { + /** + * Protobuf type {@code GetCurChallengeScRsp} + */ + public static final class GetCurChallengeScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + /** + * optional .ChallengeInfo challenge_info = 15; + */ + private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); + + private GetCurChallengeScRsp() { + } + + /** + * @return a new empty instance of {@code GetCurChallengeScRsp} + */ + public static GetCurChallengeScRsp newInstance() { + return new GetCurChallengeScRsp(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public GetCurChallengeScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public GetCurChallengeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ChallengeInfo challenge_info = 15; + * @return whether the challengeInfo field is set + */ + public boolean hasChallengeInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChallengeInfo challenge_info = 15; + * @return this + */ + public GetCurChallengeScRsp clearChallengeInfo() { + bitField0_ &= ~0x00000002; + challengeInfo.clear(); + return this; + } + + /** + * optional .ChallengeInfo challenge_info = 15; + * + * 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 #getMutableChallengeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { + return challengeInfo; + } + + /** + * optional .ChallengeInfo challenge_info = 15; + * + * 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 ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { + bitField0_ |= 0x00000002; + return challengeInfo; + } + + /** + * optional .ChallengeInfo challenge_info = 15; + * @param value the challengeInfo to set + * @return this + */ + public GetCurChallengeScRsp setChallengeInfo( + final ChallengeInfoOuterClass.ChallengeInfo value) { + bitField0_ |= 0x00000002; + challengeInfo.copyFrom(value); + return this; + } + + @Override + public GetCurChallengeScRsp copyFrom(final GetCurChallengeScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + challengeInfo.copyFrom(other.challengeInfo); + } + return this; + } + + @Override + public GetCurChallengeScRsp mergeFrom(final GetCurChallengeScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasChallengeInfo()) { + getMutableChallengeInfo().mergeFrom(other.challengeInfo); + } + return this; + } + + @Override + public GetCurChallengeScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + challengeInfo.clear(); + return this; + } + + @Override + public GetCurChallengeScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetCurChallengeScRsp)) { + return false; + } + GetCurChallengeScRsp other = (GetCurChallengeScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(challengeInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetCurChallengeScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // challengeInfo + input.readMessage(challengeInfo); + 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.challengeInfo, challengeInfo); + } + output.endObject(); + } + + @Override + public GetCurChallengeScRsp 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 -812487759: + case 602859274: { + if (input.isAtField(FieldNames.challengeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(challengeInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetCurChallengeScRsp clone() { + return new GetCurChallengeScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetCurChallengeScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetCurChallengeScRsp(), data).checkInitialized(); + } + + public static GetCurChallengeScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCurChallengeScRsp(), input).checkInitialized(); + } + + public static GetCurChallengeScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCurChallengeScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetCurChallengeScRsp messages + */ + public static MessageFactory getFactory() { + return GetCurChallengeScRspFactory.INSTANCE; + } + + private enum GetCurChallengeScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetCurChallengeScRsp create() { + return GetCurChallengeScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName challengeInfo = FieldName.forField("challengeInfo", "challenge_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java new file mode 100644 index 0000000..da265f2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java @@ -0,0 +1,360 @@ +// 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 GetCurLineupDataScRspOuterClass { + /** + * Protobuf type {@code GetCurLineupDataScRsp} + */ + public static final class GetCurLineupDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional .LineupInfo lineup = 9; + */ + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + private GetCurLineupDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetCurLineupDataScRsp} + */ + public static GetCurLineupDataScRsp newInstance() { + return new GetCurLineupDataScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public GetCurLineupDataScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public GetCurLineupDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .LineupInfo lineup = 9; + * @return whether the lineup field is set + */ + public boolean hasLineup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .LineupInfo lineup = 9; + * @return this + */ + public GetCurLineupDataScRsp clearLineup() { + bitField0_ &= ~0x00000002; + lineup.clear(); + return this; + } + + /** + * optional .LineupInfo lineup = 9; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 9; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 9; + * @param value the lineup to set + * @return this + */ + public GetCurLineupDataScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000002; + lineup.copyFrom(value); + return this; + } + + @Override + public GetCurLineupDataScRsp copyFrom(final GetCurLineupDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + lineup.copyFrom(other.lineup); + } + return this; + } + + @Override + public GetCurLineupDataScRsp mergeFrom(final GetCurLineupDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasLineup()) { + getMutableLineup().mergeFrom(other.lineup); + } + return this; + } + + @Override + public GetCurLineupDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + lineup.clear(); + return this; + } + + @Override + public GetCurLineupDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lineup.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetCurLineupDataScRsp)) { + return false; + } + GetCurLineupDataScRsp other = (GetCurLineupDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasLineup() || lineup.equals(other.lineup)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(lineup); + } + } + + @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); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetCurLineupDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // lineup + input.readMessage(lineup); + 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.lineup, lineup); + } + output.endObject(); + } + + @Override + public GetCurLineupDataScRsp 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetCurLineupDataScRsp clone() { + return new GetCurLineupDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetCurLineupDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetCurLineupDataScRsp(), data).checkInitialized(); + } + + public static GetCurLineupDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCurLineupDataScRsp(), input).checkInitialized(); + } + + public static GetCurLineupDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCurLineupDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetCurLineupDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetCurLineupDataScRspFactory.INSTANCE; + } + + private enum GetCurLineupDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetCurLineupDataScRsp create() { + return GetCurLineupDataScRsp.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"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java new file mode 100644 index 0000000..4a05301 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java @@ -0,0 +1,360 @@ +// 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 GetCurSceneInfoScRspOuterClass { + /** + * Protobuf type {@code GetCurSceneInfoScRsp} + */ + public static final class GetCurSceneInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 9; + */ + private int retcode; + + /** + * optional .SceneInfo scene = 15; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + + private GetCurSceneInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetCurSceneInfoScRsp} + */ + public static GetCurSceneInfoScRsp newInstance() { + return new GetCurSceneInfoScRsp(); + } + + /** + * optional uint32 retcode = 9; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 9; + * @return this + */ + public GetCurSceneInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 9; + * @param value the retcode to set + * @return this + */ + public GetCurSceneInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .SceneInfo scene = 15; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SceneInfo scene = 15; + * @return this + */ + public GetCurSceneInfoScRsp clearScene() { + bitField0_ &= ~0x00000002; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 15; + * + * 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; + } + + /** + * optional .SceneInfo scene = 15; + * + * 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; + } + + /** + * optional .SceneInfo scene = 15; + * @param value the scene to set + * @return this + */ + public GetCurSceneInfoScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000002; + scene.copyFrom(value); + return this; + } + + @Override + public GetCurSceneInfoScRsp copyFrom(final GetCurSceneInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + scene.copyFrom(other.scene); + } + return this; + } + + @Override + public GetCurSceneInfoScRsp mergeFrom(final GetCurSceneInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } + return this; + } + + @Override + public GetCurSceneInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + scene.clear(); + return this; + } + + @Override + public GetCurSceneInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scene.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetCurSceneInfoScRsp)) { + return false; + } + GetCurSceneInfoScRsp other = (GetCurSceneInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasScene() || scene.equals(other.scene)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(scene); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetCurSceneInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // 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.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.scene, scene); + } + output.endObject(); + } + + @Override + public GetCurSceneInfoScRsp 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 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 GetCurSceneInfoScRsp clone() { + return new GetCurSceneInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetCurSceneInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetCurSceneInfoScRsp(), data).checkInitialized(); + } + + public static GetCurSceneInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCurSceneInfoScRsp(), input).checkInitialized(); + } + + public static GetCurSceneInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCurSceneInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetCurSceneInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetCurSceneInfoScRspFactory.INSTANCE; + } + + private enum GetCurSceneInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetCurSceneInfoScRsp create() { + return GetCurSceneInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName scene = FieldName.forField("scene"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java new file mode 100644 index 0000000..f411d71 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java @@ -0,0 +1,511 @@ +// 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 GetFriendListInfoScRspOuterClass { + /** + * Protobuf type {@code GetFriendListInfoScRsp} + */ + public static final class GetFriendListInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * repeated .SimpleInfo simple_info = 1; + */ + private final RepeatedMessage simpleInfo = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); + + /** + * repeated .FriendListInfo friend_list = 14; + */ + private final RepeatedMessage friendList = RepeatedMessage.newEmptyInstance(FriendListInfoOuterClass.FriendListInfo.getFactory()); + + private GetFriendListInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetFriendListInfoScRsp} + */ + public static GetFriendListInfoScRsp newInstance() { + return new GetFriendListInfoScRsp(); + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public GetFriendListInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public GetFriendListInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated .SimpleInfo simple_info = 1; + * @return whether the simpleInfo field is set + */ + public boolean hasSimpleInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SimpleInfo simple_info = 1; + * @return this + */ + public GetFriendListInfoScRsp clearSimpleInfo() { + bitField0_ &= ~0x00000002; + simpleInfo.clear(); + return this; + } + + /** + * repeated .SimpleInfo simple_info = 1; + * + * 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 #getMutableSimpleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSimpleInfo() { + return simpleInfo; + } + + /** + * repeated .SimpleInfo simple_info = 1; + * + * 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 getMutableSimpleInfo() { + bitField0_ |= 0x00000002; + return simpleInfo; + } + + /** + * repeated .SimpleInfo simple_info = 1; + * @param value the simpleInfo to add + * @return this + */ + public GetFriendListInfoScRsp addSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + bitField0_ |= 0x00000002; + simpleInfo.add(value); + return this; + } + + /** + * repeated .SimpleInfo simple_info = 1; + * @param values the simpleInfo to add + * @return this + */ + public GetFriendListInfoScRsp addAllSimpleInfo( + final SimpleInfoOuterClass.SimpleInfo... values) { + bitField0_ |= 0x00000002; + simpleInfo.addAll(values); + return this; + } + + /** + * repeated .FriendListInfo friend_list = 14; + * @return whether the friendList field is set + */ + public boolean hasFriendList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .FriendListInfo friend_list = 14; + * @return this + */ + public GetFriendListInfoScRsp clearFriendList() { + bitField0_ &= ~0x00000004; + friendList.clear(); + return this; + } + + /** + * repeated .FriendListInfo friend_list = 14; + * + * 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 #getMutableFriendList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFriendList() { + return friendList; + } + + /** + * repeated .FriendListInfo friend_list = 14; + * + * 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 getMutableFriendList() { + bitField0_ |= 0x00000004; + return friendList; + } + + /** + * repeated .FriendListInfo friend_list = 14; + * @param value the friendList to add + * @return this + */ + public GetFriendListInfoScRsp addFriendList( + final FriendListInfoOuterClass.FriendListInfo value) { + bitField0_ |= 0x00000004; + friendList.add(value); + return this; + } + + /** + * repeated .FriendListInfo friend_list = 14; + * @param values the friendList to add + * @return this + */ + public GetFriendListInfoScRsp addAllFriendList( + final FriendListInfoOuterClass.FriendListInfo... values) { + bitField0_ |= 0x00000004; + friendList.addAll(values); + return this; + } + + @Override + public GetFriendListInfoScRsp copyFrom(final GetFriendListInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + simpleInfo.copyFrom(other.simpleInfo); + friendList.copyFrom(other.friendList); + } + return this; + } + + @Override + public GetFriendListInfoScRsp mergeFrom(final GetFriendListInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasSimpleInfo()) { + getMutableSimpleInfo().addAll(other.simpleInfo); + } + if (other.hasFriendList()) { + getMutableFriendList().addAll(other.friendList); + } + return this; + } + + @Override + public GetFriendListInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + simpleInfo.clear(); + friendList.clear(); + return this; + } + + @Override + public GetFriendListInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + simpleInfo.clearQuick(); + friendList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFriendListInfoScRsp)) { + return false; + } + GetFriendListInfoScRsp other = (GetFriendListInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasSimpleInfo() || simpleInfo.equals(other.simpleInfo)) + && (!hasFriendList() || friendList.equals(other.friendList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < simpleInfo.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(simpleInfo.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < friendList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(friendList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * simpleInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(simpleInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * friendList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friendList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFriendListInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // simpleInfo + tag = input.readRepeatedMessage(simpleInfo, tag); + bitField0_ |= 0x00000002; + if (tag != 114) { + break; + } + } + case 114: { + // friendList + tag = input.readRepeatedMessage(friendList, 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.simpleInfo, simpleInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.friendList, friendList); + } + output.endObject(); + } + + @Override + public GetFriendListInfoScRsp 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 -1431903872: + case -1419171045: { + if (input.isAtField(FieldNames.simpleInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(simpleInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1756909476: + case 1388007839: { + if (input.isAtField(FieldNames.friendList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(friendList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFriendListInfoScRsp clone() { + return new GetFriendListInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFriendListInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFriendListInfoScRsp(), data).checkInitialized(); + } + + public static GetFriendListInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetFriendListInfoScRsp(), input).checkInitialized(); + } + + public static GetFriendListInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetFriendListInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFriendListInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetFriendListInfoScRspFactory.INSTANCE; + } + + private enum GetFriendListInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFriendListInfoScRsp create() { + return GetFriendListInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName simpleInfo = FieldName.forField("simpleInfo", "simple_info"); + + static final FieldName friendList = FieldName.forField("friendList", "friend_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java new file mode 100644 index 0000000..1bb0de4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java @@ -0,0 +1,695 @@ +// 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 GetGachaInfoScRspOuterClass { + /** + * Protobuf type {@code GetGachaInfoScRsp} + */ + public static final class GetGachaInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LDHOFGOIKPI = 1; + */ + private int lDHOFGOIKPI; + + /** + * optional uint32 NMAOJEIEDAK = 2; + */ + private int nMAOJEIEDAK; + + /** + * optional uint32 gacha_random = 5; + */ + private int gachaRandom; + + /** + * optional uint32 PGJDNMCPFIE = 8; + */ + private int pGJDNMCPFIE; + + /** + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + * repeated .GachaInfo gacha_info_list = 10; + */ + private final RepeatedMessage gachaInfoList = RepeatedMessage.newEmptyInstance(GachaInfoOuterClass.GachaInfo.getFactory()); + + private GetGachaInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetGachaInfoScRsp} + */ + public static GetGachaInfoScRsp newInstance() { + return new GetGachaInfoScRsp(); + } + + /** + * optional uint32 LDHOFGOIKPI = 1; + * @return whether the lDHOFGOIKPI field is set + */ + public boolean hasLDHOFGOIKPI() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LDHOFGOIKPI = 1; + * @return this + */ + public GetGachaInfoScRsp clearLDHOFGOIKPI() { + bitField0_ &= ~0x00000001; + lDHOFGOIKPI = 0; + return this; + } + + /** + * optional uint32 LDHOFGOIKPI = 1; + * @return the lDHOFGOIKPI + */ + public int getLDHOFGOIKPI() { + return lDHOFGOIKPI; + } + + /** + * optional uint32 LDHOFGOIKPI = 1; + * @param value the lDHOFGOIKPI to set + * @return this + */ + public GetGachaInfoScRsp setLDHOFGOIKPI(final int value) { + bitField0_ |= 0x00000001; + lDHOFGOIKPI = value; + return this; + } + + /** + * optional uint32 NMAOJEIEDAK = 2; + * @return whether the nMAOJEIEDAK field is set + */ + public boolean hasNMAOJEIEDAK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 NMAOJEIEDAK = 2; + * @return this + */ + public GetGachaInfoScRsp clearNMAOJEIEDAK() { + bitField0_ &= ~0x00000002; + nMAOJEIEDAK = 0; + return this; + } + + /** + * optional uint32 NMAOJEIEDAK = 2; + * @return the nMAOJEIEDAK + */ + public int getNMAOJEIEDAK() { + return nMAOJEIEDAK; + } + + /** + * optional uint32 NMAOJEIEDAK = 2; + * @param value the nMAOJEIEDAK to set + * @return this + */ + public GetGachaInfoScRsp setNMAOJEIEDAK(final int value) { + bitField0_ |= 0x00000002; + nMAOJEIEDAK = value; + return this; + } + + /** + * optional uint32 gacha_random = 5; + * @return whether the gachaRandom field is set + */ + public boolean hasGachaRandom() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 gacha_random = 5; + * @return this + */ + public GetGachaInfoScRsp clearGachaRandom() { + bitField0_ &= ~0x00000004; + gachaRandom = 0; + return this; + } + + /** + * optional uint32 gacha_random = 5; + * @return the gachaRandom + */ + public int getGachaRandom() { + return gachaRandom; + } + + /** + * optional uint32 gacha_random = 5; + * @param value the gachaRandom to set + * @return this + */ + public GetGachaInfoScRsp setGachaRandom(final int value) { + bitField0_ |= 0x00000004; + gachaRandom = value; + return this; + } + + /** + * optional uint32 PGJDNMCPFIE = 8; + * @return whether the pGJDNMCPFIE field is set + */ + public boolean hasPGJDNMCPFIE() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 PGJDNMCPFIE = 8; + * @return this + */ + public GetGachaInfoScRsp clearPGJDNMCPFIE() { + bitField0_ &= ~0x00000008; + pGJDNMCPFIE = 0; + return this; + } + + /** + * optional uint32 PGJDNMCPFIE = 8; + * @return the pGJDNMCPFIE + */ + public int getPGJDNMCPFIE() { + return pGJDNMCPFIE; + } + + /** + * optional uint32 PGJDNMCPFIE = 8; + * @param value the pGJDNMCPFIE to set + * @return this + */ + public GetGachaInfoScRsp setPGJDNMCPFIE(final int value) { + bitField0_ |= 0x00000008; + pGJDNMCPFIE = value; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 retcode = 13; + * @return this + */ + public GetGachaInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000010; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public GetGachaInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000010; + retcode = value; + return this; + } + + /** + * repeated .GachaInfo gacha_info_list = 10; + * @return whether the gachaInfoList field is set + */ + public boolean hasGachaInfoList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .GachaInfo gacha_info_list = 10; + * @return this + */ + public GetGachaInfoScRsp clearGachaInfoList() { + bitField0_ &= ~0x00000020; + gachaInfoList.clear(); + return this; + } + + /** + * repeated .GachaInfo gacha_info_list = 10; + * + * 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 #getMutableGachaInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGachaInfoList() { + return gachaInfoList; + } + + /** + * repeated .GachaInfo gacha_info_list = 10; + * + * 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 getMutableGachaInfoList() { + bitField0_ |= 0x00000020; + return gachaInfoList; + } + + /** + * repeated .GachaInfo gacha_info_list = 10; + * @param value the gachaInfoList to add + * @return this + */ + public GetGachaInfoScRsp addGachaInfoList(final GachaInfoOuterClass.GachaInfo value) { + bitField0_ |= 0x00000020; + gachaInfoList.add(value); + return this; + } + + /** + * repeated .GachaInfo gacha_info_list = 10; + * @param values the gachaInfoList to add + * @return this + */ + public GetGachaInfoScRsp addAllGachaInfoList(final GachaInfoOuterClass.GachaInfo... values) { + bitField0_ |= 0x00000020; + gachaInfoList.addAll(values); + return this; + } + + @Override + public GetGachaInfoScRsp copyFrom(final GetGachaInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lDHOFGOIKPI = other.lDHOFGOIKPI; + nMAOJEIEDAK = other.nMAOJEIEDAK; + gachaRandom = other.gachaRandom; + pGJDNMCPFIE = other.pGJDNMCPFIE; + retcode = other.retcode; + gachaInfoList.copyFrom(other.gachaInfoList); + } + return this; + } + + @Override + public GetGachaInfoScRsp mergeFrom(final GetGachaInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLDHOFGOIKPI()) { + setLDHOFGOIKPI(other.lDHOFGOIKPI); + } + if (other.hasNMAOJEIEDAK()) { + setNMAOJEIEDAK(other.nMAOJEIEDAK); + } + if (other.hasGachaRandom()) { + setGachaRandom(other.gachaRandom); + } + if (other.hasPGJDNMCPFIE()) { + setPGJDNMCPFIE(other.pGJDNMCPFIE); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasGachaInfoList()) { + getMutableGachaInfoList().addAll(other.gachaInfoList); + } + return this; + } + + @Override + public GetGachaInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lDHOFGOIKPI = 0; + nMAOJEIEDAK = 0; + gachaRandom = 0; + pGJDNMCPFIE = 0; + retcode = 0; + gachaInfoList.clear(); + return this; + } + + @Override + public GetGachaInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gachaInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetGachaInfoScRsp)) { + return false; + } + GetGachaInfoScRsp other = (GetGachaInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasLDHOFGOIKPI() || lDHOFGOIKPI == other.lDHOFGOIKPI) + && (!hasNMAOJEIEDAK() || nMAOJEIEDAK == other.nMAOJEIEDAK) + && (!hasGachaRandom() || gachaRandom == other.gachaRandom) + && (!hasPGJDNMCPFIE() || pGJDNMCPFIE == other.pGJDNMCPFIE) + && (!hasRetcode() || retcode == other.retcode) + && (!hasGachaInfoList() || gachaInfoList.equals(other.gachaInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(lDHOFGOIKPI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(nMAOJEIEDAK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(gachaRandom); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(pGJDNMCPFIE); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < gachaInfoList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(gachaInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lDHOFGOIKPI); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nMAOJEIEDAK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pGJDNMCPFIE); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * gachaInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gachaInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetGachaInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // lDHOFGOIKPI + lDHOFGOIKPI = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // nMAOJEIEDAK + nMAOJEIEDAK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // gachaRandom + gachaRandom = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // pGJDNMCPFIE + pGJDNMCPFIE = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // gachaInfoList + tag = input.readRepeatedMessage(gachaInfoList, tag); + bitField0_ |= 0x00000020; + 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.lDHOFGOIKPI, lDHOFGOIKPI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.nMAOJEIEDAK, nMAOJEIEDAK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.gachaRandom, gachaRandom); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.pGJDNMCPFIE, pGJDNMCPFIE); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.gachaInfoList, gachaInfoList); + } + output.endObject(); + } + + @Override + public GetGachaInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -843380246: { + if (input.isAtField(FieldNames.lDHOFGOIKPI)) { + if (!input.trySkipNullValue()) { + lDHOFGOIKPI = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1343431082: { + if (input.isAtField(FieldNames.nMAOJEIEDAK)) { + if (!input.trySkipNullValue()) { + nMAOJEIEDAK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1635961627: + case -47579616: { + if (input.isAtField(FieldNames.gachaRandom)) { + if (!input.trySkipNullValue()) { + gachaRandom = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1624180581: { + if (input.isAtField(FieldNames.pGJDNMCPFIE)) { + if (!input.trySkipNullValue()) { + pGJDNMCPFIE = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -273788402: + case 1953910546: { + if (input.isAtField(FieldNames.gachaInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(gachaInfoList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetGachaInfoScRsp clone() { + return new GetGachaInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetGachaInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetGachaInfoScRsp(), data).checkInitialized(); + } + + public static GetGachaInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetGachaInfoScRsp(), input).checkInitialized(); + } + + public static GetGachaInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetGachaInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetGachaInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetGachaInfoScRspFactory.INSTANCE; + } + + private enum GetGachaInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetGachaInfoScRsp create() { + return GetGachaInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lDHOFGOIKPI = FieldName.forField("LDHOFGOIKPI"); + + static final FieldName nMAOJEIEDAK = FieldName.forField("NMAOJEIEDAK"); + + static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); + + static final FieldName pGJDNMCPFIE = FieldName.forField("PGJDNMCPFIE"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName gachaInfoList = FieldName.forField("gachaInfoList", "gacha_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java new file mode 100644 index 0000000..72c5a98 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java @@ -0,0 +1,767 @@ +// 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 GetHeroBasicTypeInfoScRspOuterClass { + /** + * Protobuf type {@code GetHeroBasicTypeInfoScRsp} + */ + public static final class GetHeroBasicTypeInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional .HeroBasicType cur_basic_type = 5; + */ + private int curBasicType; + + /** + * optional .Gender gender = 12; + */ + private int gender; + + /** + * optional bool is_player_info_modified = 6; + */ + private boolean isPlayerInfoModified; + + /** + * optional bool is_gender_modified = 8; + */ + private boolean isGenderModified; + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + */ + private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); + + private GetHeroBasicTypeInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetHeroBasicTypeInfoScRsp} + */ + public static GetHeroBasicTypeInfoScRsp newInstance() { + return new GetHeroBasicTypeInfoScRsp(); + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .HeroBasicType cur_basic_type = 5; + * @return whether the curBasicType field is set + */ + public boolean hasCurBasicType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .HeroBasicType cur_basic_type = 5; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearCurBasicType() { + bitField0_ &= ~0x00000002; + curBasicType = 0; + return this; + } + + /** + * optional .HeroBasicType cur_basic_type = 5; + * @return the curBasicType + */ + public HeroBasicTypeOuterClass.HeroBasicType getCurBasicType() { + return HeroBasicTypeOuterClass.HeroBasicType.forNumber(curBasicType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getCurBasicTypeValue() { + return curBasicType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value + * can cause {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setCurBasicTypeValue(final int value) { + bitField0_ |= 0x00000002; + curBasicType = value; + return this; + } + + /** + * optional .HeroBasicType cur_basic_type = 5; + * @param value the curBasicType to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setCurBasicType( + final HeroBasicTypeOuterClass.HeroBasicType value) { + bitField0_ |= 0x00000002; + curBasicType = value.getNumber(); + return this; + } + + /** + * optional .Gender gender = 12; + * @return whether the gender field is set + */ + public boolean hasGender() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .Gender gender = 12; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearGender() { + bitField0_ &= ~0x00000004; + gender = 0; + return this; + } + + /** + * optional .Gender gender = 12; + * @return the gender + */ + public GenderOuterClass.Gender getGender() { + return GenderOuterClass.Gender.forNumber(gender); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetHeroBasicTypeInfoScRsp#getGender()}.getNumber(). + * + * @return numeric wire representation + */ + public int getGenderValue() { + return gender; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link GenderOuterClass.Gender}. Setting an invalid value + * can cause {@link GetHeroBasicTypeInfoScRsp#getGender()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setGenderValue(final int value) { + bitField0_ |= 0x00000004; + gender = value; + return this; + } + + /** + * optional .Gender gender = 12; + * @param value the gender to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setGender(final GenderOuterClass.Gender value) { + bitField0_ |= 0x00000004; + gender = value.getNumber(); + return this; + } + + /** + * optional bool is_player_info_modified = 6; + * @return whether the isPlayerInfoModified field is set + */ + public boolean hasIsPlayerInfoModified() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool is_player_info_modified = 6; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearIsPlayerInfoModified() { + bitField0_ &= ~0x00000008; + isPlayerInfoModified = false; + return this; + } + + /** + * optional bool is_player_info_modified = 6; + * @return the isPlayerInfoModified + */ + public boolean getIsPlayerInfoModified() { + return isPlayerInfoModified; + } + + /** + * optional bool is_player_info_modified = 6; + * @param value the isPlayerInfoModified to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setIsPlayerInfoModified(final boolean value) { + bitField0_ |= 0x00000008; + isPlayerInfoModified = value; + return this; + } + + /** + * optional bool is_gender_modified = 8; + * @return whether the isGenderModified field is set + */ + public boolean hasIsGenderModified() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool is_gender_modified = 8; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearIsGenderModified() { + bitField0_ &= ~0x00000010; + isGenderModified = false; + return this; + } + + /** + * optional bool is_gender_modified = 8; + * @return the isGenderModified + */ + public boolean getIsGenderModified() { + return isGenderModified; + } + + /** + * optional bool is_gender_modified = 8; + * @param value the isGenderModified to set + * @return this + */ + public GetHeroBasicTypeInfoScRsp setIsGenderModified(final boolean value) { + bitField0_ |= 0x00000010; + isGenderModified = value; + return this; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + * @return whether the basicTypeInfoList field is set + */ + public boolean hasBasicTypeInfoList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + * @return this + */ + public GetHeroBasicTypeInfoScRsp clearBasicTypeInfoList() { + bitField0_ &= ~0x00000020; + basicTypeInfoList.clear(); + return this; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + * + * 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 #getMutableBasicTypeInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBasicTypeInfoList() { + return basicTypeInfoList; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + * + * 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 getMutableBasicTypeInfoList( + ) { + bitField0_ |= 0x00000020; + return basicTypeInfoList; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + * @param value the basicTypeInfoList to add + * @return this + */ + public GetHeroBasicTypeInfoScRsp addBasicTypeInfoList( + final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) { + bitField0_ |= 0x00000020; + basicTypeInfoList.add(value); + return this; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 3; + * @param values the basicTypeInfoList to add + * @return this + */ + public GetHeroBasicTypeInfoScRsp addAllBasicTypeInfoList( + final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) { + bitField0_ |= 0x00000020; + basicTypeInfoList.addAll(values); + return this; + } + + @Override + public GetHeroBasicTypeInfoScRsp copyFrom(final GetHeroBasicTypeInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + curBasicType = other.curBasicType; + gender = other.gender; + isPlayerInfoModified = other.isPlayerInfoModified; + isGenderModified = other.isGenderModified; + basicTypeInfoList.copyFrom(other.basicTypeInfoList); + } + return this; + } + + @Override + public GetHeroBasicTypeInfoScRsp mergeFrom(final GetHeroBasicTypeInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurBasicType()) { + setCurBasicTypeValue(other.curBasicType); + } + if (other.hasGender()) { + setGenderValue(other.gender); + } + if (other.hasIsPlayerInfoModified()) { + setIsPlayerInfoModified(other.isPlayerInfoModified); + } + if (other.hasIsGenderModified()) { + setIsGenderModified(other.isGenderModified); + } + if (other.hasBasicTypeInfoList()) { + getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); + } + return this; + } + + @Override + public GetHeroBasicTypeInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + curBasicType = 0; + gender = 0; + isPlayerInfoModified = false; + isGenderModified = false; + basicTypeInfoList.clear(); + return this; + } + + @Override + public GetHeroBasicTypeInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + basicTypeInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetHeroBasicTypeInfoScRsp)) { + return false; + } + GetHeroBasicTypeInfoScRsp other = (GetHeroBasicTypeInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurBasicType() || curBasicType == other.curBasicType) + && (!hasGender() || gender == other.gender) + && (!hasIsPlayerInfoModified() || isPlayerInfoModified == other.isPlayerInfoModified) + && (!hasIsGenderModified() || isGenderModified == other.isGenderModified) + && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeEnumNoTag(curBasicType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(gender); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(isPlayerInfoModified); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(isGenderModified); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < basicTypeInfoList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(basicTypeInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(curBasicType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(gender); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetHeroBasicTypeInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // curBasicType + final int value = input.readInt32(); + if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { + curBasicType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // gender + final int value = input.readInt32(); + if (GenderOuterClass.Gender.forNumber(value) != null) { + gender = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // isPlayerInfoModified + isPlayerInfoModified = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // isGenderModified + isGenderModified = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // basicTypeInfoList + tag = input.readRepeatedMessage(basicTypeInfoList, tag); + bitField0_ |= 0x00000020; + 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.writeEnum(FieldNames.curBasicType, curBasicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.gender, gender, GenderOuterClass.Gender.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.isPlayerInfoModified, isPlayerInfoModified); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.isGenderModified, isGenderModified); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); + } + output.endObject(); + } + + @Override + public GetHeroBasicTypeInfoScRsp 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 -518506968: + case -979186678: { + if (input.isAtField(FieldNames.curBasicType)) { + if (!input.trySkipNullValue()) { + final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); + if (value != null) { + curBasicType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1249512767: { + if (input.isAtField(FieldNames.gender)) { + if (!input.trySkipNullValue()) { + final GenderOuterClass.Gender value = input.readEnum(GenderOuterClass.Gender.converter()); + if (value != null) { + gender = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -939166238: + case 1421626961: { + if (input.isAtField(FieldNames.isPlayerInfoModified)) { + if (!input.trySkipNullValue()) { + isPlayerInfoModified = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1591840884: + case -1167877774: { + if (input.isAtField(FieldNames.isGenderModified)) { + if (!input.trySkipNullValue()) { + isGenderModified = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -344592620: + case -1315699973: { + if (input.isAtField(FieldNames.basicTypeInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(basicTypeInfoList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetHeroBasicTypeInfoScRsp clone() { + return new GetHeroBasicTypeInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetHeroBasicTypeInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetHeroBasicTypeInfoScRsp(), data).checkInitialized(); + } + + public static GetHeroBasicTypeInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetHeroBasicTypeInfoScRsp(), input).checkInitialized(); + } + + public static GetHeroBasicTypeInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetHeroBasicTypeInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetHeroBasicTypeInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetHeroBasicTypeInfoScRspFactory.INSTANCE; + } + + private enum GetHeroBasicTypeInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetHeroBasicTypeInfoScRsp create() { + return GetHeroBasicTypeInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curBasicType = FieldName.forField("curBasicType", "cur_basic_type"); + + static final FieldName gender = FieldName.forField("gender"); + + static final FieldName isPlayerInfoModified = FieldName.forField("isPlayerInfoModified", "is_player_info_modified"); + + static final FieldName isGenderModified = FieldName.forField("isGenderModified", "is_gender_modified"); + + static final FieldName basicTypeInfoList = FieldName.forField("basicTypeInfoList", "basic_type_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java new file mode 100644 index 0000000..e9b758e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java @@ -0,0 +1,543 @@ +// 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 GetMissionStatusCsReqOuterClass { + /** + * Protobuf type {@code GetMissionStatusCsReq} + */ + public static final class GetMissionStatusCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 sub_mission_id_list = 7; + */ + private final RepeatedInt subMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 mission_event_id_list = 11; + */ + private final RepeatedInt missionEventIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 main_mission_id_list = 15; + */ + private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance(); + + private GetMissionStatusCsReq() { + } + + /** + * @return a new empty instance of {@code GetMissionStatusCsReq} + */ + public static GetMissionStatusCsReq newInstance() { + return new GetMissionStatusCsReq(); + } + + /** + * repeated uint32 sub_mission_id_list = 7; + * @return whether the subMissionIdList field is set + */ + public boolean hasSubMissionIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 sub_mission_id_list = 7; + * @return this + */ + public GetMissionStatusCsReq clearSubMissionIdList() { + bitField0_ &= ~0x00000001; + subMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 sub_mission_id_list = 7; + * + * 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 #getMutableSubMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSubMissionIdList() { + return subMissionIdList; + } + + /** + * repeated uint32 sub_mission_id_list = 7; + * + * 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 getMutableSubMissionIdList() { + bitField0_ |= 0x00000001; + return subMissionIdList; + } + + /** + * repeated uint32 sub_mission_id_list = 7; + * @param value the subMissionIdList to add + * @return this + */ + public GetMissionStatusCsReq addSubMissionIdList(final int value) { + bitField0_ |= 0x00000001; + subMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 sub_mission_id_list = 7; + * @param values the subMissionIdList to add + * @return this + */ + public GetMissionStatusCsReq addAllSubMissionIdList(final int... values) { + bitField0_ |= 0x00000001; + subMissionIdList.addAll(values); + return this; + } + + /** + * repeated uint32 mission_event_id_list = 11; + * @return whether the missionEventIdList field is set + */ + public boolean hasMissionEventIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 mission_event_id_list = 11; + * @return this + */ + public GetMissionStatusCsReq clearMissionEventIdList() { + bitField0_ &= ~0x00000002; + missionEventIdList.clear(); + return this; + } + + /** + * repeated uint32 mission_event_id_list = 11; + * + * 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 #getMutableMissionEventIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMissionEventIdList() { + return missionEventIdList; + } + + /** + * repeated uint32 mission_event_id_list = 11; + * + * 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 getMutableMissionEventIdList() { + bitField0_ |= 0x00000002; + return missionEventIdList; + } + + /** + * repeated uint32 mission_event_id_list = 11; + * @param value the missionEventIdList to add + * @return this + */ + public GetMissionStatusCsReq addMissionEventIdList(final int value) { + bitField0_ |= 0x00000002; + missionEventIdList.add(value); + return this; + } + + /** + * repeated uint32 mission_event_id_list = 11; + * @param values the missionEventIdList to add + * @return this + */ + public GetMissionStatusCsReq addAllMissionEventIdList(final int... values) { + bitField0_ |= 0x00000002; + missionEventIdList.addAll(values); + return this; + } + + /** + * repeated uint32 main_mission_id_list = 15; + * @return whether the mainMissionIdList field is set + */ + public boolean hasMainMissionIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 main_mission_id_list = 15; + * @return this + */ + public GetMissionStatusCsReq clearMainMissionIdList() { + bitField0_ &= ~0x00000004; + mainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 main_mission_id_list = 15; + * + * 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 #getMutableMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMainMissionIdList() { + return mainMissionIdList; + } + + /** + * repeated uint32 main_mission_id_list = 15; + * + * 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 getMutableMainMissionIdList() { + bitField0_ |= 0x00000004; + return mainMissionIdList; + } + + /** + * repeated uint32 main_mission_id_list = 15; + * @param value the mainMissionIdList to add + * @return this + */ + public GetMissionStatusCsReq addMainMissionIdList(final int value) { + bitField0_ |= 0x00000004; + mainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 main_mission_id_list = 15; + * @param values the mainMissionIdList to add + * @return this + */ + public GetMissionStatusCsReq addAllMainMissionIdList(final int... values) { + bitField0_ |= 0x00000004; + mainMissionIdList.addAll(values); + return this; + } + + @Override + public GetMissionStatusCsReq copyFrom(final GetMissionStatusCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + subMissionIdList.copyFrom(other.subMissionIdList); + missionEventIdList.copyFrom(other.missionEventIdList); + mainMissionIdList.copyFrom(other.mainMissionIdList); + } + return this; + } + + @Override + public GetMissionStatusCsReq mergeFrom(final GetMissionStatusCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSubMissionIdList()) { + getMutableSubMissionIdList().addAll(other.subMissionIdList); + } + if (other.hasMissionEventIdList()) { + getMutableMissionEventIdList().addAll(other.missionEventIdList); + } + if (other.hasMainMissionIdList()) { + getMutableMainMissionIdList().addAll(other.mainMissionIdList); + } + return this; + } + + @Override + public GetMissionStatusCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + subMissionIdList.clear(); + missionEventIdList.clear(); + mainMissionIdList.clear(); + return this; + } + + @Override + public GetMissionStatusCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + subMissionIdList.clear(); + missionEventIdList.clear(); + mainMissionIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetMissionStatusCsReq)) { + return false; + } + GetMissionStatusCsReq other = (GetMissionStatusCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasSubMissionIdList() || subMissionIdList.equals(other.subMissionIdList)) + && (!hasMissionEventIdList() || missionEventIdList.equals(other.missionEventIdList)) + && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < subMissionIdList.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(subMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < missionEventIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(missionEventIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < mainMissionIdList.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(mainMissionIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * subMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(subMissionIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * missionEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(missionEventIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * mainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetMissionStatusCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // subMissionIdList [packed=true] + input.readPackedUInt32(subMissionIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // missionEventIdList [packed=true] + input.readPackedUInt32(missionEventIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // mainMissionIdList [packed=true] + input.readPackedUInt32(mainMissionIdList, 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: { + // subMissionIdList [packed=false] + tag = input.readRepeatedUInt32(subMissionIdList, tag); + bitField0_ |= 0x00000001; + break; + } + case 88: { + // missionEventIdList [packed=false] + tag = input.readRepeatedUInt32(missionEventIdList, tag); + bitField0_ |= 0x00000002; + break; + } + case 120: { + // mainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(mainMissionIdList, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.subMissionIdList, subMissionIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.missionEventIdList, missionEventIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.mainMissionIdList, mainMissionIdList); + } + output.endObject(); + } + + @Override + public GetMissionStatusCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2039339685: + case -225917552: { + if (input.isAtField(FieldNames.subMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(subMissionIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 784770663: + case -628890838: { + if (input.isAtField(FieldNames.missionEventIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(missionEventIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1438400460: + case -1382679799: { + if (input.isAtField(FieldNames.mainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(mainMissionIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetMissionStatusCsReq clone() { + return new GetMissionStatusCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetMissionStatusCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetMissionStatusCsReq(), data).checkInitialized(); + } + + public static GetMissionStatusCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionStatusCsReq(), input).checkInitialized(); + } + + public static GetMissionStatusCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionStatusCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetMissionStatusCsReq messages + */ + public static MessageFactory getFactory() { + return GetMissionStatusCsReqFactory.INSTANCE; + } + + private enum GetMissionStatusCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetMissionStatusCsReq create() { + return GetMissionStatusCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName subMissionIdList = FieldName.forField("subMissionIdList", "sub_mission_id_list"); + + static final FieldName missionEventIdList = FieldName.forField("missionEventIdList", "mission_event_id_list"); + + static final FieldName mainMissionIdList = FieldName.forField("mainMissionIdList", "main_mission_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java new file mode 100644 index 0000000..3865527 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java @@ -0,0 +1,874 @@ +// 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 GetMissionStatusScRspOuterClass { + /** + * Protobuf type {@code GetMissionStatusScRsp} + */ + public static final class GetMissionStatusScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + */ + private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 finished_main_mission_id_list = 10; + */ + private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + */ + private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .Mission mission_event_status_list = 4; + */ + private final RepeatedMessage missionEventStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + + /** + * repeated .Mission sub_mission_status_list = 13; + */ + private final RepeatedMessage subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + + private GetMissionStatusScRsp() { + } + + /** + * @return a new empty instance of {@code GetMissionStatusScRsp} + */ + public static GetMissionStatusScRsp newInstance() { + return new GetMissionStatusScRsp(); + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public GetMissionStatusScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public GetMissionStatusScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + * @return whether the disabledMainMissionIdList field is set + */ + public boolean hasDisabledMainMissionIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + * @return this + */ + public GetMissionStatusScRsp clearDisabledMainMissionIdList() { + bitField0_ &= ~0x00000002; + disabledMainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + * + * 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 #getMutableDisabledMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDisabledMainMissionIdList() { + return disabledMainMissionIdList; + } + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + * + * 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 getMutableDisabledMainMissionIdList() { + bitField0_ |= 0x00000002; + return disabledMainMissionIdList; + } + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + * @param value the disabledMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addDisabledMainMissionIdList(final int value) { + bitField0_ |= 0x00000002; + disabledMainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 disabled_main_mission_id_list = 9; + * @param values the disabledMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addAllDisabledMainMissionIdList(final int... values) { + bitField0_ |= 0x00000002; + disabledMainMissionIdList.addAll(values); + return this; + } + + /** + * repeated uint32 finished_main_mission_id_list = 10; + * @return whether the finishedMainMissionIdList field is set + */ + public boolean hasFinishedMainMissionIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 finished_main_mission_id_list = 10; + * @return this + */ + public GetMissionStatusScRsp clearFinishedMainMissionIdList() { + bitField0_ &= ~0x00000004; + finishedMainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 finished_main_mission_id_list = 10; + * + * 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 #getMutableFinishedMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFinishedMainMissionIdList() { + return finishedMainMissionIdList; + } + + /** + * repeated uint32 finished_main_mission_id_list = 10; + * + * 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 getMutableFinishedMainMissionIdList() { + bitField0_ |= 0x00000004; + return finishedMainMissionIdList; + } + + /** + * repeated uint32 finished_main_mission_id_list = 10; + * @param value the finishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addFinishedMainMissionIdList(final int value) { + bitField0_ |= 0x00000004; + finishedMainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 finished_main_mission_id_list = 10; + * @param values the finishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addAllFinishedMainMissionIdList(final int... values) { + bitField0_ |= 0x00000004; + finishedMainMissionIdList.addAll(values); + return this; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + * @return whether the unfinishedMainMissionIdList field is set + */ + public boolean hasUnfinishedMainMissionIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + * @return this + */ + public GetMissionStatusScRsp clearUnfinishedMainMissionIdList() { + bitField0_ &= ~0x00000008; + unfinishedMainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + * + * 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 #getMutableUnfinishedMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnfinishedMainMissionIdList() { + return unfinishedMainMissionIdList; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + * + * 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 getMutableUnfinishedMainMissionIdList() { + bitField0_ |= 0x00000008; + return unfinishedMainMissionIdList; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + * @param value the unfinishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addUnfinishedMainMissionIdList(final int value) { + bitField0_ |= 0x00000008; + unfinishedMainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 11; + * @param values the unfinishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addAllUnfinishedMainMissionIdList(final int... values) { + bitField0_ |= 0x00000008; + unfinishedMainMissionIdList.addAll(values); + return this; + } + + /** + * repeated .Mission mission_event_status_list = 4; + * @return whether the missionEventStatusList field is set + */ + public boolean hasMissionEventStatusList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .Mission mission_event_status_list = 4; + * @return this + */ + public GetMissionStatusScRsp clearMissionEventStatusList() { + bitField0_ &= ~0x00000010; + missionEventStatusList.clear(); + return this; + } + + /** + * repeated .Mission mission_event_status_list = 4; + * + * 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 #getMutableMissionEventStatusList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMissionEventStatusList() { + return missionEventStatusList; + } + + /** + * repeated .Mission mission_event_status_list = 4; + * + * 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 getMutableMissionEventStatusList() { + bitField0_ |= 0x00000010; + return missionEventStatusList; + } + + /** + * repeated .Mission mission_event_status_list = 4; + * @param value the missionEventStatusList to add + * @return this + */ + public GetMissionStatusScRsp addMissionEventStatusList(final MissionOuterClass.Mission value) { + bitField0_ |= 0x00000010; + missionEventStatusList.add(value); + return this; + } + + /** + * repeated .Mission mission_event_status_list = 4; + * @param values the missionEventStatusList to add + * @return this + */ + public GetMissionStatusScRsp addAllMissionEventStatusList( + final MissionOuterClass.Mission... values) { + bitField0_ |= 0x00000010; + missionEventStatusList.addAll(values); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 13; + * @return whether the subMissionStatusList field is set + */ + public boolean hasSubMissionStatusList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .Mission sub_mission_status_list = 13; + * @return this + */ + public GetMissionStatusScRsp clearSubMissionStatusList() { + bitField0_ &= ~0x00000020; + subMissionStatusList.clear(); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 13; + * + * 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 #getMutableSubMissionStatusList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSubMissionStatusList() { + return subMissionStatusList; + } + + /** + * repeated .Mission sub_mission_status_list = 13; + * + * 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 getMutableSubMissionStatusList() { + bitField0_ |= 0x00000020; + return subMissionStatusList; + } + + /** + * repeated .Mission sub_mission_status_list = 13; + * @param value the subMissionStatusList to add + * @return this + */ + public GetMissionStatusScRsp addSubMissionStatusList(final MissionOuterClass.Mission value) { + bitField0_ |= 0x00000020; + subMissionStatusList.add(value); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 13; + * @param values the subMissionStatusList to add + * @return this + */ + public GetMissionStatusScRsp addAllSubMissionStatusList( + final MissionOuterClass.Mission... values) { + bitField0_ |= 0x00000020; + subMissionStatusList.addAll(values); + return this; + } + + @Override + public GetMissionStatusScRsp copyFrom(final GetMissionStatusScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); + finishedMainMissionIdList.copyFrom(other.finishedMainMissionIdList); + unfinishedMainMissionIdList.copyFrom(other.unfinishedMainMissionIdList); + missionEventStatusList.copyFrom(other.missionEventStatusList); + subMissionStatusList.copyFrom(other.subMissionStatusList); + } + return this; + } + + @Override + public GetMissionStatusScRsp mergeFrom(final GetMissionStatusScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasDisabledMainMissionIdList()) { + getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList); + } + if (other.hasFinishedMainMissionIdList()) { + getMutableFinishedMainMissionIdList().addAll(other.finishedMainMissionIdList); + } + if (other.hasUnfinishedMainMissionIdList()) { + getMutableUnfinishedMainMissionIdList().addAll(other.unfinishedMainMissionIdList); + } + if (other.hasMissionEventStatusList()) { + getMutableMissionEventStatusList().addAll(other.missionEventStatusList); + } + if (other.hasSubMissionStatusList()) { + getMutableSubMissionStatusList().addAll(other.subMissionStatusList); + } + return this; + } + + @Override + public GetMissionStatusScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + disabledMainMissionIdList.clear(); + finishedMainMissionIdList.clear(); + unfinishedMainMissionIdList.clear(); + missionEventStatusList.clear(); + subMissionStatusList.clear(); + return this; + } + + @Override + public GetMissionStatusScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + disabledMainMissionIdList.clear(); + finishedMainMissionIdList.clear(); + unfinishedMainMissionIdList.clear(); + missionEventStatusList.clearQuick(); + subMissionStatusList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetMissionStatusScRsp)) { + return false; + } + GetMissionStatusScRsp other = (GetMissionStatusScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList)) + && (!hasFinishedMainMissionIdList() || finishedMainMissionIdList.equals(other.finishedMainMissionIdList)) + && (!hasUnfinishedMainMissionIdList() || unfinishedMainMissionIdList.equals(other.unfinishedMainMissionIdList)) + && (!hasMissionEventStatusList() || missionEventStatusList.equals(other.missionEventStatusList)) + && (!hasSubMissionStatusList() || subMissionStatusList.equals(other.subMissionStatusList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < disabledMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < finishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < missionEventStatusList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(missionEventStatusList.get(i)); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < subMissionStatusList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(subMissionStatusList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * disabledMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disabledMainMissionIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * missionEventStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionEventStatusList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetMissionStatusScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // disabledMainMissionIdList [packed=true] + input.readPackedUInt32(disabledMainMissionIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // finishedMainMissionIdList [packed=true] + input.readPackedUInt32(finishedMainMissionIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // unfinishedMainMissionIdList [packed=true] + input.readPackedUInt32(unfinishedMainMissionIdList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // missionEventStatusList + tag = input.readRepeatedMessage(missionEventStatusList, tag); + bitField0_ |= 0x00000010; + if (tag != 106) { + break; + } + } + case 106: { + // subMissionStatusList + tag = input.readRepeatedMessage(subMissionStatusList, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 72: { + // disabledMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); + bitField0_ |= 0x00000002; + break; + } + case 80: { + // finishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag); + bitField0_ |= 0x00000004; + break; + } + case 88: { + // unfinishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); + bitField0_ |= 0x00000008; + 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.writeRepeatedUInt32(FieldNames.disabledMainMissionIdList, disabledMainMissionIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.missionEventStatusList, missionEventStatusList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList); + } + output.endObject(); + } + + @Override + public GetMissionStatusScRsp 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 83823792: + case 1929478380: { + if (input.isAtField(FieldNames.disabledMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(disabledMainMissionIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 104231290: + case -1929023306: { + if (input.isAtField(FieldNames.finishedMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(finishedMainMissionIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 61133057: + case 1704637629: { + if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unfinishedMainMissionIdList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 582053566: + case 1494751923: { + if (input.isAtField(FieldNames.missionEventStatusList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(missionEventStatusList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1842850820: + case 1165580825: { + if (input.isAtField(FieldNames.subMissionStatusList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(subMissionStatusList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetMissionStatusScRsp clone() { + return new GetMissionStatusScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetMissionStatusScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetMissionStatusScRsp(), data).checkInitialized(); + } + + public static GetMissionStatusScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionStatusScRsp(), input).checkInitialized(); + } + + public static GetMissionStatusScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionStatusScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetMissionStatusScRsp messages + */ + public static MessageFactory getFactory() { + return GetMissionStatusScRspFactory.INSTANCE; + } + + private enum GetMissionStatusScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetMissionStatusScRsp create() { + return GetMissionStatusScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list"); + + static final FieldName finishedMainMissionIdList = FieldName.forField("finishedMainMissionIdList", "finished_main_mission_id_list"); + + static final FieldName unfinishedMainMissionIdList = FieldName.forField("unfinishedMainMissionIdList", "unfinished_main_mission_id_list"); + + static final FieldName missionEventStatusList = FieldName.forField("missionEventStatusList", "mission_event_status_list"); + + static final FieldName subMissionStatusList = FieldName.forField("subMissionStatusList", "sub_mission_status_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java new file mode 100644 index 0000000..6d69f06 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java @@ -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 GetNpcTakenRewardCsReqOuterClass { + /** + * Protobuf type {@code GetNpcTakenRewardCsReq} + */ + public static final class GetNpcTakenRewardCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 npc_id = 5; + */ + private int npcId; + + private GetNpcTakenRewardCsReq() { + } + + /** + * @return a new empty instance of {@code GetNpcTakenRewardCsReq} + */ + public static GetNpcTakenRewardCsReq newInstance() { + return new GetNpcTakenRewardCsReq(); + } + + /** + * optional uint32 npc_id = 5; + * @return whether the npcId field is set + */ + public boolean hasNpcId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 npc_id = 5; + * @return this + */ + public GetNpcTakenRewardCsReq clearNpcId() { + bitField0_ &= ~0x00000001; + npcId = 0; + return this; + } + + /** + * optional uint32 npc_id = 5; + * @return the npcId + */ + public int getNpcId() { + return npcId; + } + + /** + * optional uint32 npc_id = 5; + * @param value the npcId to set + * @return this + */ + public GetNpcTakenRewardCsReq setNpcId(final int value) { + bitField0_ |= 0x00000001; + npcId = value; + return this; + } + + @Override + public GetNpcTakenRewardCsReq copyFrom(final GetNpcTakenRewardCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + npcId = other.npcId; + } + return this; + } + + @Override + public GetNpcTakenRewardCsReq mergeFrom(final GetNpcTakenRewardCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNpcId()) { + setNpcId(other.npcId); + } + return this; + } + + @Override + public GetNpcTakenRewardCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcId = 0; + return this; + } + + @Override + public GetNpcTakenRewardCsReq 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 GetNpcTakenRewardCsReq)) { + return false; + } + GetNpcTakenRewardCsReq other = (GetNpcTakenRewardCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasNpcId() || npcId == other.npcId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(npcId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetNpcTakenRewardCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // npcId + npcId = 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.npcId, npcId); + } + output.endObject(); + } + + @Override + public GetNpcTakenRewardCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 105021404: + case -1039282375: { + if (input.isAtField(FieldNames.npcId)) { + if (!input.trySkipNullValue()) { + npcId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetNpcTakenRewardCsReq clone() { + return new GetNpcTakenRewardCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetNpcTakenRewardCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetNpcTakenRewardCsReq(), data).checkInitialized(); + } + + public static GetNpcTakenRewardCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetNpcTakenRewardCsReq(), input).checkInitialized(); + } + + public static GetNpcTakenRewardCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetNpcTakenRewardCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetNpcTakenRewardCsReq messages + */ + public static MessageFactory getFactory() { + return GetNpcTakenRewardCsReqFactory.INSTANCE; + } + + private enum GetNpcTakenRewardCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetNpcTakenRewardCsReq create() { + return GetNpcTakenRewardCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName npcId = FieldName.forField("npcId", "npc_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java new file mode 100644 index 0000000..179ceb0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java @@ -0,0 +1,461 @@ +// 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 GetNpcTakenRewardScRspOuterClass { + /** + * Protobuf type {@code GetNpcTakenRewardScRsp} + */ + public static final class GetNpcTakenRewardScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + /** + * optional uint32 npc_id = 2; + */ + private int npcId; + + /** + * repeated uint32 OABGIDHGGHI = 4; + */ + private final RepeatedInt oABGIDHGGHI = RepeatedInt.newEmptyInstance(); + + private GetNpcTakenRewardScRsp() { + } + + /** + * @return a new empty instance of {@code GetNpcTakenRewardScRsp} + */ + public static GetNpcTakenRewardScRsp newInstance() { + return new GetNpcTakenRewardScRsp(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public GetNpcTakenRewardScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public GetNpcTakenRewardScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 npc_id = 2; + * @return whether the npcId field is set + */ + public boolean hasNpcId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 npc_id = 2; + * @return this + */ + public GetNpcTakenRewardScRsp clearNpcId() { + bitField0_ &= ~0x00000002; + npcId = 0; + return this; + } + + /** + * optional uint32 npc_id = 2; + * @return the npcId + */ + public int getNpcId() { + return npcId; + } + + /** + * optional uint32 npc_id = 2; + * @param value the npcId to set + * @return this + */ + public GetNpcTakenRewardScRsp setNpcId(final int value) { + bitField0_ |= 0x00000002; + npcId = value; + return this; + } + + /** + * repeated uint32 OABGIDHGGHI = 4; + * @return whether the oABGIDHGGHI field is set + */ + public boolean hasOABGIDHGGHI() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 OABGIDHGGHI = 4; + * @return this + */ + public GetNpcTakenRewardScRsp clearOABGIDHGGHI() { + bitField0_ &= ~0x00000004; + oABGIDHGGHI.clear(); + return this; + } + + /** + * repeated uint32 OABGIDHGGHI = 4; + * + * 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 #getMutableOABGIDHGGHI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOABGIDHGGHI() { + return oABGIDHGGHI; + } + + /** + * repeated uint32 OABGIDHGGHI = 4; + * + * 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 getMutableOABGIDHGGHI() { + bitField0_ |= 0x00000004; + return oABGIDHGGHI; + } + + /** + * repeated uint32 OABGIDHGGHI = 4; + * @param value the oABGIDHGGHI to add + * @return this + */ + public GetNpcTakenRewardScRsp addOABGIDHGGHI(final int value) { + bitField0_ |= 0x00000004; + oABGIDHGGHI.add(value); + return this; + } + + /** + * repeated uint32 OABGIDHGGHI = 4; + * @param values the oABGIDHGGHI to add + * @return this + */ + public GetNpcTakenRewardScRsp addAllOABGIDHGGHI(final int... values) { + bitField0_ |= 0x00000004; + oABGIDHGGHI.addAll(values); + return this; + } + + @Override + public GetNpcTakenRewardScRsp copyFrom(final GetNpcTakenRewardScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + npcId = other.npcId; + oABGIDHGGHI.copyFrom(other.oABGIDHGGHI); + } + return this; + } + + @Override + public GetNpcTakenRewardScRsp mergeFrom(final GetNpcTakenRewardScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasNpcId()) { + setNpcId(other.npcId); + } + if (other.hasOABGIDHGGHI()) { + getMutableOABGIDHGGHI().addAll(other.oABGIDHGGHI); + } + return this; + } + + @Override + public GetNpcTakenRewardScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + npcId = 0; + oABGIDHGGHI.clear(); + return this; + } + + @Override + public GetNpcTakenRewardScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oABGIDHGGHI.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetNpcTakenRewardScRsp)) { + return false; + } + GetNpcTakenRewardScRsp other = (GetNpcTakenRewardScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasNpcId() || npcId == other.npcId) + && (!hasOABGIDHGGHI() || oABGIDHGGHI.equals(other.oABGIDHGGHI)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(npcId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < oABGIDHGGHI.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(oABGIDHGGHI.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * oABGIDHGGHI.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(oABGIDHGGHI); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetNpcTakenRewardScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // npcId + npcId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // oABGIDHGGHI [packed=true] + input.readPackedUInt32(oABGIDHGGHI, 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 32: { + // oABGIDHGGHI [packed=false] + tag = input.readRepeatedUInt32(oABGIDHGGHI, tag); + bitField0_ |= 0x00000004; + 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.npcId, npcId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.oABGIDHGGHI, oABGIDHGGHI); + } + output.endObject(); + } + + @Override + public GetNpcTakenRewardScRsp 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 105021404: + case -1039282375: { + if (input.isAtField(FieldNames.npcId)) { + if (!input.trySkipNullValue()) { + npcId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1877387145: { + if (input.isAtField(FieldNames.oABGIDHGGHI)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(oABGIDHGGHI); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetNpcTakenRewardScRsp clone() { + return new GetNpcTakenRewardScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetNpcTakenRewardScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetNpcTakenRewardScRsp(), data).checkInitialized(); + } + + public static GetNpcTakenRewardScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetNpcTakenRewardScRsp(), input).checkInitialized(); + } + + public static GetNpcTakenRewardScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetNpcTakenRewardScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetNpcTakenRewardScRsp messages + */ + public static MessageFactory getFactory() { + return GetNpcTakenRewardScRspFactory.INSTANCE; + } + + private enum GetNpcTakenRewardScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetNpcTakenRewardScRsp create() { + return GetNpcTakenRewardScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName npcId = FieldName.forField("npcId", "npc_id"); + + static final FieldName oABGIDHGGHI = FieldName.forField("OABGIDHGGHI"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java new file mode 100644 index 0000000..8217295 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java @@ -0,0 +1,647 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class GetPlayerBoardDataScRspOuterClass { + /** + * Protobuf type {@code GetPlayerBoardDataScRsp} + */ + public static final class GetPlayerBoardDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 IBIJADEBLOH = 9; + */ + private int iBIJADEBLOH; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + /** + * optional uint32 current_head_icon_id = 11; + */ + private int currentHeadIconId; + + /** + * optional string signature = 12; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + */ + private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); + + private GetPlayerBoardDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetPlayerBoardDataScRsp} + */ + public static GetPlayerBoardDataScRsp newInstance() { + return new GetPlayerBoardDataScRsp(); + } + + /** + * optional uint32 IBIJADEBLOH = 9; + * @return whether the iBIJADEBLOH field is set + */ + public boolean hasIBIJADEBLOH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 IBIJADEBLOH = 9; + * @return this + */ + public GetPlayerBoardDataScRsp clearIBIJADEBLOH() { + bitField0_ &= ~0x00000001; + iBIJADEBLOH = 0; + return this; + } + + /** + * optional uint32 IBIJADEBLOH = 9; + * @return the iBIJADEBLOH + */ + public int getIBIJADEBLOH() { + return iBIJADEBLOH; + } + + /** + * optional uint32 IBIJADEBLOH = 9; + * @param value the iBIJADEBLOH to set + * @return this + */ + public GetPlayerBoardDataScRsp setIBIJADEBLOH(final int value) { + bitField0_ |= 0x00000001; + iBIJADEBLOH = value; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public GetPlayerBoardDataScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public GetPlayerBoardDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 current_head_icon_id = 11; + * @return whether the currentHeadIconId field is set + */ + public boolean hasCurrentHeadIconId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 current_head_icon_id = 11; + * @return this + */ + public GetPlayerBoardDataScRsp clearCurrentHeadIconId() { + bitField0_ &= ~0x00000004; + currentHeadIconId = 0; + return this; + } + + /** + * optional uint32 current_head_icon_id = 11; + * @return the currentHeadIconId + */ + public int getCurrentHeadIconId() { + return currentHeadIconId; + } + + /** + * optional uint32 current_head_icon_id = 11; + * @param value the currentHeadIconId to set + * @return this + */ + public GetPlayerBoardDataScRsp setCurrentHeadIconId(final int value) { + bitField0_ |= 0x00000004; + currentHeadIconId = value; + return this; + } + + /** + * optional string signature = 12; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string signature = 12; + * @return this + */ + public GetPlayerBoardDataScRsp clearSignature() { + bitField0_ &= ~0x00000008; + signature.clear(); + return this; + } + + /** + * optional string signature = 12; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 12; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 12; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00000008; + return this.signature; + } + + /** + * optional string signature = 12; + * @param value the signature to set + * @return this + */ + public GetPlayerBoardDataScRsp setSignature(final CharSequence value) { + bitField0_ |= 0x00000008; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 12; + * @param value the signature to set + * @return this + */ + public GetPlayerBoardDataScRsp setSignature(final Utf8String value) { + bitField0_ |= 0x00000008; + signature.copyFrom(value); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + * @return whether the unlockedHeadIconList field is set + */ + public boolean hasUnlockedHeadIconList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + * @return this + */ + public GetPlayerBoardDataScRsp clearUnlockedHeadIconList() { + bitField0_ &= ~0x00000010; + unlockedHeadIconList.clear(); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + * + * 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 #getMutableUnlockedHeadIconList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUnlockedHeadIconList() { + return unlockedHeadIconList; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + * + * 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 getMutableUnlockedHeadIconList() { + bitField0_ |= 0x00000010; + return unlockedHeadIconList; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + * @param value the unlockedHeadIconList to add + * @return this + */ + public GetPlayerBoardDataScRsp addUnlockedHeadIconList( + final HeadIconOuterClass.HeadIcon value) { + bitField0_ |= 0x00000010; + unlockedHeadIconList.add(value); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 8; + * @param values the unlockedHeadIconList to add + * @return this + */ + public GetPlayerBoardDataScRsp addAllUnlockedHeadIconList( + final HeadIconOuterClass.HeadIcon... values) { + bitField0_ |= 0x00000010; + unlockedHeadIconList.addAll(values); + return this; + } + + @Override + public GetPlayerBoardDataScRsp copyFrom(final GetPlayerBoardDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + iBIJADEBLOH = other.iBIJADEBLOH; + retcode = other.retcode; + currentHeadIconId = other.currentHeadIconId; + signature.copyFrom(other.signature); + unlockedHeadIconList.copyFrom(other.unlockedHeadIconList); + } + return this; + } + + @Override + public GetPlayerBoardDataScRsp mergeFrom(final GetPlayerBoardDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIBIJADEBLOH()) { + setIBIJADEBLOH(other.iBIJADEBLOH); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurrentHeadIconId()) { + setCurrentHeadIconId(other.currentHeadIconId); + } + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + if (other.hasUnlockedHeadIconList()) { + getMutableUnlockedHeadIconList().addAll(other.unlockedHeadIconList); + } + return this; + } + + @Override + public GetPlayerBoardDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iBIJADEBLOH = 0; + retcode = 0; + currentHeadIconId = 0; + signature.clear(); + unlockedHeadIconList.clear(); + return this; + } + + @Override + public GetPlayerBoardDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + signature.clear(); + unlockedHeadIconList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetPlayerBoardDataScRsp)) { + return false; + } + GetPlayerBoardDataScRsp other = (GetPlayerBoardDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasIBIJADEBLOH() || iBIJADEBLOH == other.iBIJADEBLOH) + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurrentHeadIconId() || currentHeadIconId == other.currentHeadIconId) + && (!hasSignature() || signature.equals(other.signature)) + && (!hasUnlockedHeadIconList() || unlockedHeadIconList.equals(other.unlockedHeadIconList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(iBIJADEBLOH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(currentHeadIconId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 98); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < unlockedHeadIconList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(unlockedHeadIconList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iBIJADEBLOH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(currentHeadIconId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * unlockedHeadIconList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedHeadIconList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetPlayerBoardDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // iBIJADEBLOH + iBIJADEBLOH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // currentHeadIconId + currentHeadIconId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // signature + input.readString(signature); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // unlockedHeadIconList + tag = input.readRepeatedMessage(unlockedHeadIconList, tag); + bitField0_ |= 0x00000010; + 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.iBIJADEBLOH, iBIJADEBLOH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.currentHeadIconId, currentHeadIconId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.unlockedHeadIconList, unlockedHeadIconList); + } + output.endObject(); + } + + @Override + public GetPlayerBoardDataScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1523919381: { + if (input.isAtField(FieldNames.iBIJADEBLOH)) { + if (!input.trySkipNullValue()) { + iBIJADEBLOH = 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 2107487181: + case -1003133880: { + if (input.isAtField(FieldNames.currentHeadIconId)) { + if (!input.trySkipNullValue()) { + currentHeadIconId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1875382586: + case -1276395039: { + if (input.isAtField(FieldNames.unlockedHeadIconList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(unlockedHeadIconList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetPlayerBoardDataScRsp clone() { + return new GetPlayerBoardDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetPlayerBoardDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetPlayerBoardDataScRsp(), data).checkInitialized(); + } + + public static GetPlayerBoardDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPlayerBoardDataScRsp(), input).checkInitialized(); + } + + public static GetPlayerBoardDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPlayerBoardDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetPlayerBoardDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetPlayerBoardDataScRspFactory.INSTANCE; + } + + private enum GetPlayerBoardDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetPlayerBoardDataScRsp create() { + return GetPlayerBoardDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName iBIJADEBLOH = FieldName.forField("IBIJADEBLOH"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName currentHeadIconId = FieldName.forField("currentHeadIconId", "current_head_icon_id"); + + static final FieldName signature = FieldName.forField("signature"); + + static final FieldName unlockedHeadIconList = FieldName.forField("unlockedHeadIconList", "unlocked_head_icon_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java new file mode 100644 index 0000000..f12ad11 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java @@ -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 GetPlayerDetailInfoCsReqOuterClass { + /** + * Protobuf type {@code GetPlayerDetailInfoCsReq} + */ + public static final class GetPlayerDetailInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 uid = 4; + */ + private int uid; + + private GetPlayerDetailInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetPlayerDetailInfoCsReq} + */ + public static GetPlayerDetailInfoCsReq newInstance() { + return new GetPlayerDetailInfoCsReq(); + } + + /** + * optional uint32 uid = 4; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 uid = 4; + * @return this + */ + public GetPlayerDetailInfoCsReq clearUid() { + bitField0_ &= ~0x00000001; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 4; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 4; + * @param value the uid to set + * @return this + */ + public GetPlayerDetailInfoCsReq setUid(final int value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + @Override + public GetPlayerDetailInfoCsReq copyFrom(final GetPlayerDetailInfoCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + } + return this; + } + + @Override + public GetPlayerDetailInfoCsReq mergeFrom(final GetPlayerDetailInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + return this; + } + + @Override + public GetPlayerDetailInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0; + return this; + } + + @Override + public GetPlayerDetailInfoCsReq 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 GetPlayerDetailInfoCsReq)) { + return false; + } + GetPlayerDetailInfoCsReq other = (GetPlayerDetailInfoCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(uid); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetPlayerDetailInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // uid + uid = 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.uid, uid); + } + output.endObject(); + } + + @Override + public GetPlayerDetailInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetPlayerDetailInfoCsReq clone() { + return new GetPlayerDetailInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetPlayerDetailInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetPlayerDetailInfoCsReq(), data).checkInitialized(); + } + + public static GetPlayerDetailInfoCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPlayerDetailInfoCsReq(), input).checkInitialized(); + } + + public static GetPlayerDetailInfoCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPlayerDetailInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetPlayerDetailInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetPlayerDetailInfoCsReqFactory.INSTANCE; + } + + private enum GetPlayerDetailInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetPlayerDetailInfoCsReq create() { + return GetPlayerDetailInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uid = FieldName.forField("uid"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java new file mode 100644 index 0000000..2f44f75 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java @@ -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 GetPlayerDetailInfoScRspOuterClass { + /** + * Protobuf type {@code GetPlayerDetailInfoScRsp} + */ + public static final class GetPlayerDetailInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + private GetPlayerDetailInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetPlayerDetailInfoScRsp} + */ + public static GetPlayerDetailInfoScRsp newInstance() { + return new GetPlayerDetailInfoScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public GetPlayerDetailInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public GetPlayerDetailInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + @Override + public GetPlayerDetailInfoScRsp copyFrom(final GetPlayerDetailInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + } + return this; + } + + @Override + public GetPlayerDetailInfoScRsp mergeFrom(final GetPlayerDetailInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public GetPlayerDetailInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + return this; + } + + @Override + public GetPlayerDetailInfoScRsp 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 GetPlayerDetailInfoScRsp)) { + return false; + } + GetPlayerDetailInfoScRsp other = (GetPlayerDetailInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetPlayerDetailInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = 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.retcode, retcode); + } + output.endObject(); + } + + @Override + public GetPlayerDetailInfoScRsp 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetPlayerDetailInfoScRsp clone() { + return new GetPlayerDetailInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetPlayerDetailInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetPlayerDetailInfoScRsp(), data).checkInitialized(); + } + + public static GetPlayerDetailInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPlayerDetailInfoScRsp(), input).checkInitialized(); + } + + public static GetPlayerDetailInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPlayerDetailInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetPlayerDetailInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetPlayerDetailInfoScRspFactory.INSTANCE; + } + + private enum GetPlayerDetailInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetPlayerDetailInfoScRsp create() { + return GetPlayerDetailInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java new file mode 100644 index 0000000..519f256 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java @@ -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 GetPrivateChatHistoryCsReqOuterClass { + /** + * Protobuf type {@code GetPrivateChatHistoryCsReq} + */ + public static final class GetPrivateChatHistoryCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 to_uid = 13; + */ + private int toUid; + + /** + * optional uint32 NJNHPFLFKCN = 14; + */ + private int nJNHPFLFKCN; + + private GetPrivateChatHistoryCsReq() { + } + + /** + * @return a new empty instance of {@code GetPrivateChatHistoryCsReq} + */ + public static GetPrivateChatHistoryCsReq newInstance() { + return new GetPrivateChatHistoryCsReq(); + } + + /** + * optional uint32 to_uid = 13; + * @return whether the toUid field is set + */ + public boolean hasToUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 to_uid = 13; + * @return this + */ + public GetPrivateChatHistoryCsReq clearToUid() { + bitField0_ &= ~0x00000001; + toUid = 0; + return this; + } + + /** + * optional uint32 to_uid = 13; + * @return the toUid + */ + public int getToUid() { + return toUid; + } + + /** + * optional uint32 to_uid = 13; + * @param value the toUid to set + * @return this + */ + public GetPrivateChatHistoryCsReq setToUid(final int value) { + bitField0_ |= 0x00000001; + toUid = value; + return this; + } + + /** + * optional uint32 NJNHPFLFKCN = 14; + * @return whether the nJNHPFLFKCN field is set + */ + public boolean hasNJNHPFLFKCN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 NJNHPFLFKCN = 14; + * @return this + */ + public GetPrivateChatHistoryCsReq clearNJNHPFLFKCN() { + bitField0_ &= ~0x00000002; + nJNHPFLFKCN = 0; + return this; + } + + /** + * optional uint32 NJNHPFLFKCN = 14; + * @return the nJNHPFLFKCN + */ + public int getNJNHPFLFKCN() { + return nJNHPFLFKCN; + } + + /** + * optional uint32 NJNHPFLFKCN = 14; + * @param value the nJNHPFLFKCN to set + * @return this + */ + public GetPrivateChatHistoryCsReq setNJNHPFLFKCN(final int value) { + bitField0_ |= 0x00000002; + nJNHPFLFKCN = value; + return this; + } + + @Override + public GetPrivateChatHistoryCsReq copyFrom(final GetPrivateChatHistoryCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + toUid = other.toUid; + nJNHPFLFKCN = other.nJNHPFLFKCN; + } + return this; + } + + @Override + public GetPrivateChatHistoryCsReq mergeFrom(final GetPrivateChatHistoryCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasToUid()) { + setToUid(other.toUid); + } + if (other.hasNJNHPFLFKCN()) { + setNJNHPFLFKCN(other.nJNHPFLFKCN); + } + return this; + } + + @Override + public GetPrivateChatHistoryCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + toUid = 0; + nJNHPFLFKCN = 0; + return this; + } + + @Override + public GetPrivateChatHistoryCsReq 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 GetPrivateChatHistoryCsReq)) { + return false; + } + GetPrivateChatHistoryCsReq other = (GetPrivateChatHistoryCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasToUid() || toUid == other.toUid) + && (!hasNJNHPFLFKCN() || nJNHPFLFKCN == other.nJNHPFLFKCN); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(nJNHPFLFKCN); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nJNHPFLFKCN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetPrivateChatHistoryCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // toUid + toUid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // nJNHPFLFKCN + nJNHPFLFKCN = 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.toUid, toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.nJNHPFLFKCN, nJNHPFLFKCN); + } + output.endObject(); + } + + @Override + public GetPrivateChatHistoryCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 110520277: + case -868529012: { + if (input.isAtField(FieldNames.toUid)) { + if (!input.trySkipNullValue()) { + toUid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1657620688: { + if (input.isAtField(FieldNames.nJNHPFLFKCN)) { + if (!input.trySkipNullValue()) { + nJNHPFLFKCN = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetPrivateChatHistoryCsReq clone() { + return new GetPrivateChatHistoryCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetPrivateChatHistoryCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetPrivateChatHistoryCsReq(), data).checkInitialized(); + } + + public static GetPrivateChatHistoryCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPrivateChatHistoryCsReq(), input).checkInitialized(); + } + + public static GetPrivateChatHistoryCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPrivateChatHistoryCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetPrivateChatHistoryCsReq messages + */ + public static MessageFactory getFactory() { + return GetPrivateChatHistoryCsReqFactory.INSTANCE; + } + + private enum GetPrivateChatHistoryCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetPrivateChatHistoryCsReq create() { + return GetPrivateChatHistoryCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName toUid = FieldName.forField("toUid", "to_uid"); + + static final FieldName nJNHPFLFKCN = FieldName.forField("NJNHPFLFKCN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java new file mode 100644 index 0000000..21faf81 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java @@ -0,0 +1,535 @@ +// 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 GetPrivateChatHistoryScRspOuterClass { + /** + * Protobuf type {@code GetPrivateChatHistoryScRsp} + */ + public static final class GetPrivateChatHistoryScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 to_uid = 3; + */ + private int toUid; + + /** + * optional uint32 retcode = 9; + */ + private int retcode; + + /** + * optional uint32 NJNHPFLFKCN = 10; + */ + private int nJNHPFLFKCN; + + /** + * repeated .Chat chat_list = 14; + */ + private final RepeatedMessage chatList = RepeatedMessage.newEmptyInstance(ChatOuterClass.Chat.getFactory()); + + private GetPrivateChatHistoryScRsp() { + } + + /** + * @return a new empty instance of {@code GetPrivateChatHistoryScRsp} + */ + public static GetPrivateChatHistoryScRsp newInstance() { + return new GetPrivateChatHistoryScRsp(); + } + + /** + * optional uint32 to_uid = 3; + * @return whether the toUid field is set + */ + public boolean hasToUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 to_uid = 3; + * @return this + */ + public GetPrivateChatHistoryScRsp clearToUid() { + bitField0_ &= ~0x00000001; + toUid = 0; + return this; + } + + /** + * optional uint32 to_uid = 3; + * @return the toUid + */ + public int getToUid() { + return toUid; + } + + /** + * optional uint32 to_uid = 3; + * @param value the toUid to set + * @return this + */ + public GetPrivateChatHistoryScRsp setToUid(final int value) { + bitField0_ |= 0x00000001; + toUid = value; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 9; + * @return this + */ + public GetPrivateChatHistoryScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 9; + * @param value the retcode to set + * @return this + */ + public GetPrivateChatHistoryScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 NJNHPFLFKCN = 10; + * @return whether the nJNHPFLFKCN field is set + */ + public boolean hasNJNHPFLFKCN() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 NJNHPFLFKCN = 10; + * @return this + */ + public GetPrivateChatHistoryScRsp clearNJNHPFLFKCN() { + bitField0_ &= ~0x00000004; + nJNHPFLFKCN = 0; + return this; + } + + /** + * optional uint32 NJNHPFLFKCN = 10; + * @return the nJNHPFLFKCN + */ + public int getNJNHPFLFKCN() { + return nJNHPFLFKCN; + } + + /** + * optional uint32 NJNHPFLFKCN = 10; + * @param value the nJNHPFLFKCN to set + * @return this + */ + public GetPrivateChatHistoryScRsp setNJNHPFLFKCN(final int value) { + bitField0_ |= 0x00000004; + nJNHPFLFKCN = value; + return this; + } + + /** + * repeated .Chat chat_list = 14; + * @return whether the chatList field is set + */ + public boolean hasChatList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .Chat chat_list = 14; + * @return this + */ + public GetPrivateChatHistoryScRsp clearChatList() { + bitField0_ &= ~0x00000008; + chatList.clear(); + return this; + } + + /** + * repeated .Chat chat_list = 14; + * + * 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 #getMutableChatList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChatList() { + return chatList; + } + + /** + * repeated .Chat chat_list = 14; + * + * 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 getMutableChatList() { + bitField0_ |= 0x00000008; + return chatList; + } + + /** + * repeated .Chat chat_list = 14; + * @param value the chatList to add + * @return this + */ + public GetPrivateChatHistoryScRsp addChatList(final ChatOuterClass.Chat value) { + bitField0_ |= 0x00000008; + chatList.add(value); + return this; + } + + /** + * repeated .Chat chat_list = 14; + * @param values the chatList to add + * @return this + */ + public GetPrivateChatHistoryScRsp addAllChatList(final ChatOuterClass.Chat... values) { + bitField0_ |= 0x00000008; + chatList.addAll(values); + return this; + } + + @Override + public GetPrivateChatHistoryScRsp copyFrom(final GetPrivateChatHistoryScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + toUid = other.toUid; + retcode = other.retcode; + nJNHPFLFKCN = other.nJNHPFLFKCN; + chatList.copyFrom(other.chatList); + } + return this; + } + + @Override + public GetPrivateChatHistoryScRsp mergeFrom(final GetPrivateChatHistoryScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasToUid()) { + setToUid(other.toUid); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasNJNHPFLFKCN()) { + setNJNHPFLFKCN(other.nJNHPFLFKCN); + } + if (other.hasChatList()) { + getMutableChatList().addAll(other.chatList); + } + return this; + } + + @Override + public GetPrivateChatHistoryScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + toUid = 0; + retcode = 0; + nJNHPFLFKCN = 0; + chatList.clear(); + return this; + } + + @Override + public GetPrivateChatHistoryScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chatList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetPrivateChatHistoryScRsp)) { + return false; + } + GetPrivateChatHistoryScRsp other = (GetPrivateChatHistoryScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasToUid() || toUid == other.toUid) + && (!hasRetcode() || retcode == other.retcode) + && (!hasNJNHPFLFKCN() || nJNHPFLFKCN == other.nJNHPFLFKCN) + && (!hasChatList() || chatList.equals(other.chatList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(nJNHPFLFKCN); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < chatList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(chatList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nJNHPFLFKCN); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * chatList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chatList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetPrivateChatHistoryScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // toUid + toUid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // nJNHPFLFKCN + nJNHPFLFKCN = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // chatList + tag = input.readRepeatedMessage(chatList, 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.toUid, toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.nJNHPFLFKCN, nJNHPFLFKCN); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.chatList, chatList); + } + output.endObject(); + } + + @Override + public GetPrivateChatHistoryScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 110520277: + case -868529012: { + if (input.isAtField(FieldNames.toUid)) { + if (!input.trySkipNullValue()) { + toUid = 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 1657620688: { + if (input.isAtField(FieldNames.nJNHPFLFKCN)) { + if (!input.trySkipNullValue()) { + nJNHPFLFKCN = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1437158422: + case 1619864869: { + if (input.isAtField(FieldNames.chatList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chatList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetPrivateChatHistoryScRsp clone() { + return new GetPrivateChatHistoryScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetPrivateChatHistoryScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetPrivateChatHistoryScRsp(), data).checkInitialized(); + } + + public static GetPrivateChatHistoryScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPrivateChatHistoryScRsp(), input).checkInitialized(); + } + + public static GetPrivateChatHistoryScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPrivateChatHistoryScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetPrivateChatHistoryScRsp messages + */ + public static MessageFactory getFactory() { + return GetPrivateChatHistoryScRspFactory.INSTANCE; + } + + private enum GetPrivateChatHistoryScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetPrivateChatHistoryScRsp create() { + return GetPrivateChatHistoryScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName toUid = FieldName.forField("toUid", "to_uid"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName nJNHPFLFKCN = FieldName.forField("NJNHPFLFKCN"); + + static final FieldName chatList = FieldName.forField("chatList", "chat_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java new file mode 100644 index 0000000..9e8cc7e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java @@ -0,0 +1,462 @@ +// 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 GetSceneMapInfoCsReqOuterClass { + /** + * Protobuf type {@code GetSceneMapInfoCsReq} + */ + public static final class GetSceneMapInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entry_id = 9; + */ + private int entryId; + + /** + * optional bool DBHFEKHNIIH = 2; + */ + private boolean dBHFEKHNIIH; + + /** + * repeated uint32 entry_id_list = 15; + */ + private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); + + private GetSceneMapInfoCsReq() { + } + + /** + * @return a new empty instance of {@code GetSceneMapInfoCsReq} + */ + public static GetSceneMapInfoCsReq newInstance() { + return new GetSceneMapInfoCsReq(); + } + + /** + * optional uint32 entry_id = 9; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entry_id = 9; + * @return this + */ + public GetSceneMapInfoCsReq clearEntryId() { + bitField0_ &= ~0x00000001; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 9; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 9; + * @param value the entryId to set + * @return this + */ + public GetSceneMapInfoCsReq setEntryId(final int value) { + bitField0_ |= 0x00000001; + entryId = value; + return this; + } + + /** + * optional bool DBHFEKHNIIH = 2; + * @return whether the dBHFEKHNIIH field is set + */ + public boolean hasDBHFEKHNIIH() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool DBHFEKHNIIH = 2; + * @return this + */ + public GetSceneMapInfoCsReq clearDBHFEKHNIIH() { + bitField0_ &= ~0x00000002; + dBHFEKHNIIH = false; + return this; + } + + /** + * optional bool DBHFEKHNIIH = 2; + * @return the dBHFEKHNIIH + */ + public boolean getDBHFEKHNIIH() { + return dBHFEKHNIIH; + } + + /** + * optional bool DBHFEKHNIIH = 2; + * @param value the dBHFEKHNIIH to set + * @return this + */ + public GetSceneMapInfoCsReq setDBHFEKHNIIH(final boolean value) { + bitField0_ |= 0x00000002; + dBHFEKHNIIH = value; + return this; + } + + /** + * repeated uint32 entry_id_list = 15; + * @return whether the entryIdList field is set + */ + public boolean hasEntryIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 entry_id_list = 15; + * @return this + */ + public GetSceneMapInfoCsReq clearEntryIdList() { + bitField0_ &= ~0x00000004; + entryIdList.clear(); + return this; + } + + /** + * repeated uint32 entry_id_list = 15; + * + * 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 #getMutableEntryIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getEntryIdList() { + return entryIdList; + } + + /** + * repeated uint32 entry_id_list = 15; + * + * 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 getMutableEntryIdList() { + bitField0_ |= 0x00000004; + return entryIdList; + } + + /** + * repeated uint32 entry_id_list = 15; + * @param value the entryIdList to add + * @return this + */ + public GetSceneMapInfoCsReq addEntryIdList(final int value) { + bitField0_ |= 0x00000004; + entryIdList.add(value); + return this; + } + + /** + * repeated uint32 entry_id_list = 15; + * @param values the entryIdList to add + * @return this + */ + public GetSceneMapInfoCsReq addAllEntryIdList(final int... values) { + bitField0_ |= 0x00000004; + entryIdList.addAll(values); + return this; + } + + @Override + public GetSceneMapInfoCsReq copyFrom(final GetSceneMapInfoCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entryId = other.entryId; + dBHFEKHNIIH = other.dBHFEKHNIIH; + entryIdList.copyFrom(other.entryIdList); + } + return this; + } + + @Override + public GetSceneMapInfoCsReq mergeFrom(final GetSceneMapInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasDBHFEKHNIIH()) { + setDBHFEKHNIIH(other.dBHFEKHNIIH); + } + if (other.hasEntryIdList()) { + getMutableEntryIdList().addAll(other.entryIdList); + } + return this; + } + + @Override + public GetSceneMapInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entryId = 0; + dBHFEKHNIIH = false; + entryIdList.clear(); + return this; + } + + @Override + public GetSceneMapInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entryIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetSceneMapInfoCsReq)) { + return false; + } + GetSceneMapInfoCsReq other = (GetSceneMapInfoCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEntryId() || entryId == other.entryId) + && (!hasDBHFEKHNIIH() || dBHFEKHNIIH == other.dBHFEKHNIIH) + && (!hasEntryIdList() || entryIdList.equals(other.entryIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(dBHFEKHNIIH); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < entryIdList.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(entryIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * entryIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(entryIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetSceneMapInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // dBHFEKHNIIH + dBHFEKHNIIH = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // entryIdList [packed=true] + input.readPackedUInt32(entryIdList, 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 120: { + // entryIdList [packed=false] + tag = input.readRepeatedUInt32(entryIdList, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.dBHFEKHNIIH, dBHFEKHNIIH); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.entryIdList, entryIdList); + } + output.endObject(); + } + + @Override + public GetSceneMapInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1755627008: { + if (input.isAtField(FieldNames.dBHFEKHNIIH)) { + if (!input.trySkipNullValue()) { + dBHFEKHNIIH = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1441102997: + case -1413189003: { + if (input.isAtField(FieldNames.entryIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(entryIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetSceneMapInfoCsReq clone() { + return new GetSceneMapInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetSceneMapInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetSceneMapInfoCsReq(), data).checkInitialized(); + } + + public static GetSceneMapInfoCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetSceneMapInfoCsReq(), input).checkInitialized(); + } + + public static GetSceneMapInfoCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetSceneMapInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetSceneMapInfoCsReq messages + */ + public static MessageFactory getFactory() { + return GetSceneMapInfoCsReqFactory.INSTANCE; + } + + private enum GetSceneMapInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetSceneMapInfoCsReq create() { + return GetSceneMapInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName dBHFEKHNIIH = FieldName.forField("DBHFEKHNIIH"); + + static final FieldName entryIdList = FieldName.forField("entryIdList", "entry_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java new file mode 100644 index 0000000..2708c6f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java @@ -0,0 +1,1220 @@ +// 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 GetSceneMapInfoScRspOuterClass { + /** + * Protobuf type {@code GetSceneMapInfoScRsp} + */ + public static final class GetSceneMapInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional uint32 cur_map_entry_id = 9; + */ + private int curMapEntryId; + + /** + * optional uint32 entry_id = 12; + */ + private int entryId; + + /** + * optional bool DBHFEKHNIIH = 10; + */ + private boolean dBHFEKHNIIH; + + /** + * repeated uint32 PLHHEJPGCNP = 1; + */ + private final RepeatedInt pLHHEJPGCNP = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 PEJMPFBLINI = 4; + */ + private final RepeatedInt pEJMPFBLINI = RepeatedInt.newEmptyInstance(); + + /** + * repeated .MazeProp maze_prop_list = 3; + */ + private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); + + /** + * repeated .MazeGroup maze_group_list = 5; + */ + private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); + + /** + * repeated .MazeChest unlocked_chest_list = 6; + */ + private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + + /** + * repeated .MazeMapData map_list = 7; + */ + private final RepeatedMessage mapList = RepeatedMessage.newEmptyInstance(MazeMapDataOuterClass.MazeMapData.getFactory()); + + private GetSceneMapInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetSceneMapInfoScRsp} + */ + public static GetSceneMapInfoScRsp newInstance() { + return new GetSceneMapInfoScRsp(); + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public GetSceneMapInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public GetSceneMapInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @return whether the curMapEntryId field is set + */ + public boolean hasCurMapEntryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @return this + */ + public GetSceneMapInfoScRsp clearCurMapEntryId() { + bitField0_ &= ~0x00000002; + curMapEntryId = 0; + return this; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @return the curMapEntryId + */ + public int getCurMapEntryId() { + return curMapEntryId; + } + + /** + * optional uint32 cur_map_entry_id = 9; + * @param value the curMapEntryId to set + * @return this + */ + public GetSceneMapInfoScRsp setCurMapEntryId(final int value) { + bitField0_ |= 0x00000002; + curMapEntryId = value; + return this; + } + + /** + * optional uint32 entry_id = 12; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 entry_id = 12; + * @return this + */ + public GetSceneMapInfoScRsp clearEntryId() { + bitField0_ &= ~0x00000004; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 12; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 12; + * @param value the entryId to set + * @return this + */ + public GetSceneMapInfoScRsp setEntryId(final int value) { + bitField0_ |= 0x00000004; + entryId = value; + return this; + } + + /** + * optional bool DBHFEKHNIIH = 10; + * @return whether the dBHFEKHNIIH field is set + */ + public boolean hasDBHFEKHNIIH() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool DBHFEKHNIIH = 10; + * @return this + */ + public GetSceneMapInfoScRsp clearDBHFEKHNIIH() { + bitField0_ &= ~0x00000008; + dBHFEKHNIIH = false; + return this; + } + + /** + * optional bool DBHFEKHNIIH = 10; + * @return the dBHFEKHNIIH + */ + public boolean getDBHFEKHNIIH() { + return dBHFEKHNIIH; + } + + /** + * optional bool DBHFEKHNIIH = 10; + * @param value the dBHFEKHNIIH to set + * @return this + */ + public GetSceneMapInfoScRsp setDBHFEKHNIIH(final boolean value) { + bitField0_ |= 0x00000008; + dBHFEKHNIIH = value; + return this; + } + + /** + * repeated uint32 PLHHEJPGCNP = 1; + * @return whether the pLHHEJPGCNP field is set + */ + public boolean hasPLHHEJPGCNP() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 PLHHEJPGCNP = 1; + * @return this + */ + public GetSceneMapInfoScRsp clearPLHHEJPGCNP() { + bitField0_ &= ~0x00000010; + pLHHEJPGCNP.clear(); + return this; + } + + /** + * repeated uint32 PLHHEJPGCNP = 1; + * + * 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 #getMutablePLHHEJPGCNP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPLHHEJPGCNP() { + return pLHHEJPGCNP; + } + + /** + * repeated uint32 PLHHEJPGCNP = 1; + * + * 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 getMutablePLHHEJPGCNP() { + bitField0_ |= 0x00000010; + return pLHHEJPGCNP; + } + + /** + * repeated uint32 PLHHEJPGCNP = 1; + * @param value the pLHHEJPGCNP to add + * @return this + */ + public GetSceneMapInfoScRsp addPLHHEJPGCNP(final int value) { + bitField0_ |= 0x00000010; + pLHHEJPGCNP.add(value); + return this; + } + + /** + * repeated uint32 PLHHEJPGCNP = 1; + * @param values the pLHHEJPGCNP to add + * @return this + */ + public GetSceneMapInfoScRsp addAllPLHHEJPGCNP(final int... values) { + bitField0_ |= 0x00000010; + pLHHEJPGCNP.addAll(values); + return this; + } + + /** + * repeated uint32 PEJMPFBLINI = 4; + * @return whether the pEJMPFBLINI field is set + */ + public boolean hasPEJMPFBLINI() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 PEJMPFBLINI = 4; + * @return this + */ + public GetSceneMapInfoScRsp clearPEJMPFBLINI() { + bitField0_ &= ~0x00000020; + pEJMPFBLINI.clear(); + return this; + } + + /** + * repeated uint32 PEJMPFBLINI = 4; + * + * 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 #getMutablePEJMPFBLINI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPEJMPFBLINI() { + return pEJMPFBLINI; + } + + /** + * repeated uint32 PEJMPFBLINI = 4; + * + * 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 getMutablePEJMPFBLINI() { + bitField0_ |= 0x00000020; + return pEJMPFBLINI; + } + + /** + * repeated uint32 PEJMPFBLINI = 4; + * @param value the pEJMPFBLINI to add + * @return this + */ + public GetSceneMapInfoScRsp addPEJMPFBLINI(final int value) { + bitField0_ |= 0x00000020; + pEJMPFBLINI.add(value); + return this; + } + + /** + * repeated uint32 PEJMPFBLINI = 4; + * @param values the pEJMPFBLINI to add + * @return this + */ + public GetSceneMapInfoScRsp addAllPEJMPFBLINI(final int... values) { + bitField0_ |= 0x00000020; + pEJMPFBLINI.addAll(values); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 3; + * @return whether the mazePropList field is set + */ + public boolean hasMazePropList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .MazeProp maze_prop_list = 3; + * @return this + */ + public GetSceneMapInfoScRsp clearMazePropList() { + bitField0_ &= ~0x00000040; + mazePropList.clear(); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 3; + * + * 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 #getMutableMazePropList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazePropList() { + return mazePropList; + } + + /** + * repeated .MazeProp maze_prop_list = 3; + * + * 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 getMutableMazePropList() { + bitField0_ |= 0x00000040; + return mazePropList; + } + + /** + * repeated .MazeProp maze_prop_list = 3; + * @param value the mazePropList to add + * @return this + */ + public GetSceneMapInfoScRsp addMazePropList(final MazePropOuterClass.MazeProp value) { + bitField0_ |= 0x00000040; + mazePropList.add(value); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 3; + * @param values the mazePropList to add + * @return this + */ + public GetSceneMapInfoScRsp addAllMazePropList(final MazePropOuterClass.MazeProp... values) { + bitField0_ |= 0x00000040; + mazePropList.addAll(values); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @return whether the mazeGroupList field is set + */ + public boolean hasMazeGroupList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @return this + */ + public GetSceneMapInfoScRsp clearMazeGroupList() { + bitField0_ &= ~0x00000080; + mazeGroupList.clear(); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * + * 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 #getMutableMazeGroupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazeGroupList() { + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * + * 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 getMutableMazeGroupList() { + bitField0_ |= 0x00000080; + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @param value the mazeGroupList to add + * @return this + */ + public GetSceneMapInfoScRsp addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { + bitField0_ |= 0x00000080; + mazeGroupList.add(value); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @param values the mazeGroupList to add + * @return this + */ + public GetSceneMapInfoScRsp addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { + bitField0_ |= 0x00000080; + mazeGroupList.addAll(values); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 6; + * @return whether the unlockedChestList field is set + */ + public boolean hasUnlockedChestList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .MazeChest unlocked_chest_list = 6; + * @return this + */ + public GetSceneMapInfoScRsp clearUnlockedChestList() { + bitField0_ &= ~0x00000100; + unlockedChestList.clear(); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 6; + * + * 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 #getMutableUnlockedChestList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUnlockedChestList() { + return unlockedChestList; + } + + /** + * repeated .MazeChest unlocked_chest_list = 6; + * + * 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 getMutableUnlockedChestList() { + bitField0_ |= 0x00000100; + return unlockedChestList; + } + + /** + * repeated .MazeChest unlocked_chest_list = 6; + * @param value the unlockedChestList to add + * @return this + */ + public GetSceneMapInfoScRsp addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { + bitField0_ |= 0x00000100; + unlockedChestList.add(value); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 6; + * @param values the unlockedChestList to add + * @return this + */ + public GetSceneMapInfoScRsp addAllUnlockedChestList( + final MazeChestOuterClass.MazeChest... values) { + bitField0_ |= 0x00000100; + unlockedChestList.addAll(values); + return this; + } + + /** + * repeated .MazeMapData map_list = 7; + * @return whether the mapList field is set + */ + public boolean hasMapList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .MazeMapData map_list = 7; + * @return this + */ + public GetSceneMapInfoScRsp clearMapList() { + bitField0_ &= ~0x00000200; + mapList.clear(); + return this; + } + + /** + * repeated .MazeMapData map_list = 7; + * + * 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 #getMutableMapList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMapList() { + return mapList; + } + + /** + * repeated .MazeMapData map_list = 7; + * + * 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 getMutableMapList() { + bitField0_ |= 0x00000200; + return mapList; + } + + /** + * repeated .MazeMapData map_list = 7; + * @param value the mapList to add + * @return this + */ + public GetSceneMapInfoScRsp addMapList(final MazeMapDataOuterClass.MazeMapData value) { + bitField0_ |= 0x00000200; + mapList.add(value); + return this; + } + + /** + * repeated .MazeMapData map_list = 7; + * @param values the mapList to add + * @return this + */ + public GetSceneMapInfoScRsp addAllMapList(final MazeMapDataOuterClass.MazeMapData... values) { + bitField0_ |= 0x00000200; + mapList.addAll(values); + return this; + } + + @Override + public GetSceneMapInfoScRsp copyFrom(final GetSceneMapInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + curMapEntryId = other.curMapEntryId; + entryId = other.entryId; + dBHFEKHNIIH = other.dBHFEKHNIIH; + pLHHEJPGCNP.copyFrom(other.pLHHEJPGCNP); + pEJMPFBLINI.copyFrom(other.pEJMPFBLINI); + mazePropList.copyFrom(other.mazePropList); + mazeGroupList.copyFrom(other.mazeGroupList); + unlockedChestList.copyFrom(other.unlockedChestList); + mapList.copyFrom(other.mapList); + } + return this; + } + + @Override + public GetSceneMapInfoScRsp mergeFrom(final GetSceneMapInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurMapEntryId()) { + setCurMapEntryId(other.curMapEntryId); + } + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasDBHFEKHNIIH()) { + setDBHFEKHNIIH(other.dBHFEKHNIIH); + } + if (other.hasPLHHEJPGCNP()) { + getMutablePLHHEJPGCNP().addAll(other.pLHHEJPGCNP); + } + if (other.hasPEJMPFBLINI()) { + getMutablePEJMPFBLINI().addAll(other.pEJMPFBLINI); + } + if (other.hasMazePropList()) { + getMutableMazePropList().addAll(other.mazePropList); + } + if (other.hasMazeGroupList()) { + getMutableMazeGroupList().addAll(other.mazeGroupList); + } + if (other.hasUnlockedChestList()) { + getMutableUnlockedChestList().addAll(other.unlockedChestList); + } + if (other.hasMapList()) { + getMutableMapList().addAll(other.mapList); + } + return this; + } + + @Override + public GetSceneMapInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + curMapEntryId = 0; + entryId = 0; + dBHFEKHNIIH = false; + pLHHEJPGCNP.clear(); + pEJMPFBLINI.clear(); + mazePropList.clear(); + mazeGroupList.clear(); + unlockedChestList.clear(); + mapList.clear(); + return this; + } + + @Override + public GetSceneMapInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pLHHEJPGCNP.clear(); + pEJMPFBLINI.clear(); + mazePropList.clearQuick(); + mazeGroupList.clearQuick(); + unlockedChestList.clearQuick(); + mapList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetSceneMapInfoScRsp)) { + return false; + } + GetSceneMapInfoScRsp other = (GetSceneMapInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurMapEntryId() || curMapEntryId == other.curMapEntryId) + && (!hasEntryId() || entryId == other.entryId) + && (!hasDBHFEKHNIIH() || dBHFEKHNIIH == other.dBHFEKHNIIH) + && (!hasPLHHEJPGCNP() || pLHHEJPGCNP.equals(other.pLHHEJPGCNP)) + && (!hasPEJMPFBLINI() || pEJMPFBLINI.equals(other.pEJMPFBLINI)) + && (!hasMazePropList() || mazePropList.equals(other.mazePropList)) + && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)) + && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) + && (!hasMapList() || mapList.equals(other.mapList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(curMapEntryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeBoolNoTag(dBHFEKHNIIH); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < pLHHEJPGCNP.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(pLHHEJPGCNP.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < pEJMPFBLINI.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(pEJMPFBLINI.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < mazePropList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(mazePropList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < mazeGroupList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(mazeGroupList.get(i)); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < unlockedChestList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(unlockedChestList.get(i)); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < mapList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(mapList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curMapEntryId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * pLHHEJPGCNP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pLHHEJPGCNP); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * pEJMPFBLINI.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pEJMPFBLINI); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * mapList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mapList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetSceneMapInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // curMapEntryId + curMapEntryId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // dBHFEKHNIIH + dBHFEKHNIIH = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // pLHHEJPGCNP [packed=true] + input.readPackedUInt32(pLHHEJPGCNP, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // pEJMPFBLINI [packed=true] + input.readPackedUInt32(pEJMPFBLINI, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // mazePropList + tag = input.readRepeatedMessage(mazePropList, tag); + bitField0_ |= 0x00000040; + if (tag != 42) { + break; + } + } + case 42: { + // mazeGroupList + tag = input.readRepeatedMessage(mazeGroupList, tag); + bitField0_ |= 0x00000080; + if (tag != 50) { + break; + } + } + case 50: { + // unlockedChestList + tag = input.readRepeatedMessage(unlockedChestList, tag); + bitField0_ |= 0x00000100; + if (tag != 58) { + break; + } + } + case 58: { + // mapList + tag = input.readRepeatedMessage(mapList, tag); + bitField0_ |= 0x00000200; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // pLHHEJPGCNP [packed=false] + tag = input.readRepeatedUInt32(pLHHEJPGCNP, tag); + bitField0_ |= 0x00000010; + break; + } + case 32: { + // pEJMPFBLINI [packed=false] + tag = input.readRepeatedUInt32(pEJMPFBLINI, tag); + bitField0_ |= 0x00000020; + 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.curMapEntryId, curMapEntryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.dBHFEKHNIIH, dBHFEKHNIIH); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.pLHHEJPGCNP, pLHHEJPGCNP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.pEJMPFBLINI, pEJMPFBLINI); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.mapList, mapList); + } + output.endObject(); + } + + @Override + public GetSceneMapInfoScRsp 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 764919441: + case 2115673898: { + if (input.isAtField(FieldNames.curMapEntryId)) { + if (!input.trySkipNullValue()) { + curMapEntryId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1755627008: { + if (input.isAtField(FieldNames.dBHFEKHNIIH)) { + if (!input.trySkipNullValue()) { + dBHFEKHNIIH = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1128889619: { + if (input.isAtField(FieldNames.pLHHEJPGCNP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pLHHEJPGCNP); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2096195084: { + if (input.isAtField(FieldNames.pEJMPFBLINI)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pEJMPFBLINI); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1676123008: + case 1875839866: { + if (input.isAtField(FieldNames.mazePropList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazePropList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -317054274: + case 407435998: { + if (input.isAtField(FieldNames.mazeGroupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazeGroupList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -337762404: + case 231688696: { + if (input.isAtField(FieldNames.unlockedChestList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(unlockedChestList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 836484122: + case 178830753: { + if (input.isAtField(FieldNames.mapList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mapList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetSceneMapInfoScRsp clone() { + return new GetSceneMapInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetSceneMapInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetSceneMapInfoScRsp(), data).checkInitialized(); + } + + public static GetSceneMapInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetSceneMapInfoScRsp(), input).checkInitialized(); + } + + public static GetSceneMapInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetSceneMapInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetSceneMapInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetSceneMapInfoScRspFactory.INSTANCE; + } + + private enum GetSceneMapInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetSceneMapInfoScRsp create() { + return GetSceneMapInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curMapEntryId = FieldName.forField("curMapEntryId", "cur_map_entry_id"); + + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName dBHFEKHNIIH = FieldName.forField("DBHFEKHNIIH"); + + static final FieldName pLHHEJPGCNP = FieldName.forField("PLHHEJPGCNP"); + + static final FieldName pEJMPFBLINI = FieldName.forField("PEJMPFBLINI"); + + static final FieldName mazePropList = FieldName.forField("mazePropList", "maze_prop_list"); + + static final FieldName mazeGroupList = FieldName.forField("mazeGroupList", "maze_group_list"); + + static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); + + static final FieldName mapList = FieldName.forField("mapList", "map_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java new file mode 100644 index 0000000..2394832 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java @@ -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 GetShopListCsReqOuterClass { + /** + * Protobuf type {@code GetShopListCsReq} + */ + public static final class GetShopListCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 shop_type = 7; + */ + private int shopType; + + private GetShopListCsReq() { + } + + /** + * @return a new empty instance of {@code GetShopListCsReq} + */ + public static GetShopListCsReq newInstance() { + return new GetShopListCsReq(); + } + + /** + * optional uint32 shop_type = 7; + * @return whether the shopType field is set + */ + public boolean hasShopType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 shop_type = 7; + * @return this + */ + public GetShopListCsReq clearShopType() { + bitField0_ &= ~0x00000001; + shopType = 0; + return this; + } + + /** + * optional uint32 shop_type = 7; + * @return the shopType + */ + public int getShopType() { + return shopType; + } + + /** + * optional uint32 shop_type = 7; + * @param value the shopType to set + * @return this + */ + public GetShopListCsReq setShopType(final int value) { + bitField0_ |= 0x00000001; + shopType = value; + return this; + } + + @Override + public GetShopListCsReq copyFrom(final GetShopListCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + shopType = other.shopType; + } + return this; + } + + @Override + public GetShopListCsReq mergeFrom(final GetShopListCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasShopType()) { + setShopType(other.shopType); + } + return this; + } + + @Override + public GetShopListCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + shopType = 0; + return this; + } + + @Override + public GetShopListCsReq 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 GetShopListCsReq)) { + return false; + } + GetShopListCsReq other = (GetShopListCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasShopType() || shopType == other.shopType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(shopType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetShopListCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // shopType + shopType = 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.shopType, shopType); + } + output.endObject(); + } + + @Override + public GetShopListCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -345279664: + case -2103716125: { + if (input.isAtField(FieldNames.shopType)) { + if (!input.trySkipNullValue()) { + shopType = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetShopListCsReq clone() { + return new GetShopListCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetShopListCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetShopListCsReq(), data).checkInitialized(); + } + + public static GetShopListCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetShopListCsReq(), input).checkInitialized(); + } + + public static GetShopListCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetShopListCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetShopListCsReq messages + */ + public static MessageFactory getFactory() { + return GetShopListCsReqFactory.INSTANCE; + } + + private enum GetShopListCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetShopListCsReq create() { + return GetShopListCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName shopType = FieldName.forField("shopType", "shop_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java new file mode 100644 index 0000000..c6b759a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java @@ -0,0 +1,455 @@ +// 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 GetShopListScRspOuterClass { + /** + * Protobuf type {@code GetShopListScRsp} + */ + public static final class GetShopListScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + /** + * optional uint32 shop_type = 14; + */ + private int shopType; + + /** + * repeated .Shop shop_list = 6; + */ + private final RepeatedMessage shopList = RepeatedMessage.newEmptyInstance(ShopOuterClass.Shop.getFactory()); + + private GetShopListScRsp() { + } + + /** + * @return a new empty instance of {@code GetShopListScRsp} + */ + public static GetShopListScRsp newInstance() { + return new GetShopListScRsp(); + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public GetShopListScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public GetShopListScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 shop_type = 14; + * @return whether the shopType field is set + */ + public boolean hasShopType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 shop_type = 14; + * @return this + */ + public GetShopListScRsp clearShopType() { + bitField0_ &= ~0x00000002; + shopType = 0; + return this; + } + + /** + * optional uint32 shop_type = 14; + * @return the shopType + */ + public int getShopType() { + return shopType; + } + + /** + * optional uint32 shop_type = 14; + * @param value the shopType to set + * @return this + */ + public GetShopListScRsp setShopType(final int value) { + bitField0_ |= 0x00000002; + shopType = value; + return this; + } + + /** + * repeated .Shop shop_list = 6; + * @return whether the shopList field is set + */ + public boolean hasShopList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .Shop shop_list = 6; + * @return this + */ + public GetShopListScRsp clearShopList() { + bitField0_ &= ~0x00000004; + shopList.clear(); + return this; + } + + /** + * repeated .Shop shop_list = 6; + * + * 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 #getMutableShopList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getShopList() { + return shopList; + } + + /** + * repeated .Shop shop_list = 6; + * + * 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 getMutableShopList() { + bitField0_ |= 0x00000004; + return shopList; + } + + /** + * repeated .Shop shop_list = 6; + * @param value the shopList to add + * @return this + */ + public GetShopListScRsp addShopList(final ShopOuterClass.Shop value) { + bitField0_ |= 0x00000004; + shopList.add(value); + return this; + } + + /** + * repeated .Shop shop_list = 6; + * @param values the shopList to add + * @return this + */ + public GetShopListScRsp addAllShopList(final ShopOuterClass.Shop... values) { + bitField0_ |= 0x00000004; + shopList.addAll(values); + return this; + } + + @Override + public GetShopListScRsp copyFrom(final GetShopListScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + shopType = other.shopType; + shopList.copyFrom(other.shopList); + } + return this; + } + + @Override + public GetShopListScRsp mergeFrom(final GetShopListScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasShopType()) { + setShopType(other.shopType); + } + if (other.hasShopList()) { + getMutableShopList().addAll(other.shopList); + } + return this; + } + + @Override + public GetShopListScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + shopType = 0; + shopList.clear(); + return this; + } + + @Override + public GetShopListScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + shopList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetShopListScRsp)) { + return false; + } + GetShopListScRsp other = (GetShopListScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasShopType() || shopType == other.shopType) + && (!hasShopList() || shopList.equals(other.shopList)); + } + + @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) 112); + output.writeUInt32NoTag(shopType); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < shopList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(shopList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * shopList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(shopList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetShopListScRsp 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 != 112) { + break; + } + } + case 112: { + // shopType + shopType = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // shopList + tag = input.readRepeatedMessage(shopList, 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.writeUInt32(FieldNames.shopType, shopType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.shopList, shopList); + } + output.endObject(); + } + + @Override + public GetShopListScRsp 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 -345279664: + case -2103716125: { + if (input.isAtField(FieldNames.shopType)) { + if (!input.trySkipNullValue()) { + shopType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -345533260: + case -2103969721: { + if (input.isAtField(FieldNames.shopList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(shopList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetShopListScRsp clone() { + return new GetShopListScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetShopListScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetShopListScRsp(), data).checkInitialized(); + } + + public static GetShopListScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetShopListScRsp(), input).checkInitialized(); + } + + public static GetShopListScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetShopListScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetShopListScRsp messages + */ + public static MessageFactory getFactory() { + return GetShopListScRspFactory.INSTANCE; + } + + private enum GetShopListScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetShopListScRsp create() { + return GetShopListScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName shopType = FieldName.forField("shopType", "shop_type"); + + static final FieldName shopList = FieldName.forField("shopList", "shop_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java new file mode 100644 index 0000000..1c6c770 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java @@ -0,0 +1,583 @@ +// 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 GoodsOuterClass { + /** + * Protobuf type {@code Goods} + */ + public static final class Goods extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 end_time = 7; + */ + private long endTime; + + /** + * optional int64 begin_time = 12; + */ + private long beginTime; + + /** + * optional uint32 goods_id = 5; + */ + private int goodsId; + + /** + * optional uint32 item_id = 10; + */ + private int itemId; + + /** + * optional uint32 buy_times = 14; + */ + private int buyTimes; + + private Goods() { + } + + /** + * @return a new empty instance of {@code Goods} + */ + public static Goods newInstance() { + return new Goods(); + } + + /** + * optional int64 end_time = 7; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 end_time = 7; + * @return this + */ + public Goods clearEndTime() { + bitField0_ &= ~0x00000001; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 7; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 7; + * @param value the endTime to set + * @return this + */ + public Goods setEndTime(final long value) { + bitField0_ |= 0x00000001; + endTime = value; + return this; + } + + /** + * optional int64 begin_time = 12; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 begin_time = 12; + * @return this + */ + public Goods clearBeginTime() { + bitField0_ &= ~0x00000002; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 12; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 12; + * @param value the beginTime to set + * @return this + */ + public Goods setBeginTime(final long value) { + bitField0_ |= 0x00000002; + beginTime = value; + return this; + } + + /** + * optional uint32 goods_id = 5; + * @return whether the goodsId field is set + */ + public boolean hasGoodsId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 goods_id = 5; + * @return this + */ + public Goods clearGoodsId() { + bitField0_ &= ~0x00000004; + goodsId = 0; + return this; + } + + /** + * optional uint32 goods_id = 5; + * @return the goodsId + */ + public int getGoodsId() { + return goodsId; + } + + /** + * optional uint32 goods_id = 5; + * @param value the goodsId to set + * @return this + */ + public Goods setGoodsId(final int value) { + bitField0_ |= 0x00000004; + goodsId = value; + return this; + } + + /** + * optional uint32 item_id = 10; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 item_id = 10; + * @return this + */ + public Goods clearItemId() { + bitField0_ &= ~0x00000008; + itemId = 0; + return this; + } + + /** + * optional uint32 item_id = 10; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 10; + * @param value the itemId to set + * @return this + */ + public Goods setItemId(final int value) { + bitField0_ |= 0x00000008; + itemId = value; + return this; + } + + /** + * optional uint32 buy_times = 14; + * @return whether the buyTimes field is set + */ + public boolean hasBuyTimes() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 buy_times = 14; + * @return this + */ + public Goods clearBuyTimes() { + bitField0_ &= ~0x00000010; + buyTimes = 0; + return this; + } + + /** + * optional uint32 buy_times = 14; + * @return the buyTimes + */ + public int getBuyTimes() { + return buyTimes; + } + + /** + * optional uint32 buy_times = 14; + * @param value the buyTimes to set + * @return this + */ + public Goods setBuyTimes(final int value) { + bitField0_ |= 0x00000010; + buyTimes = value; + return this; + } + + @Override + public Goods copyFrom(final Goods other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + endTime = other.endTime; + beginTime = other.beginTime; + goodsId = other.goodsId; + itemId = other.itemId; + buyTimes = other.buyTimes; + } + return this; + } + + @Override + public Goods mergeFrom(final Goods other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasGoodsId()) { + setGoodsId(other.goodsId); + } + if (other.hasItemId()) { + setItemId(other.itemId); + } + if (other.hasBuyTimes()) { + setBuyTimes(other.buyTimes); + } + return this; + } + + @Override + public Goods clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + endTime = 0L; + beginTime = 0L; + goodsId = 0; + itemId = 0; + buyTimes = 0; + return this; + } + + @Override + public Goods 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 Goods)) { + return false; + } + Goods other = (Goods) o; + return bitField0_ == other.bitField0_ + && (!hasEndTime() || endTime == other.endTime) + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasGoodsId() || goodsId == other.goodsId) + && (!hasItemId() || itemId == other.itemId) + && (!hasBuyTimes() || buyTimes == other.buyTimes); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(goodsId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(buyTimes); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buyTimes); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Goods mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // goodsId + goodsId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // buyTimes + buyTimes = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.goodsId, goodsId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.itemId, itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.buyTimes, buyTimes); + } + output.endObject(); + } + + @Override + public Goods mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 207037201: + case 2123207332: { + if (input.isAtField(FieldNames.goodsId)) { + if (!input.trySkipNullValue()) { + goodsId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -994591648: + case -442602419: { + if (input.isAtField(FieldNames.buyTimes)) { + if (!input.trySkipNullValue()) { + buyTimes = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Goods clone() { + return new Goods().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Goods parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Goods(), data).checkInitialized(); + } + + public static Goods parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Goods(), input).checkInitialized(); + } + + public static Goods parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Goods(), input).checkInitialized(); + } + + /** + * @return factory for creating Goods messages + */ + public static MessageFactory getFactory() { + return GoodsFactory.INSTANCE; + } + + private enum GoodsFactory implements MessageFactory { + INSTANCE; + + @Override + public Goods create() { + return Goods.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + + static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); + + static final FieldName itemId = FieldName.forField("itemId", "item_id"); + + static final FieldName buyTimes = FieldName.forField("buyTimes", "buy_times"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java new file mode 100644 index 0000000..fc48c20 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java @@ -0,0 +1,258 @@ +// 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 HeadIconOuterClass { + /** + * Protobuf type {@code HeadIcon} + */ + public static final class HeadIcon extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 9; + */ + private int id; + + private HeadIcon() { + } + + /** + * @return a new empty instance of {@code HeadIcon} + */ + public static HeadIcon newInstance() { + return new HeadIcon(); + } + + /** + * optional uint32 id = 9; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 9; + * @return this + */ + public HeadIcon clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 9; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 9; + * @param value the id to set + * @return this + */ + public HeadIcon setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + @Override + public HeadIcon copyFrom(final HeadIcon other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + } + return this; + } + + @Override + public HeadIcon mergeFrom(final HeadIcon other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + return this; + } + + @Override + public HeadIcon clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + return this; + } + + @Override + public HeadIcon 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 HeadIcon)) { + return false; + } + HeadIcon other = (HeadIcon) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public HeadIcon mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // id + id = 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.id, id); + } + output.endObject(); + } + + @Override + public HeadIcon mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public HeadIcon clone() { + return new HeadIcon().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HeadIcon parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HeadIcon(), data).checkInitialized(); + } + + public static HeadIcon parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HeadIcon(), input).checkInitialized(); + } + + public static HeadIcon parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HeadIcon(), input).checkInitialized(); + } + + /** + * @return factory for creating HeadIcon messages + */ + public static MessageFactory getFactory() { + return HeadIconFactory.INSTANCE; + } + + private enum HeadIconFactory implements MessageFactory { + INSTANCE; + + @Override + public HeadIcon create() { + return HeadIcon.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java new file mode 100644 index 0000000..1fc72aa --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeInfoOuterClass.java @@ -0,0 +1,490 @@ +// 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 HeroBasicTypeInfoOuterClass { + /** + * Protobuf type {@code HeroBasicTypeInfo} + */ + public static final class HeroBasicTypeInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 rank = 14; + */ + private int rank; + + /** + * optional .HeroBasicType basic_type = 10; + */ + private int basicType; + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + */ + private final RepeatedMessage skillTreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); + + private HeroBasicTypeInfo() { + } + + /** + * @return a new empty instance of {@code HeroBasicTypeInfo} + */ + public static HeroBasicTypeInfo newInstance() { + return new HeroBasicTypeInfo(); + } + + /** + * optional uint32 rank = 14; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 rank = 14; + * @return this + */ + public HeroBasicTypeInfo clearRank() { + bitField0_ &= ~0x00000001; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 14; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 14; + * @param value the rank to set + * @return this + */ + public HeroBasicTypeInfo setRank(final int value) { + bitField0_ |= 0x00000001; + rank = value; + return this; + } + + /** + * optional .HeroBasicType basic_type = 10; + * @return whether the basicType field is set + */ + public boolean hasBasicType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .HeroBasicType basic_type = 10; + * @return this + */ + public HeroBasicTypeInfo clearBasicType() { + bitField0_ &= ~0x00000002; + basicType = 0; + return this; + } + + /** + * optional .HeroBasicType basic_type = 10; + * @return the basicType + */ + public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { + return HeroBasicTypeOuterClass.HeroBasicType.forNumber(basicType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link HeroBasicTypeInfo#getBasicType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getBasicTypeValue() { + return basicType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value + * can cause {@link HeroBasicTypeInfo#getBasicType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public HeroBasicTypeInfo setBasicTypeValue(final int value) { + bitField0_ |= 0x00000002; + basicType = value; + return this; + } + + /** + * optional .HeroBasicType basic_type = 10; + * @param value the basicType to set + * @return this + */ + public HeroBasicTypeInfo setBasicType(final HeroBasicTypeOuterClass.HeroBasicType value) { + bitField0_ |= 0x00000002; + basicType = value.getNumber(); + return this; + } + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + * @return whether the skillTreeList field is set + */ + public boolean hasSkillTreeList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + * @return this + */ + public HeroBasicTypeInfo clearSkillTreeList() { + bitField0_ &= ~0x00000004; + skillTreeList.clear(); + return this; + } + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + * + * 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 #getMutableSkillTreeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSkillTreeList() { + return skillTreeList; + } + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + * + * 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 getMutableSkillTreeList() { + bitField0_ |= 0x00000004; + return skillTreeList; + } + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + * @param value the skillTreeList to add + * @return this + */ + public HeroBasicTypeInfo addSkillTreeList( + final AvatarSkillTreeOuterClass.AvatarSkillTree value) { + bitField0_ |= 0x00000004; + skillTreeList.add(value); + return this; + } + + /** + * repeated .AvatarSkillTree skill_tree_list = 15; + * @param values the skillTreeList to add + * @return this + */ + public HeroBasicTypeInfo addAllSkillTreeList( + final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { + bitField0_ |= 0x00000004; + skillTreeList.addAll(values); + return this; + } + + @Override + public HeroBasicTypeInfo copyFrom(final HeroBasicTypeInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rank = other.rank; + basicType = other.basicType; + skillTreeList.copyFrom(other.skillTreeList); + } + return this; + } + + @Override + public HeroBasicTypeInfo mergeFrom(final HeroBasicTypeInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasBasicType()) { + setBasicTypeValue(other.basicType); + } + if (other.hasSkillTreeList()) { + getMutableSkillTreeList().addAll(other.skillTreeList); + } + return this; + } + + @Override + public HeroBasicTypeInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rank = 0; + basicType = 0; + skillTreeList.clear(); + return this; + } + + @Override + public HeroBasicTypeInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + skillTreeList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof HeroBasicTypeInfo)) { + return false; + } + HeroBasicTypeInfo other = (HeroBasicTypeInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRank() || rank == other.rank) + && (!hasBasicType() || basicType == other.basicType) + && (!hasSkillTreeList() || skillTreeList.equals(other.skillTreeList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeEnumNoTag(basicType); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < skillTreeList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(skillTreeList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(basicType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * skillTreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skillTreeList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public HeroBasicTypeInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // basicType + final int value = input.readInt32(); + if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { + basicType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // skillTreeList + tag = input.readRepeatedMessage(skillTreeList, 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.rank, rank); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.basicType, basicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.skillTreeList, skillTreeList); + } + output.endObject(); + } + + @Override + public HeroBasicTypeInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1699147640: + case -1123950421: { + if (input.isAtField(FieldNames.basicType)) { + if (!input.trySkipNullValue()) { + final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); + if (value != null) { + basicType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1614407373: + case 1368677425: { + if (input.isAtField(FieldNames.skillTreeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(skillTreeList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public HeroBasicTypeInfo clone() { + return new HeroBasicTypeInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HeroBasicTypeInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HeroBasicTypeInfo(), data).checkInitialized(); + } + + public static HeroBasicTypeInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HeroBasicTypeInfo(), input).checkInitialized(); + } + + public static HeroBasicTypeInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HeroBasicTypeInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating HeroBasicTypeInfo messages + */ + public static MessageFactory getFactory() { + return HeroBasicTypeInfoFactory.INSTANCE; + } + + private enum HeroBasicTypeInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public HeroBasicTypeInfo create() { + return HeroBasicTypeInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName basicType = FieldName.forField("basicType", "basic_type"); + + static final FieldName skillTreeList = FieldName.forField("skillTreeList", "skill_tree_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java new file mode 100644 index 0000000..a6864cd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java @@ -0,0 +1,308 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class HeroBasicTypeOuterClass { + /** + * Protobuf enum {@code HeroBasicType} + */ + public enum HeroBasicType implements ProtoEnum { + /** + * None = 0; + */ + None("None", 0), + + /** + * BoyWarrior = 8001; + */ + BoyWarrior("BoyWarrior", 8001), + + /** + * GirlWarrior = 8002; + */ + GirlWarrior("GirlWarrior", 8002), + + /** + * BoyKnight = 8003; + */ + BoyKnight("BoyKnight", 8003), + + /** + * GirlKnight = 8004; + */ + GirlKnight("GirlKnight", 8004), + + /** + * BoyRogue = 8005; + */ + BoyRogue("BoyRogue", 8005), + + /** + * GirlRogue = 8006; + */ + GirlRogue("GirlRogue", 8006), + + /** + * BoyMage = 8007; + */ + BoyMage("BoyMage", 8007), + + /** + * GirlMage = 8008; + */ + GirlMage("GirlMage", 8008), + + /** + * BoyShaman = 8009; + */ + BoyShaman("BoyShaman", 8009), + + /** + * GirlShaman = 8010; + */ + GirlShaman("GirlShaman", 8010), + + /** + * BoyWarlock = 8011; + */ + BoyWarlock("BoyWarlock", 8011), + + /** + * GirlWarlock = 8012; + */ + GirlWarlock("GirlWarlock", 8012), + + /** + * BoyPriest = 8013; + */ + BoyPriest("BoyPriest", 8013), + + /** + * GirlPriest = 8014; + */ + GirlPriest("GirlPriest", 8014); + + /** + * None = 0; + */ + public static final int None_VALUE = 0; + + /** + * BoyWarrior = 8001; + */ + public static final int BoyWarrior_VALUE = 8001; + + /** + * GirlWarrior = 8002; + */ + public static final int GirlWarrior_VALUE = 8002; + + /** + * BoyKnight = 8003; + */ + public static final int BoyKnight_VALUE = 8003; + + /** + * GirlKnight = 8004; + */ + public static final int GirlKnight_VALUE = 8004; + + /** + * BoyRogue = 8005; + */ + public static final int BoyRogue_VALUE = 8005; + + /** + * GirlRogue = 8006; + */ + public static final int GirlRogue_VALUE = 8006; + + /** + * BoyMage = 8007; + */ + public static final int BoyMage_VALUE = 8007; + + /** + * GirlMage = 8008; + */ + public static final int GirlMage_VALUE = 8008; + + /** + * BoyShaman = 8009; + */ + public static final int BoyShaman_VALUE = 8009; + + /** + * GirlShaman = 8010; + */ + public static final int GirlShaman_VALUE = 8010; + + /** + * BoyWarlock = 8011; + */ + public static final int BoyWarlock_VALUE = 8011; + + /** + * GirlWarlock = 8012; + */ + public static final int GirlWarlock_VALUE = 8012; + + /** + * BoyPriest = 8013; + */ + public static final int BoyPriest_VALUE = 8013; + + /** + * GirlPriest = 8014; + */ + public static final int GirlPriest_VALUE = 8014; + + private final String name; + + private final int number; + + private HeroBasicType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return HeroBasicTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static HeroBasicType forNumber(int value) { + return HeroBasicTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static HeroBasicType forNumberOr(int number, HeroBasicType other) { + HeroBasicType value = forNumber(number); + return value == null ? other : value; + } + + enum HeroBasicTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + @Override + public final HeroBasicType forNumber(final int value) { + switch(value) { + case 0: return None; + case 8001: return BoyWarrior; + case 8002: return GirlWarrior; + case 8003: return BoyKnight; + case 8004: return GirlKnight; + case 8005: return BoyRogue; + case 8006: return GirlRogue; + case 8007: return BoyMage; + case 8008: return GirlMage; + case 8009: return BoyShaman; + case 8010: return GirlShaman; + case 8011: return BoyWarlock; + case 8012: return GirlWarlock; + case 8013: return BoyPriest; + case 8014: return GirlPriest; + default: return null; + } + } + + @Override + public final HeroBasicType forName(final CharSequence value) { + switch (value.length()) { + case 4: { + if (ProtoUtil.isEqual("None", value)) { + return None; + } + break; + } + case 7: { + if (ProtoUtil.isEqual("BoyMage", value)) { + return BoyMage; + } + break; + } + case 8: { + if (ProtoUtil.isEqual("BoyRogue", value)) { + return BoyRogue; + } + if (ProtoUtil.isEqual("GirlMage", value)) { + return GirlMage; + } + break; + } + case 9: { + if (ProtoUtil.isEqual("BoyKnight", value)) { + return BoyKnight; + } + if (ProtoUtil.isEqual("GirlRogue", value)) { + return GirlRogue; + } + if (ProtoUtil.isEqual("BoyShaman", value)) { + return BoyShaman; + } + if (ProtoUtil.isEqual("BoyPriest", value)) { + return BoyPriest; + } + break; + } + case 10: { + if (ProtoUtil.isEqual("BoyWarrior", value)) { + return BoyWarrior; + } + if (ProtoUtil.isEqual("GirlKnight", value)) { + return GirlKnight; + } + if (ProtoUtil.isEqual("GirlShaman", value)) { + return GirlShaman; + } + if (ProtoUtil.isEqual("BoyWarlock", value)) { + return BoyWarlock; + } + if (ProtoUtil.isEqual("GirlPriest", value)) { + return GirlPriest; + } + break; + } + case 11: { + if (ProtoUtil.isEqual("GirlWarrior", value)) { + return GirlWarrior; + } + if (ProtoUtil.isEqual("GirlWarlock", value)) { + return GirlWarlock; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java new file mode 100644 index 0000000..5187839 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java @@ -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 InteractPropCsReqOuterClass { + /** + * Protobuf type {@code InteractPropCsReq} + */ + public static final class InteractPropCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 prop_entity_id = 6; + */ + private int propEntityId; + + /** + * optional uint32 CMCDABPKPGB = 12; + */ + private int cMCDABPKPGB; + + private InteractPropCsReq() { + } + + /** + * @return a new empty instance of {@code InteractPropCsReq} + */ + public static InteractPropCsReq newInstance() { + return new InteractPropCsReq(); + } + + /** + * optional uint32 prop_entity_id = 6; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 prop_entity_id = 6; + * @return this + */ + public InteractPropCsReq clearPropEntityId() { + bitField0_ &= ~0x00000001; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 6; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 6; + * @param value the propEntityId to set + * @return this + */ + public InteractPropCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000001; + propEntityId = value; + return this; + } + + /** + * optional uint32 CMCDABPKPGB = 12; + * @return whether the cMCDABPKPGB field is set + */ + public boolean hasCMCDABPKPGB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 CMCDABPKPGB = 12; + * @return this + */ + public InteractPropCsReq clearCMCDABPKPGB() { + bitField0_ &= ~0x00000002; + cMCDABPKPGB = 0; + return this; + } + + /** + * optional uint32 CMCDABPKPGB = 12; + * @return the cMCDABPKPGB + */ + public int getCMCDABPKPGB() { + return cMCDABPKPGB; + } + + /** + * optional uint32 CMCDABPKPGB = 12; + * @param value the cMCDABPKPGB to set + * @return this + */ + public InteractPropCsReq setCMCDABPKPGB(final int value) { + bitField0_ |= 0x00000002; + cMCDABPKPGB = value; + return this; + } + + @Override + public InteractPropCsReq copyFrom(final InteractPropCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + propEntityId = other.propEntityId; + cMCDABPKPGB = other.cMCDABPKPGB; + } + return this; + } + + @Override + public InteractPropCsReq mergeFrom(final InteractPropCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + if (other.hasCMCDABPKPGB()) { + setCMCDABPKPGB(other.cMCDABPKPGB); + } + return this; + } + + @Override + public InteractPropCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propEntityId = 0; + cMCDABPKPGB = 0; + return this; + } + + @Override + public InteractPropCsReq 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 InteractPropCsReq)) { + return false; + } + InteractPropCsReq other = (InteractPropCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasCMCDABPKPGB() || cMCDABPKPGB == other.cMCDABPKPGB); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(cMCDABPKPGB); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cMCDABPKPGB); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractPropCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // cMCDABPKPGB + cMCDABPKPGB = 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.propEntityId, propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.cMCDABPKPGB, cMCDABPKPGB); + } + output.endObject(); + } + + @Override + public InteractPropCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1152757468: { + if (input.isAtField(FieldNames.cMCDABPKPGB)) { + if (!input.trySkipNullValue()) { + cMCDABPKPGB = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractPropCsReq clone() { + return new InteractPropCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractPropCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractPropCsReq(), data).checkInitialized(); + } + + public static InteractPropCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractPropCsReq(), input).checkInitialized(); + } + + public static InteractPropCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractPropCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractPropCsReq messages + */ + public static MessageFactory getFactory() { + return InteractPropCsReqFactory.INSTANCE; + } + + private enum InteractPropCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractPropCsReq create() { + return InteractPropCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName cMCDABPKPGB = FieldName.forField("CMCDABPKPGB"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java new file mode 100644 index 0000000..a4b3eb0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java @@ -0,0 +1,421 @@ +// 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 InteractPropScRspOuterClass { + /** + * Protobuf type {@code InteractPropScRsp} + */ + public static final class InteractPropScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 prop_entity_id = 1; + */ + private int propEntityId; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional uint32 prop_state = 3; + */ + private int propState; + + private InteractPropScRsp() { + } + + /** + * @return a new empty instance of {@code InteractPropScRsp} + */ + public static InteractPropScRsp newInstance() { + return new InteractPropScRsp(); + } + + /** + * optional uint32 prop_entity_id = 1; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 prop_entity_id = 1; + * @return this + */ + public InteractPropScRsp clearPropEntityId() { + bitField0_ &= ~0x00000001; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 1; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 1; + * @param value the propEntityId to set + * @return this + */ + public InteractPropScRsp setPropEntityId(final int value) { + bitField0_ |= 0x00000001; + propEntityId = value; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public InteractPropScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public InteractPropScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 prop_state = 3; + * @return whether the propState field is set + */ + public boolean hasPropState() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 prop_state = 3; + * @return this + */ + public InteractPropScRsp clearPropState() { + bitField0_ &= ~0x00000004; + propState = 0; + return this; + } + + /** + * optional uint32 prop_state = 3; + * @return the propState + */ + public int getPropState() { + return propState; + } + + /** + * optional uint32 prop_state = 3; + * @param value the propState to set + * @return this + */ + public InteractPropScRsp setPropState(final int value) { + bitField0_ |= 0x00000004; + propState = value; + return this; + } + + @Override + public InteractPropScRsp copyFrom(final InteractPropScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + propEntityId = other.propEntityId; + retcode = other.retcode; + propState = other.propState; + } + return this; + } + + @Override + public InteractPropScRsp mergeFrom(final InteractPropScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasPropState()) { + setPropState(other.propState); + } + return this; + } + + @Override + public InteractPropScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propEntityId = 0; + retcode = 0; + propState = 0; + return this; + } + + @Override + public InteractPropScRsp 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 InteractPropScRsp)) { + return false; + } + InteractPropScRsp other = (InteractPropScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasPropState() || propState == other.propState); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(propState); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public InteractPropScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // propState + propState = input.readUInt32(); + 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.propEntityId, propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.propState, propState); + } + output.endObject(); + } + + @Override + public InteractPropScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = 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 -739191058: + case -1096911691: { + if (input.isAtField(FieldNames.propState)) { + if (!input.trySkipNullValue()) { + propState = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public InteractPropScRsp clone() { + return new InteractPropScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static InteractPropScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new InteractPropScRsp(), data).checkInitialized(); + } + + public static InteractPropScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractPropScRsp(), input).checkInitialized(); + } + + public static InteractPropScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new InteractPropScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating InteractPropScRsp messages + */ + public static MessageFactory getFactory() { + return InteractPropScRspFactory.INSTANCE; + } + + private enum InteractPropScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public InteractPropScRsp create() { + return InteractPropScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName propState = FieldName.forField("propState", "prop_state"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java new file mode 100644 index 0000000..1c62993 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java @@ -0,0 +1,293 @@ +// 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 ItemCostListOuterClass { + /** + * Protobuf type {@code ItemCostList} + */ + public static final class ItemCostList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .ItemCost item_list = 11; + */ + private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); + + private ItemCostList() { + } + + /** + * @return a new empty instance of {@code ItemCostList} + */ + public static ItemCostList newInstance() { + return new ItemCostList(); + } + + /** + * repeated .ItemCost item_list = 11; + * @return whether the itemList field is set + */ + public boolean hasItemList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .ItemCost item_list = 11; + * @return this + */ + public ItemCostList clearItemList() { + bitField0_ &= ~0x00000001; + itemList.clear(); + return this; + } + + /** + * repeated .ItemCost item_list = 11; + * + * 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 RepeatedMessage getItemList() { + return itemList; + } + + /** + * repeated .ItemCost item_list = 11; + * + * 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 getMutableItemList() { + bitField0_ |= 0x00000001; + return itemList; + } + + /** + * repeated .ItemCost item_list = 11; + * @param value the itemList to add + * @return this + */ + public ItemCostList addItemList(final ItemCostOuterClass.ItemCost value) { + bitField0_ |= 0x00000001; + itemList.add(value); + return this; + } + + /** + * repeated .ItemCost item_list = 11; + * @param values the itemList to add + * @return this + */ + public ItemCostList addAllItemList(final ItemCostOuterClass.ItemCost... values) { + bitField0_ |= 0x00000001; + itemList.addAll(values); + return this; + } + + @Override + public ItemCostList copyFrom(final ItemCostList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemList.copyFrom(other.itemList); + } + return this; + } + + @Override + public ItemCostList mergeFrom(final ItemCostList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemList()) { + getMutableItemList().addAll(other.itemList); + } + return this; + } + + @Override + public ItemCostList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemList.clear(); + return this; + } + + @Override + public ItemCostList 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 ItemCostList)) { + return false; + } + ItemCostList other = (ItemCostList) o; + return bitField0_ == other.bitField0_ + && (!hasItemList() || itemList.equals(other.itemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < itemList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(itemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * itemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(itemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ItemCostList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 90: { + // itemList + tag = input.readRepeatedMessage(itemList, 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.itemList, itemList); + } + output.endObject(); + } + + @Override + public ItemCostList 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.readRepeatedMessage(itemList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ItemCostList clone() { + return new ItemCostList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ItemCostList parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ItemCostList(), data).checkInitialized(); + } + + public static ItemCostList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ItemCostList(), input).checkInitialized(); + } + + public static ItemCostList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ItemCostList(), input).checkInitialized(); + } + + /** + * @return factory for creating ItemCostList messages + */ + public static MessageFactory getFactory() { + return ItemCostListFactory.INSTANCE; + } + + private enum ItemCostListFactory implements MessageFactory { + INSTANCE; + + @Override + public ItemCostList create() { + return ItemCostList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemList = FieldName.forField("itemList", "item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java new file mode 100644 index 0000000..276f528 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java @@ -0,0 +1,486 @@ +// 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 ItemCostOuterClass { + /** + * Protobuf type {@code ItemCost} + */ + public static final class ItemCost extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 relic_unique_id = 5; + */ + private int relicUniqueId; + + /** + * optional uint32 equipment_unique_id = 10; + */ + private int equipmentUniqueId; + + /** + * optional .PileItem pile_item = 7; + */ + private final PileItemOuterClass.PileItem pileItem = PileItemOuterClass.PileItem.newInstance(); + + private ItemCost() { + } + + /** + * @return a new empty instance of {@code ItemCost} + */ + public static ItemCost newInstance() { + return new ItemCost(); + } + + public boolean hasItemCase() { + return (((bitField0_ & 0x00000007)) != 0); + } + + public ItemCost clearItemCase() { + if (hasItemCase()) { + clearRelicUniqueId(); + clearEquipmentUniqueId(); + clearPileItem(); + } + return this; + } + + private void clearItemCaseOtherRelicUniqueId() { + if ((((bitField0_ & 0x00000006)) != 0)) { + clearEquipmentUniqueId(); + clearPileItem(); + } + } + + private void clearItemCaseOtherEquipmentUniqueId() { + if ((((bitField0_ & 0x00000005)) != 0)) { + clearRelicUniqueId(); + clearPileItem(); + } + } + + private void clearItemCaseOtherPileItem() { + if ((((bitField0_ & 0x00000003)) != 0)) { + clearRelicUniqueId(); + clearEquipmentUniqueId(); + } + } + + /** + * optional uint32 relic_unique_id = 5; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 relic_unique_id = 5; + * @return this + */ + public ItemCost clearRelicUniqueId() { + bitField0_ &= ~0x00000001; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 5; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 5; + * @param value the relicUniqueId to set + * @return this + */ + public ItemCost setRelicUniqueId(final int value) { + clearItemCaseOtherRelicUniqueId(); + bitField0_ |= 0x00000001; + relicUniqueId = value; + return this; + } + + /** + * optional uint32 equipment_unique_id = 10; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 equipment_unique_id = 10; + * @return this + */ + public ItemCost clearEquipmentUniqueId() { + bitField0_ &= ~0x00000002; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 10; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 10; + * @param value the equipmentUniqueId to set + * @return this + */ + public ItemCost setEquipmentUniqueId(final int value) { + clearItemCaseOtherEquipmentUniqueId(); + bitField0_ |= 0x00000002; + equipmentUniqueId = value; + return this; + } + + /** + * optional .PileItem pile_item = 7; + * @return whether the pileItem field is set + */ + public boolean hasPileItem() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .PileItem pile_item = 7; + * @return this + */ + public ItemCost clearPileItem() { + bitField0_ &= ~0x00000004; + pileItem.clear(); + return this; + } + + /** + * optional .PileItem pile_item = 7; + * + * 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 #getMutablePileItem()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PileItemOuterClass.PileItem getPileItem() { + return pileItem; + } + + /** + * optional .PileItem pile_item = 7; + * + * 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 PileItemOuterClass.PileItem getMutablePileItem() { + clearItemCaseOtherPileItem(); + bitField0_ |= 0x00000004; + return pileItem; + } + + /** + * optional .PileItem pile_item = 7; + * @param value the pileItem to set + * @return this + */ + public ItemCost setPileItem(final PileItemOuterClass.PileItem value) { + clearItemCaseOtherPileItem(); + bitField0_ |= 0x00000004; + pileItem.copyFrom(value); + return this; + } + + @Override + public ItemCost copyFrom(final ItemCost other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + relicUniqueId = other.relicUniqueId; + equipmentUniqueId = other.equipmentUniqueId; + pileItem.copyFrom(other.pileItem); + } + return this; + } + + @Override + public ItemCost mergeFrom(final ItemCost other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasPileItem()) { + getMutablePileItem().mergeFrom(other.pileItem); + } + return this; + } + + @Override + public ItemCost clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + relicUniqueId = 0; + equipmentUniqueId = 0; + pileItem.clear(); + return this; + } + + @Override + public ItemCost clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pileItem.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ItemCost)) { + return false; + } + ItemCost other = (ItemCost) o; + return bitField0_ == other.bitField0_ + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasPileItem() || pileItem.equals(other.pileItem)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(pileItem); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(pileItem); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ItemCost mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // relicUniqueId + clearItemCaseOtherRelicUniqueId(); + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // equipmentUniqueId + clearItemCaseOtherEquipmentUniqueId(); + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // pileItem + clearItemCaseOtherPileItem(); + input.readMessage(pileItem); + 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.relicUniqueId, relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.pileItem, pileItem); + } + output.endObject(); + } + + @Override + public ItemCost mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + clearItemCaseOtherRelicUniqueId(); + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + clearItemCaseOtherEquipmentUniqueId(); + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -487618715: + case 2083693056: { + if (input.isAtField(FieldNames.pileItem)) { + if (!input.trySkipNullValue()) { + clearItemCaseOtherPileItem(); + input.readMessage(pileItem); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ItemCost clone() { + return new ItemCost().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ItemCost parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ItemCost(), data).checkInitialized(); + } + + public static ItemCost parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ItemCost(), input).checkInitialized(); + } + + public static ItemCost parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ItemCost(), input).checkInitialized(); + } + + /** + * @return factory for creating ItemCost messages + */ + public static MessageFactory getFactory() { + return ItemCostFactory.INSTANCE; + } + + private enum ItemCostFactory implements MessageFactory { + INSTANCE; + + @Override + public ItemCost create() { + return ItemCost.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName pileItem = FieldName.forField("pileItem", "pile_item"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java new file mode 100644 index 0000000..915412f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java @@ -0,0 +1,293 @@ +// 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 ItemListOuterClass { + /** + * Protobuf type {@code ItemList} + */ + public static final class ItemList extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .Item item_list = 5; + */ + private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemOuterClass.Item.getFactory()); + + private ItemList() { + } + + /** + * @return a new empty instance of {@code ItemList} + */ + public static ItemList newInstance() { + return new ItemList(); + } + + /** + * repeated .Item item_list = 5; + * @return whether the itemList field is set + */ + public boolean hasItemList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .Item item_list = 5; + * @return this + */ + public ItemList clearItemList() { + bitField0_ &= ~0x00000001; + itemList.clear(); + return this; + } + + /** + * repeated .Item item_list = 5; + * + * 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 RepeatedMessage getItemList() { + return itemList; + } + + /** + * repeated .Item item_list = 5; + * + * 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 getMutableItemList() { + bitField0_ |= 0x00000001; + return itemList; + } + + /** + * repeated .Item item_list = 5; + * @param value the itemList to add + * @return this + */ + public ItemList addItemList(final ItemOuterClass.Item value) { + bitField0_ |= 0x00000001; + itemList.add(value); + return this; + } + + /** + * repeated .Item item_list = 5; + * @param values the itemList to add + * @return this + */ + public ItemList addAllItemList(final ItemOuterClass.Item... values) { + bitField0_ |= 0x00000001; + itemList.addAll(values); + return this; + } + + @Override + public ItemList copyFrom(final ItemList other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemList.copyFrom(other.itemList); + } + return this; + } + + @Override + public ItemList mergeFrom(final ItemList other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemList()) { + getMutableItemList().addAll(other.itemList); + } + return this; + } + + @Override + public ItemList clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemList.clear(); + return this; + } + + @Override + public ItemList 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 ItemList)) { + return false; + } + ItemList other = (ItemList) o; + return bitField0_ == other.bitField0_ + && (!hasItemList() || itemList.equals(other.itemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < itemList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(itemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * itemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(itemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ItemList mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // itemList + tag = input.readRepeatedMessage(itemList, 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.itemList, itemList); + } + output.endObject(); + } + + @Override + public ItemList 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.readRepeatedMessage(itemList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ItemList clone() { + return new ItemList().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ItemList parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ItemList(), data).checkInitialized(); + } + + public static ItemList parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ItemList(), input).checkInitialized(); + } + + public static ItemList parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ItemList(), input).checkInitialized(); + } + + /** + * @return factory for creating ItemList messages + */ + public static MessageFactory getFactory() { + return ItemListFactory.INSTANCE; + } + + private enum ItemListFactory implements MessageFactory { + INSTANCE; + + @Override + public ItemList create() { + return ItemList.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemList = FieldName.forField("itemList", "item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java new file mode 100644 index 0000000..40c926e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java @@ -0,0 +1,741 @@ +// 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 ItemOuterClass { + /** + * Protobuf type {@code Item} + */ + public static final class Item extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 unique_id = 2; + */ + private int uniqueId; + + /** + * optional uint32 promotion = 6; + */ + private int promotion; + + /** + * optional uint32 main_affix_id = 7; + */ + private int mainAffixId; + + /** + * optional uint32 item_id = 8; + */ + private int itemId; + + /** + * optional uint32 level = 9; + */ + private int level; + + /** + * optional uint32 num = 12; + */ + private int num; + + /** + * optional uint32 rank = 14; + */ + private int rank; + + private Item() { + } + + /** + * @return a new empty instance of {@code Item} + */ + public static Item newInstance() { + return new Item(); + } + + /** + * optional uint32 unique_id = 2; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 unique_id = 2; + * @return this + */ + public Item clearUniqueId() { + bitField0_ &= ~0x00000001; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 2; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 2; + * @param value the uniqueId to set + * @return this + */ + public Item setUniqueId(final int value) { + bitField0_ |= 0x00000001; + uniqueId = value; + return this; + } + + /** + * optional uint32 promotion = 6; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 promotion = 6; + * @return this + */ + public Item clearPromotion() { + bitField0_ &= ~0x00000002; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 6; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 6; + * @param value the promotion to set + * @return this + */ + public Item setPromotion(final int value) { + bitField0_ |= 0x00000002; + promotion = value; + return this; + } + + /** + * optional uint32 main_affix_id = 7; + * @return whether the mainAffixId field is set + */ + public boolean hasMainAffixId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 main_affix_id = 7; + * @return this + */ + public Item clearMainAffixId() { + bitField0_ &= ~0x00000004; + mainAffixId = 0; + return this; + } + + /** + * optional uint32 main_affix_id = 7; + * @return the mainAffixId + */ + public int getMainAffixId() { + return mainAffixId; + } + + /** + * optional uint32 main_affix_id = 7; + * @param value the mainAffixId to set + * @return this + */ + public Item setMainAffixId(final int value) { + bitField0_ |= 0x00000004; + mainAffixId = value; + return this; + } + + /** + * optional uint32 item_id = 8; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 item_id = 8; + * @return this + */ + public Item clearItemId() { + bitField0_ &= ~0x00000008; + itemId = 0; + return this; + } + + /** + * optional uint32 item_id = 8; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 8; + * @param value the itemId to set + * @return this + */ + public Item setItemId(final int value) { + bitField0_ |= 0x00000008; + itemId = value; + return this; + } + + /** + * optional uint32 level = 9; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 level = 9; + * @return this + */ + public Item clearLevel() { + bitField0_ &= ~0x00000010; + level = 0; + return this; + } + + /** + * optional uint32 level = 9; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 9; + * @param value the level to set + * @return this + */ + public Item setLevel(final int value) { + bitField0_ |= 0x00000010; + level = value; + return this; + } + + /** + * optional uint32 num = 12; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 num = 12; + * @return this + */ + public Item clearNum() { + bitField0_ &= ~0x00000020; + num = 0; + return this; + } + + /** + * optional uint32 num = 12; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 12; + * @param value the num to set + * @return this + */ + public Item setNum(final int value) { + bitField0_ |= 0x00000020; + num = value; + return this; + } + + /** + * optional uint32 rank = 14; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 rank = 14; + * @return this + */ + public Item clearRank() { + bitField0_ &= ~0x00000040; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 14; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 14; + * @param value the rank to set + * @return this + */ + public Item setRank(final int value) { + bitField0_ |= 0x00000040; + rank = value; + return this; + } + + @Override + public Item copyFrom(final Item other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uniqueId = other.uniqueId; + promotion = other.promotion; + mainAffixId = other.mainAffixId; + itemId = other.itemId; + level = other.level; + num = other.num; + rank = other.rank; + } + return this; + } + + @Override + public Item mergeFrom(final Item other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); + } + if (other.hasItemId()) { + setItemId(other.itemId); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasNum()) { + setNum(other.num); + } + if (other.hasRank()) { + setRank(other.rank); + } + return this; + } + + @Override + public Item clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uniqueId = 0; + promotion = 0; + mainAffixId = 0; + itemId = 0; + level = 0; + num = 0; + rank = 0; + return this; + } + + @Override + public Item 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 Item)) { + return false; + } + Item other = (Item) o; + return bitField0_ == other.bitField0_ + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasPromotion() || promotion == other.promotion) + && (!hasMainAffixId() || mainAffixId == other.mainAffixId) + && (!hasItemId() || itemId == other.itemId) + && (!hasLevel() || level == other.level) + && (!hasNum() || num == other.num) + && (!hasRank() || rank == other.rank); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(uniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(num); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(rank); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Item mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // mainAffixId + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // num + num = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000040; + 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.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.itemId, itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.num, num); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + output.endObject(); + } + + @Override + public Item mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { + if (!input.trySkipNullValue()) { + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { + if (!input.trySkipNullValue()) { + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Item clone() { + return new Item().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Item parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Item(), data).checkInitialized(); + } + + public static Item parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Item(), input).checkInitialized(); + } + + public static Item parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Item(), input).checkInitialized(); + } + + /** + * @return factory for creating Item messages + */ + public static MessageFactory getFactory() { + return ItemFactory.INSTANCE; + } + + private enum ItemFactory implements MessageFactory { + INSTANCE; + + @Override + public Item create() { + return Item.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + + static final FieldName itemId = FieldName.forField("itemId", "item_id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName num = FieldName.forField("num"); + + static final FieldName rank = FieldName.forField("rank"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java new file mode 100644 index 0000000..af25fc1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java @@ -0,0 +1,811 @@ +// 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 JoinLineupCsReqOuterClass { + /** + * Protobuf type {@code JoinLineupCsReq} + */ + public static final class JoinLineupCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 3; + */ + private int index; + + /** + * optional uint32 base_avatar_id = 6; + */ + private int baseAvatarId; + + /** + * optional uint32 plane_id = 11; + */ + private int planeId; + + /** + * optional uint32 slot = 13; + */ + private int slot; + + /** + * optional .AvatarType avatar_type = 2; + */ + private int avatarType; + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + */ + private int extraLineupType; + + /** + * optional bool is_virtual = 9; + */ + private boolean isVirtual; + + private JoinLineupCsReq() { + } + + /** + * @return a new empty instance of {@code JoinLineupCsReq} + */ + public static JoinLineupCsReq newInstance() { + return new JoinLineupCsReq(); + } + + /** + * optional uint32 index = 3; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 3; + * @return this + */ + public JoinLineupCsReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 3; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 3; + * @param value the index to set + * @return this + */ + public JoinLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 6; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 base_avatar_id = 6; + * @return this + */ + public JoinLineupCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000002; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 6; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 6; + * @param value the baseAvatarId to set + * @return this + */ + public JoinLineupCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000002; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 plane_id = 11; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 plane_id = 11; + * @return this + */ + public JoinLineupCsReq clearPlaneId() { + bitField0_ &= ~0x00000004; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 11; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 11; + * @param value the planeId to set + * @return this + */ + public JoinLineupCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000004; + planeId = value; + return this; + } + + /** + * optional uint32 slot = 13; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 slot = 13; + * @return this + */ + public JoinLineupCsReq clearSlot() { + bitField0_ &= ~0x00000008; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 13; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 13; + * @param value the slot to set + * @return this + */ + public JoinLineupCsReq setSlot(final int value) { + bitField0_ |= 0x00000008; + slot = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return this + */ + public JoinLineupCsReq clearAvatarType() { + bitField0_ &= ~0x00000010; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link JoinLineupCsReq#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link JoinLineupCsReq#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public JoinLineupCsReq setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000010; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @param value the avatarType to set + * @return this + */ + public JoinLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000010; + avatarType = value.getNumber(); + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @return this + */ + public JoinLineupCsReq clearExtraLineupType() { + bitField0_ &= ~0x00000020; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link JoinLineupCsReq#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link JoinLineupCsReq#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public JoinLineupCsReq setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000020; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @param value the extraLineupType to set + * @return this + */ + public JoinLineupCsReq setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000020; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 9; + * @return whether the isVirtual field is set + */ + public boolean hasIsVirtual() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool is_virtual = 9; + * @return this + */ + public JoinLineupCsReq clearIsVirtual() { + bitField0_ &= ~0x00000040; + isVirtual = false; + return this; + } + + /** + * optional bool is_virtual = 9; + * @return the isVirtual + */ + public boolean getIsVirtual() { + return isVirtual; + } + + /** + * optional bool is_virtual = 9; + * @param value the isVirtual to set + * @return this + */ + public JoinLineupCsReq setIsVirtual(final boolean value) { + bitField0_ |= 0x00000040; + isVirtual = value; + return this; + } + + @Override + public JoinLineupCsReq copyFrom(final JoinLineupCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + baseAvatarId = other.baseAvatarId; + planeId = other.planeId; + slot = other.slot; + avatarType = other.avatarType; + extraLineupType = other.extraLineupType; + isVirtual = other.isVirtual; + } + return this; + } + + @Override + public JoinLineupCsReq mergeFrom(final JoinLineupCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + if (other.hasIsVirtual()) { + setIsVirtual(other.isVirtual); + } + return this; + } + + @Override + public JoinLineupCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + baseAvatarId = 0; + planeId = 0; + slot = 0; + avatarType = 0; + extraLineupType = 0; + isVirtual = false; + return this; + } + + @Override + public JoinLineupCsReq 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 JoinLineupCsReq)) { + return false; + } + JoinLineupCsReq other = (JoinLineupCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasSlot() || slot == other.slot) + && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasIsVirtual() || isVirtual == other.isVirtual); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(planeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeEnumNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(isVirtual); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JoinLineupCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000020; + } + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // isVirtual + isVirtual = input.readBool(); + bitField0_ |= 0x00000040; + 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.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.isVirtual, isVirtual); + } + output.endObject(); + } + + @Override + public JoinLineupCsReq 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 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000020; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -113613183: + case 1966475510: { + if (input.isAtField(FieldNames.isVirtual)) { + if (!input.trySkipNullValue()) { + isVirtual = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JoinLineupCsReq clone() { + return new JoinLineupCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JoinLineupCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JoinLineupCsReq(), data).checkInitialized(); + } + + public static JoinLineupCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JoinLineupCsReq(), input).checkInitialized(); + } + + public static JoinLineupCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JoinLineupCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating JoinLineupCsReq messages + */ + public static MessageFactory getFactory() { + return JoinLineupCsReqFactory.INSTANCE; + } + + private enum JoinLineupCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public JoinLineupCsReq create() { + return JoinLineupCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java new file mode 100644 index 0000000..d24d57f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java @@ -0,0 +1,284 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class LanguageTypeOuterClass { + /** + * Protobuf enum {@code LanguageType} + */ + public enum LanguageType implements ProtoEnum { + /** + * LANGUAGE_NONE = 0; + */ + LANGUAGE_NONE("LANGUAGE_NONE", 0), + + /** + * LANGUAGE_SC = 1; + */ + LANGUAGE_SC("LANGUAGE_SC", 1), + + /** + * LANGUAGE_TC = 2; + */ + LANGUAGE_TC("LANGUAGE_TC", 2), + + /** + * LANGUAGE_EN = 3; + */ + LANGUAGE_EN("LANGUAGE_EN", 3), + + /** + * LANGUAGE_KR = 4; + */ + LANGUAGE_KR("LANGUAGE_KR", 4), + + /** + * LANGUAGE_JP = 5; + */ + LANGUAGE_JP("LANGUAGE_JP", 5), + + /** + * LANGUAGE_FR = 6; + */ + LANGUAGE_FR("LANGUAGE_FR", 6), + + /** + * LANGUAGE_DE = 7; + */ + LANGUAGE_DE("LANGUAGE_DE", 7), + + /** + * LANGUAGE_ES = 8; + */ + LANGUAGE_ES("LANGUAGE_ES", 8), + + /** + * LANGUAGE_PT = 9; + */ + LANGUAGE_PT("LANGUAGE_PT", 9), + + /** + * LANGUAGE_RU = 10; + */ + LANGUAGE_RU("LANGUAGE_RU", 10), + + /** + * LANGUAGE_TH = 11; + */ + LANGUAGE_TH("LANGUAGE_TH", 11), + + /** + * LANGUAGE_VI = 12; + */ + LANGUAGE_VI("LANGUAGE_VI", 12), + + /** + * LANGUAGE_ID = 13; + */ + LANGUAGE_ID("LANGUAGE_ID", 13); + + /** + * LANGUAGE_NONE = 0; + */ + public static final int LANGUAGE_NONE_VALUE = 0; + + /** + * LANGUAGE_SC = 1; + */ + public static final int LANGUAGE_SC_VALUE = 1; + + /** + * LANGUAGE_TC = 2; + */ + public static final int LANGUAGE_TC_VALUE = 2; + + /** + * LANGUAGE_EN = 3; + */ + public static final int LANGUAGE_EN_VALUE = 3; + + /** + * LANGUAGE_KR = 4; + */ + public static final int LANGUAGE_KR_VALUE = 4; + + /** + * LANGUAGE_JP = 5; + */ + public static final int LANGUAGE_JP_VALUE = 5; + + /** + * LANGUAGE_FR = 6; + */ + public static final int LANGUAGE_FR_VALUE = 6; + + /** + * LANGUAGE_DE = 7; + */ + public static final int LANGUAGE_DE_VALUE = 7; + + /** + * LANGUAGE_ES = 8; + */ + public static final int LANGUAGE_ES_VALUE = 8; + + /** + * LANGUAGE_PT = 9; + */ + public static final int LANGUAGE_PT_VALUE = 9; + + /** + * LANGUAGE_RU = 10; + */ + public static final int LANGUAGE_RU_VALUE = 10; + + /** + * LANGUAGE_TH = 11; + */ + public static final int LANGUAGE_TH_VALUE = 11; + + /** + * LANGUAGE_VI = 12; + */ + public static final int LANGUAGE_VI_VALUE = 12; + + /** + * LANGUAGE_ID = 13; + */ + public static final int LANGUAGE_ID_VALUE = 13; + + private final String name; + + private final int number; + + private LanguageType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return LanguageTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static LanguageType forNumber(int value) { + return LanguageTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static LanguageType forNumberOr(int number, LanguageType other) { + LanguageType value = forNumber(number); + return value == null ? other : value; + } + + enum LanguageTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final LanguageType[] lookup = new LanguageType[14]; + + static { + lookup[0] = LANGUAGE_NONE; + lookup[1] = LANGUAGE_SC; + lookup[2] = LANGUAGE_TC; + lookup[3] = LANGUAGE_EN; + lookup[4] = LANGUAGE_KR; + lookup[5] = LANGUAGE_JP; + lookup[6] = LANGUAGE_FR; + lookup[7] = LANGUAGE_DE; + lookup[8] = LANGUAGE_ES; + lookup[9] = LANGUAGE_PT; + lookup[10] = LANGUAGE_RU; + lookup[11] = LANGUAGE_TH; + lookup[12] = LANGUAGE_VI; + lookup[13] = LANGUAGE_ID; + } + + @Override + public final LanguageType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final LanguageType forName(final CharSequence value) { + if (value.length() == 11) { + if (ProtoUtil.isEqual("LANGUAGE_SC", value)) { + return LANGUAGE_SC; + } + if (ProtoUtil.isEqual("LANGUAGE_TC", value)) { + return LANGUAGE_TC; + } + if (ProtoUtil.isEqual("LANGUAGE_EN", value)) { + return LANGUAGE_EN; + } + if (ProtoUtil.isEqual("LANGUAGE_KR", value)) { + return LANGUAGE_KR; + } + if (ProtoUtil.isEqual("LANGUAGE_JP", value)) { + return LANGUAGE_JP; + } + if (ProtoUtil.isEqual("LANGUAGE_FR", value)) { + return LANGUAGE_FR; + } + if (ProtoUtil.isEqual("LANGUAGE_DE", value)) { + return LANGUAGE_DE; + } + if (ProtoUtil.isEqual("LANGUAGE_ES", value)) { + return LANGUAGE_ES; + } + if (ProtoUtil.isEqual("LANGUAGE_PT", value)) { + return LANGUAGE_PT; + } + if (ProtoUtil.isEqual("LANGUAGE_RU", value)) { + return LANGUAGE_RU; + } + if (ProtoUtil.isEqual("LANGUAGE_TH", value)) { + return LANGUAGE_TH; + } + if (ProtoUtil.isEqual("LANGUAGE_VI", value)) { + return LANGUAGE_VI; + } + if (ProtoUtil.isEqual("LANGUAGE_ID", value)) { + return LANGUAGE_ID; + } + } + if (value.length() == 13) { + if (ProtoUtil.isEqual("LANGUAGE_NONE", value)) { + return LANGUAGE_NONE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java new file mode 100644 index 0000000..4bc5b92 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java @@ -0,0 +1,818 @@ +// 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 LineupAvatarOuterClass { + /** + * Protobuf type {@code LineupAvatar} + */ + public static final class LineupAvatar extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 slot = 7; + */ + private int slot; + + /** + *
+     *  +44
+     * 
+ * + * optional uint32 hp = 9; + */ + private int hp; + + /** + *
+     *  + 32
+     * 
+ * + * optional uint32 id = 10; + */ + private int id; + + /** + *
+     *  +48
+     * 
+ * + * optional uint32 satiety = 13; + */ + private int satiety; + + /** + *
+     *  +40
+     * 
+ * + * optional .AvatarType avatar_type = 8; + */ + private int avatarType; + + /** + *
+     *  +24
+     * 
+ * + * optional .SpBarInfo sp_bar = 2; + */ + private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance(); + + private LineupAvatar() { + } + + /** + * @return a new empty instance of {@code LineupAvatar} + */ + public static LineupAvatar newInstance() { + return new LineupAvatar(); + } + + /** + * optional uint32 slot = 7; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 slot = 7; + * @return this + */ + public LineupAvatar clearSlot() { + bitField0_ &= ~0x00000001; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 7; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 7; + * @param value the slot to set + * @return this + */ + public LineupAvatar setSlot(final int value) { + bitField0_ |= 0x00000001; + slot = value; + return this; + } + + /** + *
+     *  +44
+     * 
+ * + * optional uint32 hp = 9; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  +44
+     * 
+ * + * optional uint32 hp = 9; + * @return this + */ + public LineupAvatar clearHp() { + bitField0_ &= ~0x00000002; + hp = 0; + return this; + } + + /** + *
+     *  +44
+     * 
+ * + * optional uint32 hp = 9; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + *
+     *  +44
+     * 
+ * + * optional uint32 hp = 9; + * @param value the hp to set + * @return this + */ + public LineupAvatar setHp(final int value) { + bitField0_ |= 0x00000002; + hp = value; + return this; + } + + /** + *
+     *  + 32
+     * 
+ * + * optional uint32 id = 10; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  + 32
+     * 
+ * + * optional uint32 id = 10; + * @return this + */ + public LineupAvatar clearId() { + bitField0_ &= ~0x00000004; + id = 0; + return this; + } + + /** + *
+     *  + 32
+     * 
+ * + * optional uint32 id = 10; + * @return the id + */ + public int getId() { + return id; + } + + /** + *
+     *  + 32
+     * 
+ * + * optional uint32 id = 10; + * @param value the id to set + * @return this + */ + public LineupAvatar setId(final int value) { + bitField0_ |= 0x00000004; + id = value; + return this; + } + + /** + *
+     *  +48
+     * 
+ * + * optional uint32 satiety = 13; + * @return whether the satiety field is set + */ + public boolean hasSatiety() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     *  +48
+     * 
+ * + * optional uint32 satiety = 13; + * @return this + */ + public LineupAvatar clearSatiety() { + bitField0_ &= ~0x00000008; + satiety = 0; + return this; + } + + /** + *
+     *  +48
+     * 
+ * + * optional uint32 satiety = 13; + * @return the satiety + */ + public int getSatiety() { + return satiety; + } + + /** + *
+     *  +48
+     * 
+ * + * optional uint32 satiety = 13; + * @param value the satiety to set + * @return this + */ + public LineupAvatar setSatiety(final int value) { + bitField0_ |= 0x00000008; + satiety = value; + return this; + } + + /** + *
+     *  +40
+     * 
+ * + * optional .AvatarType avatar_type = 8; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     *  +40
+     * 
+ * + * optional .AvatarType avatar_type = 8; + * @return this + */ + public LineupAvatar clearAvatarType() { + bitField0_ &= ~0x00000010; + avatarType = 0; + return this; + } + + /** + *
+     *  +40
+     * 
+ * + * optional .AvatarType avatar_type = 8; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link LineupAvatar#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link LineupAvatar#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public LineupAvatar setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000010; + avatarType = value; + return this; + } + + /** + *
+     *  +40
+     * 
+ * + * optional .AvatarType avatar_type = 8; + * @param value the avatarType to set + * @return this + */ + public LineupAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000010; + avatarType = value.getNumber(); + return this; + } + + /** + *
+     *  +24
+     * 
+ * + * optional .SpBarInfo sp_bar = 2; + * @return whether the spBar field is set + */ + public boolean hasSpBar() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + *
+     *  +24
+     * 
+ * + * optional .SpBarInfo sp_bar = 2; + * @return this + */ + public LineupAvatar clearSpBar() { + bitField0_ &= ~0x00000020; + spBar.clear(); + return this; + } + + /** + *
+     *  +24
+     * 
+ * + * optional .SpBarInfo sp_bar = 2; + * + * 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 #getMutableSpBar()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SpBarInfoOuterClass.SpBarInfo getSpBar() { + return spBar; + } + + /** + *
+     *  +24
+     * 
+ * + * optional .SpBarInfo sp_bar = 2; + * + * 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 SpBarInfoOuterClass.SpBarInfo getMutableSpBar() { + bitField0_ |= 0x00000020; + return spBar; + } + + /** + *
+     *  +24
+     * 
+ * + * optional .SpBarInfo sp_bar = 2; + * @param value the spBar to set + * @return this + */ + public LineupAvatar setSpBar(final SpBarInfoOuterClass.SpBarInfo value) { + bitField0_ |= 0x00000020; + spBar.copyFrom(value); + return this; + } + + @Override + public LineupAvatar copyFrom(final LineupAvatar other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + slot = other.slot; + hp = other.hp; + id = other.id; + satiety = other.satiety; + avatarType = other.avatarType; + spBar.copyFrom(other.spBar); + } + return this; + } + + @Override + public LineupAvatar mergeFrom(final LineupAvatar other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasSatiety()) { + setSatiety(other.satiety); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + if (other.hasSpBar()) { + getMutableSpBar().mergeFrom(other.spBar); + } + return this; + } + + @Override + public LineupAvatar clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slot = 0; + hp = 0; + id = 0; + satiety = 0; + avatarType = 0; + spBar.clear(); + return this; + } + + @Override + public LineupAvatar clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + spBar.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LineupAvatar)) { + return false; + } + LineupAvatar other = (LineupAvatar) o; + return bitField0_ == other.bitField0_ + && (!hasSlot() || slot == other.slot) + && (!hasHp() || hp == other.hp) + && (!hasId() || id == other.id) + && (!hasSatiety() || satiety == other.satiety) + && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasSpBar() || spBar.equals(other.spBar)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(hp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(satiety); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeEnumNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(spBar); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(satiety); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(spBar); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LineupAvatar mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // hp + hp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // satiety + satiety = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // spBar + input.readMessage(spBar); + 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.slot, slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.satiety, satiety); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.spBar, spBar); + } + output.endObject(); + } + + @Override + public LineupAvatar mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3336: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1871093127: { + if (input.isAtField(FieldNames.satiety)) { + if (!input.trySkipNullValue()) { + satiety = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 109608054: + case -896253135: { + if (input.isAtField(FieldNames.spBar)) { + if (!input.trySkipNullValue()) { + input.readMessage(spBar); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LineupAvatar clone() { + return new LineupAvatar().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LineupAvatar parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LineupAvatar(), data).checkInitialized(); + } + + public static LineupAvatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupAvatar(), input).checkInitialized(); + } + + public static LineupAvatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupAvatar(), input).checkInitialized(); + } + + /** + * @return factory for creating LineupAvatar messages + */ + public static MessageFactory getFactory() { + return LineupAvatarFactory.INSTANCE; + } + + private enum LineupAvatarFactory implements MessageFactory { + INSTANCE; + + @Override + public LineupAvatar create() { + return LineupAvatar.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName hp = FieldName.forField("hp"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName satiety = FieldName.forField("satiety"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + + static final FieldName spBar = FieldName.forField("spBar", "sp_bar"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java new file mode 100644 index 0000000..45aab9b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java @@ -0,0 +1,1001 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class LineupInfoOuterClass { + /** + * Protobuf type {@code LineupInfo} + */ + public static final class LineupInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 5; + */ + private int index; + + /** + * optional uint32 max_mp = 6; + */ + private int maxMp; + + /** + * optional uint32 mp = 8; + */ + private int mp; + + /** + * optional uint32 plane_id = 10; + */ + private int planeId; + + /** + * optional uint32 leader_slot = 12; + */ + private int leaderSlot; + + /** + * optional .ExtraLineupType extra_lineup_type = 2; + */ + private int extraLineupType; + + /** + * optional bool is_virtual = 14; + */ + private boolean isVirtual; + + /** + * optional string name = 3; + */ + private final Utf8String name = Utf8String.newEmptyInstance(); + + /** + * repeated .LineupAvatar avatar_list = 9; + */ + private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(LineupAvatarOuterClass.LineupAvatar.getFactory()); + + private LineupInfo() { + } + + /** + * @return a new empty instance of {@code LineupInfo} + */ + public static LineupInfo newInstance() { + return new LineupInfo(); + } + + /** + * optional uint32 index = 5; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 5; + * @return this + */ + public LineupInfo clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 5; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 5; + * @param value the index to set + * @return this + */ + public LineupInfo setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional uint32 max_mp = 6; + * @return whether the maxMp field is set + */ + public boolean hasMaxMp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 max_mp = 6; + * @return this + */ + public LineupInfo clearMaxMp() { + bitField0_ &= ~0x00000002; + maxMp = 0; + return this; + } + + /** + * optional uint32 max_mp = 6; + * @return the maxMp + */ + public int getMaxMp() { + return maxMp; + } + + /** + * optional uint32 max_mp = 6; + * @param value the maxMp to set + * @return this + */ + public LineupInfo setMaxMp(final int value) { + bitField0_ |= 0x00000002; + maxMp = value; + return this; + } + + /** + * optional uint32 mp = 8; + * @return whether the mp field is set + */ + public boolean hasMp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 mp = 8; + * @return this + */ + public LineupInfo clearMp() { + bitField0_ &= ~0x00000004; + mp = 0; + return this; + } + + /** + * optional uint32 mp = 8; + * @return the mp + */ + public int getMp() { + return mp; + } + + /** + * optional uint32 mp = 8; + * @param value the mp to set + * @return this + */ + public LineupInfo setMp(final int value) { + bitField0_ |= 0x00000004; + mp = value; + return this; + } + + /** + * optional uint32 plane_id = 10; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 plane_id = 10; + * @return this + */ + public LineupInfo clearPlaneId() { + bitField0_ &= ~0x00000008; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 10; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 10; + * @param value the planeId to set + * @return this + */ + public LineupInfo setPlaneId(final int value) { + bitField0_ |= 0x00000008; + planeId = value; + return this; + } + + /** + * optional uint32 leader_slot = 12; + * @return whether the leaderSlot field is set + */ + public boolean hasLeaderSlot() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 leader_slot = 12; + * @return this + */ + public LineupInfo clearLeaderSlot() { + bitField0_ &= ~0x00000010; + leaderSlot = 0; + return this; + } + + /** + * optional uint32 leader_slot = 12; + * @return the leaderSlot + */ + public int getLeaderSlot() { + return leaderSlot; + } + + /** + * optional uint32 leader_slot = 12; + * @param value the leaderSlot to set + * @return this + */ + public LineupInfo setLeaderSlot(final int value) { + bitField0_ |= 0x00000010; + leaderSlot = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 2; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 2; + * @return this + */ + public LineupInfo clearExtraLineupType() { + bitField0_ &= ~0x00000020; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 2; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link LineupInfo#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link LineupInfo#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public LineupInfo setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000020; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 2; + * @param value the extraLineupType to set + * @return this + */ + public LineupInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000020; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 14; + * @return whether the isVirtual field is set + */ + public boolean hasIsVirtual() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool is_virtual = 14; + * @return this + */ + public LineupInfo clearIsVirtual() { + bitField0_ &= ~0x00000040; + isVirtual = false; + return this; + } + + /** + * optional bool is_virtual = 14; + * @return the isVirtual + */ + public boolean getIsVirtual() { + return isVirtual; + } + + /** + * optional bool is_virtual = 14; + * @param value the isVirtual to set + * @return this + */ + public LineupInfo setIsVirtual(final boolean value) { + bitField0_ |= 0x00000040; + isVirtual = value; + return this; + } + + /** + * optional string name = 3; + * @return whether the name field is set + */ + public boolean hasName() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string name = 3; + * @return this + */ + public LineupInfo clearName() { + bitField0_ &= ~0x00000080; + name.clear(); + return this; + } + + /** + * optional string name = 3; + * @return the name + */ + public String getName() { + return name.getString(); + } + + /** + * optional string name = 3; + * @return internal {@code Utf8String} representation of name for reading + */ + public Utf8String getNameBytes() { + return this.name; + } + + /** + * optional string name = 3; + * @return internal {@code Utf8String} representation of name for modifications + */ + public Utf8String getMutableNameBytes() { + bitField0_ |= 0x00000080; + return this.name; + } + + /** + * optional string name = 3; + * @param value the name to set + * @return this + */ + public LineupInfo setName(final CharSequence value) { + bitField0_ |= 0x00000080; + name.copyFrom(value); + return this; + } + + /** + * optional string name = 3; + * @param value the name to set + * @return this + */ + public LineupInfo setName(final Utf8String value) { + bitField0_ |= 0x00000080; + name.copyFrom(value); + return this; + } + + /** + * repeated .LineupAvatar avatar_list = 9; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .LineupAvatar avatar_list = 9; + * @return this + */ + public LineupInfo clearAvatarList() { + bitField0_ &= ~0x00000100; + avatarList.clear(); + return this; + } + + /** + * repeated .LineupAvatar avatar_list = 9; + * + * 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 #getMutableAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarList() { + return avatarList; + } + + /** + * repeated .LineupAvatar avatar_list = 9; + * + * 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 getMutableAvatarList() { + bitField0_ |= 0x00000100; + return avatarList; + } + + /** + * repeated .LineupAvatar avatar_list = 9; + * @param value the avatarList to add + * @return this + */ + public LineupInfo addAvatarList(final LineupAvatarOuterClass.LineupAvatar value) { + bitField0_ |= 0x00000100; + avatarList.add(value); + return this; + } + + /** + * repeated .LineupAvatar avatar_list = 9; + * @param values the avatarList to add + * @return this + */ + public LineupInfo addAllAvatarList(final LineupAvatarOuterClass.LineupAvatar... values) { + bitField0_ |= 0x00000100; + avatarList.addAll(values); + return this; + } + + @Override + public LineupInfo copyFrom(final LineupInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + maxMp = other.maxMp; + mp = other.mp; + planeId = other.planeId; + leaderSlot = other.leaderSlot; + extraLineupType = other.extraLineupType; + isVirtual = other.isVirtual; + name.copyFrom(other.name); + avatarList.copyFrom(other.avatarList); + } + return this; + } + + @Override + public LineupInfo mergeFrom(final LineupInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasMaxMp()) { + setMaxMp(other.maxMp); + } + if (other.hasMp()) { + setMp(other.mp); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasLeaderSlot()) { + setLeaderSlot(other.leaderSlot); + } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + if (other.hasIsVirtual()) { + setIsVirtual(other.isVirtual); + } + if (other.hasName()) { + getMutableNameBytes().copyFrom(other.name); + } + if (other.hasAvatarList()) { + getMutableAvatarList().addAll(other.avatarList); + } + return this; + } + + @Override + public LineupInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + maxMp = 0; + mp = 0; + planeId = 0; + leaderSlot = 0; + extraLineupType = 0; + isVirtual = false; + name.clear(); + avatarList.clear(); + return this; + } + + @Override + public LineupInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + name.clear(); + avatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LineupInfo)) { + return false; + } + LineupInfo other = (LineupInfo) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasMaxMp() || maxMp == other.maxMp) + && (!hasMp() || mp == other.mp) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasIsVirtual() || isVirtual == other.isVirtual) + && (!hasName() || name.equals(other.name)) + && (!hasAvatarList() || avatarList.equals(other.avatarList)); + } + + @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) 48); + output.writeUInt32NoTag(maxMp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(mp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(planeId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(leaderSlot); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(isVirtual); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(name); + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(avatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(name); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LineupInfo 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 != 48) { + break; + } + } + case 48: { + // maxMp + maxMp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // mp + mp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // leaderSlot + leaderSlot = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000020; + } + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // isVirtual + isVirtual = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // name + input.readString(name); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // avatarList + tag = input.readRepeatedMessage(avatarList, tag); + bitField0_ |= 0x00000100; + 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.maxMp, maxMp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.mp, mp); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.isVirtual, isVirtual); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.name, name); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.avatarList, avatarList); + } + output.endObject(); + } + + @Override + public LineupInfo 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 103671335: + case -1081138594: { + if (input.isAtField(FieldNames.maxMp)) { + if (!input.trySkipNullValue()) { + maxMp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3491: { + if (input.isAtField(FieldNames.mp)) { + if (!input.trySkipNullValue()) { + mp = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1191442087: + case -1708713100: { + if (input.isAtField(FieldNames.leaderSlot)) { + if (!input.trySkipNullValue()) { + leaderSlot = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000020; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -113613183: + case 1966475510: { + if (input.isAtField(FieldNames.isVirtual)) { + if (!input.trySkipNullValue()) { + isVirtual = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3373707: { + if (input.isAtField(FieldNames.name)) { + if (!input.trySkipNullValue()) { + input.readString(name); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LineupInfo clone() { + return new LineupInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LineupInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LineupInfo(), data).checkInitialized(); + } + + public static LineupInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupInfo(), input).checkInitialized(); + } + + public static LineupInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating LineupInfo messages + */ + public static MessageFactory getFactory() { + return LineupInfoFactory.INSTANCE; + } + + private enum LineupInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public LineupInfo create() { + return LineupInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + + static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); + + static final FieldName mp = FieldName.forField("mp"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); + + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); + + static final FieldName name = FieldName.forField("name"); + + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java new file mode 100644 index 0000000..f6b297d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java @@ -0,0 +1,453 @@ +// 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 LineupSlotDataOuterClass { + /** + * Protobuf type {@code LineupSlotData} + */ + public static final class LineupSlotData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 11; + */ + private int id; + + /** + * optional uint32 slot = 14; + */ + private int slot; + + /** + * optional .AvatarType avatar_type = 13; + */ + private int avatarType; + + private LineupSlotData() { + } + + /** + * @return a new empty instance of {@code LineupSlotData} + */ + public static LineupSlotData newInstance() { + return new LineupSlotData(); + } + + /** + * optional uint32 id = 11; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 11; + * @return this + */ + public LineupSlotData clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 11; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 11; + * @param value the id to set + * @return this + */ + public LineupSlotData setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional uint32 slot = 14; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 slot = 14; + * @return this + */ + public LineupSlotData clearSlot() { + bitField0_ &= ~0x00000002; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 14; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 14; + * @param value the slot to set + * @return this + */ + public LineupSlotData setSlot(final int value) { + bitField0_ |= 0x00000002; + slot = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return this + */ + public LineupSlotData clearAvatarType() { + bitField0_ &= ~0x00000004; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link LineupSlotData#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link LineupSlotData#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public LineupSlotData setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000004; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @param value the avatarType to set + * @return this + */ + public LineupSlotData setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000004; + avatarType = value.getNumber(); + return this; + } + + @Override + public LineupSlotData copyFrom(final LineupSlotData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + slot = other.slot; + avatarType = other.avatarType; + } + return this; + } + + @Override + public LineupSlotData mergeFrom(final LineupSlotData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + return this; + } + + @Override + public LineupSlotData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + slot = 0; + avatarType = 0; + return this; + } + + @Override + public LineupSlotData 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 LineupSlotData)) { + return false; + } + LineupSlotData other = (LineupSlotData) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasSlot() || slot == other.slot) + && (!hasAvatarType() || avatarType == other.avatarType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(avatarType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LineupSlotData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + 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.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + output.endObject(); + } + + @Override + public LineupSlotData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LineupSlotData clone() { + return new LineupSlotData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LineupSlotData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LineupSlotData(), data).checkInitialized(); + } + + public static LineupSlotData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupSlotData(), input).checkInitialized(); + } + + public static LineupSlotData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupSlotData(), input).checkInitialized(); + } + + /** + * @return factory for creating LineupSlotData messages + */ + public static MessageFactory getFactory() { + return LineupSlotDataFactory.INSTANCE; + } + + private enum LineupSlotDataFactory implements MessageFactory { + INSTANCE; + + @Override + public LineupSlotData create() { + return LineupSlotData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java new file mode 100644 index 0000000..6364101 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java @@ -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 LockEquipmentCsReqOuterClass { + /** + * Protobuf type {@code LockEquipmentCsReq} + */ + public static final class LockEquipmentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 equipment_unique_id = 9; + */ + private int equipmentUniqueId; + + /** + * optional bool is_protected = 15; + */ + private boolean isProtected; + + private LockEquipmentCsReq() { + } + + /** + * @return a new empty instance of {@code LockEquipmentCsReq} + */ + public static LockEquipmentCsReq newInstance() { + return new LockEquipmentCsReq(); + } + + /** + * optional uint32 equipment_unique_id = 9; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 equipment_unique_id = 9; + * @return this + */ + public LockEquipmentCsReq clearEquipmentUniqueId() { + bitField0_ &= ~0x00000001; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 9; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 9; + * @param value the equipmentUniqueId to set + * @return this + */ + public LockEquipmentCsReq setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000001; + equipmentUniqueId = value; + return this; + } + + /** + * optional bool is_protected = 15; + * @return whether the isProtected field is set + */ + public boolean hasIsProtected() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_protected = 15; + * @return this + */ + public LockEquipmentCsReq clearIsProtected() { + bitField0_ &= ~0x00000002; + isProtected = false; + return this; + } + + /** + * optional bool is_protected = 15; + * @return the isProtected + */ + public boolean getIsProtected() { + return isProtected; + } + + /** + * optional bool is_protected = 15; + * @param value the isProtected to set + * @return this + */ + public LockEquipmentCsReq setIsProtected(final boolean value) { + bitField0_ |= 0x00000002; + isProtected = value; + return this; + } + + @Override + public LockEquipmentCsReq copyFrom(final LockEquipmentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + equipmentUniqueId = other.equipmentUniqueId; + isProtected = other.isProtected; + } + return this; + } + + @Override + public LockEquipmentCsReq mergeFrom(final LockEquipmentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasIsProtected()) { + setIsProtected(other.isProtected); + } + return this; + } + + @Override + public LockEquipmentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + equipmentUniqueId = 0; + isProtected = false; + return this; + } + + @Override + public LockEquipmentCsReq 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 LockEquipmentCsReq)) { + return false; + } + LockEquipmentCsReq other = (LockEquipmentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasIsProtected() || isProtected == other.isProtected); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(isProtected); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LockEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // isProtected + isProtected = 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.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isProtected, isProtected); + } + output.endObject(); + } + + @Override + public LockEquipmentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 569879972: + case -1919645991: { + if (input.isAtField(FieldNames.isProtected)) { + if (!input.trySkipNullValue()) { + isProtected = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LockEquipmentCsReq clone() { + return new LockEquipmentCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LockEquipmentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LockEquipmentCsReq(), data).checkInitialized(); + } + + public static LockEquipmentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockEquipmentCsReq(), input).checkInitialized(); + } + + public static LockEquipmentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockEquipmentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating LockEquipmentCsReq messages + */ + public static MessageFactory getFactory() { + return LockEquipmentCsReqFactory.INSTANCE; + } + + private enum LockEquipmentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public LockEquipmentCsReq create() { + return LockEquipmentCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java new file mode 100644 index 0000000..f471e1a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java @@ -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 LockEquipmentScRspOuterClass { + /** + * Protobuf type {@code LockEquipmentScRsp} + */ + public static final class LockEquipmentScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 equipment_unique_id = 5; + */ + private int equipmentUniqueId; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + private LockEquipmentScRsp() { + } + + /** + * @return a new empty instance of {@code LockEquipmentScRsp} + */ + public static LockEquipmentScRsp newInstance() { + return new LockEquipmentScRsp(); + } + + /** + * optional uint32 equipment_unique_id = 5; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 equipment_unique_id = 5; + * @return this + */ + public LockEquipmentScRsp clearEquipmentUniqueId() { + bitField0_ &= ~0x00000001; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 5; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 5; + * @param value the equipmentUniqueId to set + * @return this + */ + public LockEquipmentScRsp setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000001; + equipmentUniqueId = value; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public LockEquipmentScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public LockEquipmentScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public LockEquipmentScRsp copyFrom(final LockEquipmentScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + equipmentUniqueId = other.equipmentUniqueId; + retcode = other.retcode; + } + return this; + } + + @Override + public LockEquipmentScRsp mergeFrom(final LockEquipmentScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public LockEquipmentScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + equipmentUniqueId = 0; + retcode = 0; + return this; + } + + @Override + public LockEquipmentScRsp 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 LockEquipmentScRsp)) { + return false; + } + LockEquipmentScRsp other = (LockEquipmentScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LockEquipmentScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // retcode + retcode = 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.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public LockEquipmentScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LockEquipmentScRsp clone() { + return new LockEquipmentScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LockEquipmentScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LockEquipmentScRsp(), data).checkInitialized(); + } + + public static LockEquipmentScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockEquipmentScRsp(), input).checkInitialized(); + } + + public static LockEquipmentScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockEquipmentScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating LockEquipmentScRsp messages + */ + public static MessageFactory getFactory() { + return LockEquipmentScRspFactory.INSTANCE; + } + + private enum LockEquipmentScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public LockEquipmentScRsp create() { + return LockEquipmentScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java new file mode 100644 index 0000000..d15e828 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java @@ -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 LockRelicCsReqOuterClass { + /** + * Protobuf type {@code LockRelicCsReq} + */ + public static final class LockRelicCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 relic_unique_id = 4; + */ + private int relicUniqueId; + + /** + * optional bool is_protected = 9; + */ + private boolean isProtected; + + private LockRelicCsReq() { + } + + /** + * @return a new empty instance of {@code LockRelicCsReq} + */ + public static LockRelicCsReq newInstance() { + return new LockRelicCsReq(); + } + + /** + * optional uint32 relic_unique_id = 4; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 relic_unique_id = 4; + * @return this + */ + public LockRelicCsReq clearRelicUniqueId() { + bitField0_ &= ~0x00000001; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 4; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 4; + * @param value the relicUniqueId to set + * @return this + */ + public LockRelicCsReq setRelicUniqueId(final int value) { + bitField0_ |= 0x00000001; + relicUniqueId = value; + return this; + } + + /** + * optional bool is_protected = 9; + * @return whether the isProtected field is set + */ + public boolean hasIsProtected() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_protected = 9; + * @return this + */ + public LockRelicCsReq clearIsProtected() { + bitField0_ &= ~0x00000002; + isProtected = false; + return this; + } + + /** + * optional bool is_protected = 9; + * @return the isProtected + */ + public boolean getIsProtected() { + return isProtected; + } + + /** + * optional bool is_protected = 9; + * @param value the isProtected to set + * @return this + */ + public LockRelicCsReq setIsProtected(final boolean value) { + bitField0_ |= 0x00000002; + isProtected = value; + return this; + } + + @Override + public LockRelicCsReq copyFrom(final LockRelicCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + relicUniqueId = other.relicUniqueId; + isProtected = other.isProtected; + } + return this; + } + + @Override + public LockRelicCsReq mergeFrom(final LockRelicCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + if (other.hasIsProtected()) { + setIsProtected(other.isProtected); + } + return this; + } + + @Override + public LockRelicCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + relicUniqueId = 0; + isProtected = false; + return this; + } + + @Override + public LockRelicCsReq 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 LockRelicCsReq)) { + return false; + } + LockRelicCsReq other = (LockRelicCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!hasIsProtected() || isProtected == other.isProtected); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(isProtected); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LockRelicCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // relicUniqueId + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // isProtected + isProtected = 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.relicUniqueId, relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isProtected, isProtected); + } + output.endObject(); + } + + @Override + public LockRelicCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 569879972: + case -1919645991: { + if (input.isAtField(FieldNames.isProtected)) { + if (!input.trySkipNullValue()) { + isProtected = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LockRelicCsReq clone() { + return new LockRelicCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LockRelicCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LockRelicCsReq(), data).checkInitialized(); + } + + public static LockRelicCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockRelicCsReq(), input).checkInitialized(); + } + + public static LockRelicCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockRelicCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating LockRelicCsReq messages + */ + public static MessageFactory getFactory() { + return LockRelicCsReqFactory.INSTANCE; + } + + private enum LockRelicCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public LockRelicCsReq create() { + return LockRelicCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + + static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java new file mode 100644 index 0000000..368223f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java @@ -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 LockRelicScRspOuterClass { + /** + * Protobuf type {@code LockRelicScRsp} + */ + public static final class LockRelicScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + /** + * optional uint32 relic_unique_id = 11; + */ + private int relicUniqueId; + + private LockRelicScRsp() { + } + + /** + * @return a new empty instance of {@code LockRelicScRsp} + */ + public static LockRelicScRsp newInstance() { + return new LockRelicScRsp(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public LockRelicScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public LockRelicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 relic_unique_id = 11; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 relic_unique_id = 11; + * @return this + */ + public LockRelicScRsp clearRelicUniqueId() { + bitField0_ &= ~0x00000002; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 11; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 11; + * @param value the relicUniqueId to set + * @return this + */ + public LockRelicScRsp setRelicUniqueId(final int value) { + bitField0_ |= 0x00000002; + relicUniqueId = value; + return this; + } + + @Override + public LockRelicScRsp copyFrom(final LockRelicScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + relicUniqueId = other.relicUniqueId; + } + return this; + } + + @Override + public LockRelicScRsp mergeFrom(final LockRelicScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + return this; + } + + @Override + public LockRelicScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + relicUniqueId = 0; + return this; + } + + @Override + public LockRelicScRsp 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 LockRelicScRsp)) { + return false; + } + LockRelicScRsp other = (LockRelicScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(relicUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LockRelicScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // relicUniqueId + relicUniqueId = 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + } + output.endObject(); + } + + @Override + public LockRelicScRsp 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 -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LockRelicScRsp clone() { + return new LockRelicScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LockRelicScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LockRelicScRsp(), data).checkInitialized(); + } + + public static LockRelicScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockRelicScRsp(), input).checkInitialized(); + } + + public static LockRelicScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LockRelicScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating LockRelicScRsp messages + */ + public static MessageFactory getFactory() { + return LockRelicScRspFactory.INSTANCE; + } + + private enum LockRelicScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public LockRelicScRsp create() { + return LockRelicScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java new file mode 100644 index 0000000..a842f7c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java @@ -0,0 +1,140 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class MapInfoChestTypeOuterClass { + /** + * Protobuf enum {@code MapInfoChestType} + */ + public enum MapInfoChestType implements ProtoEnum { + /** + * MAP_INFO_CHEST_TYPE_NONE = 0; + */ + MAP_INFO_CHEST_TYPE_NONE("MAP_INFO_CHEST_TYPE_NONE", 0), + + /** + * MAP_INFO_CHEST_TYPE_NORMAL = 101; + */ + MAP_INFO_CHEST_TYPE_NORMAL("MAP_INFO_CHEST_TYPE_NORMAL", 101), + + /** + * MAP_INFO_CHEST_TYPE_CHALLENGE = 102; + */ + MAP_INFO_CHEST_TYPE_CHALLENGE("MAP_INFO_CHEST_TYPE_CHALLENGE", 102), + + /** + * MAP_INFO_CHEST_TYPE_PUZZLE = 104; + */ + MAP_INFO_CHEST_TYPE_PUZZLE("MAP_INFO_CHEST_TYPE_PUZZLE", 104); + + /** + * MAP_INFO_CHEST_TYPE_NONE = 0; + */ + public static final int MAP_INFO_CHEST_TYPE_NONE_VALUE = 0; + + /** + * MAP_INFO_CHEST_TYPE_NORMAL = 101; + */ + public static final int MAP_INFO_CHEST_TYPE_NORMAL_VALUE = 101; + + /** + * MAP_INFO_CHEST_TYPE_CHALLENGE = 102; + */ + public static final int MAP_INFO_CHEST_TYPE_CHALLENGE_VALUE = 102; + + /** + * MAP_INFO_CHEST_TYPE_PUZZLE = 104; + */ + public static final int MAP_INFO_CHEST_TYPE_PUZZLE_VALUE = 104; + + private final String name; + + private final int number; + + private MapInfoChestType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return MapInfoChestTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static MapInfoChestType forNumber(int value) { + return MapInfoChestTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static MapInfoChestType forNumberOr(int number, MapInfoChestType other) { + MapInfoChestType value = forNumber(number); + return value == null ? other : value; + } + + enum MapInfoChestTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + @Override + public final MapInfoChestType forNumber(final int value) { + switch(value) { + case 0: return MAP_INFO_CHEST_TYPE_NONE; + case 101: return MAP_INFO_CHEST_TYPE_NORMAL; + case 102: return MAP_INFO_CHEST_TYPE_CHALLENGE; + case 104: return MAP_INFO_CHEST_TYPE_PUZZLE; + default: return null; + } + } + + @Override + public final MapInfoChestType forName(final CharSequence value) { + if (value.length() == 24) { + if (ProtoUtil.isEqual("MAP_INFO_CHEST_TYPE_NONE", value)) { + return MAP_INFO_CHEST_TYPE_NONE; + } + } + if (value.length() == 26) { + if (ProtoUtil.isEqual("MAP_INFO_CHEST_TYPE_NORMAL", value)) { + return MAP_INFO_CHEST_TYPE_NORMAL; + } + if (ProtoUtil.isEqual("MAP_INFO_CHEST_TYPE_PUZZLE", value)) { + return MAP_INFO_CHEST_TYPE_PUZZLE; + } + } + if (value.length() == 29) { + if (ProtoUtil.isEqual("MAP_INFO_CHEST_TYPE_CHALLENGE", value)) { + return MAP_INFO_CHEST_TYPE_CHALLENGE; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java new file mode 100644 index 0000000..a1f5ffb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java @@ -0,0 +1,418 @@ +// 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 MaterialOuterClass { + /** + * Protobuf type {@code Material} + */ + public static final class Material extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 JFHKDOLIJDI = 9; + */ + private long jFHKDOLIJDI; + + /** + * optional uint32 tid = 4; + */ + private int tid; + + /** + * optional uint32 num = 5; + */ + private int num; + + private Material() { + } + + /** + * @return a new empty instance of {@code Material} + */ + public static Material newInstance() { + return new Material(); + } + + /** + * optional uint64 JFHKDOLIJDI = 9; + * @return whether the jFHKDOLIJDI field is set + */ + public boolean hasJFHKDOLIJDI() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 JFHKDOLIJDI = 9; + * @return this + */ + public Material clearJFHKDOLIJDI() { + bitField0_ &= ~0x00000001; + jFHKDOLIJDI = 0L; + return this; + } + + /** + * optional uint64 JFHKDOLIJDI = 9; + * @return the jFHKDOLIJDI + */ + public long getJFHKDOLIJDI() { + return jFHKDOLIJDI; + } + + /** + * optional uint64 JFHKDOLIJDI = 9; + * @param value the jFHKDOLIJDI to set + * @return this + */ + public Material setJFHKDOLIJDI(final long value) { + bitField0_ |= 0x00000001; + jFHKDOLIJDI = value; + return this; + } + + /** + * optional uint32 tid = 4; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 tid = 4; + * @return this + */ + public Material clearTid() { + bitField0_ &= ~0x00000002; + tid = 0; + return this; + } + + /** + * optional uint32 tid = 4; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 tid = 4; + * @param value the tid to set + * @return this + */ + public Material setTid(final int value) { + bitField0_ |= 0x00000002; + tid = value; + return this; + } + + /** + * optional uint32 num = 5; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 num = 5; + * @return this + */ + public Material clearNum() { + bitField0_ &= ~0x00000004; + num = 0; + return this; + } + + /** + * optional uint32 num = 5; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 5; + * @param value the num to set + * @return this + */ + public Material setNum(final int value) { + bitField0_ |= 0x00000004; + num = value; + return this; + } + + @Override + public Material copyFrom(final Material other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + jFHKDOLIJDI = other.jFHKDOLIJDI; + tid = other.tid; + num = other.num; + } + return this; + } + + @Override + public Material mergeFrom(final Material other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasJFHKDOLIJDI()) { + setJFHKDOLIJDI(other.jFHKDOLIJDI); + } + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasNum()) { + setNum(other.num); + } + return this; + } + + @Override + public Material clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jFHKDOLIJDI = 0L; + tid = 0; + num = 0; + return this; + } + + @Override + public Material 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 Material)) { + return false; + } + Material other = (Material) o; + return bitField0_ == other.bitField0_ + && (!hasJFHKDOLIJDI() || jFHKDOLIJDI == other.jFHKDOLIJDI) + && (!hasTid() || tid == other.tid) + && (!hasNum() || num == other.num); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt64NoTag(jFHKDOLIJDI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(num); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(jFHKDOLIJDI); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Material mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // jFHKDOLIJDI + jFHKDOLIJDI = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // num + num = input.readUInt32(); + 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.writeUInt64(FieldNames.jFHKDOLIJDI, jFHKDOLIJDI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.tid, tid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.num, num); + } + output.endObject(); + } + + @Override + public Material mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867524632: { + if (input.isAtField(FieldNames.jFHKDOLIJDI)) { + if (!input.trySkipNullValue()) { + jFHKDOLIJDI = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 114831: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Material clone() { + return new Material().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Material parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Material(), data).checkInitialized(); + } + + public static Material parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Material(), input).checkInitialized(); + } + + public static Material parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Material(), input).checkInitialized(); + } + + /** + * @return factory for creating Material messages + */ + public static MessageFactory getFactory() { + return MaterialFactory.INSTANCE; + } + + private enum MaterialFactory implements MessageFactory { + INSTANCE; + + @Override + public Material create() { + return Material.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName jFHKDOLIJDI = FieldName.forField("JFHKDOLIJDI"); + + static final FieldName tid = FieldName.forField("tid"); + + static final FieldName num = FieldName.forField("num"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java new file mode 100644 index 0000000..c1eb519 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java @@ -0,0 +1,452 @@ +// 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 MazeChestOuterClass { + /** + * Protobuf type {@code MazeChest} + */ + public static final class MazeChest extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 POGFOPELNMK = 14; + */ + private int pOGFOPELNMK; + + /** + * optional uint32 GKHHBPAINAO = 15; + */ + private int gKHHBPAINAO; + + /** + * optional .MapInfoChestType map_info_chest_Type = 3; + */ + private int mapInfoChestType; + + private MazeChest() { + } + + /** + * @return a new empty instance of {@code MazeChest} + */ + public static MazeChest newInstance() { + return new MazeChest(); + } + + /** + * optional uint32 POGFOPELNMK = 14; + * @return whether the pOGFOPELNMK field is set + */ + public boolean hasPOGFOPELNMK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 POGFOPELNMK = 14; + * @return this + */ + public MazeChest clearPOGFOPELNMK() { + bitField0_ &= ~0x00000001; + pOGFOPELNMK = 0; + return this; + } + + /** + * optional uint32 POGFOPELNMK = 14; + * @return the pOGFOPELNMK + */ + public int getPOGFOPELNMK() { + return pOGFOPELNMK; + } + + /** + * optional uint32 POGFOPELNMK = 14; + * @param value the pOGFOPELNMK to set + * @return this + */ + public MazeChest setPOGFOPELNMK(final int value) { + bitField0_ |= 0x00000001; + pOGFOPELNMK = value; + return this; + } + + /** + * optional uint32 GKHHBPAINAO = 15; + * @return whether the gKHHBPAINAO field is set + */ + public boolean hasGKHHBPAINAO() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GKHHBPAINAO = 15; + * @return this + */ + public MazeChest clearGKHHBPAINAO() { + bitField0_ &= ~0x00000002; + gKHHBPAINAO = 0; + return this; + } + + /** + * optional uint32 GKHHBPAINAO = 15; + * @return the gKHHBPAINAO + */ + public int getGKHHBPAINAO() { + return gKHHBPAINAO; + } + + /** + * optional uint32 GKHHBPAINAO = 15; + * @param value the gKHHBPAINAO to set + * @return this + */ + public MazeChest setGKHHBPAINAO(final int value) { + bitField0_ |= 0x00000002; + gKHHBPAINAO = value; + return this; + } + + /** + * optional .MapInfoChestType map_info_chest_Type = 3; + * @return whether the mapInfoChestType field is set + */ + public boolean hasMapInfoChestType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MapInfoChestType map_info_chest_Type = 3; + * @return this + */ + public MazeChest clearMapInfoChestType() { + bitField0_ &= ~0x00000004; + mapInfoChestType = 0; + return this; + } + + /** + * optional .MapInfoChestType map_info_chest_Type = 3; + * @return the mapInfoChestType + */ + public MapInfoChestTypeOuterClass.MapInfoChestType getMapInfoChestType() { + return MapInfoChestTypeOuterClass.MapInfoChestType.forNumber(mapInfoChestType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link MazeChest#getMapInfoChestType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getMapInfoChestTypeValue() { + return mapInfoChestType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MapInfoChestTypeOuterClass.MapInfoChestType}. Setting an invalid value + * can cause {@link MazeChest#getMapInfoChestType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public MazeChest setMapInfoChestTypeValue(final int value) { + bitField0_ |= 0x00000004; + mapInfoChestType = value; + return this; + } + + /** + * optional .MapInfoChestType map_info_chest_Type = 3; + * @param value the mapInfoChestType to set + * @return this + */ + public MazeChest setMapInfoChestType(final MapInfoChestTypeOuterClass.MapInfoChestType value) { + bitField0_ |= 0x00000004; + mapInfoChestType = value.getNumber(); + return this; + } + + @Override + public MazeChest copyFrom(final MazeChest other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pOGFOPELNMK = other.pOGFOPELNMK; + gKHHBPAINAO = other.gKHHBPAINAO; + mapInfoChestType = other.mapInfoChestType; + } + return this; + } + + @Override + public MazeChest mergeFrom(final MazeChest other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPOGFOPELNMK()) { + setPOGFOPELNMK(other.pOGFOPELNMK); + } + if (other.hasGKHHBPAINAO()) { + setGKHHBPAINAO(other.gKHHBPAINAO); + } + if (other.hasMapInfoChestType()) { + setMapInfoChestTypeValue(other.mapInfoChestType); + } + return this; + } + + @Override + public MazeChest clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pOGFOPELNMK = 0; + gKHHBPAINAO = 0; + mapInfoChestType = 0; + return this; + } + + @Override + public MazeChest 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 MazeChest)) { + return false; + } + MazeChest other = (MazeChest) o; + return bitField0_ == other.bitField0_ + && (!hasPOGFOPELNMK() || pOGFOPELNMK == other.pOGFOPELNMK) + && (!hasGKHHBPAINAO() || gKHHBPAINAO == other.gKHHBPAINAO) + && (!hasMapInfoChestType() || mapInfoChestType == other.mapInfoChestType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(pOGFOPELNMK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(gKHHBPAINAO); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeEnumNoTag(mapInfoChestType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pOGFOPELNMK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gKHHBPAINAO); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(mapInfoChestType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MazeChest mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // pOGFOPELNMK + pOGFOPELNMK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // gKHHBPAINAO + gKHHBPAINAO = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // mapInfoChestType + final int value = input.readInt32(); + if (MapInfoChestTypeOuterClass.MapInfoChestType.forNumber(value) != null) { + mapInfoChestType = value; + 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.pOGFOPELNMK, pOGFOPELNMK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gKHHBPAINAO, gKHHBPAINAO); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.mapInfoChestType, mapInfoChestType, MapInfoChestTypeOuterClass.MapInfoChestType.converter()); + } + output.endObject(); + } + + @Override + public MazeChest mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1345248838: { + if (input.isAtField(FieldNames.pOGFOPELNMK)) { + if (!input.trySkipNullValue()) { + pOGFOPELNMK = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -149234974: { + if (input.isAtField(FieldNames.gKHHBPAINAO)) { + if (!input.trySkipNullValue()) { + gKHHBPAINAO = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 602980561: + case -764040922: { + if (input.isAtField(FieldNames.mapInfoChestType)) { + if (!input.trySkipNullValue()) { + final MapInfoChestTypeOuterClass.MapInfoChestType value = input.readEnum(MapInfoChestTypeOuterClass.MapInfoChestType.converter()); + if (value != null) { + mapInfoChestType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MazeChest clone() { + return new MazeChest().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MazeChest parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MazeChest(), data).checkInitialized(); + } + + public static MazeChest parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeChest(), input).checkInitialized(); + } + + public static MazeChest parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeChest(), input).checkInitialized(); + } + + /** + * @return factory for creating MazeChest messages + */ + public static MessageFactory getFactory() { + return MazeChestFactory.INSTANCE; + } + + private enum MazeChestFactory implements MessageFactory { + INSTANCE; + + @Override + public MazeChest create() { + return MazeChest.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pOGFOPELNMK = FieldName.forField("POGFOPELNMK"); + + static final FieldName gKHHBPAINAO = FieldName.forField("GKHHBPAINAO"); + + static final FieldName mapInfoChestType = FieldName.forField("mapInfoChestType", "map_info_chest_Type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java new file mode 100644 index 0000000..f396e92 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java @@ -0,0 +1,540 @@ +// 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 MazeGroupOuterClass { + /** + * Protobuf type {@code MazeGroup} + */ + public static final class MazeGroup extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 MCKACFLLDHL = 7; + */ + private long mCKACFLLDHL; + + /** + * optional uint32 group_id = 10; + */ + private int groupId; + + /** + * optional bool BENLBEGJIMH = 6; + */ + private boolean bENLBEGJIMH; + + /** + * repeated uint32 ALDIKBFEFNM = 4; + */ + private final RepeatedInt aLDIKBFEFNM = RepeatedInt.newEmptyInstance(); + + private MazeGroup() { + } + + /** + * @return a new empty instance of {@code MazeGroup} + */ + public static MazeGroup newInstance() { + return new MazeGroup(); + } + + /** + * optional int64 MCKACFLLDHL = 7; + * @return whether the mCKACFLLDHL field is set + */ + public boolean hasMCKACFLLDHL() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 MCKACFLLDHL = 7; + * @return this + */ + public MazeGroup clearMCKACFLLDHL() { + bitField0_ &= ~0x00000001; + mCKACFLLDHL = 0L; + return this; + } + + /** + * optional int64 MCKACFLLDHL = 7; + * @return the mCKACFLLDHL + */ + public long getMCKACFLLDHL() { + return mCKACFLLDHL; + } + + /** + * optional int64 MCKACFLLDHL = 7; + * @param value the mCKACFLLDHL to set + * @return this + */ + public MazeGroup setMCKACFLLDHL(final long value) { + bitField0_ |= 0x00000001; + mCKACFLLDHL = value; + return this; + } + + /** + * optional uint32 group_id = 10; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 10; + * @return this + */ + public MazeGroup clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 10; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 10; + * @param value the groupId to set + * @return this + */ + public MazeGroup setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional bool BENLBEGJIMH = 6; + * @return whether the bENLBEGJIMH field is set + */ + public boolean hasBENLBEGJIMH() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool BENLBEGJIMH = 6; + * @return this + */ + public MazeGroup clearBENLBEGJIMH() { + bitField0_ &= ~0x00000004; + bENLBEGJIMH = false; + return this; + } + + /** + * optional bool BENLBEGJIMH = 6; + * @return the bENLBEGJIMH + */ + public boolean getBENLBEGJIMH() { + return bENLBEGJIMH; + } + + /** + * optional bool BENLBEGJIMH = 6; + * @param value the bENLBEGJIMH to set + * @return this + */ + public MazeGroup setBENLBEGJIMH(final boolean value) { + bitField0_ |= 0x00000004; + bENLBEGJIMH = value; + return this; + } + + /** + * repeated uint32 ALDIKBFEFNM = 4; + * @return whether the aLDIKBFEFNM field is set + */ + public boolean hasALDIKBFEFNM() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 ALDIKBFEFNM = 4; + * @return this + */ + public MazeGroup clearALDIKBFEFNM() { + bitField0_ &= ~0x00000008; + aLDIKBFEFNM.clear(); + return this; + } + + /** + * repeated uint32 ALDIKBFEFNM = 4; + * + * 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 #getMutableALDIKBFEFNM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getALDIKBFEFNM() { + return aLDIKBFEFNM; + } + + /** + * repeated uint32 ALDIKBFEFNM = 4; + * + * 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 getMutableALDIKBFEFNM() { + bitField0_ |= 0x00000008; + return aLDIKBFEFNM; + } + + /** + * repeated uint32 ALDIKBFEFNM = 4; + * @param value the aLDIKBFEFNM to add + * @return this + */ + public MazeGroup addALDIKBFEFNM(final int value) { + bitField0_ |= 0x00000008; + aLDIKBFEFNM.add(value); + return this; + } + + /** + * repeated uint32 ALDIKBFEFNM = 4; + * @param values the aLDIKBFEFNM to add + * @return this + */ + public MazeGroup addAllALDIKBFEFNM(final int... values) { + bitField0_ |= 0x00000008; + aLDIKBFEFNM.addAll(values); + return this; + } + + @Override + public MazeGroup copyFrom(final MazeGroup other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mCKACFLLDHL = other.mCKACFLLDHL; + groupId = other.groupId; + bENLBEGJIMH = other.bENLBEGJIMH; + aLDIKBFEFNM.copyFrom(other.aLDIKBFEFNM); + } + return this; + } + + @Override + public MazeGroup mergeFrom(final MazeGroup other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMCKACFLLDHL()) { + setMCKACFLLDHL(other.mCKACFLLDHL); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasBENLBEGJIMH()) { + setBENLBEGJIMH(other.bENLBEGJIMH); + } + if (other.hasALDIKBFEFNM()) { + getMutableALDIKBFEFNM().addAll(other.aLDIKBFEFNM); + } + return this; + } + + @Override + public MazeGroup clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mCKACFLLDHL = 0L; + groupId = 0; + bENLBEGJIMH = false; + aLDIKBFEFNM.clear(); + return this; + } + + @Override + public MazeGroup clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aLDIKBFEFNM.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MazeGroup)) { + return false; + } + MazeGroup other = (MazeGroup) o; + return bitField0_ == other.bitField0_ + && (!hasMCKACFLLDHL() || mCKACFLLDHL == other.mCKACFLLDHL) + && (!hasGroupId() || groupId == other.groupId) + && (!hasBENLBEGJIMH() || bENLBEGJIMH == other.bENLBEGJIMH) + && (!hasALDIKBFEFNM() || aLDIKBFEFNM.equals(other.aLDIKBFEFNM)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeInt64NoTag(mCKACFLLDHL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(bENLBEGJIMH); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < aLDIKBFEFNM.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(aLDIKBFEFNM.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(mCKACFLLDHL); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * aLDIKBFEFNM.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aLDIKBFEFNM); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MazeGroup mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // mCKACFLLDHL + mCKACFLLDHL = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // bENLBEGJIMH + bENLBEGJIMH = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // aLDIKBFEFNM [packed=true] + input.readPackedUInt32(aLDIKBFEFNM, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // aLDIKBFEFNM [packed=false] + tag = input.readRepeatedUInt32(aLDIKBFEFNM, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.mCKACFLLDHL, mCKACFLLDHL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.bENLBEGJIMH, bENLBEGJIMH); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.aLDIKBFEFNM, aLDIKBFEFNM); + } + output.endObject(); + } + + @Override + public MazeGroup mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -599616167: { + if (input.isAtField(FieldNames.mCKACFLLDHL)) { + if (!input.trySkipNullValue()) { + mCKACFLLDHL = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1536795933: { + if (input.isAtField(FieldNames.bENLBEGJIMH)) { + if (!input.trySkipNullValue()) { + bENLBEGJIMH = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1230000255: { + if (input.isAtField(FieldNames.aLDIKBFEFNM)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(aLDIKBFEFNM); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MazeGroup clone() { + return new MazeGroup().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MazeGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MazeGroup(), data).checkInitialized(); + } + + public static MazeGroup parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); + } + + public static MazeGroup parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); + } + + /** + * @return factory for creating MazeGroup messages + */ + public static MessageFactory getFactory() { + return MazeGroupFactory.INSTANCE; + } + + private enum MazeGroupFactory implements MessageFactory { + INSTANCE; + + @Override + public MazeGroup create() { + return MazeGroup.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mCKACFLLDHL = FieldName.forField("MCKACFLLDHL"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName bENLBEGJIMH = FieldName.forField("BENLBEGJIMH"); + + static final FieldName aLDIKBFEFNM = FieldName.forField("ALDIKBFEFNM"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java new file mode 100644 index 0000000..f86fcba --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java @@ -0,0 +1,1026 @@ +// 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 MazeMapDataOuterClass { + /** + * Protobuf type {@code MazeMapData} + */ + public static final class MazeMapData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional uint32 cur_map_entry_id = 13; + */ + private int curMapEntryId; + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + */ + private int entryId; + + /** + * repeated uint32 unlocked_teleport_list = 2; + */ + private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 lighten_section_list = 8; + */ + private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .MazeChest unlocked_chest_list = 1; + */ + private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + + /** + * repeated .MazeGroup maze_group_list = 5; + */ + private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); + + /** + * repeated .MazeProp maze_prop_list = 7; + */ + private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); + + private MazeMapData() { + } + + /** + * @return a new empty instance of {@code MazeMapData} + */ + public static MazeMapData newInstance() { + return new MazeMapData(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public MazeMapData clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public MazeMapData setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 cur_map_entry_id = 13; + * @return whether the curMapEntryId field is set + */ + public boolean hasCurMapEntryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_map_entry_id = 13; + * @return this + */ + public MazeMapData clearCurMapEntryId() { + bitField0_ &= ~0x00000002; + curMapEntryId = 0; + return this; + } + + /** + * optional uint32 cur_map_entry_id = 13; + * @return the curMapEntryId + */ + public int getCurMapEntryId() { + return curMapEntryId; + } + + /** + * optional uint32 cur_map_entry_id = 13; + * @param value the curMapEntryId to set + * @return this + */ + public MazeMapData setCurMapEntryId(final int value) { + bitField0_ |= 0x00000002; + curMapEntryId = value; + return this; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @return this + */ + public MazeMapData clearEntryId() { + bitField0_ &= ~0x00000004; + entryId = 0; + return this; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @param value the entryId to set + * @return this + */ + public MazeMapData setEntryId(final int value) { + bitField0_ |= 0x00000004; + entryId = value; + return this; + } + + /** + * repeated uint32 unlocked_teleport_list = 2; + * @return whether the unlockedTeleportList field is set + */ + public boolean hasUnlockedTeleportList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 unlocked_teleport_list = 2; + * @return this + */ + public MazeMapData clearUnlockedTeleportList() { + bitField0_ &= ~0x00000008; + unlockedTeleportList.clear(); + return this; + } + + /** + * repeated uint32 unlocked_teleport_list = 2; + * + * 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 #getMutableUnlockedTeleportList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnlockedTeleportList() { + return unlockedTeleportList; + } + + /** + * repeated uint32 unlocked_teleport_list = 2; + * + * 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 getMutableUnlockedTeleportList() { + bitField0_ |= 0x00000008; + return unlockedTeleportList; + } + + /** + * repeated uint32 unlocked_teleport_list = 2; + * @param value the unlockedTeleportList to add + * @return this + */ + public MazeMapData addUnlockedTeleportList(final int value) { + bitField0_ |= 0x00000008; + unlockedTeleportList.add(value); + return this; + } + + /** + * repeated uint32 unlocked_teleport_list = 2; + * @param values the unlockedTeleportList to add + * @return this + */ + public MazeMapData addAllUnlockedTeleportList(final int... values) { + bitField0_ |= 0x00000008; + unlockedTeleportList.addAll(values); + return this; + } + + /** + * repeated uint32 lighten_section_list = 8; + * @return whether the lightenSectionList field is set + */ + public boolean hasLightenSectionList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 lighten_section_list = 8; + * @return this + */ + public MazeMapData clearLightenSectionList() { + bitField0_ &= ~0x00000010; + lightenSectionList.clear(); + return this; + } + + /** + * repeated uint32 lighten_section_list = 8; + * + * 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 #getMutableLightenSectionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getLightenSectionList() { + return lightenSectionList; + } + + /** + * repeated uint32 lighten_section_list = 8; + * + * 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 getMutableLightenSectionList() { + bitField0_ |= 0x00000010; + return lightenSectionList; + } + + /** + * repeated uint32 lighten_section_list = 8; + * @param value the lightenSectionList to add + * @return this + */ + public MazeMapData addLightenSectionList(final int value) { + bitField0_ |= 0x00000010; + lightenSectionList.add(value); + return this; + } + + /** + * repeated uint32 lighten_section_list = 8; + * @param values the lightenSectionList to add + * @return this + */ + public MazeMapData addAllLightenSectionList(final int... values) { + bitField0_ |= 0x00000010; + lightenSectionList.addAll(values); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 1; + * @return whether the unlockedChestList field is set + */ + public boolean hasUnlockedChestList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .MazeChest unlocked_chest_list = 1; + * @return this + */ + public MazeMapData clearUnlockedChestList() { + bitField0_ &= ~0x00000020; + unlockedChestList.clear(); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 1; + * + * 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 #getMutableUnlockedChestList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getUnlockedChestList() { + return unlockedChestList; + } + + /** + * repeated .MazeChest unlocked_chest_list = 1; + * + * 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 getMutableUnlockedChestList() { + bitField0_ |= 0x00000020; + return unlockedChestList; + } + + /** + * repeated .MazeChest unlocked_chest_list = 1; + * @param value the unlockedChestList to add + * @return this + */ + public MazeMapData addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { + bitField0_ |= 0x00000020; + unlockedChestList.add(value); + return this; + } + + /** + * repeated .MazeChest unlocked_chest_list = 1; + * @param values the unlockedChestList to add + * @return this + */ + public MazeMapData addAllUnlockedChestList(final MazeChestOuterClass.MazeChest... values) { + bitField0_ |= 0x00000020; + unlockedChestList.addAll(values); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @return whether the mazeGroupList field is set + */ + public boolean hasMazeGroupList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @return this + */ + public MazeMapData clearMazeGroupList() { + bitField0_ &= ~0x00000040; + mazeGroupList.clear(); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * + * 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 #getMutableMazeGroupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazeGroupList() { + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * + * 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 getMutableMazeGroupList() { + bitField0_ |= 0x00000040; + return mazeGroupList; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @param value the mazeGroupList to add + * @return this + */ + public MazeMapData addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { + bitField0_ |= 0x00000040; + mazeGroupList.add(value); + return this; + } + + /** + * repeated .MazeGroup maze_group_list = 5; + * @param values the mazeGroupList to add + * @return this + */ + public MazeMapData addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { + bitField0_ |= 0x00000040; + mazeGroupList.addAll(values); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 7; + * @return whether the mazePropList field is set + */ + public boolean hasMazePropList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .MazeProp maze_prop_list = 7; + * @return this + */ + public MazeMapData clearMazePropList() { + bitField0_ &= ~0x00000080; + mazePropList.clear(); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 7; + * + * 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 #getMutableMazePropList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMazePropList() { + return mazePropList; + } + + /** + * repeated .MazeProp maze_prop_list = 7; + * + * 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 getMutableMazePropList() { + bitField0_ |= 0x00000080; + return mazePropList; + } + + /** + * repeated .MazeProp maze_prop_list = 7; + * @param value the mazePropList to add + * @return this + */ + public MazeMapData addMazePropList(final MazePropOuterClass.MazeProp value) { + bitField0_ |= 0x00000080; + mazePropList.add(value); + return this; + } + + /** + * repeated .MazeProp maze_prop_list = 7; + * @param values the mazePropList to add + * @return this + */ + public MazeMapData addAllMazePropList(final MazePropOuterClass.MazeProp... values) { + bitField0_ |= 0x00000080; + mazePropList.addAll(values); + return this; + } + + @Override + public MazeMapData copyFrom(final MazeMapData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + curMapEntryId = other.curMapEntryId; + entryId = other.entryId; + unlockedTeleportList.copyFrom(other.unlockedTeleportList); + lightenSectionList.copyFrom(other.lightenSectionList); + unlockedChestList.copyFrom(other.unlockedChestList); + mazeGroupList.copyFrom(other.mazeGroupList); + mazePropList.copyFrom(other.mazePropList); + } + return this; + } + + @Override + public MazeMapData mergeFrom(final MazeMapData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurMapEntryId()) { + setCurMapEntryId(other.curMapEntryId); + } + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasUnlockedTeleportList()) { + getMutableUnlockedTeleportList().addAll(other.unlockedTeleportList); + } + if (other.hasLightenSectionList()) { + getMutableLightenSectionList().addAll(other.lightenSectionList); + } + if (other.hasUnlockedChestList()) { + getMutableUnlockedChestList().addAll(other.unlockedChestList); + } + if (other.hasMazeGroupList()) { + getMutableMazeGroupList().addAll(other.mazeGroupList); + } + if (other.hasMazePropList()) { + getMutableMazePropList().addAll(other.mazePropList); + } + return this; + } + + @Override + public MazeMapData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + curMapEntryId = 0; + entryId = 0; + unlockedTeleportList.clear(); + lightenSectionList.clear(); + unlockedChestList.clear(); + mazeGroupList.clear(); + mazePropList.clear(); + return this; + } + + @Override + public MazeMapData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unlockedTeleportList.clear(); + lightenSectionList.clear(); + unlockedChestList.clearQuick(); + mazeGroupList.clearQuick(); + mazePropList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MazeMapData)) { + return false; + } + MazeMapData other = (MazeMapData) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurMapEntryId() || curMapEntryId == other.curMapEntryId) + && (!hasEntryId() || entryId == other.entryId) + && (!hasUnlockedTeleportList() || unlockedTeleportList.equals(other.unlockedTeleportList)) + && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) + && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)) + && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)) + && (!hasMazePropList() || mazePropList.equals(other.mazePropList)); + } + + @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) 104); + output.writeUInt32NoTag(curMapEntryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < unlockedTeleportList.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(unlockedTeleportList.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < lightenSectionList.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(lightenSectionList.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < unlockedChestList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(unlockedChestList.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < mazeGroupList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(mazeGroupList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < mazePropList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(mazePropList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curMapEntryId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * unlockedTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedTeleportList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MazeMapData 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 != 104) { + break; + } + } + case 104: { + // curMapEntryId + curMapEntryId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // unlockedTeleportList [packed=true] + input.readPackedUInt32(unlockedTeleportList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // lightenSectionList [packed=true] + input.readPackedUInt32(lightenSectionList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // unlockedChestList + tag = input.readRepeatedMessage(unlockedChestList, tag); + bitField0_ |= 0x00000020; + if (tag != 42) { + break; + } + } + case 42: { + // mazeGroupList + tag = input.readRepeatedMessage(mazeGroupList, tag); + bitField0_ |= 0x00000040; + if (tag != 58) { + break; + } + } + case 58: { + // mazePropList + tag = input.readRepeatedMessage(mazePropList, tag); + bitField0_ |= 0x00000080; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // unlockedTeleportList [packed=false] + tag = input.readRepeatedUInt32(unlockedTeleportList, tag); + bitField0_ |= 0x00000008; + break; + } + case 64: { + // lightenSectionList [packed=false] + tag = input.readRepeatedUInt32(lightenSectionList, tag); + bitField0_ |= 0x00000010; + 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.curMapEntryId, curMapEntryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.unlockedTeleportList, unlockedTeleportList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); + } + output.endObject(); + } + + @Override + public MazeMapData 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 764919441: + case 2115673898: { + if (input.isAtField(FieldNames.curMapEntryId)) { + if (!input.trySkipNullValue()) { + curMapEntryId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 856936684: + case -10753834: { + if (input.isAtField(FieldNames.unlockedTeleportList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unlockedTeleportList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1942343836: + case 1328850360: { + if (input.isAtField(FieldNames.lightenSectionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(lightenSectionList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -337762404: + case 231688696: { + if (input.isAtField(FieldNames.unlockedChestList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(unlockedChestList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -317054274: + case 407435998: { + if (input.isAtField(FieldNames.mazeGroupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazeGroupList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1676123008: + case 1875839866: { + if (input.isAtField(FieldNames.mazePropList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazePropList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MazeMapData clone() { + return new MazeMapData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MazeMapData parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MazeMapData(), data).checkInitialized(); + } + + public static MazeMapData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeMapData(), input).checkInitialized(); + } + + public static MazeMapData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeMapData(), input).checkInitialized(); + } + + /** + * @return factory for creating MazeMapData messages + */ + public static MessageFactory getFactory() { + return MazeMapDataFactory.INSTANCE; + } + + private enum MazeMapDataFactory implements MessageFactory { + INSTANCE; + + @Override + public MazeMapData create() { + return MazeMapData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curMapEntryId = FieldName.forField("curMapEntryId", "cur_map_entry_id"); + + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName unlockedTeleportList = FieldName.forField("unlockedTeleportList", "unlocked_teleport_list"); + + static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); + + static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); + + static final FieldName mazeGroupList = FieldName.forField("mazeGroupList", "maze_group_list"); + + static final FieldName mazePropList = FieldName.forField("mazePropList", "maze_prop_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java new file mode 100644 index 0000000..e8645fe --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java @@ -0,0 +1,420 @@ +// 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 MazePropOuterClass { + /** + * Protobuf type {@code MazeProp} + */ + public static final class MazeProp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 state = 3; + */ + private int state; + + /** + * optional uint32 config_id = 10; + */ + private int configId; + + /** + * optional uint32 group_id = 15; + */ + private int groupId; + + private MazeProp() { + } + + /** + * @return a new empty instance of {@code MazeProp} + */ + public static MazeProp newInstance() { + return new MazeProp(); + } + + /** + * optional uint32 state = 3; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 state = 3; + * @return this + */ + public MazeProp clearState() { + bitField0_ &= ~0x00000001; + state = 0; + return this; + } + + /** + * optional uint32 state = 3; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 3; + * @param value the state to set + * @return this + */ + public MazeProp setState(final int value) { + bitField0_ |= 0x00000001; + state = value; + return this; + } + + /** + * optional uint32 config_id = 10; + * @return whether the configId field is set + */ + public boolean hasConfigId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 config_id = 10; + * @return this + */ + public MazeProp clearConfigId() { + bitField0_ &= ~0x00000002; + configId = 0; + return this; + } + + /** + * optional uint32 config_id = 10; + * @return the configId + */ + public int getConfigId() { + return configId; + } + + /** + * optional uint32 config_id = 10; + * @param value the configId to set + * @return this + */ + public MazeProp setConfigId(final int value) { + bitField0_ |= 0x00000002; + configId = value; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 15; + * @return this + */ + public MazeProp clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 15; + * @param value the groupId to set + * @return this + */ + public MazeProp setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + @Override + public MazeProp copyFrom(final MazeProp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + state = other.state; + configId = other.configId; + groupId = other.groupId; + } + return this; + } + + @Override + public MazeProp mergeFrom(final MazeProp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasState()) { + setState(other.state); + } + if (other.hasConfigId()) { + setConfigId(other.configId); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + return this; + } + + @Override + public MazeProp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + state = 0; + configId = 0; + groupId = 0; + return this; + } + + @Override + public MazeProp 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 MazeProp)) { + return false; + } + MazeProp other = (MazeProp) o; + return bitField0_ == other.bitField0_ + && (!hasState() || state == other.state) + && (!hasConfigId() || configId == other.configId) + && (!hasGroupId() || groupId == other.groupId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(configId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(groupId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MazeProp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // configId + configId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // groupId + groupId = input.readUInt32(); + 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.state, state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.configId, configId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + output.endObject(); + } + + @Override + public MazeProp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -580140035: + case -804450504: { + if (input.isAtField(FieldNames.configId)) { + if (!input.trySkipNullValue()) { + configId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MazeProp clone() { + return new MazeProp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MazeProp parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MazeProp(), data).checkInitialized(); + } + + public static MazeProp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeProp(), input).checkInitialized(); + } + + public static MazeProp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MazeProp(), input).checkInitialized(); + } + + /** + * @return factory for creating MazeProp messages + */ + public static MessageFactory getFactory() { + return MazePropFactory.INSTANCE; + } + + private enum MazePropFactory implements MessageFactory { + INSTANCE; + + @Override + public MazeProp create() { + return MazeProp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName state = FieldName.forField("state"); + + static final FieldName configId = FieldName.forField("configId", "config_id"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MechanismBarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MechanismBarInfoOuterClass.java new file mode 100644 index 0000000..c0510b2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MechanismBarInfoOuterClass.java @@ -0,0 +1,339 @@ +// 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 MechanismBarInfoOuterClass { + /** + * Protobuf type {@code MechanismBarInfo} + */ + public static final class MechanismBarInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 value = 2; + */ + private int value_; + + /** + * optional uint32 NOGHHPKAKAG = 11; + */ + private int nOGHHPKAKAG; + + private MechanismBarInfo() { + } + + /** + * @return a new empty instance of {@code MechanismBarInfo} + */ + public static MechanismBarInfo newInstance() { + return new MechanismBarInfo(); + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public MechanismBarInfo clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public MechanismBarInfo setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional uint32 NOGHHPKAKAG = 11; + * @return whether the nOGHHPKAKAG field is set + */ + public boolean hasNOGHHPKAKAG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 NOGHHPKAKAG = 11; + * @return this + */ + public MechanismBarInfo clearNOGHHPKAKAG() { + bitField0_ &= ~0x00000002; + nOGHHPKAKAG = 0; + return this; + } + + /** + * optional uint32 NOGHHPKAKAG = 11; + * @return the nOGHHPKAKAG + */ + public int getNOGHHPKAKAG() { + return nOGHHPKAKAG; + } + + /** + * optional uint32 NOGHHPKAKAG = 11; + * @param value the nOGHHPKAKAG to set + * @return this + */ + public MechanismBarInfo setNOGHHPKAKAG(final int value) { + bitField0_ |= 0x00000002; + nOGHHPKAKAG = value; + return this; + } + + @Override + public MechanismBarInfo copyFrom(final MechanismBarInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + nOGHHPKAKAG = other.nOGHHPKAKAG; + } + return this; + } + + @Override + public MechanismBarInfo mergeFrom(final MechanismBarInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasNOGHHPKAKAG()) { + setNOGHHPKAKAG(other.nOGHHPKAKAG); + } + return this; + } + + @Override + public MechanismBarInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + nOGHHPKAKAG = 0; + return this; + } + + @Override + public MechanismBarInfo 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 MechanismBarInfo)) { + return false; + } + MechanismBarInfo other = (MechanismBarInfo) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasNOGHHPKAKAG() || nOGHHPKAKAG == other.nOGHHPKAKAG); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(nOGHHPKAKAG); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nOGHHPKAKAG); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MechanismBarInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // nOGHHPKAKAG + nOGHHPKAKAG = 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.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.nOGHHPKAKAG, nOGHHPKAKAG); + } + output.endObject(); + } + + @Override + public MechanismBarInfo 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; + } + case -2077510671: { + if (input.isAtField(FieldNames.nOGHHPKAKAG)) { + if (!input.trySkipNullValue()) { + nOGHHPKAKAG = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MechanismBarInfo clone() { + return new MechanismBarInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MechanismBarInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MechanismBarInfo(), data).checkInitialized(); + } + + public static MechanismBarInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MechanismBarInfo(), input).checkInitialized(); + } + + public static MechanismBarInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MechanismBarInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MechanismBarInfo messages + */ + public static MessageFactory getFactory() { + return MechanismBarInfoFactory.INSTANCE; + } + + private enum MechanismBarInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MechanismBarInfo create() { + return MechanismBarInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName nOGHHPKAKAG = FieldName.forField("NOGHHPKAKAG"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java new file mode 100644 index 0000000..4f3728a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java @@ -0,0 +1,451 @@ +// 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 MissionOuterClass { + /** + * Protobuf type {@code Mission} + */ + public static final class Mission extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 progress = 14; + */ + private int progress; + + /** + * optional uint32 id = 15; + */ + private int id; + + /** + * optional .MissionStatus status = 8; + */ + private int status; + + private Mission() { + } + + /** + * @return a new empty instance of {@code Mission} + */ + public static Mission newInstance() { + return new Mission(); + } + + /** + * optional uint32 progress = 14; + * @return whether the progress field is set + */ + public boolean hasProgress() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 progress = 14; + * @return this + */ + public Mission clearProgress() { + bitField0_ &= ~0x00000001; + progress = 0; + return this; + } + + /** + * optional uint32 progress = 14; + * @return the progress + */ + public int getProgress() { + return progress; + } + + /** + * optional uint32 progress = 14; + * @param value the progress to set + * @return this + */ + public Mission setProgress(final int value) { + bitField0_ |= 0x00000001; + progress = value; + return this; + } + + /** + * optional uint32 id = 15; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 id = 15; + * @return this + */ + public Mission clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 id = 15; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 15; + * @param value the id to set + * @return this + */ + public Mission setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional .MissionStatus status = 8; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .MissionStatus status = 8; + * @return this + */ + public Mission clearStatus() { + bitField0_ &= ~0x00000004; + status = 0; + return this; + } + + /** + * optional .MissionStatus status = 8; + * @return the status + */ + public MissionStatusOuterClass.MissionStatus getStatus() { + return MissionStatusOuterClass.MissionStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link Mission#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MissionStatusOuterClass.MissionStatus}. Setting an invalid value + * can cause {@link Mission#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public Mission setStatusValue(final int value) { + bitField0_ |= 0x00000004; + status = value; + return this; + } + + /** + * optional .MissionStatus status = 8; + * @param value the status to set + * @return this + */ + public Mission setStatus(final MissionStatusOuterClass.MissionStatus value) { + bitField0_ |= 0x00000004; + status = value.getNumber(); + return this; + } + + @Override + public Mission copyFrom(final Mission other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + progress = other.progress; + id = other.id; + status = other.status; + } + return this; + } + + @Override + public Mission mergeFrom(final Mission other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasProgress()) { + setProgress(other.progress); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + return this; + } + + @Override + public Mission clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + progress = 0; + id = 0; + status = 0; + return this; + } + + @Override + public Mission 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 Mission)) { + return false; + } + Mission other = (Mission) o; + return bitField0_ == other.bitField0_ + && (!hasProgress() || progress == other.progress) + && (!hasId() || id == other.id) + && (!hasStatus() || status == other.status); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(progress); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeEnumNoTag(status); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Mission mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // progress + progress = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // status + final int value = input.readInt32(); + if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { + status = value; + 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.progress, progress); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter()); + } + output.endObject(); + } + + @Override + public Mission mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1001078227: { + if (input.isAtField(FieldNames.progress)) { + if (!input.trySkipNullValue()) { + progress = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final MissionStatusOuterClass.MissionStatus value = input.readEnum(MissionStatusOuterClass.MissionStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Mission clone() { + return new Mission().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Mission parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Mission(), data).checkInitialized(); + } + + public static Mission parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Mission(), input).checkInitialized(); + } + + public static Mission parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Mission(), input).checkInitialized(); + } + + /** + * @return factory for creating Mission messages + */ + public static MessageFactory getFactory() { + return MissionFactory.INSTANCE; + } + + private enum MissionFactory implements MessageFactory { + INSTANCE; + + @Override + public Mission create() { + return Mission.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName progress = FieldName.forField("progress"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName status = FieldName.forField("status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java new file mode 100644 index 0000000..84ea33e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java @@ -0,0 +1,154 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class MissionStatusOuterClass { + /** + * Protobuf enum {@code MissionStatus} + */ + public enum MissionStatus implements ProtoEnum { + /** + * MISSION_NONE = 0; + */ + MISSION_NONE("MISSION_NONE", 0), + + /** + * MISSION_DOING = 1; + */ + MISSION_DOING("MISSION_DOING", 1), + + /** + * MISSION_FINISH = 2; + */ + MISSION_FINISH("MISSION_FINISH", 2), + + /** + * MISSION_PREPARED = 3; + */ + MISSION_PREPARED("MISSION_PREPARED", 3); + + /** + * MISSION_NONE = 0; + */ + public static final int MISSION_NONE_VALUE = 0; + + /** + * MISSION_DOING = 1; + */ + public static final int MISSION_DOING_VALUE = 1; + + /** + * MISSION_FINISH = 2; + */ + public static final int MISSION_FINISH_VALUE = 2; + + /** + * MISSION_PREPARED = 3; + */ + public static final int MISSION_PREPARED_VALUE = 3; + + private final String name; + + private final int number; + + private MissionStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return MissionStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static MissionStatus forNumber(int value) { + return MissionStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static MissionStatus forNumberOr(int number, MissionStatus other) { + MissionStatus value = forNumber(number); + return value == null ? other : value; + } + + enum MissionStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final MissionStatus[] lookup = new MissionStatus[4]; + + static { + lookup[0] = MISSION_NONE; + lookup[1] = MISSION_DOING; + lookup[2] = MISSION_FINISH; + lookup[3] = MISSION_PREPARED; + } + + @Override + public final MissionStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final MissionStatus forName(final CharSequence value) { + switch (value.length()) { + case 12: { + if (ProtoUtil.isEqual("MISSION_NONE", value)) { + return MISSION_NONE; + } + break; + } + case 13: { + if (ProtoUtil.isEqual("MISSION_DOING", value)) { + return MISSION_DOING; + } + break; + } + case 14: { + if (ProtoUtil.isEqual("MISSION_FINISH", value)) { + return MISSION_FINISH; + } + break; + } + case 16: { + if (ProtoUtil.isEqual("MISSION_PREPARED", value)) { + return MISSION_PREPARED; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java new file mode 100644 index 0000000..8648ae7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java @@ -0,0 +1,380 @@ +// 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 MotionInfoOuterClass { + /** + * Protobuf type {@code MotionInfo} + */ + public static final class MotionInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .Vector rot = 4; + */ + private final VectorOuterClass.Vector rot = VectorOuterClass.Vector.newInstance(); + + /** + * optional .Vector pos = 13; + */ + private final VectorOuterClass.Vector pos = VectorOuterClass.Vector.newInstance(); + + private MotionInfo() { + } + + /** + * @return a new empty instance of {@code MotionInfo} + */ + public static MotionInfo newInstance() { + return new MotionInfo(); + } + + /** + * optional .Vector rot = 4; + * @return whether the rot field is set + */ + public boolean hasRot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .Vector rot = 4; + * @return this + */ + public MotionInfo clearRot() { + bitField0_ &= ~0x00000001; + rot.clear(); + return this; + } + + /** + * optional .Vector rot = 4; + * + * 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 #getMutableRot()} if you want to modify it. + * + * @return internal storage object for reading + */ + public VectorOuterClass.Vector getRot() { + return rot; + } + + /** + * optional .Vector rot = 4; + * + * 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 VectorOuterClass.Vector getMutableRot() { + bitField0_ |= 0x00000001; + return rot; + } + + /** + * optional .Vector rot = 4; + * @param value the rot to set + * @return this + */ + public MotionInfo setRot(final VectorOuterClass.Vector value) { + bitField0_ |= 0x00000001; + rot.copyFrom(value); + return this; + } + + /** + * optional .Vector pos = 13; + * @return whether the pos field is set + */ + public boolean hasPos() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .Vector pos = 13; + * @return this + */ + public MotionInfo clearPos() { + bitField0_ &= ~0x00000002; + pos.clear(); + return this; + } + + /** + * optional .Vector pos = 13; + * + * 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 #getMutablePos()} if you want to modify it. + * + * @return internal storage object for reading + */ + public VectorOuterClass.Vector getPos() { + return pos; + } + + /** + * optional .Vector pos = 13; + * + * 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 VectorOuterClass.Vector getMutablePos() { + bitField0_ |= 0x00000002; + return pos; + } + + /** + * optional .Vector pos = 13; + * @param value the pos to set + * @return this + */ + public MotionInfo setPos(final VectorOuterClass.Vector value) { + bitField0_ |= 0x00000002; + pos.copyFrom(value); + return this; + } + + @Override + public MotionInfo copyFrom(final MotionInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rot.copyFrom(other.rot); + pos.copyFrom(other.pos); + } + return this; + } + + @Override + public MotionInfo mergeFrom(final MotionInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRot()) { + getMutableRot().mergeFrom(other.rot); + } + if (other.hasPos()) { + getMutablePos().mergeFrom(other.pos); + } + return this; + } + + @Override + public MotionInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rot.clear(); + pos.clear(); + return this; + } + + @Override + public MotionInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rot.clearQuick(); + pos.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MotionInfo)) { + return false; + } + MotionInfo other = (MotionInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRot() || rot.equals(other.rot)) + && (!hasPos() || pos.equals(other.pos)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(pos); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rot); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(pos); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MotionInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 34: { + // rot + input.readMessage(rot); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // pos + input.readMessage(pos); + 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.rot, rot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.pos, pos); + } + output.endObject(); + } + + @Override + public MotionInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 113111: { + if (input.isAtField(FieldNames.rot)) { + if (!input.trySkipNullValue()) { + input.readMessage(rot); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111188: { + if (input.isAtField(FieldNames.pos)) { + if (!input.trySkipNullValue()) { + input.readMessage(pos); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MotionInfo clone() { + return new MotionInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MotionInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MotionInfo(), data).checkInitialized(); + } + + public static MotionInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MotionInfo(), input).checkInitialized(); + } + + public static MotionInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MotionInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MotionInfo messages + */ + public static MessageFactory getFactory() { + return MotionInfoFactory.INSTANCE; + } + + private enum MotionInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MotionInfo create() { + return MotionInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rot = FieldName.forField("rot"); + + static final FieldName pos = FieldName.forField("pos"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java new file mode 100644 index 0000000..986be24 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class MsgTypeOuterClass { + /** + * Protobuf enum {@code MsgType} + */ + public enum MsgType implements ProtoEnum { + /** + * MSG_TYPE_NONE = 0; + */ + MSG_TYPE_NONE("MSG_TYPE_NONE", 0), + + /** + * MSG_TYPE_CUSTOM_TEXT = 1; + */ + MSG_TYPE_CUSTOM_TEXT("MSG_TYPE_CUSTOM_TEXT", 1), + + /** + * MSG_TYPE_EMOJI = 2; + */ + MSG_TYPE_EMOJI("MSG_TYPE_EMOJI", 2); + + /** + * MSG_TYPE_NONE = 0; + */ + public static final int MSG_TYPE_NONE_VALUE = 0; + + /** + * MSG_TYPE_CUSTOM_TEXT = 1; + */ + public static final int MSG_TYPE_CUSTOM_TEXT_VALUE = 1; + + /** + * MSG_TYPE_EMOJI = 2; + */ + public static final int MSG_TYPE_EMOJI_VALUE = 2; + + private final String name; + + private final int number; + + private MsgType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return MsgTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static MsgType forNumber(int value) { + return MsgTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static MsgType forNumberOr(int number, MsgType other) { + MsgType value = forNumber(number); + return value == null ? other : value; + } + + enum MsgTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final MsgType[] lookup = new MsgType[3]; + + static { + lookup[0] = MSG_TYPE_NONE; + lookup[1] = MSG_TYPE_CUSTOM_TEXT; + lookup[2] = MSG_TYPE_EMOJI; + } + + @Override + public final MsgType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final MsgType forName(final CharSequence value) { + if (value.length() == 13) { + if (ProtoUtil.isEqual("MSG_TYPE_NONE", value)) { + return MSG_TYPE_NONE; + } + } + if (value.length() == 14) { + if (ProtoUtil.isEqual("MSG_TYPE_EMOJI", value)) { + return MSG_TYPE_EMOJI; + } + } + if (value.length() == 20) { + if (ProtoUtil.isEqual("MSG_TYPE_CUSTOM_TEXT", value)) { + return MSG_TYPE_CUSTOM_TEXT; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java new file mode 100644 index 0000000..9b63928 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java @@ -0,0 +1,1856 @@ +// 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.RepeatedByte; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class PVEBattleResultCsReqOuterClass { + /** + * Protobuf type {@code PVEBattleResultCsReq} + */ + public static final class PVEBattleResultCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 KIGBBBPDKEB = 2; + */ + private int kIGBBBPDKEB; + + /** + * optional uint32 stage_id = 3; + */ + private int stageId; + + /** + * optional uint32 CKGDEAKGMLJ = 7; + */ + private int cKGDEAKGMLJ; + + /** + * optional uint32 battle_id = 10; + */ + private int battleId; + + /** + * optional uint32 client_res_version = 11; + */ + private int clientResVersion; + + /** + * optional uint32 KBHKHHAKPND = 14; + */ + private int kBHKHHAKPND; + + /** + * optional .BattleEndStatus end_status = 4; + */ + private int endStatus; + + /** + * optional bool OKEOKGAICEL = 6; + */ + private boolean oKEOKGAICEL; + + /** + * optional bool is_ai_consider_ultra_skill = 13; + */ + private boolean isAiConsiderUltraSkill; + + /** + * optional .BattleStatistics stt = 15; + */ + private final BattleStatisticsOuterClass.BattleStatistics stt = BattleStatisticsOuterClass.BattleStatistics.newInstance(); + + /** + * optional bytes turn_snapshot_hash = 1; + */ + private final RepeatedByte turnSnapshotHash = RepeatedByte.newEmptyInstance(); + + /** + * optional string CAIAOBGAECF = 9; + */ + private final Utf8String cAIAOBGAECF = Utf8String.newEmptyInstance(); + + /** + * repeated .BattleOp op_list = 5; + */ + private final RepeatedMessage opList = RepeatedMessage.newEmptyInstance(BattleOpOuterClass.BattleOp.getFactory()); + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + */ + private final RepeatedMessage gGLJGEMBGDH = RepeatedMessage.newEmptyInstance(GGLJGEMBGDHEntry.getFactory()); + + private PVEBattleResultCsReq() { + } + + /** + * @return a new empty instance of {@code PVEBattleResultCsReq} + */ + public static PVEBattleResultCsReq newInstance() { + return new PVEBattleResultCsReq(); + } + + /** + * optional uint32 KIGBBBPDKEB = 2; + * @return whether the kIGBBBPDKEB field is set + */ + public boolean hasKIGBBBPDKEB() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 KIGBBBPDKEB = 2; + * @return this + */ + public PVEBattleResultCsReq clearKIGBBBPDKEB() { + bitField0_ &= ~0x00000001; + kIGBBBPDKEB = 0; + return this; + } + + /** + * optional uint32 KIGBBBPDKEB = 2; + * @return the kIGBBBPDKEB + */ + public int getKIGBBBPDKEB() { + return kIGBBBPDKEB; + } + + /** + * optional uint32 KIGBBBPDKEB = 2; + * @param value the kIGBBBPDKEB to set + * @return this + */ + public PVEBattleResultCsReq setKIGBBBPDKEB(final int value) { + bitField0_ |= 0x00000001; + kIGBBBPDKEB = value; + return this; + } + + /** + * optional uint32 stage_id = 3; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 stage_id = 3; + * @return this + */ + public PVEBattleResultCsReq clearStageId() { + bitField0_ &= ~0x00000002; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 3; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 3; + * @param value the stageId to set + * @return this + */ + public PVEBattleResultCsReq setStageId(final int value) { + bitField0_ |= 0x00000002; + stageId = value; + return this; + } + + /** + * optional uint32 CKGDEAKGMLJ = 7; + * @return whether the cKGDEAKGMLJ field is set + */ + public boolean hasCKGDEAKGMLJ() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 CKGDEAKGMLJ = 7; + * @return this + */ + public PVEBattleResultCsReq clearCKGDEAKGMLJ() { + bitField0_ &= ~0x00000004; + cKGDEAKGMLJ = 0; + return this; + } + + /** + * optional uint32 CKGDEAKGMLJ = 7; + * @return the cKGDEAKGMLJ + */ + public int getCKGDEAKGMLJ() { + return cKGDEAKGMLJ; + } + + /** + * optional uint32 CKGDEAKGMLJ = 7; + * @param value the cKGDEAKGMLJ to set + * @return this + */ + public PVEBattleResultCsReq setCKGDEAKGMLJ(final int value) { + bitField0_ |= 0x00000004; + cKGDEAKGMLJ = value; + return this; + } + + /** + * optional uint32 battle_id = 10; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 battle_id = 10; + * @return this + */ + public PVEBattleResultCsReq clearBattleId() { + bitField0_ &= ~0x00000008; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 10; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 10; + * @param value the battleId to set + * @return this + */ + public PVEBattleResultCsReq setBattleId(final int value) { + bitField0_ |= 0x00000008; + battleId = value; + return this; + } + + /** + * optional uint32 client_res_version = 11; + * @return whether the clientResVersion field is set + */ + public boolean hasClientResVersion() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 client_res_version = 11; + * @return this + */ + public PVEBattleResultCsReq clearClientResVersion() { + bitField0_ &= ~0x00000010; + clientResVersion = 0; + return this; + } + + /** + * optional uint32 client_res_version = 11; + * @return the clientResVersion + */ + public int getClientResVersion() { + return clientResVersion; + } + + /** + * optional uint32 client_res_version = 11; + * @param value the clientResVersion to set + * @return this + */ + public PVEBattleResultCsReq setClientResVersion(final int value) { + bitField0_ |= 0x00000010; + clientResVersion = value; + return this; + } + + /** + * optional uint32 KBHKHHAKPND = 14; + * @return whether the kBHKHHAKPND field is set + */ + public boolean hasKBHKHHAKPND() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 KBHKHHAKPND = 14; + * @return this + */ + public PVEBattleResultCsReq clearKBHKHHAKPND() { + bitField0_ &= ~0x00000020; + kBHKHHAKPND = 0; + return this; + } + + /** + * optional uint32 KBHKHHAKPND = 14; + * @return the kBHKHHAKPND + */ + public int getKBHKHHAKPND() { + return kBHKHHAKPND; + } + + /** + * optional uint32 KBHKHHAKPND = 14; + * @param value the kBHKHHAKPND to set + * @return this + */ + public PVEBattleResultCsReq setKBHKHHAKPND(final int value) { + bitField0_ |= 0x00000020; + kBHKHHAKPND = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 4; + * @return whether the endStatus field is set + */ + public boolean hasEndStatus() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .BattleEndStatus end_status = 4; + * @return this + */ + public PVEBattleResultCsReq clearEndStatus() { + bitField0_ &= ~0x00000040; + endStatus = 0; + return this; + } + + /** + * optional .BattleEndStatus end_status = 4; + * @return the endStatus + */ + public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { + return BattleEndStatusOuterClass.BattleEndStatus.forNumber(endStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link PVEBattleResultCsReq#getEndStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getEndStatusValue() { + return endStatus; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BattleEndStatusOuterClass.BattleEndStatus}. Setting an invalid value + * can cause {@link PVEBattleResultCsReq#getEndStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public PVEBattleResultCsReq setEndStatusValue(final int value) { + bitField0_ |= 0x00000040; + endStatus = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 4; + * @param value the endStatus to set + * @return this + */ + public PVEBattleResultCsReq setEndStatus( + final BattleEndStatusOuterClass.BattleEndStatus value) { + bitField0_ |= 0x00000040; + endStatus = value.getNumber(); + return this; + } + + /** + * optional bool OKEOKGAICEL = 6; + * @return whether the oKEOKGAICEL field is set + */ + public boolean hasOKEOKGAICEL() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool OKEOKGAICEL = 6; + * @return this + */ + public PVEBattleResultCsReq clearOKEOKGAICEL() { + bitField0_ &= ~0x00000080; + oKEOKGAICEL = false; + return this; + } + + /** + * optional bool OKEOKGAICEL = 6; + * @return the oKEOKGAICEL + */ + public boolean getOKEOKGAICEL() { + return oKEOKGAICEL; + } + + /** + * optional bool OKEOKGAICEL = 6; + * @param value the oKEOKGAICEL to set + * @return this + */ + public PVEBattleResultCsReq setOKEOKGAICEL(final boolean value) { + bitField0_ |= 0x00000080; + oKEOKGAICEL = value; + return this; + } + + /** + * optional bool is_ai_consider_ultra_skill = 13; + * @return whether the isAiConsiderUltraSkill field is set + */ + public boolean hasIsAiConsiderUltraSkill() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bool is_ai_consider_ultra_skill = 13; + * @return this + */ + public PVEBattleResultCsReq clearIsAiConsiderUltraSkill() { + bitField0_ &= ~0x00000100; + isAiConsiderUltraSkill = false; + return this; + } + + /** + * optional bool is_ai_consider_ultra_skill = 13; + * @return the isAiConsiderUltraSkill + */ + public boolean getIsAiConsiderUltraSkill() { + return isAiConsiderUltraSkill; + } + + /** + * optional bool is_ai_consider_ultra_skill = 13; + * @param value the isAiConsiderUltraSkill to set + * @return this + */ + public PVEBattleResultCsReq setIsAiConsiderUltraSkill(final boolean value) { + bitField0_ |= 0x00000100; + isAiConsiderUltraSkill = value; + return this; + } + + /** + * optional .BattleStatistics stt = 15; + * @return whether the stt field is set + */ + public boolean hasStt() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .BattleStatistics stt = 15; + * @return this + */ + public PVEBattleResultCsReq clearStt() { + bitField0_ &= ~0x00000200; + stt.clear(); + return this; + } + + /** + * optional .BattleStatistics stt = 15; + * + * 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 #getMutableStt()} if you want to modify it. + * + * @return internal storage object for reading + */ + public BattleStatisticsOuterClass.BattleStatistics getStt() { + return stt; + } + + /** + * optional .BattleStatistics stt = 15; + * + * 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 BattleStatisticsOuterClass.BattleStatistics getMutableStt() { + bitField0_ |= 0x00000200; + return stt; + } + + /** + * optional .BattleStatistics stt = 15; + * @param value the stt to set + * @return this + */ + public PVEBattleResultCsReq setStt(final BattleStatisticsOuterClass.BattleStatistics value) { + bitField0_ |= 0x00000200; + stt.copyFrom(value); + return this; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * @return whether the turnSnapshotHash field is set + */ + public boolean hasTurnSnapshotHash() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * @return this + */ + public PVEBattleResultCsReq clearTurnSnapshotHash() { + bitField0_ &= ~0x00000400; + turnSnapshotHash.clear(); + return this; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * + * 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 #getMutableTurnSnapshotHash()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getTurnSnapshotHash() { + return turnSnapshotHash; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * + * 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 RepeatedByte getMutableTurnSnapshotHash() { + bitField0_ |= 0x00000400; + return turnSnapshotHash; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * @param value the turnSnapshotHash to add + * @return this + */ + public PVEBattleResultCsReq addTurnSnapshotHash(final byte value) { + bitField0_ |= 0x00000400; + turnSnapshotHash.add(value); + return this; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * @param values the turnSnapshotHash to add + * @return this + */ + public PVEBattleResultCsReq addAllTurnSnapshotHash(final byte... values) { + bitField0_ |= 0x00000400; + turnSnapshotHash.addAll(values); + return this; + } + + /** + * optional bytes turn_snapshot_hash = 1; + * @param values the turnSnapshotHash to set + * @return this + */ + public PVEBattleResultCsReq setTurnSnapshotHash(final byte... values) { + bitField0_ |= 0x00000400; + turnSnapshotHash.copyFrom(values); + return this; + } + + /** + * optional string CAIAOBGAECF = 9; + * @return whether the cAIAOBGAECF field is set + */ + public boolean hasCAIAOBGAECF() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional string CAIAOBGAECF = 9; + * @return this + */ + public PVEBattleResultCsReq clearCAIAOBGAECF() { + bitField0_ &= ~0x00000800; + cAIAOBGAECF.clear(); + return this; + } + + /** + * optional string CAIAOBGAECF = 9; + * @return the cAIAOBGAECF + */ + public String getCAIAOBGAECF() { + return cAIAOBGAECF.getString(); + } + + /** + * optional string CAIAOBGAECF = 9; + * @return internal {@code Utf8String} representation of cAIAOBGAECF for reading + */ + public Utf8String getCAIAOBGAECFBytes() { + return this.cAIAOBGAECF; + } + + /** + * optional string CAIAOBGAECF = 9; + * @return internal {@code Utf8String} representation of cAIAOBGAECF for modifications + */ + public Utf8String getMutableCAIAOBGAECFBytes() { + bitField0_ |= 0x00000800; + return this.cAIAOBGAECF; + } + + /** + * optional string CAIAOBGAECF = 9; + * @param value the cAIAOBGAECF to set + * @return this + */ + public PVEBattleResultCsReq setCAIAOBGAECF(final CharSequence value) { + bitField0_ |= 0x00000800; + cAIAOBGAECF.copyFrom(value); + return this; + } + + /** + * optional string CAIAOBGAECF = 9; + * @param value the cAIAOBGAECF to set + * @return this + */ + public PVEBattleResultCsReq setCAIAOBGAECF(final Utf8String value) { + bitField0_ |= 0x00000800; + cAIAOBGAECF.copyFrom(value); + return this; + } + + /** + * repeated .BattleOp op_list = 5; + * @return whether the opList field is set + */ + public boolean hasOpList() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * repeated .BattleOp op_list = 5; + * @return this + */ + public PVEBattleResultCsReq clearOpList() { + bitField0_ &= ~0x00001000; + opList.clear(); + return this; + } + + /** + * repeated .BattleOp op_list = 5; + * + * 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 #getMutableOpList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOpList() { + return opList; + } + + /** + * repeated .BattleOp op_list = 5; + * + * 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 getMutableOpList() { + bitField0_ |= 0x00001000; + return opList; + } + + /** + * repeated .BattleOp op_list = 5; + * @param value the opList to add + * @return this + */ + public PVEBattleResultCsReq addOpList(final BattleOpOuterClass.BattleOp value) { + bitField0_ |= 0x00001000; + opList.add(value); + return this; + } + + /** + * repeated .BattleOp op_list = 5; + * @param values the opList to add + * @return this + */ + public PVEBattleResultCsReq addAllOpList(final BattleOpOuterClass.BattleOp... values) { + bitField0_ |= 0x00001000; + opList.addAll(values); + return this; + } + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + * @return whether the gGLJGEMBGDH field is set + */ + public boolean hasGGLJGEMBGDH() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + * @return this + */ + public PVEBattleResultCsReq clearGGLJGEMBGDH() { + bitField0_ &= ~0x00002000; + gGLJGEMBGDH.clear(); + return this; + } + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + * + * 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 #getMutableGGLJGEMBGDH()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGGLJGEMBGDH() { + return gGLJGEMBGDH; + } + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + * + * 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 getMutableGGLJGEMBGDH() { + bitField0_ |= 0x00002000; + return gGLJGEMBGDH; + } + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + * @param value the gGLJGEMBGDH to add + * @return this + */ + public PVEBattleResultCsReq addGGLJGEMBGDH(final GGLJGEMBGDHEntry value) { + bitField0_ |= 0x00002000; + gGLJGEMBGDH.add(value); + return this; + } + + /** + * repeated .PVEBattleResultCsReq.GGLJGEMBGDHEntry GGLJGEMBGDH = 12; + * @param values the gGLJGEMBGDH to add + * @return this + */ + public PVEBattleResultCsReq addAllGGLJGEMBGDH(final GGLJGEMBGDHEntry... values) { + bitField0_ |= 0x00002000; + gGLJGEMBGDH.addAll(values); + return this; + } + + @Override + public PVEBattleResultCsReq copyFrom(final PVEBattleResultCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kIGBBBPDKEB = other.kIGBBBPDKEB; + stageId = other.stageId; + cKGDEAKGMLJ = other.cKGDEAKGMLJ; + battleId = other.battleId; + clientResVersion = other.clientResVersion; + kBHKHHAKPND = other.kBHKHHAKPND; + endStatus = other.endStatus; + oKEOKGAICEL = other.oKEOKGAICEL; + isAiConsiderUltraSkill = other.isAiConsiderUltraSkill; + stt.copyFrom(other.stt); + turnSnapshotHash.copyFrom(other.turnSnapshotHash); + cAIAOBGAECF.copyFrom(other.cAIAOBGAECF); + opList.copyFrom(other.opList); + gGLJGEMBGDH.copyFrom(other.gGLJGEMBGDH); + } + return this; + } + + @Override + public PVEBattleResultCsReq mergeFrom(final PVEBattleResultCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKIGBBBPDKEB()) { + setKIGBBBPDKEB(other.kIGBBBPDKEB); + } + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasCKGDEAKGMLJ()) { + setCKGDEAKGMLJ(other.cKGDEAKGMLJ); + } + if (other.hasBattleId()) { + setBattleId(other.battleId); + } + if (other.hasClientResVersion()) { + setClientResVersion(other.clientResVersion); + } + if (other.hasKBHKHHAKPND()) { + setKBHKHHAKPND(other.kBHKHHAKPND); + } + if (other.hasEndStatus()) { + setEndStatusValue(other.endStatus); + } + if (other.hasOKEOKGAICEL()) { + setOKEOKGAICEL(other.oKEOKGAICEL); + } + if (other.hasIsAiConsiderUltraSkill()) { + setIsAiConsiderUltraSkill(other.isAiConsiderUltraSkill); + } + if (other.hasStt()) { + getMutableStt().mergeFrom(other.stt); + } + if (other.hasTurnSnapshotHash()) { + getMutableTurnSnapshotHash().copyFrom(other.turnSnapshotHash); + } + if (other.hasCAIAOBGAECF()) { + getMutableCAIAOBGAECFBytes().copyFrom(other.cAIAOBGAECF); + } + if (other.hasOpList()) { + getMutableOpList().addAll(other.opList); + } + if (other.hasGGLJGEMBGDH()) { + getMutableGGLJGEMBGDH().addAll(other.gGLJGEMBGDH); + } + return this; + } + + @Override + public PVEBattleResultCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kIGBBBPDKEB = 0; + stageId = 0; + cKGDEAKGMLJ = 0; + battleId = 0; + clientResVersion = 0; + kBHKHHAKPND = 0; + endStatus = 0; + oKEOKGAICEL = false; + isAiConsiderUltraSkill = false; + stt.clear(); + turnSnapshotHash.clear(); + cAIAOBGAECF.clear(); + opList.clear(); + gGLJGEMBGDH.clear(); + return this; + } + + @Override + public PVEBattleResultCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stt.clearQuick(); + turnSnapshotHash.clear(); + cAIAOBGAECF.clear(); + opList.clearQuick(); + gGLJGEMBGDH.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PVEBattleResultCsReq)) { + return false; + } + PVEBattleResultCsReq other = (PVEBattleResultCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasKIGBBBPDKEB() || kIGBBBPDKEB == other.kIGBBBPDKEB) + && (!hasStageId() || stageId == other.stageId) + && (!hasCKGDEAKGMLJ() || cKGDEAKGMLJ == other.cKGDEAKGMLJ) + && (!hasBattleId() || battleId == other.battleId) + && (!hasClientResVersion() || clientResVersion == other.clientResVersion) + && (!hasKBHKHHAKPND() || kBHKHHAKPND == other.kBHKHHAKPND) + && (!hasEndStatus() || endStatus == other.endStatus) + && (!hasOKEOKGAICEL() || oKEOKGAICEL == other.oKEOKGAICEL) + && (!hasIsAiConsiderUltraSkill() || isAiConsiderUltraSkill == other.isAiConsiderUltraSkill) + && (!hasStt() || stt.equals(other.stt)) + && (!hasTurnSnapshotHash() || turnSnapshotHash.equals(other.turnSnapshotHash)) + && (!hasCAIAOBGAECF() || cAIAOBGAECF.equals(other.cAIAOBGAECF)) + && (!hasOpList() || opList.equals(other.opList)) + && (!hasGGLJGEMBGDH() || gGLJGEMBGDH.equals(other.gGLJGEMBGDH)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(kIGBBBPDKEB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(cKGDEAKGMLJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(battleId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(clientResVersion); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(kBHKHHAKPND); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 32); + output.writeEnumNoTag(endStatus); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(oKEOKGAICEL); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(isAiConsiderUltraSkill); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(stt); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 10); + output.writeBytesNoTag(turnSnapshotHash); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 74); + output.writeStringNoTag(cAIAOBGAECF); + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < opList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(opList.get(i)); + } + } + if ((bitField0_ & 0x00002000) != 0) { + for (int i = 0; i < gGLJGEMBGDH.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(gGLJGEMBGDH.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kIGBBBPDKEB); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cKGDEAKGMLJ); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kBHKHHAKPND); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(stt); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(turnSnapshotHash); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(cAIAOBGAECF); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * opList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(opList); + } + if ((bitField0_ & 0x00002000) != 0) { + size += (1 * gGLJGEMBGDH.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gGLJGEMBGDH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PVEBattleResultCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // kIGBBBPDKEB + kIGBBBPDKEB = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // cKGDEAKGMLJ + cKGDEAKGMLJ = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // battleId + battleId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // clientResVersion + clientResVersion = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // kBHKHHAKPND + kBHKHHAKPND = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // endStatus + final int value = input.readInt32(); + if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { + endStatus = value; + bitField0_ |= 0x00000040; + } + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // oKEOKGAICEL + oKEOKGAICEL = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // isAiConsiderUltraSkill + isAiConsiderUltraSkill = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // stt + input.readMessage(stt); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // turnSnapshotHash + input.readBytes(turnSnapshotHash); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // cAIAOBGAECF + input.readString(cAIAOBGAECF); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // opList + tag = input.readRepeatedMessage(opList, tag); + bitField0_ |= 0x00001000; + if (tag != 98) { + break; + } + } + case 98: { + // gGLJGEMBGDH + tag = input.readRepeatedMessage(gGLJGEMBGDH, tag); + bitField0_ |= 0x00002000; + 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.kIGBBBPDKEB, kIGBBBPDKEB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.cKGDEAKGMLJ, cKGDEAKGMLJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.battleId, battleId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.clientResVersion, clientResVersion); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.kBHKHHAKPND, kBHKHHAKPND); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.oKEOKGAICEL, oKEOKGAICEL); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.isAiConsiderUltraSkill, isAiConsiderUltraSkill); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.stt, stt); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeBytes(FieldNames.turnSnapshotHash, turnSnapshotHash); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeString(FieldNames.cAIAOBGAECF, cAIAOBGAECF); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.opList, opList); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRepeatedMessage(FieldNames.gGLJGEMBGDH, gGLJGEMBGDH); + } + output.endObject(); + } + + @Override + public PVEBattleResultCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1199341211: { + if (input.isAtField(FieldNames.kIGBBBPDKEB)) { + if (!input.trySkipNullValue()) { + kIGBBBPDKEB = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -177934930: { + if (input.isAtField(FieldNames.cKGDEAKGMLJ)) { + if (!input.trySkipNullValue()) { + cKGDEAKGMLJ = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2005674429: + case -349907515: { + if (input.isAtField(FieldNames.clientResVersion)) { + if (!input.trySkipNullValue()) { + clientResVersion = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 461095618: { + if (input.isAtField(FieldNames.kBHKHHAKPND)) { + if (!input.trySkipNullValue()) { + kBHKHHAKPND = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1608709293: + case 378841046: { + if (input.isAtField(FieldNames.endStatus)) { + if (!input.trySkipNullValue()) { + final BattleEndStatusOuterClass.BattleEndStatus value = input.readEnum(BattleEndStatusOuterClass.BattleEndStatus.converter()); + if (value != null) { + endStatus = value.getNumber(); + bitField0_ |= 0x00000040; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -2057851680: { + if (input.isAtField(FieldNames.oKEOKGAICEL)) { + if (!input.trySkipNullValue()) { + oKEOKGAICEL = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -792003792: + case 524172826: { + if (input.isAtField(FieldNames.isAiConsiderUltraSkill)) { + if (!input.trySkipNullValue()) { + isAiConsiderUltraSkill = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 114227: { + if (input.isAtField(FieldNames.stt)) { + if (!input.trySkipNullValue()) { + input.readMessage(stt); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 716212751: + case 397070951: { + if (input.isAtField(FieldNames.turnSnapshotHash)) { + if (!input.trySkipNullValue()) { + input.readBytes(turnSnapshotHash); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1843645349: { + if (input.isAtField(FieldNames.cAIAOBGAECF)) { + if (!input.trySkipNullValue()) { + input.readString(cAIAOBGAECF); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1011328481: + case -1268785092: { + if (input.isAtField(FieldNames.opList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(opList); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1026086682: { + if (input.isAtField(FieldNames.gGLJGEMBGDH)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(gGLJGEMBGDH); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PVEBattleResultCsReq clone() { + return new PVEBattleResultCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PVEBattleResultCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PVEBattleResultCsReq(), data).checkInitialized(); + } + + public static PVEBattleResultCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PVEBattleResultCsReq(), input).checkInitialized(); + } + + public static PVEBattleResultCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PVEBattleResultCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PVEBattleResultCsReq messages + */ + public static MessageFactory getFactory() { + return PVEBattleResultCsReqFactory.INSTANCE; + } + + /** + * Protobuf type {@code GGLJGEMBGDHEntry} + */ + public static final class GGLJGEMBGDHEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 value = 2; + */ + private int value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private GGLJGEMBGDHEntry() { + } + + /** + * @return a new empty instance of {@code GGLJGEMBGDHEntry} + */ + public static GGLJGEMBGDHEntry newInstance() { + return new GGLJGEMBGDHEntry(); + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public GGLJGEMBGDHEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public GGLJGEMBGDHEntry setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public GGLJGEMBGDHEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public GGLJGEMBGDHEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public GGLJGEMBGDHEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public GGLJGEMBGDHEntry copyFrom(final GGLJGEMBGDHEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public GGLJGEMBGDHEntry mergeFrom(final GGLJGEMBGDHEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public GGLJGEMBGDHEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + key.clear(); + return this; + } + + @Override + public GGLJGEMBGDHEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GGLJGEMBGDHEntry)) { + return false; + } + GGLJGEMBGDHEntry other = (GGLJGEMBGDHEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GGLJGEMBGDHEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + 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.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public GGLJGEMBGDHEntry 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; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GGLJGEMBGDHEntry clone() { + return new GGLJGEMBGDHEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GGLJGEMBGDHEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GGLJGEMBGDHEntry(), data).checkInitialized(); + } + + public static GGLJGEMBGDHEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GGLJGEMBGDHEntry(), input).checkInitialized(); + } + + public static GGLJGEMBGDHEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GGLJGEMBGDHEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating GGLJGEMBGDHEntry messages + */ + public static MessageFactory getFactory() { + return GGLJGEMBGDHEntryFactory.INSTANCE; + } + + private enum GGLJGEMBGDHEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public GGLJGEMBGDHEntry create() { + return GGLJGEMBGDHEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum PVEBattleResultCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PVEBattleResultCsReq create() { + return PVEBattleResultCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kIGBBBPDKEB = FieldName.forField("KIGBBBPDKEB"); + + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName cKGDEAKGMLJ = FieldName.forField("CKGDEAKGMLJ"); + + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + + static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); + + static final FieldName kBHKHHAKPND = FieldName.forField("KBHKHHAKPND"); + + static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); + + static final FieldName oKEOKGAICEL = FieldName.forField("OKEOKGAICEL"); + + static final FieldName isAiConsiderUltraSkill = FieldName.forField("isAiConsiderUltraSkill", "is_ai_consider_ultra_skill"); + + static final FieldName stt = FieldName.forField("stt"); + + static final FieldName turnSnapshotHash = FieldName.forField("turnSnapshotHash", "turn_snapshot_hash"); + + static final FieldName cAIAOBGAECF = FieldName.forField("CAIAOBGAECF"); + + static final FieldName opList = FieldName.forField("opList", "op_list"); + + static final FieldName gGLJGEMBGDH = FieldName.forField("GGLJGEMBGDH"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java new file mode 100644 index 0000000..cb04a0f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java @@ -0,0 +1,1580 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class PVEBattleResultScRspOuterClass { + /** + * Protobuf type {@code PVEBattleResultScRsp} + */ + public static final class PVEBattleResultScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 MALNBHCKENI = 4; + */ + private int mALNBHCKENI; + + /** + * optional uint32 battle_id = 5; + */ + private int battleId; + + /** + * optional uint32 JPEJDEEINNK = 7; + */ + private int jPEJDEEINNK; + + /** + * optional uint32 BPIONPOPIAB = 8; + */ + private int bPIONPOPIAB; + + /** + * optional uint32 stage_id = 9; + */ + private int stageId; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + /** + * optional uint32 mismatch_turn_count = 13; + */ + private int mismatchTurnCount; + + /** + * optional .BattleEndStatus end_status = 14; + */ + private int endStatus; + + /** + * optional bool check_identical = 11; + */ + private boolean checkIdentical; + + /** + * optional .ItemList unk1 = 6; + */ + private final ItemListOuterClass.ItemList unk1 = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .ItemList drop_data = 12; + */ + private final ItemListOuterClass.ItemList dropData = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .ItemList unk3 = 15; + */ + private final ItemListOuterClass.ItemList unk3 = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional string bin_version = 1; + */ + private final Utf8String binVersion = Utf8String.newEmptyInstance(); + + /** + * optional string res_version = 3; + */ + private final Utf8String resVersion = Utf8String.newEmptyInstance(); + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + */ + private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); + + private PVEBattleResultScRsp() { + } + + /** + * @return a new empty instance of {@code PVEBattleResultScRsp} + */ + public static PVEBattleResultScRsp newInstance() { + return new PVEBattleResultScRsp(); + } + + /** + * optional uint32 MALNBHCKENI = 4; + * @return whether the mALNBHCKENI field is set + */ + public boolean hasMALNBHCKENI() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 MALNBHCKENI = 4; + * @return this + */ + public PVEBattleResultScRsp clearMALNBHCKENI() { + bitField0_ &= ~0x00000001; + mALNBHCKENI = 0; + return this; + } + + /** + * optional uint32 MALNBHCKENI = 4; + * @return the mALNBHCKENI + */ + public int getMALNBHCKENI() { + return mALNBHCKENI; + } + + /** + * optional uint32 MALNBHCKENI = 4; + * @param value the mALNBHCKENI to set + * @return this + */ + public PVEBattleResultScRsp setMALNBHCKENI(final int value) { + bitField0_ |= 0x00000001; + mALNBHCKENI = value; + return this; + } + + /** + * optional uint32 battle_id = 5; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 battle_id = 5; + * @return this + */ + public PVEBattleResultScRsp clearBattleId() { + bitField0_ &= ~0x00000002; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 5; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 5; + * @param value the battleId to set + * @return this + */ + public PVEBattleResultScRsp setBattleId(final int value) { + bitField0_ |= 0x00000002; + battleId = value; + return this; + } + + /** + * optional uint32 JPEJDEEINNK = 7; + * @return whether the jPEJDEEINNK field is set + */ + public boolean hasJPEJDEEINNK() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 JPEJDEEINNK = 7; + * @return this + */ + public PVEBattleResultScRsp clearJPEJDEEINNK() { + bitField0_ &= ~0x00000004; + jPEJDEEINNK = 0; + return this; + } + + /** + * optional uint32 JPEJDEEINNK = 7; + * @return the jPEJDEEINNK + */ + public int getJPEJDEEINNK() { + return jPEJDEEINNK; + } + + /** + * optional uint32 JPEJDEEINNK = 7; + * @param value the jPEJDEEINNK to set + * @return this + */ + public PVEBattleResultScRsp setJPEJDEEINNK(final int value) { + bitField0_ |= 0x00000004; + jPEJDEEINNK = value; + return this; + } + + /** + * optional uint32 BPIONPOPIAB = 8; + * @return whether the bPIONPOPIAB field is set + */ + public boolean hasBPIONPOPIAB() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 BPIONPOPIAB = 8; + * @return this + */ + public PVEBattleResultScRsp clearBPIONPOPIAB() { + bitField0_ &= ~0x00000008; + bPIONPOPIAB = 0; + return this; + } + + /** + * optional uint32 BPIONPOPIAB = 8; + * @return the bPIONPOPIAB + */ + public int getBPIONPOPIAB() { + return bPIONPOPIAB; + } + + /** + * optional uint32 BPIONPOPIAB = 8; + * @param value the bPIONPOPIAB to set + * @return this + */ + public PVEBattleResultScRsp setBPIONPOPIAB(final int value) { + bitField0_ |= 0x00000008; + bPIONPOPIAB = value; + return this; + } + + /** + * optional uint32 stage_id = 9; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 stage_id = 9; + * @return this + */ + public PVEBattleResultScRsp clearStageId() { + bitField0_ &= ~0x00000010; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 9; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 9; + * @param value the stageId to set + * @return this + */ + public PVEBattleResultScRsp setStageId(final int value) { + bitField0_ |= 0x00000010; + stageId = value; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public PVEBattleResultScRsp clearRetcode() { + bitField0_ &= ~0x00000020; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public PVEBattleResultScRsp setRetcode(final int value) { + bitField0_ |= 0x00000020; + retcode = value; + return this; + } + + /** + * optional uint32 mismatch_turn_count = 13; + * @return whether the mismatchTurnCount field is set + */ + public boolean hasMismatchTurnCount() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 mismatch_turn_count = 13; + * @return this + */ + public PVEBattleResultScRsp clearMismatchTurnCount() { + bitField0_ &= ~0x00000040; + mismatchTurnCount = 0; + return this; + } + + /** + * optional uint32 mismatch_turn_count = 13; + * @return the mismatchTurnCount + */ + public int getMismatchTurnCount() { + return mismatchTurnCount; + } + + /** + * optional uint32 mismatch_turn_count = 13; + * @param value the mismatchTurnCount to set + * @return this + */ + public PVEBattleResultScRsp setMismatchTurnCount(final int value) { + bitField0_ |= 0x00000040; + mismatchTurnCount = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 14; + * @return whether the endStatus field is set + */ + public boolean hasEndStatus() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .BattleEndStatus end_status = 14; + * @return this + */ + public PVEBattleResultScRsp clearEndStatus() { + bitField0_ &= ~0x00000080; + endStatus = 0; + return this; + } + + /** + * optional .BattleEndStatus end_status = 14; + * @return the endStatus + */ + public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { + return BattleEndStatusOuterClass.BattleEndStatus.forNumber(endStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link PVEBattleResultScRsp#getEndStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getEndStatusValue() { + return endStatus; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BattleEndStatusOuterClass.BattleEndStatus}. Setting an invalid value + * can cause {@link PVEBattleResultScRsp#getEndStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public PVEBattleResultScRsp setEndStatusValue(final int value) { + bitField0_ |= 0x00000080; + endStatus = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 14; + * @param value the endStatus to set + * @return this + */ + public PVEBattleResultScRsp setEndStatus( + final BattleEndStatusOuterClass.BattleEndStatus value) { + bitField0_ |= 0x00000080; + endStatus = value.getNumber(); + return this; + } + + /** + * optional bool check_identical = 11; + * @return whether the checkIdentical field is set + */ + public boolean hasCheckIdentical() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bool check_identical = 11; + * @return this + */ + public PVEBattleResultScRsp clearCheckIdentical() { + bitField0_ &= ~0x00000100; + checkIdentical = false; + return this; + } + + /** + * optional bool check_identical = 11; + * @return the checkIdentical + */ + public boolean getCheckIdentical() { + return checkIdentical; + } + + /** + * optional bool check_identical = 11; + * @param value the checkIdentical to set + * @return this + */ + public PVEBattleResultScRsp setCheckIdentical(final boolean value) { + bitField0_ |= 0x00000100; + checkIdentical = value; + return this; + } + + /** + * optional .ItemList unk1 = 6; + * @return whether the unk1 field is set + */ + public boolean hasUnk1() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .ItemList unk1 = 6; + * @return this + */ + public PVEBattleResultScRsp clearUnk1() { + bitField0_ &= ~0x00000200; + unk1.clear(); + return this; + } + + /** + * optional .ItemList unk1 = 6; + * + * 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 #getMutableUnk1()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getUnk1() { + return unk1; + } + + /** + * optional .ItemList unk1 = 6; + * + * 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 getMutableUnk1() { + bitField0_ |= 0x00000200; + return unk1; + } + + /** + * optional .ItemList unk1 = 6; + * @param value the unk1 to set + * @return this + */ + public PVEBattleResultScRsp setUnk1(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000200; + unk1.copyFrom(value); + return this; + } + + /** + * optional .ItemList drop_data = 12; + * @return whether the dropData field is set + */ + public boolean hasDropData() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .ItemList drop_data = 12; + * @return this + */ + public PVEBattleResultScRsp clearDropData() { + bitField0_ &= ~0x00000400; + dropData.clear(); + return this; + } + + /** + * optional .ItemList drop_data = 12; + * + * 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 #getMutableDropData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getDropData() { + return dropData; + } + + /** + * optional .ItemList drop_data = 12; + * + * 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 getMutableDropData() { + bitField0_ |= 0x00000400; + return dropData; + } + + /** + * optional .ItemList drop_data = 12; + * @param value the dropData to set + * @return this + */ + public PVEBattleResultScRsp setDropData(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000400; + dropData.copyFrom(value); + return this; + } + + /** + * optional .ItemList unk3 = 15; + * @return whether the unk3 field is set + */ + public boolean hasUnk3() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .ItemList unk3 = 15; + * @return this + */ + public PVEBattleResultScRsp clearUnk3() { + bitField0_ &= ~0x00000800; + unk3.clear(); + return this; + } + + /** + * optional .ItemList unk3 = 15; + * + * 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 #getMutableUnk3()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getUnk3() { + return unk3; + } + + /** + * optional .ItemList unk3 = 15; + * + * 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 getMutableUnk3() { + bitField0_ |= 0x00000800; + return unk3; + } + + /** + * optional .ItemList unk3 = 15; + * @param value the unk3 to set + * @return this + */ + public PVEBattleResultScRsp setUnk3(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000800; + unk3.copyFrom(value); + return this; + } + + /** + * optional string bin_version = 1; + * @return whether the binVersion field is set + */ + public boolean hasBinVersion() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string bin_version = 1; + * @return this + */ + public PVEBattleResultScRsp clearBinVersion() { + bitField0_ &= ~0x00001000; + binVersion.clear(); + return this; + } + + /** + * optional string bin_version = 1; + * @return the binVersion + */ + public String getBinVersion() { + return binVersion.getString(); + } + + /** + * optional string bin_version = 1; + * @return internal {@code Utf8String} representation of binVersion for reading + */ + public Utf8String getBinVersionBytes() { + return this.binVersion; + } + + /** + * optional string bin_version = 1; + * @return internal {@code Utf8String} representation of binVersion for modifications + */ + public Utf8String getMutableBinVersionBytes() { + bitField0_ |= 0x00001000; + return this.binVersion; + } + + /** + * optional string bin_version = 1; + * @param value the binVersion to set + * @return this + */ + public PVEBattleResultScRsp setBinVersion(final CharSequence value) { + bitField0_ |= 0x00001000; + binVersion.copyFrom(value); + return this; + } + + /** + * optional string bin_version = 1; + * @param value the binVersion to set + * @return this + */ + public PVEBattleResultScRsp setBinVersion(final Utf8String value) { + bitField0_ |= 0x00001000; + binVersion.copyFrom(value); + return this; + } + + /** + * optional string res_version = 3; + * @return whether the resVersion field is set + */ + public boolean hasResVersion() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional string res_version = 3; + * @return this + */ + public PVEBattleResultScRsp clearResVersion() { + bitField0_ &= ~0x00002000; + resVersion.clear(); + return this; + } + + /** + * optional string res_version = 3; + * @return the resVersion + */ + public String getResVersion() { + return resVersion.getString(); + } + + /** + * optional string res_version = 3; + * @return internal {@code Utf8String} representation of resVersion for reading + */ + public Utf8String getResVersionBytes() { + return this.resVersion; + } + + /** + * optional string res_version = 3; + * @return internal {@code Utf8String} representation of resVersion for modifications + */ + public Utf8String getMutableResVersionBytes() { + bitField0_ |= 0x00002000; + return this.resVersion; + } + + /** + * optional string res_version = 3; + * @param value the resVersion to set + * @return this + */ + public PVEBattleResultScRsp setResVersion(final CharSequence value) { + bitField0_ |= 0x00002000; + resVersion.copyFrom(value); + return this; + } + + /** + * optional string res_version = 3; + * @param value the resVersion to set + * @return this + */ + public PVEBattleResultScRsp setResVersion(final Utf8String value) { + bitField0_ |= 0x00002000; + resVersion.copyFrom(value); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + * @return whether the battleAvatarList field is set + */ + public boolean hasBattleAvatarList() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + * @return this + */ + public PVEBattleResultScRsp clearBattleAvatarList() { + bitField0_ &= ~0x00004000; + battleAvatarList.clear(); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + * + * 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 #getMutableBattleAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleAvatarList() { + return battleAvatarList; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + * + * 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 getMutableBattleAvatarList() { + bitField0_ |= 0x00004000; + return battleAvatarList; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + * @param value the battleAvatarList to add + * @return this + */ + public PVEBattleResultScRsp addBattleAvatarList( + final BattleAvatarOuterClass.BattleAvatar value) { + bitField0_ |= 0x00004000; + battleAvatarList.add(value); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 2; + * @param values the battleAvatarList to add + * @return this + */ + public PVEBattleResultScRsp addAllBattleAvatarList( + final BattleAvatarOuterClass.BattleAvatar... values) { + bitField0_ |= 0x00004000; + battleAvatarList.addAll(values); + return this; + } + + @Override + public PVEBattleResultScRsp copyFrom(final PVEBattleResultScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mALNBHCKENI = other.mALNBHCKENI; + battleId = other.battleId; + jPEJDEEINNK = other.jPEJDEEINNK; + bPIONPOPIAB = other.bPIONPOPIAB; + stageId = other.stageId; + retcode = other.retcode; + mismatchTurnCount = other.mismatchTurnCount; + endStatus = other.endStatus; + checkIdentical = other.checkIdentical; + unk1.copyFrom(other.unk1); + dropData.copyFrom(other.dropData); + unk3.copyFrom(other.unk3); + binVersion.copyFrom(other.binVersion); + resVersion.copyFrom(other.resVersion); + battleAvatarList.copyFrom(other.battleAvatarList); + } + return this; + } + + @Override + public PVEBattleResultScRsp mergeFrom(final PVEBattleResultScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMALNBHCKENI()) { + setMALNBHCKENI(other.mALNBHCKENI); + } + if (other.hasBattleId()) { + setBattleId(other.battleId); + } + if (other.hasJPEJDEEINNK()) { + setJPEJDEEINNK(other.jPEJDEEINNK); + } + if (other.hasBPIONPOPIAB()) { + setBPIONPOPIAB(other.bPIONPOPIAB); + } + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasMismatchTurnCount()) { + setMismatchTurnCount(other.mismatchTurnCount); + } + if (other.hasEndStatus()) { + setEndStatusValue(other.endStatus); + } + if (other.hasCheckIdentical()) { + setCheckIdentical(other.checkIdentical); + } + if (other.hasUnk1()) { + getMutableUnk1().mergeFrom(other.unk1); + } + if (other.hasDropData()) { + getMutableDropData().mergeFrom(other.dropData); + } + if (other.hasUnk3()) { + getMutableUnk3().mergeFrom(other.unk3); + } + if (other.hasBinVersion()) { + getMutableBinVersionBytes().copyFrom(other.binVersion); + } + if (other.hasResVersion()) { + getMutableResVersionBytes().copyFrom(other.resVersion); + } + if (other.hasBattleAvatarList()) { + getMutableBattleAvatarList().addAll(other.battleAvatarList); + } + return this; + } + + @Override + public PVEBattleResultScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mALNBHCKENI = 0; + battleId = 0; + jPEJDEEINNK = 0; + bPIONPOPIAB = 0; + stageId = 0; + retcode = 0; + mismatchTurnCount = 0; + endStatus = 0; + checkIdentical = false; + unk1.clear(); + dropData.clear(); + unk3.clear(); + binVersion.clear(); + resVersion.clear(); + battleAvatarList.clear(); + return this; + } + + @Override + public PVEBattleResultScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unk1.clearQuick(); + dropData.clearQuick(); + unk3.clearQuick(); + binVersion.clear(); + resVersion.clear(); + battleAvatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PVEBattleResultScRsp)) { + return false; + } + PVEBattleResultScRsp other = (PVEBattleResultScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasMALNBHCKENI() || mALNBHCKENI == other.mALNBHCKENI) + && (!hasBattleId() || battleId == other.battleId) + && (!hasJPEJDEEINNK() || jPEJDEEINNK == other.jPEJDEEINNK) + && (!hasBPIONPOPIAB() || bPIONPOPIAB == other.bPIONPOPIAB) + && (!hasStageId() || stageId == other.stageId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasMismatchTurnCount() || mismatchTurnCount == other.mismatchTurnCount) + && (!hasEndStatus() || endStatus == other.endStatus) + && (!hasCheckIdentical() || checkIdentical == other.checkIdentical) + && (!hasUnk1() || unk1.equals(other.unk1)) + && (!hasDropData() || dropData.equals(other.dropData)) + && (!hasUnk3() || unk3.equals(other.unk3)) + && (!hasBinVersion() || binVersion.equals(other.binVersion)) + && (!hasResVersion() || resVersion.equals(other.resVersion)) + && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(mALNBHCKENI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(battleId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(jPEJDEEINNK); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(bPIONPOPIAB); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(mismatchTurnCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(endStatus); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(checkIdentical); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(unk1); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(dropData); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(unk3); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(binVersion); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(resVersion); + } + if ((bitField0_ & 0x00004000) != 0) { + for (int i = 0; i < battleAvatarList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(battleAvatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mALNBHCKENI); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEJDEEINNK); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bPIONPOPIAB); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mismatchTurnCount); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(unk1); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dropData); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(unk3); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(binVersion); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(resVersion); + } + if ((bitField0_ & 0x00004000) != 0) { + size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PVEBattleResultScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // mALNBHCKENI + mALNBHCKENI = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // battleId + battleId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // jPEJDEEINNK + jPEJDEEINNK = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // bPIONPOPIAB + bPIONPOPIAB = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // mismatchTurnCount + mismatchTurnCount = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // endStatus + final int value = input.readInt32(); + if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { + endStatus = value; + bitField0_ |= 0x00000080; + } + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // checkIdentical + checkIdentical = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // unk1 + input.readMessage(unk1); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // dropData + input.readMessage(dropData); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // unk3 + input.readMessage(unk3); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // binVersion + input.readString(binVersion); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // resVersion + input.readString(resVersion); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // battleAvatarList + tag = input.readRepeatedMessage(battleAvatarList, tag); + bitField0_ |= 0x00004000; + 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.mALNBHCKENI, mALNBHCKENI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.battleId, battleId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.jPEJDEEINNK, jPEJDEEINNK); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.bPIONPOPIAB, bPIONPOPIAB); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.mismatchTurnCount, mismatchTurnCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.checkIdentical, checkIdentical); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.unk1, unk1); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.dropData, dropData); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeMessage(FieldNames.unk3, unk3); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeString(FieldNames.binVersion, binVersion); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeString(FieldNames.resVersion, resVersion); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); + } + output.endObject(); + } + + @Override + public PVEBattleResultScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1670931460: { + if (input.isAtField(FieldNames.mALNBHCKENI)) { + if (!input.trySkipNullValue()) { + mALNBHCKENI = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -445858629: { + if (input.isAtField(FieldNames.jPEJDEEINNK)) { + if (!input.trySkipNullValue()) { + jPEJDEEINNK = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1156421709: { + if (input.isAtField(FieldNames.bPIONPOPIAB)) { + if (!input.trySkipNullValue()) { + bPIONPOPIAB = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2096079772: + case -1800906274: { + if (input.isAtField(FieldNames.mismatchTurnCount)) { + if (!input.trySkipNullValue()) { + mismatchTurnCount = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1608709293: + case 378841046: { + if (input.isAtField(FieldNames.endStatus)) { + if (!input.trySkipNullValue()) { + final BattleEndStatusOuterClass.BattleEndStatus value = input.readEnum(BattleEndStatusOuterClass.BattleEndStatus.converter()); + if (value != null) { + endStatus = value.getNumber(); + bitField0_ |= 0x00000080; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1926285453: + case 2102762046: { + if (input.isAtField(FieldNames.checkIdentical)) { + if (!input.trySkipNullValue()) { + checkIdentical = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594623: { + if (input.isAtField(FieldNames.unk1)) { + if (!input.trySkipNullValue()) { + input.readMessage(unk1); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -433028295: + case -513968390: { + if (input.isAtField(FieldNames.dropData)) { + if (!input.trySkipNullValue()) { + input.readMessage(dropData); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594625: { + if (input.isAtField(FieldNames.unk3)) { + if (!input.trySkipNullValue()) { + input.readMessage(unk3); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1864225233: + case -2003285600: { + if (input.isAtField(FieldNames.binVersion)) { + if (!input.trySkipNullValue()) { + input.readString(binVersion); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1778976792: + case -351019975: { + if (input.isAtField(FieldNames.resVersion)) { + if (!input.trySkipNullValue()) { + input.readString(resVersion); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 768292975: + case 328463037: { + if (input.isAtField(FieldNames.battleAvatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(battleAvatarList); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PVEBattleResultScRsp clone() { + return new PVEBattleResultScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PVEBattleResultScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PVEBattleResultScRsp(), data).checkInitialized(); + } + + public static PVEBattleResultScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PVEBattleResultScRsp(), input).checkInitialized(); + } + + public static PVEBattleResultScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PVEBattleResultScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating PVEBattleResultScRsp messages + */ + public static MessageFactory getFactory() { + return PVEBattleResultScRspFactory.INSTANCE; + } + + private enum PVEBattleResultScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public PVEBattleResultScRsp create() { + return PVEBattleResultScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mALNBHCKENI = FieldName.forField("MALNBHCKENI"); + + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + + static final FieldName jPEJDEEINNK = FieldName.forField("JPEJDEEINNK"); + + static final FieldName bPIONPOPIAB = FieldName.forField("BPIONPOPIAB"); + + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName mismatchTurnCount = FieldName.forField("mismatchTurnCount", "mismatch_turn_count"); + + static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); + + static final FieldName checkIdentical = FieldName.forField("checkIdentical", "check_identical"); + + static final FieldName unk1 = FieldName.forField("unk1"); + + static final FieldName dropData = FieldName.forField("dropData", "drop_data"); + + static final FieldName unk3 = FieldName.forField("unk3"); + + static final FieldName binVersion = FieldName.forField("binVersion", "bin_version"); + + static final FieldName resVersion = FieldName.forField("resVersion", "res_version"); + + static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java new file mode 100644 index 0000000..96be653 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java @@ -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 PileItemOuterClass { + /** + * Protobuf type {@code PileItem} + */ + public static final class PileItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 item_id = 3; + */ + private int itemId; + + /** + * optional uint32 item_num = 15; + */ + private int itemNum; + + private PileItem() { + } + + /** + * @return a new empty instance of {@code PileItem} + */ + public static PileItem newInstance() { + return new PileItem(); + } + + /** + * optional uint32 item_id = 3; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 item_id = 3; + * @return this + */ + public PileItem clearItemId() { + bitField0_ &= ~0x00000001; + itemId = 0; + return this; + } + + /** + * optional uint32 item_id = 3; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 3; + * @param value the itemId to set + * @return this + */ + public PileItem setItemId(final int value) { + bitField0_ |= 0x00000001; + itemId = value; + return this; + } + + /** + * optional uint32 item_num = 15; + * @return whether the itemNum field is set + */ + public boolean hasItemNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 item_num = 15; + * @return this + */ + public PileItem clearItemNum() { + bitField0_ &= ~0x00000002; + itemNum = 0; + return this; + } + + /** + * optional uint32 item_num = 15; + * @return the itemNum + */ + public int getItemNum() { + return itemNum; + } + + /** + * optional uint32 item_num = 15; + * @param value the itemNum to set + * @return this + */ + public PileItem setItemNum(final int value) { + bitField0_ |= 0x00000002; + itemNum = value; + return this; + } + + @Override + public PileItem copyFrom(final PileItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemId = other.itemId; + itemNum = other.itemNum; + } + return this; + } + + @Override + public PileItem mergeFrom(final PileItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemId()) { + setItemId(other.itemId); + } + if (other.hasItemNum()) { + setItemNum(other.itemNum); + } + return this; + } + + @Override + public PileItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemId = 0; + itemNum = 0; + return this; + } + + @Override + public PileItem 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 PileItem)) { + return false; + } + PileItem other = (PileItem) o; + return bitField0_ == other.bitField0_ + && (!hasItemId() || itemId == other.itemId) + && (!hasItemNum() || itemNum == other.itemNum); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(itemNum); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PileItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // itemNum + itemNum = 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.itemId, itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.itemNum, itemNum); + } + output.endObject(); + } + + @Override + public PileItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2116189043: + case 1177850970: { + if (input.isAtField(FieldNames.itemNum)) { + if (!input.trySkipNullValue()) { + itemNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PileItem clone() { + return new PileItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PileItem parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PileItem(), data).checkInitialized(); + } + + public static PileItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PileItem(), input).checkInitialized(); + } + + public static PileItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PileItem(), input).checkInitialized(); + } + + /** + * @return factory for creating PileItem messages + */ + public static MessageFactory getFactory() { + return PileItemFactory.INSTANCE; + } + + private enum PileItemFactory implements MessageFactory { + INSTANCE; + + @Override + public PileItem create() { + return PileItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemId = FieldName.forField("itemId", "item_id"); + + static final FieldName itemNum = FieldName.forField("itemNum", "item_num"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java new file mode 100644 index 0000000..4f78b06 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java @@ -0,0 +1,399 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class PlatformTypeOuterClass { + /** + * Protobuf enum {@code PlatformType} + */ + public enum PlatformType implements ProtoEnum { + /** + * EDITOR = 0; + */ + EDITOR("EDITOR", 0), + + /** + * IOS = 1; + */ + IOS("IOS", 1), + + /** + * ANDROID = 2; + */ + ANDROID("ANDROID", 2), + + /** + * PC = 3; + */ + PC("PC", 3), + + /** + * WEB = 4; + */ + WEB("WEB", 4), + + /** + * WAP = 5; + */ + WAP("WAP", 5), + + /** + * PS4 = 6; + */ + PS4("PS4", 6), + + /** + * NINTENDO = 7; + */ + NINTENDO("NINTENDO", 7), + + /** + * CLOUD_ANDROID = 8; + */ + CLOUD_ANDROID("CLOUD_ANDROID", 8), + + /** + * CLOUD_PC = 9; + */ + CLOUD_PC("CLOUD_PC", 9), + + /** + * CLOUD_IOS = 10; + */ + CLOUD_IOS("CLOUD_IOS", 10), + + /** + * PS5 = 11; + */ + PS5("PS5", 11), + + /** + * MAC = 12; + */ + MAC("MAC", 12), + + /** + * CLOUD_MAC = 13; + */ + CLOUD_MAC("CLOUD_MAC", 13), + + /** + * CLOUD_WEB_ANDROID = 20; + */ + CLOUD_WEB_ANDROID("CLOUD_WEB_ANDROID", 20), + + /** + * CLOUD_WEB_IOS = 21; + */ + CLOUD_WEB_IOS("CLOUD_WEB_IOS", 21), + + /** + * CLOUD_WEB_PC = 22; + */ + CLOUD_WEB_PC("CLOUD_WEB_PC", 22), + + /** + * CLOUD_WEB_MAC = 23; + */ + CLOUD_WEB_MAC("CLOUD_WEB_MAC", 23), + + /** + * CLOUD_WEB_TOUCH = 24; + */ + CLOUD_WEB_TOUCH("CLOUD_WEB_TOUCH", 24), + + /** + * CLOUD_WEB_KEYBOARD = 25; + */ + CLOUD_WEB_KEYBOARD("CLOUD_WEB_KEYBOARD", 25); + + /** + * EDITOR = 0; + */ + public static final int EDITOR_VALUE = 0; + + /** + * IOS = 1; + */ + public static final int IOS_VALUE = 1; + + /** + * ANDROID = 2; + */ + public static final int ANDROID_VALUE = 2; + + /** + * PC = 3; + */ + public static final int PC_VALUE = 3; + + /** + * WEB = 4; + */ + public static final int WEB_VALUE = 4; + + /** + * WAP = 5; + */ + public static final int WAP_VALUE = 5; + + /** + * PS4 = 6; + */ + public static final int PS4_VALUE = 6; + + /** + * NINTENDO = 7; + */ + public static final int NINTENDO_VALUE = 7; + + /** + * CLOUD_ANDROID = 8; + */ + public static final int CLOUD_ANDROID_VALUE = 8; + + /** + * CLOUD_PC = 9; + */ + public static final int CLOUD_PC_VALUE = 9; + + /** + * CLOUD_IOS = 10; + */ + public static final int CLOUD_IOS_VALUE = 10; + + /** + * PS5 = 11; + */ + public static final int PS5_VALUE = 11; + + /** + * MAC = 12; + */ + public static final int MAC_VALUE = 12; + + /** + * CLOUD_MAC = 13; + */ + public static final int CLOUD_MAC_VALUE = 13; + + /** + * CLOUD_WEB_ANDROID = 20; + */ + public static final int CLOUD_WEB_ANDROID_VALUE = 20; + + /** + * CLOUD_WEB_IOS = 21; + */ + public static final int CLOUD_WEB_IOS_VALUE = 21; + + /** + * CLOUD_WEB_PC = 22; + */ + public static final int CLOUD_WEB_PC_VALUE = 22; + + /** + * CLOUD_WEB_MAC = 23; + */ + public static final int CLOUD_WEB_MAC_VALUE = 23; + + /** + * CLOUD_WEB_TOUCH = 24; + */ + public static final int CLOUD_WEB_TOUCH_VALUE = 24; + + /** + * CLOUD_WEB_KEYBOARD = 25; + */ + public static final int CLOUD_WEB_KEYBOARD_VALUE = 25; + + private final String name; + + private final int number; + + private PlatformType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return PlatformTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static PlatformType forNumber(int value) { + return PlatformTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static PlatformType forNumberOr(int number, PlatformType other) { + PlatformType value = forNumber(number); + return value == null ? other : value; + } + + enum PlatformTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final PlatformType[] lookup = new PlatformType[26]; + + static { + lookup[0] = EDITOR; + lookup[1] = IOS; + lookup[2] = ANDROID; + lookup[3] = PC; + lookup[4] = WEB; + lookup[5] = WAP; + lookup[6] = PS4; + lookup[7] = NINTENDO; + lookup[8] = CLOUD_ANDROID; + lookup[9] = CLOUD_PC; + lookup[10] = CLOUD_IOS; + lookup[11] = PS5; + lookup[12] = MAC; + lookup[13] = CLOUD_MAC; + lookup[20] = CLOUD_WEB_ANDROID; + lookup[21] = CLOUD_WEB_IOS; + lookup[22] = CLOUD_WEB_PC; + lookup[23] = CLOUD_WEB_MAC; + lookup[24] = CLOUD_WEB_TOUCH; + lookup[25] = CLOUD_WEB_KEYBOARD; + } + + @Override + public final PlatformType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final PlatformType forName(final CharSequence value) { + switch (value.length()) { + case 2: { + if (ProtoUtil.isEqual("PC", value)) { + return PC; + } + break; + } + case 3: { + if (ProtoUtil.isEqual("IOS", value)) { + return IOS; + } + if (ProtoUtil.isEqual("WEB", value)) { + return WEB; + } + if (ProtoUtil.isEqual("WAP", value)) { + return WAP; + } + if (ProtoUtil.isEqual("PS4", value)) { + return PS4; + } + if (ProtoUtil.isEqual("PS5", value)) { + return PS5; + } + if (ProtoUtil.isEqual("MAC", value)) { + return MAC; + } + break; + } + case 6: { + if (ProtoUtil.isEqual("EDITOR", value)) { + return EDITOR; + } + break; + } + case 7: { + if (ProtoUtil.isEqual("ANDROID", value)) { + return ANDROID; + } + break; + } + case 8: { + if (ProtoUtil.isEqual("NINTENDO", value)) { + return NINTENDO; + } + if (ProtoUtil.isEqual("CLOUD_PC", value)) { + return CLOUD_PC; + } + break; + } + case 9: { + if (ProtoUtil.isEqual("CLOUD_IOS", value)) { + return CLOUD_IOS; + } + if (ProtoUtil.isEqual("CLOUD_MAC", value)) { + return CLOUD_MAC; + } + break; + } + case 12: { + if (ProtoUtil.isEqual("CLOUD_WEB_PC", value)) { + return CLOUD_WEB_PC; + } + break; + } + case 13: { + if (ProtoUtil.isEqual("CLOUD_ANDROID", value)) { + return CLOUD_ANDROID; + } + if (ProtoUtil.isEqual("CLOUD_WEB_IOS", value)) { + return CLOUD_WEB_IOS; + } + if (ProtoUtil.isEqual("CLOUD_WEB_MAC", value)) { + return CLOUD_WEB_MAC; + } + break; + } + case 15: { + if (ProtoUtil.isEqual("CLOUD_WEB_TOUCH", value)) { + return CLOUD_WEB_TOUCH; + } + break; + } + case 17: { + if (ProtoUtil.isEqual("CLOUD_WEB_ANDROID", value)) { + return CLOUD_WEB_ANDROID; + } + break; + } + case 18: { + if (ProtoUtil.isEqual("CLOUD_WEB_KEYBOARD", value)) { + return CLOUD_WEB_KEYBOARD; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerBasicInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerBasicInfoOuterClass.java new file mode 100644 index 0000000..382e8dd --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerBasicInfoOuterClass.java @@ -0,0 +1,850 @@ +// 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.Utf8String; + +public final class PlayerBasicInfoOuterClass { + /** + * Protobuf type {@code PlayerBasicInfo} + */ + public static final class PlayerBasicInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 level = 2; + */ + private int level; + + /** + * optional uint32 exp = 3; + */ + private int exp; + + /** + * optional uint32 stamina = 4; + */ + private int stamina; + + /** + * optional uint32 mcoin = 5; + */ + private int mcoin; + + /** + * optional uint32 hcoin = 6; + */ + private int hcoin; + + /** + * optional uint32 scoin = 7; + */ + private int scoin; + + /** + * optional uint32 world_level = 8; + */ + private int worldLevel; + + /** + * optional string nickname = 1; + */ + private final Utf8String nickname = Utf8String.newEmptyInstance(); + + private PlayerBasicInfo() { + } + + /** + * @return a new empty instance of {@code PlayerBasicInfo} + */ + public static PlayerBasicInfo newInstance() { + return new PlayerBasicInfo(); + } + + /** + * optional uint32 level = 2; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 level = 2; + * @return this + */ + public PlayerBasicInfo clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 level = 2; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 2; + * @param value the level to set + * @return this + */ + public PlayerBasicInfo setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 exp = 3; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 exp = 3; + * @return this + */ + public PlayerBasicInfo clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 3; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 3; + * @param value the exp to set + * @return this + */ + public PlayerBasicInfo setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * optional uint32 stamina = 4; + * @return whether the stamina field is set + */ + public boolean hasStamina() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 stamina = 4; + * @return this + */ + public PlayerBasicInfo clearStamina() { + bitField0_ &= ~0x00000004; + stamina = 0; + return this; + } + + /** + * optional uint32 stamina = 4; + * @return the stamina + */ + public int getStamina() { + return stamina; + } + + /** + * optional uint32 stamina = 4; + * @param value the stamina to set + * @return this + */ + public PlayerBasicInfo setStamina(final int value) { + bitField0_ |= 0x00000004; + stamina = value; + return this; + } + + /** + * optional uint32 mcoin = 5; + * @return whether the mcoin field is set + */ + public boolean hasMcoin() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 mcoin = 5; + * @return this + */ + public PlayerBasicInfo clearMcoin() { + bitField0_ &= ~0x00000008; + mcoin = 0; + return this; + } + + /** + * optional uint32 mcoin = 5; + * @return the mcoin + */ + public int getMcoin() { + return mcoin; + } + + /** + * optional uint32 mcoin = 5; + * @param value the mcoin to set + * @return this + */ + public PlayerBasicInfo setMcoin(final int value) { + bitField0_ |= 0x00000008; + mcoin = value; + return this; + } + + /** + * optional uint32 hcoin = 6; + * @return whether the hcoin field is set + */ + public boolean hasHcoin() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 hcoin = 6; + * @return this + */ + public PlayerBasicInfo clearHcoin() { + bitField0_ &= ~0x00000010; + hcoin = 0; + return this; + } + + /** + * optional uint32 hcoin = 6; + * @return the hcoin + */ + public int getHcoin() { + return hcoin; + } + + /** + * optional uint32 hcoin = 6; + * @param value the hcoin to set + * @return this + */ + public PlayerBasicInfo setHcoin(final int value) { + bitField0_ |= 0x00000010; + hcoin = value; + return this; + } + + /** + * optional uint32 scoin = 7; + * @return whether the scoin field is set + */ + public boolean hasScoin() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 scoin = 7; + * @return this + */ + public PlayerBasicInfo clearScoin() { + bitField0_ &= ~0x00000020; + scoin = 0; + return this; + } + + /** + * optional uint32 scoin = 7; + * @return the scoin + */ + public int getScoin() { + return scoin; + } + + /** + * optional uint32 scoin = 7; + * @param value the scoin to set + * @return this + */ + public PlayerBasicInfo setScoin(final int value) { + bitField0_ |= 0x00000020; + scoin = value; + return this; + } + + /** + * optional uint32 world_level = 8; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 world_level = 8; + * @return this + */ + public PlayerBasicInfo clearWorldLevel() { + bitField0_ &= ~0x00000040; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 8; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 8; + * @param value the worldLevel to set + * @return this + */ + public PlayerBasicInfo setWorldLevel(final int value) { + bitField0_ |= 0x00000040; + worldLevel = value; + return this; + } + + /** + * optional string nickname = 1; + * @return whether the nickname field is set + */ + public boolean hasNickname() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string nickname = 1; + * @return this + */ + public PlayerBasicInfo clearNickname() { + bitField0_ &= ~0x00000080; + nickname.clear(); + return this; + } + + /** + * optional string nickname = 1; + * @return the nickname + */ + public String getNickname() { + return nickname.getString(); + } + + /** + * optional string nickname = 1; + * @return internal {@code Utf8String} representation of nickname for reading + */ + public Utf8String getNicknameBytes() { + return this.nickname; + } + + /** + * optional string nickname = 1; + * @return internal {@code Utf8String} representation of nickname for modifications + */ + public Utf8String getMutableNicknameBytes() { + bitField0_ |= 0x00000080; + return this.nickname; + } + + /** + * optional string nickname = 1; + * @param value the nickname to set + * @return this + */ + public PlayerBasicInfo setNickname(final CharSequence value) { + bitField0_ |= 0x00000080; + nickname.copyFrom(value); + return this; + } + + /** + * optional string nickname = 1; + * @param value the nickname to set + * @return this + */ + public PlayerBasicInfo setNickname(final Utf8String value) { + bitField0_ |= 0x00000080; + nickname.copyFrom(value); + return this; + } + + @Override + public PlayerBasicInfo copyFrom(final PlayerBasicInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + exp = other.exp; + stamina = other.stamina; + mcoin = other.mcoin; + hcoin = other.hcoin; + scoin = other.scoin; + worldLevel = other.worldLevel; + nickname.copyFrom(other.nickname); + } + return this; + } + + @Override + public PlayerBasicInfo mergeFrom(final PlayerBasicInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasStamina()) { + setStamina(other.stamina); + } + if (other.hasMcoin()) { + setMcoin(other.mcoin); + } + if (other.hasHcoin()) { + setHcoin(other.hcoin); + } + if (other.hasScoin()) { + setScoin(other.scoin); + } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasNickname()) { + getMutableNicknameBytes().copyFrom(other.nickname); + } + return this; + } + + @Override + public PlayerBasicInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + exp = 0; + stamina = 0; + mcoin = 0; + hcoin = 0; + scoin = 0; + worldLevel = 0; + nickname.clear(); + return this; + } + + @Override + public PlayerBasicInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nickname.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerBasicInfo)) { + return false; + } + PlayerBasicInfo other = (PlayerBasicInfo) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasStamina() || stamina == other.stamina) + && (!hasMcoin() || mcoin == other.mcoin) + && (!hasHcoin() || hcoin == other.hcoin) + && (!hasScoin() || scoin == other.scoin) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasNickname() || nickname.equals(other.nickname)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(stamina); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(mcoin); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(hcoin); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(scoin); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(nickname); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mcoin); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hcoin); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoin); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerBasicInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // stamina + stamina = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // mcoin + mcoin = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // hcoin + hcoin = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // scoin + scoin = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // nickname + input.readString(nickname); + bitField0_ |= 0x00000080; + 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.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.stamina, stamina); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.mcoin, mcoin); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.hcoin, hcoin); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.scoin, scoin); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.nickname, nickname); + } + output.endObject(); + } + + @Override + public PlayerBasicInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897344401: { + if (input.isAtField(FieldNames.stamina)) { + if (!input.trySkipNullValue()) { + stamina = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 103723134: { + if (input.isAtField(FieldNames.mcoin)) { + if (!input.trySkipNullValue()) { + mcoin = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 99105529: { + if (input.isAtField(FieldNames.hcoin)) { + if (!input.trySkipNullValue()) { + hcoin = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109264260: { + if (input.isAtField(FieldNames.scoin)) { + if (!input.trySkipNullValue()) { + scoin = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70690926: { + if (input.isAtField(FieldNames.nickname)) { + if (!input.trySkipNullValue()) { + input.readString(nickname); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerBasicInfo clone() { + return new PlayerBasicInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerBasicInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerBasicInfo(), data).checkInitialized(); + } + + public static PlayerBasicInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerBasicInfo(), input).checkInitialized(); + } + + public static PlayerBasicInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerBasicInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerBasicInfo messages + */ + public static MessageFactory getFactory() { + return PlayerBasicInfoFactory.INSTANCE; + } + + private enum PlayerBasicInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerBasicInfo create() { + return PlayerBasicInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("level"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName stamina = FieldName.forField("stamina"); + + static final FieldName mcoin = FieldName.forField("mcoin"); + + static final FieldName hcoin = FieldName.forField("hcoin"); + + static final FieldName scoin = FieldName.forField("scoin"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName nickname = FieldName.forField("nickname"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java new file mode 100644 index 0000000..5b66533 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java @@ -0,0 +1,587 @@ +// 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.Utf8String; + +public final class PlayerGetTokenCsReqOuterClass { + /** + * Protobuf type {@code PlayerGetTokenCsReq} + */ + public static final class PlayerGetTokenCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 KDPMIEPJMLN = 15; + */ + private int kDPMIEPJMLN; + + /** + * optional string token = 6; + */ + private final Utf8String token = Utf8String.newEmptyInstance(); + + /** + * optional string uid = 7; + */ + private final Utf8String uid = Utf8String.newEmptyInstance(); + + /** + * optional string unk1 = 8; + */ + private final Utf8String unk1 = Utf8String.newEmptyInstance(); + + private PlayerGetTokenCsReq() { + } + + /** + * @return a new empty instance of {@code PlayerGetTokenCsReq} + */ + public static PlayerGetTokenCsReq newInstance() { + return new PlayerGetTokenCsReq(); + } + + /** + * optional uint32 KDPMIEPJMLN = 15; + * @return whether the kDPMIEPJMLN field is set + */ + public boolean hasKDPMIEPJMLN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 KDPMIEPJMLN = 15; + * @return this + */ + public PlayerGetTokenCsReq clearKDPMIEPJMLN() { + bitField0_ &= ~0x00000001; + kDPMIEPJMLN = 0; + return this; + } + + /** + * optional uint32 KDPMIEPJMLN = 15; + * @return the kDPMIEPJMLN + */ + public int getKDPMIEPJMLN() { + return kDPMIEPJMLN; + } + + /** + * optional uint32 KDPMIEPJMLN = 15; + * @param value the kDPMIEPJMLN to set + * @return this + */ + public PlayerGetTokenCsReq setKDPMIEPJMLN(final int value) { + bitField0_ |= 0x00000001; + kDPMIEPJMLN = value; + return this; + } + + /** + * optional string token = 6; + * @return whether the token field is set + */ + public boolean hasToken() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string token = 6; + * @return this + */ + public PlayerGetTokenCsReq clearToken() { + bitField0_ &= ~0x00000002; + token.clear(); + return this; + } + + /** + * optional string token = 6; + * @return the token + */ + public String getToken() { + return token.getString(); + } + + /** + * optional string token = 6; + * @return internal {@code Utf8String} representation of token for reading + */ + public Utf8String getTokenBytes() { + return this.token; + } + + /** + * optional string token = 6; + * @return internal {@code Utf8String} representation of token for modifications + */ + public Utf8String getMutableTokenBytes() { + bitField0_ |= 0x00000002; + return this.token; + } + + /** + * optional string token = 6; + * @param value the token to set + * @return this + */ + public PlayerGetTokenCsReq setToken(final CharSequence value) { + bitField0_ |= 0x00000002; + token.copyFrom(value); + return this; + } + + /** + * optional string token = 6; + * @param value the token to set + * @return this + */ + public PlayerGetTokenCsReq setToken(final Utf8String value) { + bitField0_ |= 0x00000002; + token.copyFrom(value); + return this; + } + + /** + * optional string uid = 7; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string uid = 7; + * @return this + */ + public PlayerGetTokenCsReq clearUid() { + bitField0_ &= ~0x00000004; + uid.clear(); + return this; + } + + /** + * optional string uid = 7; + * @return the uid + */ + public String getUid() { + return uid.getString(); + } + + /** + * optional string uid = 7; + * @return internal {@code Utf8String} representation of uid for reading + */ + public Utf8String getUidBytes() { + return this.uid; + } + + /** + * optional string uid = 7; + * @return internal {@code Utf8String} representation of uid for modifications + */ + public Utf8String getMutableUidBytes() { + bitField0_ |= 0x00000004; + return this.uid; + } + + /** + * optional string uid = 7; + * @param value the uid to set + * @return this + */ + public PlayerGetTokenCsReq setUid(final CharSequence value) { + bitField0_ |= 0x00000004; + uid.copyFrom(value); + return this; + } + + /** + * optional string uid = 7; + * @param value the uid to set + * @return this + */ + public PlayerGetTokenCsReq setUid(final Utf8String value) { + bitField0_ |= 0x00000004; + uid.copyFrom(value); + return this; + } + + /** + * optional string unk1 = 8; + * @return whether the unk1 field is set + */ + public boolean hasUnk1() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string unk1 = 8; + * @return this + */ + public PlayerGetTokenCsReq clearUnk1() { + bitField0_ &= ~0x00000008; + unk1.clear(); + return this; + } + + /** + * optional string unk1 = 8; + * @return the unk1 + */ + public String getUnk1() { + return unk1.getString(); + } + + /** + * optional string unk1 = 8; + * @return internal {@code Utf8String} representation of unk1 for reading + */ + public Utf8String getUnk1Bytes() { + return this.unk1; + } + + /** + * optional string unk1 = 8; + * @return internal {@code Utf8String} representation of unk1 for modifications + */ + public Utf8String getMutableUnk1Bytes() { + bitField0_ |= 0x00000008; + return this.unk1; + } + + /** + * optional string unk1 = 8; + * @param value the unk1 to set + * @return this + */ + public PlayerGetTokenCsReq setUnk1(final CharSequence value) { + bitField0_ |= 0x00000008; + unk1.copyFrom(value); + return this; + } + + /** + * optional string unk1 = 8; + * @param value the unk1 to set + * @return this + */ + public PlayerGetTokenCsReq setUnk1(final Utf8String value) { + bitField0_ |= 0x00000008; + unk1.copyFrom(value); + return this; + } + + @Override + public PlayerGetTokenCsReq copyFrom(final PlayerGetTokenCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kDPMIEPJMLN = other.kDPMIEPJMLN; + token.copyFrom(other.token); + uid.copyFrom(other.uid); + unk1.copyFrom(other.unk1); + } + return this; + } + + @Override + public PlayerGetTokenCsReq mergeFrom(final PlayerGetTokenCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKDPMIEPJMLN()) { + setKDPMIEPJMLN(other.kDPMIEPJMLN); + } + if (other.hasToken()) { + getMutableTokenBytes().copyFrom(other.token); + } + if (other.hasUid()) { + getMutableUidBytes().copyFrom(other.uid); + } + if (other.hasUnk1()) { + getMutableUnk1Bytes().copyFrom(other.unk1); + } + return this; + } + + @Override + public PlayerGetTokenCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kDPMIEPJMLN = 0; + token.clear(); + uid.clear(); + unk1.clear(); + return this; + } + + @Override + public PlayerGetTokenCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + token.clear(); + uid.clear(); + unk1.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerGetTokenCsReq)) { + return false; + } + PlayerGetTokenCsReq other = (PlayerGetTokenCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasKDPMIEPJMLN() || kDPMIEPJMLN == other.kDPMIEPJMLN) + && (!hasToken() || token.equals(other.token)) + && (!hasUid() || uid.equals(other.uid)) + && (!hasUnk1() || unk1.equals(other.unk1)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(kDPMIEPJMLN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(token); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeStringNoTag(uid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 66); + output.writeStringNoTag(unk1); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kDPMIEPJMLN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(token); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(uid); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(unk1); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerGetTokenCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // kDPMIEPJMLN + kDPMIEPJMLN = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // token + input.readString(token); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // uid + input.readString(uid); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // unk1 + input.readString(unk1); + 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.kDPMIEPJMLN, kDPMIEPJMLN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.token, token); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.unk1, unk1); + } + output.endObject(); + } + + @Override + public PlayerGetTokenCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1500575517: { + if (input.isAtField(FieldNames.kDPMIEPJMLN)) { + if (!input.trySkipNullValue()) { + kDPMIEPJMLN = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 110541305: { + if (input.isAtField(FieldNames.token)) { + if (!input.trySkipNullValue()) { + input.readString(token); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + input.readString(uid); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594623: { + if (input.isAtField(FieldNames.unk1)) { + if (!input.trySkipNullValue()) { + input.readString(unk1); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerGetTokenCsReq clone() { + return new PlayerGetTokenCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerGetTokenCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerGetTokenCsReq(), data).checkInitialized(); + } + + public static PlayerGetTokenCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerGetTokenCsReq(), input).checkInitialized(); + } + + public static PlayerGetTokenCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerGetTokenCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerGetTokenCsReq messages + */ + public static MessageFactory getFactory() { + return PlayerGetTokenCsReqFactory.INSTANCE; + } + + private enum PlayerGetTokenCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerGetTokenCsReq create() { + return PlayerGetTokenCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kDPMIEPJMLN = FieldName.forField("KDPMIEPJMLN"); + + static final FieldName token = FieldName.forField("token"); + + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName unk1 = FieldName.forField("unk1"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java new file mode 100644 index 0000000..17e007f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java @@ -0,0 +1,632 @@ +// 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.Utf8String; + +public final class PlayerGetTokenScRspOuterClass { + /** + * Protobuf type {@code PlayerGetTokenScRsp} + */ + public static final class PlayerGetTokenScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 secret_key_seed = 7; + */ + private long secretKeySeed; + + /** + * optional uint32 uid = 1; + */ + private int uid; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional .BlackInfo black_info = 2; + */ + private final BlackInfoOuterClass.BlackInfo blackInfo = BlackInfoOuterClass.BlackInfo.newInstance(); + + /** + * optional string msg = 8; + */ + private final Utf8String msg = Utf8String.newEmptyInstance(); + + private PlayerGetTokenScRsp() { + } + + /** + * @return a new empty instance of {@code PlayerGetTokenScRsp} + */ + public static PlayerGetTokenScRsp newInstance() { + return new PlayerGetTokenScRsp(); + } + + /** + * optional uint64 secret_key_seed = 7; + * @return whether the secretKeySeed field is set + */ + public boolean hasSecretKeySeed() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 secret_key_seed = 7; + * @return this + */ + public PlayerGetTokenScRsp clearSecretKeySeed() { + bitField0_ &= ~0x00000001; + secretKeySeed = 0L; + return this; + } + + /** + * optional uint64 secret_key_seed = 7; + * @return the secretKeySeed + */ + public long getSecretKeySeed() { + return secretKeySeed; + } + + /** + * optional uint64 secret_key_seed = 7; + * @param value the secretKeySeed to set + * @return this + */ + public PlayerGetTokenScRsp setSecretKeySeed(final long value) { + bitField0_ |= 0x00000001; + secretKeySeed = value; + return this; + } + + /** + * optional uint32 uid = 1; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 uid = 1; + * @return this + */ + public PlayerGetTokenScRsp clearUid() { + bitField0_ &= ~0x00000002; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 1; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 1; + * @param value the uid to set + * @return this + */ + public PlayerGetTokenScRsp setUid(final int value) { + bitField0_ |= 0x00000002; + uid = value; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public PlayerGetTokenScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public PlayerGetTokenScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional .BlackInfo black_info = 2; + * @return whether the blackInfo field is set + */ + public boolean hasBlackInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .BlackInfo black_info = 2; + * @return this + */ + public PlayerGetTokenScRsp clearBlackInfo() { + bitField0_ &= ~0x00000008; + blackInfo.clear(); + return this; + } + + /** + * optional .BlackInfo black_info = 2; + * + * 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 #getMutableBlackInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public BlackInfoOuterClass.BlackInfo getBlackInfo() { + return blackInfo; + } + + /** + * optional .BlackInfo black_info = 2; + * + * 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 BlackInfoOuterClass.BlackInfo getMutableBlackInfo() { + bitField0_ |= 0x00000008; + return blackInfo; + } + + /** + * optional .BlackInfo black_info = 2; + * @param value the blackInfo to set + * @return this + */ + public PlayerGetTokenScRsp setBlackInfo(final BlackInfoOuterClass.BlackInfo value) { + bitField0_ |= 0x00000008; + blackInfo.copyFrom(value); + return this; + } + + /** + * optional string msg = 8; + * @return whether the msg field is set + */ + public boolean hasMsg() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional string msg = 8; + * @return this + */ + public PlayerGetTokenScRsp clearMsg() { + bitField0_ &= ~0x00000010; + msg.clear(); + return this; + } + + /** + * optional string msg = 8; + * @return the msg + */ + public String getMsg() { + return msg.getString(); + } + + /** + * optional string msg = 8; + * @return internal {@code Utf8String} representation of msg for reading + */ + public Utf8String getMsgBytes() { + return this.msg; + } + + /** + * optional string msg = 8; + * @return internal {@code Utf8String} representation of msg for modifications + */ + public Utf8String getMutableMsgBytes() { + bitField0_ |= 0x00000010; + return this.msg; + } + + /** + * optional string msg = 8; + * @param value the msg to set + * @return this + */ + public PlayerGetTokenScRsp setMsg(final CharSequence value) { + bitField0_ |= 0x00000010; + msg.copyFrom(value); + return this; + } + + /** + * optional string msg = 8; + * @param value the msg to set + * @return this + */ + public PlayerGetTokenScRsp setMsg(final Utf8String value) { + bitField0_ |= 0x00000010; + msg.copyFrom(value); + return this; + } + + @Override + public PlayerGetTokenScRsp copyFrom(final PlayerGetTokenScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + secretKeySeed = other.secretKeySeed; + uid = other.uid; + retcode = other.retcode; + blackInfo.copyFrom(other.blackInfo); + msg.copyFrom(other.msg); + } + return this; + } + + @Override + public PlayerGetTokenScRsp mergeFrom(final PlayerGetTokenScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSecretKeySeed()) { + setSecretKeySeed(other.secretKeySeed); + } + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBlackInfo()) { + getMutableBlackInfo().mergeFrom(other.blackInfo); + } + if (other.hasMsg()) { + getMutableMsgBytes().copyFrom(other.msg); + } + return this; + } + + @Override + public PlayerGetTokenScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + secretKeySeed = 0L; + uid = 0; + retcode = 0; + blackInfo.clear(); + msg.clear(); + return this; + } + + @Override + public PlayerGetTokenScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + blackInfo.clearQuick(); + msg.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerGetTokenScRsp)) { + return false; + } + PlayerGetTokenScRsp other = (PlayerGetTokenScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasSecretKeySeed() || secretKeySeed == other.secretKeySeed) + && (!hasUid() || uid == other.uid) + && (!hasRetcode() || retcode == other.retcode) + && (!hasBlackInfo() || blackInfo.equals(other.blackInfo)) + && (!hasMsg() || msg.equals(other.msg)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt64NoTag(secretKeySeed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(blackInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 66); + output.writeStringNoTag(msg); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(secretKeySeed); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(blackInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(msg); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerGetTokenScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // secretKeySeed + secretKeySeed = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // blackInfo + input.readMessage(blackInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // msg + input.readString(msg); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.secretKeySeed, secretKeySeed); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.blackInfo, blackInfo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeString(FieldNames.msg, msg); + } + output.endObject(); + } + + @Override + public PlayerGetTokenScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1321008288: + case -1231194880: { + if (input.isAtField(FieldNames.secretKeySeed)) { + if (!input.trySkipNullValue()) { + secretKeySeed = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1331974477: + case -1638288146: { + if (input.isAtField(FieldNames.blackInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(blackInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 108417: { + if (input.isAtField(FieldNames.msg)) { + if (!input.trySkipNullValue()) { + input.readString(msg); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerGetTokenScRsp clone() { + return new PlayerGetTokenScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerGetTokenScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerGetTokenScRsp(), data).checkInitialized(); + } + + public static PlayerGetTokenScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerGetTokenScRsp(), input).checkInitialized(); + } + + public static PlayerGetTokenScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerGetTokenScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerGetTokenScRsp messages + */ + public static MessageFactory getFactory() { + return PlayerGetTokenScRspFactory.INSTANCE; + } + + private enum PlayerGetTokenScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerGetTokenScRsp create() { + return PlayerGetTokenScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName secretKeySeed = FieldName.forField("secretKeySeed", "secret_key_seed"); + + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName blackInfo = FieldName.forField("blackInfo", "black_info"); + + static final FieldName msg = FieldName.forField("msg"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java new file mode 100644 index 0000000..832811e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java @@ -0,0 +1,443 @@ +// 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 PlayerHeartbeatCsReqOuterClass { + /** + * Protobuf type {@code PlayerHeartbeatCsReq} + */ + public static final class PlayerHeartbeatCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 client_time_ms = 3; + */ + private long clientTimeMs; + + /** + * optional uint32 DCLHJDKBBAK = 6; + */ + private int dCLHJDKBBAK; + + /** + * optional .ClientUploadData upload_data = 10; + */ + private final ClientUploadDataOuterClass.ClientUploadData uploadData = ClientUploadDataOuterClass.ClientUploadData.newInstance(); + + private PlayerHeartbeatCsReq() { + } + + /** + * @return a new empty instance of {@code PlayerHeartbeatCsReq} + */ + public static PlayerHeartbeatCsReq newInstance() { + return new PlayerHeartbeatCsReq(); + } + + /** + * optional uint64 client_time_ms = 3; + * @return whether the clientTimeMs field is set + */ + public boolean hasClientTimeMs() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 client_time_ms = 3; + * @return this + */ + public PlayerHeartbeatCsReq clearClientTimeMs() { + bitField0_ &= ~0x00000001; + clientTimeMs = 0L; + return this; + } + + /** + * optional uint64 client_time_ms = 3; + * @return the clientTimeMs + */ + public long getClientTimeMs() { + return clientTimeMs; + } + + /** + * optional uint64 client_time_ms = 3; + * @param value the clientTimeMs to set + * @return this + */ + public PlayerHeartbeatCsReq setClientTimeMs(final long value) { + bitField0_ |= 0x00000001; + clientTimeMs = value; + return this; + } + + /** + * optional uint32 DCLHJDKBBAK = 6; + * @return whether the dCLHJDKBBAK field is set + */ + public boolean hasDCLHJDKBBAK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DCLHJDKBBAK = 6; + * @return this + */ + public PlayerHeartbeatCsReq clearDCLHJDKBBAK() { + bitField0_ &= ~0x00000002; + dCLHJDKBBAK = 0; + return this; + } + + /** + * optional uint32 DCLHJDKBBAK = 6; + * @return the dCLHJDKBBAK + */ + public int getDCLHJDKBBAK() { + return dCLHJDKBBAK; + } + + /** + * optional uint32 DCLHJDKBBAK = 6; + * @param value the dCLHJDKBBAK to set + * @return this + */ + public PlayerHeartbeatCsReq setDCLHJDKBBAK(final int value) { + bitField0_ |= 0x00000002; + dCLHJDKBBAK = value; + return this; + } + + /** + * optional .ClientUploadData upload_data = 10; + * @return whether the uploadData field is set + */ + public boolean hasUploadData() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ClientUploadData upload_data = 10; + * @return this + */ + public PlayerHeartbeatCsReq clearUploadData() { + bitField0_ &= ~0x00000004; + uploadData.clear(); + return this; + } + + /** + * optional .ClientUploadData upload_data = 10; + * + * 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 #getMutableUploadData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ClientUploadDataOuterClass.ClientUploadData getUploadData() { + return uploadData; + } + + /** + * optional .ClientUploadData upload_data = 10; + * + * 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 ClientUploadDataOuterClass.ClientUploadData getMutableUploadData() { + bitField0_ |= 0x00000004; + return uploadData; + } + + /** + * optional .ClientUploadData upload_data = 10; + * @param value the uploadData to set + * @return this + */ + public PlayerHeartbeatCsReq setUploadData( + final ClientUploadDataOuterClass.ClientUploadData value) { + bitField0_ |= 0x00000004; + uploadData.copyFrom(value); + return this; + } + + @Override + public PlayerHeartbeatCsReq copyFrom(final PlayerHeartbeatCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + clientTimeMs = other.clientTimeMs; + dCLHJDKBBAK = other.dCLHJDKBBAK; + uploadData.copyFrom(other.uploadData); + } + return this; + } + + @Override + public PlayerHeartbeatCsReq mergeFrom(final PlayerHeartbeatCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasClientTimeMs()) { + setClientTimeMs(other.clientTimeMs); + } + if (other.hasDCLHJDKBBAK()) { + setDCLHJDKBBAK(other.dCLHJDKBBAK); + } + if (other.hasUploadData()) { + getMutableUploadData().mergeFrom(other.uploadData); + } + return this; + } + + @Override + public PlayerHeartbeatCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + clientTimeMs = 0L; + dCLHJDKBBAK = 0; + uploadData.clear(); + return this; + } + + @Override + public PlayerHeartbeatCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uploadData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerHeartbeatCsReq)) { + return false; + } + PlayerHeartbeatCsReq other = (PlayerHeartbeatCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs) + && (!hasDCLHJDKBBAK() || dCLHJDKBBAK == other.dCLHJDKBBAK) + && (!hasUploadData() || uploadData.equals(other.uploadData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt64NoTag(clientTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(dCLHJDKBBAK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(uploadData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(clientTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dCLHJDKBBAK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(uploadData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerHeartbeatCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // clientTimeMs + clientTimeMs = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // dCLHJDKBBAK + dCLHJDKBBAK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // uploadData + input.readMessage(uploadData); + 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.writeUInt64(FieldNames.clientTimeMs, clientTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dCLHJDKBBAK, dCLHJDKBBAK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.uploadData, uploadData); + } + output.endObject(); + } + + @Override + public PlayerHeartbeatCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1414301442: + case 1123200996: { + if (input.isAtField(FieldNames.clientTimeMs)) { + if (!input.trySkipNullValue()) { + clientTimeMs = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2054436768: { + if (input.isAtField(FieldNames.dCLHJDKBBAK)) { + if (!input.trySkipNullValue()) { + dCLHJDKBBAK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -243562165: + case 1064514344: { + if (input.isAtField(FieldNames.uploadData)) { + if (!input.trySkipNullValue()) { + input.readMessage(uploadData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerHeartbeatCsReq clone() { + return new PlayerHeartbeatCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerHeartbeatCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerHeartbeatCsReq(), data).checkInitialized(); + } + + public static PlayerHeartbeatCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartbeatCsReq(), input).checkInitialized(); + } + + public static PlayerHeartbeatCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartbeatCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerHeartbeatCsReq messages + */ + public static MessageFactory getFactory() { + return PlayerHeartbeatCsReqFactory.INSTANCE; + } + + private enum PlayerHeartbeatCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerHeartbeatCsReq create() { + return PlayerHeartbeatCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName clientTimeMs = FieldName.forField("clientTimeMs", "client_time_ms"); + + static final FieldName dCLHJDKBBAK = FieldName.forField("DCLHJDKBBAK"); + + static final FieldName uploadData = FieldName.forField("uploadData", "upload_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java new file mode 100644 index 0000000..30c9fbf --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java @@ -0,0 +1,421 @@ +// 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 PlayerHeartbeatScRspOuterClass { + /** + * Protobuf type {@code PlayerHeartbeatScRsp} + */ + public static final class PlayerHeartbeatScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 server_time_ms = 4; + */ + private long serverTimeMs; + + /** + * optional uint64 client_time_ms = 10; + */ + private long clientTimeMs; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + private PlayerHeartbeatScRsp() { + } + + /** + * @return a new empty instance of {@code PlayerHeartbeatScRsp} + */ + public static PlayerHeartbeatScRsp newInstance() { + return new PlayerHeartbeatScRsp(); + } + + /** + * optional uint64 server_time_ms = 4; + * @return whether the serverTimeMs field is set + */ + public boolean hasServerTimeMs() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 server_time_ms = 4; + * @return this + */ + public PlayerHeartbeatScRsp clearServerTimeMs() { + bitField0_ &= ~0x00000001; + serverTimeMs = 0L; + return this; + } + + /** + * optional uint64 server_time_ms = 4; + * @return the serverTimeMs + */ + public long getServerTimeMs() { + return serverTimeMs; + } + + /** + * optional uint64 server_time_ms = 4; + * @param value the serverTimeMs to set + * @return this + */ + public PlayerHeartbeatScRsp setServerTimeMs(final long value) { + bitField0_ |= 0x00000001; + serverTimeMs = value; + return this; + } + + /** + * optional uint64 client_time_ms = 10; + * @return whether the clientTimeMs field is set + */ + public boolean hasClientTimeMs() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 client_time_ms = 10; + * @return this + */ + public PlayerHeartbeatScRsp clearClientTimeMs() { + bitField0_ &= ~0x00000002; + clientTimeMs = 0L; + return this; + } + + /** + * optional uint64 client_time_ms = 10; + * @return the clientTimeMs + */ + public long getClientTimeMs() { + return clientTimeMs; + } + + /** + * optional uint64 client_time_ms = 10; + * @param value the clientTimeMs to set + * @return this + */ + public PlayerHeartbeatScRsp setClientTimeMs(final long value) { + bitField0_ |= 0x00000002; + clientTimeMs = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public PlayerHeartbeatScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public PlayerHeartbeatScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + @Override + public PlayerHeartbeatScRsp copyFrom(final PlayerHeartbeatScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + serverTimeMs = other.serverTimeMs; + clientTimeMs = other.clientTimeMs; + retcode = other.retcode; + } + return this; + } + + @Override + public PlayerHeartbeatScRsp mergeFrom(final PlayerHeartbeatScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasServerTimeMs()) { + setServerTimeMs(other.serverTimeMs); + } + if (other.hasClientTimeMs()) { + setClientTimeMs(other.clientTimeMs); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public PlayerHeartbeatScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + serverTimeMs = 0L; + clientTimeMs = 0L; + retcode = 0; + return this; + } + + @Override + public PlayerHeartbeatScRsp 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 PlayerHeartbeatScRsp)) { + return false; + } + PlayerHeartbeatScRsp other = (PlayerHeartbeatScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasServerTimeMs() || serverTimeMs == other.serverTimeMs) + && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt64NoTag(serverTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt64NoTag(clientTimeMs); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(clientTimeMs); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerHeartbeatScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // serverTimeMs + serverTimeMs = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // clientTimeMs + clientTimeMs = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + 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.writeUInt64(FieldNames.serverTimeMs, serverTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.clientTimeMs, clientTimeMs); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public PlayerHeartbeatScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1928739446: + case 1149956956: { + if (input.isAtField(FieldNames.serverTimeMs)) { + if (!input.trySkipNullValue()) { + serverTimeMs = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1414301442: + case 1123200996: { + if (input.isAtField(FieldNames.clientTimeMs)) { + if (!input.trySkipNullValue()) { + clientTimeMs = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerHeartbeatScRsp clone() { + return new PlayerHeartbeatScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerHeartbeatScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerHeartbeatScRsp(), data).checkInitialized(); + } + + public static PlayerHeartbeatScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartbeatScRsp(), input).checkInitialized(); + } + + public static PlayerHeartbeatScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartbeatScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerHeartbeatScRsp messages + */ + public static MessageFactory getFactory() { + return PlayerHeartbeatScRspFactory.INSTANCE; + } + + private enum PlayerHeartbeatScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerHeartbeatScRsp create() { + return PlayerHeartbeatScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName serverTimeMs = FieldName.forField("serverTimeMs", "server_time_ms"); + + static final FieldName clientTimeMs = FieldName.forField("clientTimeMs", "client_time_ms"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java new file mode 100644 index 0000000..64cefe0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerLoginCsReqOuterClass.java @@ -0,0 +1,2409 @@ +// 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.Utf8String; + +public final class PlayerLoginCsReqOuterClass { + /** + * Protobuf type {@code PlayerLoginCsReq} + */ + public static final class PlayerLoginCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 login_random = 14; + */ + private long loginRandom; + + /** + * optional uint32 JLENABOEECM = 7; + */ + private int jLENABOEECM; + + /** + * optional uint32 OAAJFOGONGI = 9; + */ + private int oAAJFOGONGI; + + /** + * optional uint32 BNFGNMKNEOA = 477; + */ + private int bNFGNMKNEOA; + + /** + * optional uint32 IBHKBLGDODJ = 575; + */ + private int iBHKBLGDODJ; + + /** + * optional .LanguageType FNBLKPBPOBM = 11; + */ + private int fNBLKPBPOBM; + + /** + * optional bool IGNINMLBLHE = 1613; + */ + private boolean iGNINMLBLHE; + + /** + * optional string NPFIJOBDPAH = 1; + */ + private final Utf8String nPFIJOBDPAH = Utf8String.newEmptyInstance(); + + /** + * optional string ELMAEGBLBPG = 2; + */ + private final Utf8String eLMAEGBLBPG = Utf8String.newEmptyInstance(); + + /** + * optional string HPCEBMACCDJ = 3; + */ + private final Utf8String hPCEBMACCDJ = Utf8String.newEmptyInstance(); + + /** + * optional string EAPDBCFMCHA = 4; + */ + private final Utf8String eAPDBCFMCHA = Utf8String.newEmptyInstance(); + + /** + * optional string ALOCHCBPICL = 5; + */ + private final Utf8String aLOCHCBPICL = Utf8String.newEmptyInstance(); + + /** + * optional string CEKCDHBMACL = 6; + */ + private final Utf8String cEKCDHBMACL = Utf8String.newEmptyInstance(); + + /** + * optional string OHFJMKNKDMM = 8; + */ + private final Utf8String oHFJMKNKDMM = Utf8String.newEmptyInstance(); + + /** + * optional string signature = 12; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + /** + * optional string KBHKHHAKPND = 13; + */ + private final Utf8String kBHKHHAKPND = Utf8String.newEmptyInstance(); + + /** + * optional string EEHJKJLLJEH = 15; + */ + private final Utf8String eEHJKJLLJEH = Utf8String.newEmptyInstance(); + + /** + * optional string CHFJJPIKGCA = 80; + */ + private final Utf8String cHFJJPIKGCA = Utf8String.newEmptyInstance(); + + /** + * optional string MCCIDPAOILM = 674; + */ + private final Utf8String mCCIDPAOILM = Utf8String.newEmptyInstance(); + + /** + * optional string BMMMNJEPNKE = 1099; + */ + private final Utf8String bMMMNJEPNKE = Utf8String.newEmptyInstance(); + + /** + * optional string GLABLAACICO = 1526; + */ + private final Utf8String gLABLAACICO = Utf8String.newEmptyInstance(); + + /** + * optional string KBLKKIFHGDP = 1859; + */ + private final Utf8String kBLKKIFHGDP = Utf8String.newEmptyInstance(); + + private PlayerLoginCsReq() { + } + + /** + * @return a new empty instance of {@code PlayerLoginCsReq} + */ + public static PlayerLoginCsReq newInstance() { + return new PlayerLoginCsReq(); + } + + /** + * optional uint64 login_random = 14; + * @return whether the loginRandom field is set + */ + public boolean hasLoginRandom() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 login_random = 14; + * @return this + */ + public PlayerLoginCsReq clearLoginRandom() { + bitField0_ &= ~0x00000001; + loginRandom = 0L; + return this; + } + + /** + * optional uint64 login_random = 14; + * @return the loginRandom + */ + public long getLoginRandom() { + return loginRandom; + } + + /** + * optional uint64 login_random = 14; + * @param value the loginRandom to set + * @return this + */ + public PlayerLoginCsReq setLoginRandom(final long value) { + bitField0_ |= 0x00000001; + loginRandom = value; + return this; + } + + /** + * optional uint32 JLENABOEECM = 7; + * @return whether the jLENABOEECM field is set + */ + public boolean hasJLENABOEECM() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 JLENABOEECM = 7; + * @return this + */ + public PlayerLoginCsReq clearJLENABOEECM() { + bitField0_ &= ~0x00000002; + jLENABOEECM = 0; + return this; + } + + /** + * optional uint32 JLENABOEECM = 7; + * @return the jLENABOEECM + */ + public int getJLENABOEECM() { + return jLENABOEECM; + } + + /** + * optional uint32 JLENABOEECM = 7; + * @param value the jLENABOEECM to set + * @return this + */ + public PlayerLoginCsReq setJLENABOEECM(final int value) { + bitField0_ |= 0x00000002; + jLENABOEECM = value; + return this; + } + + /** + * optional uint32 OAAJFOGONGI = 9; + * @return whether the oAAJFOGONGI field is set + */ + public boolean hasOAAJFOGONGI() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 OAAJFOGONGI = 9; + * @return this + */ + public PlayerLoginCsReq clearOAAJFOGONGI() { + bitField0_ &= ~0x00000004; + oAAJFOGONGI = 0; + return this; + } + + /** + * optional uint32 OAAJFOGONGI = 9; + * @return the oAAJFOGONGI + */ + public int getOAAJFOGONGI() { + return oAAJFOGONGI; + } + + /** + * optional uint32 OAAJFOGONGI = 9; + * @param value the oAAJFOGONGI to set + * @return this + */ + public PlayerLoginCsReq setOAAJFOGONGI(final int value) { + bitField0_ |= 0x00000004; + oAAJFOGONGI = value; + return this; + } + + /** + * optional uint32 BNFGNMKNEOA = 477; + * @return whether the bNFGNMKNEOA field is set + */ + public boolean hasBNFGNMKNEOA() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 BNFGNMKNEOA = 477; + * @return this + */ + public PlayerLoginCsReq clearBNFGNMKNEOA() { + bitField0_ &= ~0x00000008; + bNFGNMKNEOA = 0; + return this; + } + + /** + * optional uint32 BNFGNMKNEOA = 477; + * @return the bNFGNMKNEOA + */ + public int getBNFGNMKNEOA() { + return bNFGNMKNEOA; + } + + /** + * optional uint32 BNFGNMKNEOA = 477; + * @param value the bNFGNMKNEOA to set + * @return this + */ + public PlayerLoginCsReq setBNFGNMKNEOA(final int value) { + bitField0_ |= 0x00000008; + bNFGNMKNEOA = value; + return this; + } + + /** + * optional uint32 IBHKBLGDODJ = 575; + * @return whether the iBHKBLGDODJ field is set + */ + public boolean hasIBHKBLGDODJ() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 IBHKBLGDODJ = 575; + * @return this + */ + public PlayerLoginCsReq clearIBHKBLGDODJ() { + bitField0_ &= ~0x00000010; + iBHKBLGDODJ = 0; + return this; + } + + /** + * optional uint32 IBHKBLGDODJ = 575; + * @return the iBHKBLGDODJ + */ + public int getIBHKBLGDODJ() { + return iBHKBLGDODJ; + } + + /** + * optional uint32 IBHKBLGDODJ = 575; + * @param value the iBHKBLGDODJ to set + * @return this + */ + public PlayerLoginCsReq setIBHKBLGDODJ(final int value) { + bitField0_ |= 0x00000010; + iBHKBLGDODJ = value; + return this; + } + + /** + * optional .LanguageType FNBLKPBPOBM = 11; + * @return whether the fNBLKPBPOBM field is set + */ + public boolean hasFNBLKPBPOBM() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .LanguageType FNBLKPBPOBM = 11; + * @return this + */ + public PlayerLoginCsReq clearFNBLKPBPOBM() { + bitField0_ &= ~0x00000020; + fNBLKPBPOBM = 0; + return this; + } + + /** + * optional .LanguageType FNBLKPBPOBM = 11; + * @return the fNBLKPBPOBM + */ + public LanguageTypeOuterClass.LanguageType getFNBLKPBPOBM() { + return LanguageTypeOuterClass.LanguageType.forNumber(fNBLKPBPOBM); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link PlayerLoginCsReq#getFNBLKPBPOBM()}.getNumber(). + * + * @return numeric wire representation + */ + public int getFNBLKPBPOBMValue() { + return fNBLKPBPOBM; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link LanguageTypeOuterClass.LanguageType}. Setting an invalid value + * can cause {@link PlayerLoginCsReq#getFNBLKPBPOBM()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public PlayerLoginCsReq setFNBLKPBPOBMValue(final int value) { + bitField0_ |= 0x00000020; + fNBLKPBPOBM = value; + return this; + } + + /** + * optional .LanguageType FNBLKPBPOBM = 11; + * @param value the fNBLKPBPOBM to set + * @return this + */ + public PlayerLoginCsReq setFNBLKPBPOBM(final LanguageTypeOuterClass.LanguageType value) { + bitField0_ |= 0x00000020; + fNBLKPBPOBM = value.getNumber(); + return this; + } + + /** + * optional bool IGNINMLBLHE = 1613; + * @return whether the iGNINMLBLHE field is set + */ + public boolean hasIGNINMLBLHE() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool IGNINMLBLHE = 1613; + * @return this + */ + public PlayerLoginCsReq clearIGNINMLBLHE() { + bitField0_ &= ~0x00000040; + iGNINMLBLHE = false; + return this; + } + + /** + * optional bool IGNINMLBLHE = 1613; + * @return the iGNINMLBLHE + */ + public boolean getIGNINMLBLHE() { + return iGNINMLBLHE; + } + + /** + * optional bool IGNINMLBLHE = 1613; + * @param value the iGNINMLBLHE to set + * @return this + */ + public PlayerLoginCsReq setIGNINMLBLHE(final boolean value) { + bitField0_ |= 0x00000040; + iGNINMLBLHE = value; + return this; + } + + /** + * optional string NPFIJOBDPAH = 1; + * @return whether the nPFIJOBDPAH field is set + */ + public boolean hasNPFIJOBDPAH() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string NPFIJOBDPAH = 1; + * @return this + */ + public PlayerLoginCsReq clearNPFIJOBDPAH() { + bitField0_ &= ~0x00000080; + nPFIJOBDPAH.clear(); + return this; + } + + /** + * optional string NPFIJOBDPAH = 1; + * @return the nPFIJOBDPAH + */ + public String getNPFIJOBDPAH() { + return nPFIJOBDPAH.getString(); + } + + /** + * optional string NPFIJOBDPAH = 1; + * @return internal {@code Utf8String} representation of nPFIJOBDPAH for reading + */ + public Utf8String getNPFIJOBDPAHBytes() { + return this.nPFIJOBDPAH; + } + + /** + * optional string NPFIJOBDPAH = 1; + * @return internal {@code Utf8String} representation of nPFIJOBDPAH for modifications + */ + public Utf8String getMutableNPFIJOBDPAHBytes() { + bitField0_ |= 0x00000080; + return this.nPFIJOBDPAH; + } + + /** + * optional string NPFIJOBDPAH = 1; + * @param value the nPFIJOBDPAH to set + * @return this + */ + public PlayerLoginCsReq setNPFIJOBDPAH(final CharSequence value) { + bitField0_ |= 0x00000080; + nPFIJOBDPAH.copyFrom(value); + return this; + } + + /** + * optional string NPFIJOBDPAH = 1; + * @param value the nPFIJOBDPAH to set + * @return this + */ + public PlayerLoginCsReq setNPFIJOBDPAH(final Utf8String value) { + bitField0_ |= 0x00000080; + nPFIJOBDPAH.copyFrom(value); + return this; + } + + /** + * optional string ELMAEGBLBPG = 2; + * @return whether the eLMAEGBLBPG field is set + */ + public boolean hasELMAEGBLBPG() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional string ELMAEGBLBPG = 2; + * @return this + */ + public PlayerLoginCsReq clearELMAEGBLBPG() { + bitField0_ &= ~0x00000100; + eLMAEGBLBPG.clear(); + return this; + } + + /** + * optional string ELMAEGBLBPG = 2; + * @return the eLMAEGBLBPG + */ + public String getELMAEGBLBPG() { + return eLMAEGBLBPG.getString(); + } + + /** + * optional string ELMAEGBLBPG = 2; + * @return internal {@code Utf8String} representation of eLMAEGBLBPG for reading + */ + public Utf8String getELMAEGBLBPGBytes() { + return this.eLMAEGBLBPG; + } + + /** + * optional string ELMAEGBLBPG = 2; + * @return internal {@code Utf8String} representation of eLMAEGBLBPG for modifications + */ + public Utf8String getMutableELMAEGBLBPGBytes() { + bitField0_ |= 0x00000100; + return this.eLMAEGBLBPG; + } + + /** + * optional string ELMAEGBLBPG = 2; + * @param value the eLMAEGBLBPG to set + * @return this + */ + public PlayerLoginCsReq setELMAEGBLBPG(final CharSequence value) { + bitField0_ |= 0x00000100; + eLMAEGBLBPG.copyFrom(value); + return this; + } + + /** + * optional string ELMAEGBLBPG = 2; + * @param value the eLMAEGBLBPG to set + * @return this + */ + public PlayerLoginCsReq setELMAEGBLBPG(final Utf8String value) { + bitField0_ |= 0x00000100; + eLMAEGBLBPG.copyFrom(value); + return this; + } + + /** + * optional string HPCEBMACCDJ = 3; + * @return whether the hPCEBMACCDJ field is set + */ + public boolean hasHPCEBMACCDJ() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string HPCEBMACCDJ = 3; + * @return this + */ + public PlayerLoginCsReq clearHPCEBMACCDJ() { + bitField0_ &= ~0x00000200; + hPCEBMACCDJ.clear(); + return this; + } + + /** + * optional string HPCEBMACCDJ = 3; + * @return the hPCEBMACCDJ + */ + public String getHPCEBMACCDJ() { + return hPCEBMACCDJ.getString(); + } + + /** + * optional string HPCEBMACCDJ = 3; + * @return internal {@code Utf8String} representation of hPCEBMACCDJ for reading + */ + public Utf8String getHPCEBMACCDJBytes() { + return this.hPCEBMACCDJ; + } + + /** + * optional string HPCEBMACCDJ = 3; + * @return internal {@code Utf8String} representation of hPCEBMACCDJ for modifications + */ + public Utf8String getMutableHPCEBMACCDJBytes() { + bitField0_ |= 0x00000200; + return this.hPCEBMACCDJ; + } + + /** + * optional string HPCEBMACCDJ = 3; + * @param value the hPCEBMACCDJ to set + * @return this + */ + public PlayerLoginCsReq setHPCEBMACCDJ(final CharSequence value) { + bitField0_ |= 0x00000200; + hPCEBMACCDJ.copyFrom(value); + return this; + } + + /** + * optional string HPCEBMACCDJ = 3; + * @param value the hPCEBMACCDJ to set + * @return this + */ + public PlayerLoginCsReq setHPCEBMACCDJ(final Utf8String value) { + bitField0_ |= 0x00000200; + hPCEBMACCDJ.copyFrom(value); + return this; + } + + /** + * optional string EAPDBCFMCHA = 4; + * @return whether the eAPDBCFMCHA field is set + */ + public boolean hasEAPDBCFMCHA() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional string EAPDBCFMCHA = 4; + * @return this + */ + public PlayerLoginCsReq clearEAPDBCFMCHA() { + bitField0_ &= ~0x00000400; + eAPDBCFMCHA.clear(); + return this; + } + + /** + * optional string EAPDBCFMCHA = 4; + * @return the eAPDBCFMCHA + */ + public String getEAPDBCFMCHA() { + return eAPDBCFMCHA.getString(); + } + + /** + * optional string EAPDBCFMCHA = 4; + * @return internal {@code Utf8String} representation of eAPDBCFMCHA for reading + */ + public Utf8String getEAPDBCFMCHABytes() { + return this.eAPDBCFMCHA; + } + + /** + * optional string EAPDBCFMCHA = 4; + * @return internal {@code Utf8String} representation of eAPDBCFMCHA for modifications + */ + public Utf8String getMutableEAPDBCFMCHABytes() { + bitField0_ |= 0x00000400; + return this.eAPDBCFMCHA; + } + + /** + * optional string EAPDBCFMCHA = 4; + * @param value the eAPDBCFMCHA to set + * @return this + */ + public PlayerLoginCsReq setEAPDBCFMCHA(final CharSequence value) { + bitField0_ |= 0x00000400; + eAPDBCFMCHA.copyFrom(value); + return this; + } + + /** + * optional string EAPDBCFMCHA = 4; + * @param value the eAPDBCFMCHA to set + * @return this + */ + public PlayerLoginCsReq setEAPDBCFMCHA(final Utf8String value) { + bitField0_ |= 0x00000400; + eAPDBCFMCHA.copyFrom(value); + return this; + } + + /** + * optional string ALOCHCBPICL = 5; + * @return whether the aLOCHCBPICL field is set + */ + public boolean hasALOCHCBPICL() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional string ALOCHCBPICL = 5; + * @return this + */ + public PlayerLoginCsReq clearALOCHCBPICL() { + bitField0_ &= ~0x00000800; + aLOCHCBPICL.clear(); + return this; + } + + /** + * optional string ALOCHCBPICL = 5; + * @return the aLOCHCBPICL + */ + public String getALOCHCBPICL() { + return aLOCHCBPICL.getString(); + } + + /** + * optional string ALOCHCBPICL = 5; + * @return internal {@code Utf8String} representation of aLOCHCBPICL for reading + */ + public Utf8String getALOCHCBPICLBytes() { + return this.aLOCHCBPICL; + } + + /** + * optional string ALOCHCBPICL = 5; + * @return internal {@code Utf8String} representation of aLOCHCBPICL for modifications + */ + public Utf8String getMutableALOCHCBPICLBytes() { + bitField0_ |= 0x00000800; + return this.aLOCHCBPICL; + } + + /** + * optional string ALOCHCBPICL = 5; + * @param value the aLOCHCBPICL to set + * @return this + */ + public PlayerLoginCsReq setALOCHCBPICL(final CharSequence value) { + bitField0_ |= 0x00000800; + aLOCHCBPICL.copyFrom(value); + return this; + } + + /** + * optional string ALOCHCBPICL = 5; + * @param value the aLOCHCBPICL to set + * @return this + */ + public PlayerLoginCsReq setALOCHCBPICL(final Utf8String value) { + bitField0_ |= 0x00000800; + aLOCHCBPICL.copyFrom(value); + return this; + } + + /** + * optional string CEKCDHBMACL = 6; + * @return whether the cEKCDHBMACL field is set + */ + public boolean hasCEKCDHBMACL() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string CEKCDHBMACL = 6; + * @return this + */ + public PlayerLoginCsReq clearCEKCDHBMACL() { + bitField0_ &= ~0x00001000; + cEKCDHBMACL.clear(); + return this; + } + + /** + * optional string CEKCDHBMACL = 6; + * @return the cEKCDHBMACL + */ + public String getCEKCDHBMACL() { + return cEKCDHBMACL.getString(); + } + + /** + * optional string CEKCDHBMACL = 6; + * @return internal {@code Utf8String} representation of cEKCDHBMACL for reading + */ + public Utf8String getCEKCDHBMACLBytes() { + return this.cEKCDHBMACL; + } + + /** + * optional string CEKCDHBMACL = 6; + * @return internal {@code Utf8String} representation of cEKCDHBMACL for modifications + */ + public Utf8String getMutableCEKCDHBMACLBytes() { + bitField0_ |= 0x00001000; + return this.cEKCDHBMACL; + } + + /** + * optional string CEKCDHBMACL = 6; + * @param value the cEKCDHBMACL to set + * @return this + */ + public PlayerLoginCsReq setCEKCDHBMACL(final CharSequence value) { + bitField0_ |= 0x00001000; + cEKCDHBMACL.copyFrom(value); + return this; + } + + /** + * optional string CEKCDHBMACL = 6; + * @param value the cEKCDHBMACL to set + * @return this + */ + public PlayerLoginCsReq setCEKCDHBMACL(final Utf8String value) { + bitField0_ |= 0x00001000; + cEKCDHBMACL.copyFrom(value); + return this; + } + + /** + * optional string OHFJMKNKDMM = 8; + * @return whether the oHFJMKNKDMM field is set + */ + public boolean hasOHFJMKNKDMM() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional string OHFJMKNKDMM = 8; + * @return this + */ + public PlayerLoginCsReq clearOHFJMKNKDMM() { + bitField0_ &= ~0x00002000; + oHFJMKNKDMM.clear(); + return this; + } + + /** + * optional string OHFJMKNKDMM = 8; + * @return the oHFJMKNKDMM + */ + public String getOHFJMKNKDMM() { + return oHFJMKNKDMM.getString(); + } + + /** + * optional string OHFJMKNKDMM = 8; + * @return internal {@code Utf8String} representation of oHFJMKNKDMM for reading + */ + public Utf8String getOHFJMKNKDMMBytes() { + return this.oHFJMKNKDMM; + } + + /** + * optional string OHFJMKNKDMM = 8; + * @return internal {@code Utf8String} representation of oHFJMKNKDMM for modifications + */ + public Utf8String getMutableOHFJMKNKDMMBytes() { + bitField0_ |= 0x00002000; + return this.oHFJMKNKDMM; + } + + /** + * optional string OHFJMKNKDMM = 8; + * @param value the oHFJMKNKDMM to set + * @return this + */ + public PlayerLoginCsReq setOHFJMKNKDMM(final CharSequence value) { + bitField0_ |= 0x00002000; + oHFJMKNKDMM.copyFrom(value); + return this; + } + + /** + * optional string OHFJMKNKDMM = 8; + * @param value the oHFJMKNKDMM to set + * @return this + */ + public PlayerLoginCsReq setOHFJMKNKDMM(final Utf8String value) { + bitField0_ |= 0x00002000; + oHFJMKNKDMM.copyFrom(value); + return this; + } + + /** + * optional string signature = 12; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional string signature = 12; + * @return this + */ + public PlayerLoginCsReq clearSignature() { + bitField0_ &= ~0x00004000; + signature.clear(); + return this; + } + + /** + * optional string signature = 12; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 12; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 12; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00004000; + return this.signature; + } + + /** + * optional string signature = 12; + * @param value the signature to set + * @return this + */ + public PlayerLoginCsReq setSignature(final CharSequence value) { + bitField0_ |= 0x00004000; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 12; + * @param value the signature to set + * @return this + */ + public PlayerLoginCsReq setSignature(final Utf8String value) { + bitField0_ |= 0x00004000; + signature.copyFrom(value); + return this; + } + + /** + * optional string KBHKHHAKPND = 13; + * @return whether the kBHKHHAKPND field is set + */ + public boolean hasKBHKHHAKPND() { + return (bitField0_ & 0x00008000) != 0; + } + + /** + * optional string KBHKHHAKPND = 13; + * @return this + */ + public PlayerLoginCsReq clearKBHKHHAKPND() { + bitField0_ &= ~0x00008000; + kBHKHHAKPND.clear(); + return this; + } + + /** + * optional string KBHKHHAKPND = 13; + * @return the kBHKHHAKPND + */ + public String getKBHKHHAKPND() { + return kBHKHHAKPND.getString(); + } + + /** + * optional string KBHKHHAKPND = 13; + * @return internal {@code Utf8String} representation of kBHKHHAKPND for reading + */ + public Utf8String getKBHKHHAKPNDBytes() { + return this.kBHKHHAKPND; + } + + /** + * optional string KBHKHHAKPND = 13; + * @return internal {@code Utf8String} representation of kBHKHHAKPND for modifications + */ + public Utf8String getMutableKBHKHHAKPNDBytes() { + bitField0_ |= 0x00008000; + return this.kBHKHHAKPND; + } + + /** + * optional string KBHKHHAKPND = 13; + * @param value the kBHKHHAKPND to set + * @return this + */ + public PlayerLoginCsReq setKBHKHHAKPND(final CharSequence value) { + bitField0_ |= 0x00008000; + kBHKHHAKPND.copyFrom(value); + return this; + } + + /** + * optional string KBHKHHAKPND = 13; + * @param value the kBHKHHAKPND to set + * @return this + */ + public PlayerLoginCsReq setKBHKHHAKPND(final Utf8String value) { + bitField0_ |= 0x00008000; + kBHKHHAKPND.copyFrom(value); + return this; + } + + /** + * optional string EEHJKJLLJEH = 15; + * @return whether the eEHJKJLLJEH field is set + */ + public boolean hasEEHJKJLLJEH() { + return (bitField0_ & 0x00010000) != 0; + } + + /** + * optional string EEHJKJLLJEH = 15; + * @return this + */ + public PlayerLoginCsReq clearEEHJKJLLJEH() { + bitField0_ &= ~0x00010000; + eEHJKJLLJEH.clear(); + return this; + } + + /** + * optional string EEHJKJLLJEH = 15; + * @return the eEHJKJLLJEH + */ + public String getEEHJKJLLJEH() { + return eEHJKJLLJEH.getString(); + } + + /** + * optional string EEHJKJLLJEH = 15; + * @return internal {@code Utf8String} representation of eEHJKJLLJEH for reading + */ + public Utf8String getEEHJKJLLJEHBytes() { + return this.eEHJKJLLJEH; + } + + /** + * optional string EEHJKJLLJEH = 15; + * @return internal {@code Utf8String} representation of eEHJKJLLJEH for modifications + */ + public Utf8String getMutableEEHJKJLLJEHBytes() { + bitField0_ |= 0x00010000; + return this.eEHJKJLLJEH; + } + + /** + * optional string EEHJKJLLJEH = 15; + * @param value the eEHJKJLLJEH to set + * @return this + */ + public PlayerLoginCsReq setEEHJKJLLJEH(final CharSequence value) { + bitField0_ |= 0x00010000; + eEHJKJLLJEH.copyFrom(value); + return this; + } + + /** + * optional string EEHJKJLLJEH = 15; + * @param value the eEHJKJLLJEH to set + * @return this + */ + public PlayerLoginCsReq setEEHJKJLLJEH(final Utf8String value) { + bitField0_ |= 0x00010000; + eEHJKJLLJEH.copyFrom(value); + return this; + } + + /** + * optional string CHFJJPIKGCA = 80; + * @return whether the cHFJJPIKGCA field is set + */ + public boolean hasCHFJJPIKGCA() { + return (bitField0_ & 0x00020000) != 0; + } + + /** + * optional string CHFJJPIKGCA = 80; + * @return this + */ + public PlayerLoginCsReq clearCHFJJPIKGCA() { + bitField0_ &= ~0x00020000; + cHFJJPIKGCA.clear(); + return this; + } + + /** + * optional string CHFJJPIKGCA = 80; + * @return the cHFJJPIKGCA + */ + public String getCHFJJPIKGCA() { + return cHFJJPIKGCA.getString(); + } + + /** + * optional string CHFJJPIKGCA = 80; + * @return internal {@code Utf8String} representation of cHFJJPIKGCA for reading + */ + public Utf8String getCHFJJPIKGCABytes() { + return this.cHFJJPIKGCA; + } + + /** + * optional string CHFJJPIKGCA = 80; + * @return internal {@code Utf8String} representation of cHFJJPIKGCA for modifications + */ + public Utf8String getMutableCHFJJPIKGCABytes() { + bitField0_ |= 0x00020000; + return this.cHFJJPIKGCA; + } + + /** + * optional string CHFJJPIKGCA = 80; + * @param value the cHFJJPIKGCA to set + * @return this + */ + public PlayerLoginCsReq setCHFJJPIKGCA(final CharSequence value) { + bitField0_ |= 0x00020000; + cHFJJPIKGCA.copyFrom(value); + return this; + } + + /** + * optional string CHFJJPIKGCA = 80; + * @param value the cHFJJPIKGCA to set + * @return this + */ + public PlayerLoginCsReq setCHFJJPIKGCA(final Utf8String value) { + bitField0_ |= 0x00020000; + cHFJJPIKGCA.copyFrom(value); + return this; + } + + /** + * optional string MCCIDPAOILM = 674; + * @return whether the mCCIDPAOILM field is set + */ + public boolean hasMCCIDPAOILM() { + return (bitField0_ & 0x00040000) != 0; + } + + /** + * optional string MCCIDPAOILM = 674; + * @return this + */ + public PlayerLoginCsReq clearMCCIDPAOILM() { + bitField0_ &= ~0x00040000; + mCCIDPAOILM.clear(); + return this; + } + + /** + * optional string MCCIDPAOILM = 674; + * @return the mCCIDPAOILM + */ + public String getMCCIDPAOILM() { + return mCCIDPAOILM.getString(); + } + + /** + * optional string MCCIDPAOILM = 674; + * @return internal {@code Utf8String} representation of mCCIDPAOILM for reading + */ + public Utf8String getMCCIDPAOILMBytes() { + return this.mCCIDPAOILM; + } + + /** + * optional string MCCIDPAOILM = 674; + * @return internal {@code Utf8String} representation of mCCIDPAOILM for modifications + */ + public Utf8String getMutableMCCIDPAOILMBytes() { + bitField0_ |= 0x00040000; + return this.mCCIDPAOILM; + } + + /** + * optional string MCCIDPAOILM = 674; + * @param value the mCCIDPAOILM to set + * @return this + */ + public PlayerLoginCsReq setMCCIDPAOILM(final CharSequence value) { + bitField0_ |= 0x00040000; + mCCIDPAOILM.copyFrom(value); + return this; + } + + /** + * optional string MCCIDPAOILM = 674; + * @param value the mCCIDPAOILM to set + * @return this + */ + public PlayerLoginCsReq setMCCIDPAOILM(final Utf8String value) { + bitField0_ |= 0x00040000; + mCCIDPAOILM.copyFrom(value); + return this; + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @return whether the bMMMNJEPNKE field is set + */ + public boolean hasBMMMNJEPNKE() { + return (bitField0_ & 0x00080000) != 0; + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @return this + */ + public PlayerLoginCsReq clearBMMMNJEPNKE() { + bitField0_ &= ~0x00080000; + bMMMNJEPNKE.clear(); + return this; + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @return the bMMMNJEPNKE + */ + public String getBMMMNJEPNKE() { + return bMMMNJEPNKE.getString(); + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @return internal {@code Utf8String} representation of bMMMNJEPNKE for reading + */ + public Utf8String getBMMMNJEPNKEBytes() { + return this.bMMMNJEPNKE; + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @return internal {@code Utf8String} representation of bMMMNJEPNKE for modifications + */ + public Utf8String getMutableBMMMNJEPNKEBytes() { + bitField0_ |= 0x00080000; + return this.bMMMNJEPNKE; + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @param value the bMMMNJEPNKE to set + * @return this + */ + public PlayerLoginCsReq setBMMMNJEPNKE(final CharSequence value) { + bitField0_ |= 0x00080000; + bMMMNJEPNKE.copyFrom(value); + return this; + } + + /** + * optional string BMMMNJEPNKE = 1099; + * @param value the bMMMNJEPNKE to set + * @return this + */ + public PlayerLoginCsReq setBMMMNJEPNKE(final Utf8String value) { + bitField0_ |= 0x00080000; + bMMMNJEPNKE.copyFrom(value); + return this; + } + + /** + * optional string GLABLAACICO = 1526; + * @return whether the gLABLAACICO field is set + */ + public boolean hasGLABLAACICO() { + return (bitField0_ & 0x00100000) != 0; + } + + /** + * optional string GLABLAACICO = 1526; + * @return this + */ + public PlayerLoginCsReq clearGLABLAACICO() { + bitField0_ &= ~0x00100000; + gLABLAACICO.clear(); + return this; + } + + /** + * optional string GLABLAACICO = 1526; + * @return the gLABLAACICO + */ + public String getGLABLAACICO() { + return gLABLAACICO.getString(); + } + + /** + * optional string GLABLAACICO = 1526; + * @return internal {@code Utf8String} representation of gLABLAACICO for reading + */ + public Utf8String getGLABLAACICOBytes() { + return this.gLABLAACICO; + } + + /** + * optional string GLABLAACICO = 1526; + * @return internal {@code Utf8String} representation of gLABLAACICO for modifications + */ + public Utf8String getMutableGLABLAACICOBytes() { + bitField0_ |= 0x00100000; + return this.gLABLAACICO; + } + + /** + * optional string GLABLAACICO = 1526; + * @param value the gLABLAACICO to set + * @return this + */ + public PlayerLoginCsReq setGLABLAACICO(final CharSequence value) { + bitField0_ |= 0x00100000; + gLABLAACICO.copyFrom(value); + return this; + } + + /** + * optional string GLABLAACICO = 1526; + * @param value the gLABLAACICO to set + * @return this + */ + public PlayerLoginCsReq setGLABLAACICO(final Utf8String value) { + bitField0_ |= 0x00100000; + gLABLAACICO.copyFrom(value); + return this; + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @return whether the kBLKKIFHGDP field is set + */ + public boolean hasKBLKKIFHGDP() { + return (bitField0_ & 0x00200000) != 0; + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @return this + */ + public PlayerLoginCsReq clearKBLKKIFHGDP() { + bitField0_ &= ~0x00200000; + kBLKKIFHGDP.clear(); + return this; + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @return the kBLKKIFHGDP + */ + public String getKBLKKIFHGDP() { + return kBLKKIFHGDP.getString(); + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @return internal {@code Utf8String} representation of kBLKKIFHGDP for reading + */ + public Utf8String getKBLKKIFHGDPBytes() { + return this.kBLKKIFHGDP; + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @return internal {@code Utf8String} representation of kBLKKIFHGDP for modifications + */ + public Utf8String getMutableKBLKKIFHGDPBytes() { + bitField0_ |= 0x00200000; + return this.kBLKKIFHGDP; + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @param value the kBLKKIFHGDP to set + * @return this + */ + public PlayerLoginCsReq setKBLKKIFHGDP(final CharSequence value) { + bitField0_ |= 0x00200000; + kBLKKIFHGDP.copyFrom(value); + return this; + } + + /** + * optional string KBLKKIFHGDP = 1859; + * @param value the kBLKKIFHGDP to set + * @return this + */ + public PlayerLoginCsReq setKBLKKIFHGDP(final Utf8String value) { + bitField0_ |= 0x00200000; + kBLKKIFHGDP.copyFrom(value); + return this; + } + + @Override + public PlayerLoginCsReq copyFrom(final PlayerLoginCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + loginRandom = other.loginRandom; + jLENABOEECM = other.jLENABOEECM; + oAAJFOGONGI = other.oAAJFOGONGI; + bNFGNMKNEOA = other.bNFGNMKNEOA; + iBHKBLGDODJ = other.iBHKBLGDODJ; + fNBLKPBPOBM = other.fNBLKPBPOBM; + iGNINMLBLHE = other.iGNINMLBLHE; + nPFIJOBDPAH.copyFrom(other.nPFIJOBDPAH); + eLMAEGBLBPG.copyFrom(other.eLMAEGBLBPG); + hPCEBMACCDJ.copyFrom(other.hPCEBMACCDJ); + eAPDBCFMCHA.copyFrom(other.eAPDBCFMCHA); + aLOCHCBPICL.copyFrom(other.aLOCHCBPICL); + cEKCDHBMACL.copyFrom(other.cEKCDHBMACL); + oHFJMKNKDMM.copyFrom(other.oHFJMKNKDMM); + signature.copyFrom(other.signature); + kBHKHHAKPND.copyFrom(other.kBHKHHAKPND); + eEHJKJLLJEH.copyFrom(other.eEHJKJLLJEH); + cHFJJPIKGCA.copyFrom(other.cHFJJPIKGCA); + mCCIDPAOILM.copyFrom(other.mCCIDPAOILM); + bMMMNJEPNKE.copyFrom(other.bMMMNJEPNKE); + gLABLAACICO.copyFrom(other.gLABLAACICO); + kBLKKIFHGDP.copyFrom(other.kBLKKIFHGDP); + } + return this; + } + + @Override + public PlayerLoginCsReq mergeFrom(final PlayerLoginCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLoginRandom()) { + setLoginRandom(other.loginRandom); + } + if (other.hasJLENABOEECM()) { + setJLENABOEECM(other.jLENABOEECM); + } + if (other.hasOAAJFOGONGI()) { + setOAAJFOGONGI(other.oAAJFOGONGI); + } + if (other.hasBNFGNMKNEOA()) { + setBNFGNMKNEOA(other.bNFGNMKNEOA); + } + if (other.hasIBHKBLGDODJ()) { + setIBHKBLGDODJ(other.iBHKBLGDODJ); + } + if (other.hasFNBLKPBPOBM()) { + setFNBLKPBPOBMValue(other.fNBLKPBPOBM); + } + if (other.hasIGNINMLBLHE()) { + setIGNINMLBLHE(other.iGNINMLBLHE); + } + if (other.hasNPFIJOBDPAH()) { + getMutableNPFIJOBDPAHBytes().copyFrom(other.nPFIJOBDPAH); + } + if (other.hasELMAEGBLBPG()) { + getMutableELMAEGBLBPGBytes().copyFrom(other.eLMAEGBLBPG); + } + if (other.hasHPCEBMACCDJ()) { + getMutableHPCEBMACCDJBytes().copyFrom(other.hPCEBMACCDJ); + } + if (other.hasEAPDBCFMCHA()) { + getMutableEAPDBCFMCHABytes().copyFrom(other.eAPDBCFMCHA); + } + if (other.hasALOCHCBPICL()) { + getMutableALOCHCBPICLBytes().copyFrom(other.aLOCHCBPICL); + } + if (other.hasCEKCDHBMACL()) { + getMutableCEKCDHBMACLBytes().copyFrom(other.cEKCDHBMACL); + } + if (other.hasOHFJMKNKDMM()) { + getMutableOHFJMKNKDMMBytes().copyFrom(other.oHFJMKNKDMM); + } + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + if (other.hasKBHKHHAKPND()) { + getMutableKBHKHHAKPNDBytes().copyFrom(other.kBHKHHAKPND); + } + if (other.hasEEHJKJLLJEH()) { + getMutableEEHJKJLLJEHBytes().copyFrom(other.eEHJKJLLJEH); + } + if (other.hasCHFJJPIKGCA()) { + getMutableCHFJJPIKGCABytes().copyFrom(other.cHFJJPIKGCA); + } + if (other.hasMCCIDPAOILM()) { + getMutableMCCIDPAOILMBytes().copyFrom(other.mCCIDPAOILM); + } + if (other.hasBMMMNJEPNKE()) { + getMutableBMMMNJEPNKEBytes().copyFrom(other.bMMMNJEPNKE); + } + if (other.hasGLABLAACICO()) { + getMutableGLABLAACICOBytes().copyFrom(other.gLABLAACICO); + } + if (other.hasKBLKKIFHGDP()) { + getMutableKBLKKIFHGDPBytes().copyFrom(other.kBLKKIFHGDP); + } + return this; + } + + @Override + public PlayerLoginCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + loginRandom = 0L; + jLENABOEECM = 0; + oAAJFOGONGI = 0; + bNFGNMKNEOA = 0; + iBHKBLGDODJ = 0; + fNBLKPBPOBM = 0; + iGNINMLBLHE = false; + nPFIJOBDPAH.clear(); + eLMAEGBLBPG.clear(); + hPCEBMACCDJ.clear(); + eAPDBCFMCHA.clear(); + aLOCHCBPICL.clear(); + cEKCDHBMACL.clear(); + oHFJMKNKDMM.clear(); + signature.clear(); + kBHKHHAKPND.clear(); + eEHJKJLLJEH.clear(); + cHFJJPIKGCA.clear(); + mCCIDPAOILM.clear(); + bMMMNJEPNKE.clear(); + gLABLAACICO.clear(); + kBLKKIFHGDP.clear(); + return this; + } + + @Override + public PlayerLoginCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nPFIJOBDPAH.clear(); + eLMAEGBLBPG.clear(); + hPCEBMACCDJ.clear(); + eAPDBCFMCHA.clear(); + aLOCHCBPICL.clear(); + cEKCDHBMACL.clear(); + oHFJMKNKDMM.clear(); + signature.clear(); + kBHKHHAKPND.clear(); + eEHJKJLLJEH.clear(); + cHFJJPIKGCA.clear(); + mCCIDPAOILM.clear(); + bMMMNJEPNKE.clear(); + gLABLAACICO.clear(); + kBLKKIFHGDP.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerLoginCsReq)) { + return false; + } + PlayerLoginCsReq other = (PlayerLoginCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasLoginRandom() || loginRandom == other.loginRandom) + && (!hasJLENABOEECM() || jLENABOEECM == other.jLENABOEECM) + && (!hasOAAJFOGONGI() || oAAJFOGONGI == other.oAAJFOGONGI) + && (!hasBNFGNMKNEOA() || bNFGNMKNEOA == other.bNFGNMKNEOA) + && (!hasIBHKBLGDODJ() || iBHKBLGDODJ == other.iBHKBLGDODJ) + && (!hasFNBLKPBPOBM() || fNBLKPBPOBM == other.fNBLKPBPOBM) + && (!hasIGNINMLBLHE() || iGNINMLBLHE == other.iGNINMLBLHE) + && (!hasNPFIJOBDPAH() || nPFIJOBDPAH.equals(other.nPFIJOBDPAH)) + && (!hasELMAEGBLBPG() || eLMAEGBLBPG.equals(other.eLMAEGBLBPG)) + && (!hasHPCEBMACCDJ() || hPCEBMACCDJ.equals(other.hPCEBMACCDJ)) + && (!hasEAPDBCFMCHA() || eAPDBCFMCHA.equals(other.eAPDBCFMCHA)) + && (!hasALOCHCBPICL() || aLOCHCBPICL.equals(other.aLOCHCBPICL)) + && (!hasCEKCDHBMACL() || cEKCDHBMACL.equals(other.cEKCDHBMACL)) + && (!hasOHFJMKNKDMM() || oHFJMKNKDMM.equals(other.oHFJMKNKDMM)) + && (!hasSignature() || signature.equals(other.signature)) + && (!hasKBHKHHAKPND() || kBHKHHAKPND.equals(other.kBHKHHAKPND)) + && (!hasEEHJKJLLJEH() || eEHJKJLLJEH.equals(other.eEHJKJLLJEH)) + && (!hasCHFJJPIKGCA() || cHFJJPIKGCA.equals(other.cHFJJPIKGCA)) + && (!hasMCCIDPAOILM() || mCCIDPAOILM.equals(other.mCCIDPAOILM)) + && (!hasBMMMNJEPNKE() || bMMMNJEPNKE.equals(other.bMMMNJEPNKE)) + && (!hasGLABLAACICO() || gLABLAACICO.equals(other.gLABLAACICO)) + && (!hasKBLKKIFHGDP() || kBLKKIFHGDP.equals(other.kBLKKIFHGDP)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt64NoTag(loginRandom); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(jLENABOEECM); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(oAAJFOGONGI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 7656); + output.writeUInt32NoTag(bNFGNMKNEOA); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 9208); + output.writeUInt32NoTag(iBHKBLGDODJ); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 88); + output.writeEnumNoTag(fNBLKPBPOBM); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 25832); + output.writeBoolNoTag(iGNINMLBLHE); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(nPFIJOBDPAH); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(eLMAEGBLBPG); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(hPCEBMACCDJ); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(eAPDBCFMCHA); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(aLOCHCBPICL); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(cEKCDHBMACL); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 66); + output.writeStringNoTag(oHFJMKNKDMM); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawByte((byte) 98); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeRawByte((byte) 106); + output.writeStringNoTag(kBHKHHAKPND); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeRawByte((byte) 122); + output.writeStringNoTag(eEHJKJLLJEH); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeRawLittleEndian16((short) 1410); + output.writeStringNoTag(cHFJJPIKGCA); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeRawLittleEndian16((short) 10898); + output.writeStringNoTag(mCCIDPAOILM); + } + if ((bitField0_ & 0x00080000) != 0) { + output.writeRawLittleEndian16((short) 17626); + output.writeStringNoTag(bMMMNJEPNKE); + } + if ((bitField0_ & 0x00100000) != 0) { + output.writeRawLittleEndian16((short) 24498); + output.writeStringNoTag(gLABLAACICO); + } + if ((bitField0_ & 0x00200000) != 0) { + output.writeRawLittleEndian16((short) 29850); + output.writeStringNoTag(kBLKKIFHGDP); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jLENABOEECM); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oAAJFOGONGI); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(bNFGNMKNEOA); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(iBHKBLGDODJ); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(fNBLKPBPOBM); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 3; + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(nPFIJOBDPAH); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(eLMAEGBLBPG); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(hPCEBMACCDJ); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(eAPDBCFMCHA); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(aLOCHCBPICL); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(cEKCDHBMACL); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(oHFJMKNKDMM); + } + if ((bitField0_ & 0x00004000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00008000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(kBHKHHAKPND); + } + if ((bitField0_ & 0x00010000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(eEHJKJLLJEH); + } + if ((bitField0_ & 0x00020000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(cHFJJPIKGCA); + } + if ((bitField0_ & 0x00040000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(mCCIDPAOILM); + } + if ((bitField0_ & 0x00080000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(bMMMNJEPNKE); + } + if ((bitField0_ & 0x00100000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(gLABLAACICO); + } + if ((bitField0_ & 0x00200000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(kBLKKIFHGDP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerLoginCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // loginRandom + loginRandom = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // jLENABOEECM + jLENABOEECM = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // oAAJFOGONGI + oAAJFOGONGI = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 3816) { + break; + } + } + case 3816: { + // bNFGNMKNEOA + bNFGNMKNEOA = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 4600) { + break; + } + } + case 4600: { + // iBHKBLGDODJ + iBHKBLGDODJ = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // fNBLKPBPOBM + final int value = input.readInt32(); + if (LanguageTypeOuterClass.LanguageType.forNumber(value) != null) { + fNBLKPBPOBM = value; + bitField0_ |= 0x00000020; + } + tag = input.readTag(); + if (tag != 12904) { + break; + } + } + case 12904: { + // iGNINMLBLHE + iGNINMLBLHE = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // nPFIJOBDPAH + input.readString(nPFIJOBDPAH); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // eLMAEGBLBPG + input.readString(eLMAEGBLBPG); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // hPCEBMACCDJ + input.readString(hPCEBMACCDJ); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // eAPDBCFMCHA + input.readString(eAPDBCFMCHA); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // aLOCHCBPICL + input.readString(aLOCHCBPICL); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // cEKCDHBMACL + input.readString(cEKCDHBMACL); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // oHFJMKNKDMM + input.readString(oHFJMKNKDMM); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // signature + input.readString(signature); + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // kBHKHHAKPND + input.readString(kBHKHHAKPND); + bitField0_ |= 0x00008000; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // eEHJKJLLJEH + input.readString(eEHJKJLLJEH); + bitField0_ |= 0x00010000; + tag = input.readTag(); + if (tag != 642) { + break; + } + } + case 642: { + // cHFJJPIKGCA + input.readString(cHFJJPIKGCA); + bitField0_ |= 0x00020000; + tag = input.readTag(); + if (tag != 5394) { + break; + } + } + case 5394: { + // mCCIDPAOILM + input.readString(mCCIDPAOILM); + bitField0_ |= 0x00040000; + tag = input.readTag(); + if (tag != 8794) { + break; + } + } + case 8794: { + // bMMMNJEPNKE + input.readString(bMMMNJEPNKE); + bitField0_ |= 0x00080000; + tag = input.readTag(); + if (tag != 12210) { + break; + } + } + case 12210: { + // gLABLAACICO + input.readString(gLABLAACICO); + bitField0_ |= 0x00100000; + tag = input.readTag(); + if (tag != 14874) { + break; + } + } + case 14874: { + // kBLKKIFHGDP + input.readString(kBLKKIFHGDP); + bitField0_ |= 0x00200000; + 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.writeUInt64(FieldNames.loginRandom, loginRandom); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.jLENABOEECM, jLENABOEECM); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.oAAJFOGONGI, oAAJFOGONGI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.bNFGNMKNEOA, bNFGNMKNEOA); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.iBHKBLGDODJ, iBHKBLGDODJ); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeEnum(FieldNames.fNBLKPBPOBM, fNBLKPBPOBM, LanguageTypeOuterClass.LanguageType.converter()); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.iGNINMLBLHE, iGNINMLBLHE); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.nPFIJOBDPAH, nPFIJOBDPAH); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeString(FieldNames.eLMAEGBLBPG, eLMAEGBLBPG); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeString(FieldNames.hPCEBMACCDJ, hPCEBMACCDJ); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeString(FieldNames.eAPDBCFMCHA, eAPDBCFMCHA); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeString(FieldNames.aLOCHCBPICL, aLOCHCBPICL); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeString(FieldNames.cEKCDHBMACL, cEKCDHBMACL); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeString(FieldNames.oHFJMKNKDMM, oHFJMKNKDMM); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeString(FieldNames.kBHKHHAKPND, kBHKHHAKPND); + } + if ((bitField0_ & 0x00010000) != 0) { + output.writeString(FieldNames.eEHJKJLLJEH, eEHJKJLLJEH); + } + if ((bitField0_ & 0x00020000) != 0) { + output.writeString(FieldNames.cHFJJPIKGCA, cHFJJPIKGCA); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeString(FieldNames.mCCIDPAOILM, mCCIDPAOILM); + } + if ((bitField0_ & 0x00080000) != 0) { + output.writeString(FieldNames.bMMMNJEPNKE, bMMMNJEPNKE); + } + if ((bitField0_ & 0x00100000) != 0) { + output.writeString(FieldNames.gLABLAACICO, gLABLAACICO); + } + if ((bitField0_ & 0x00200000) != 0) { + output.writeString(FieldNames.kBLKKIFHGDP, kBLKKIFHGDP); + } + output.endObject(); + } + + @Override + public PlayerLoginCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1268567436: + case -201491879: { + if (input.isAtField(FieldNames.loginRandom)) { + if (!input.trySkipNullValue()) { + loginRandom = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 277177997: { + if (input.isAtField(FieldNames.jLENABOEECM)) { + if (!input.trySkipNullValue()) { + jLENABOEECM = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1484737852: { + if (input.isAtField(FieldNames.oAAJFOGONGI)) { + if (!input.trySkipNullValue()) { + oAAJFOGONGI = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -783223928: { + if (input.isAtField(FieldNames.bNFGNMKNEOA)) { + if (!input.trySkipNullValue()) { + bNFGNMKNEOA = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1150175822: { + if (input.isAtField(FieldNames.iBHKBLGDODJ)) { + if (!input.trySkipNullValue()) { + iBHKBLGDODJ = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1093006389: { + if (input.isAtField(FieldNames.fNBLKPBPOBM)) { + if (!input.trySkipNullValue()) { + final LanguageTypeOuterClass.LanguageType value = input.readEnum(LanguageTypeOuterClass.LanguageType.converter()); + if (value != null) { + fNBLKPBPOBM = value.getNumber(); + bitField0_ |= 0x00000020; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1484894917: { + if (input.isAtField(FieldNames.iGNINMLBLHE)) { + if (!input.trySkipNullValue()) { + iGNINMLBLHE = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1280565973: { + if (input.isAtField(FieldNames.nPFIJOBDPAH)) { + if (!input.trySkipNullValue()) { + input.readString(nPFIJOBDPAH); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1596929266: { + if (input.isAtField(FieldNames.eLMAEGBLBPG)) { + if (!input.trySkipNullValue()) { + input.readString(eLMAEGBLBPG); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 794010770: { + if (input.isAtField(FieldNames.hPCEBMACCDJ)) { + if (!input.trySkipNullValue()) { + input.readString(hPCEBMACCDJ); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 791342372: { + if (input.isAtField(FieldNames.eAPDBCFMCHA)) { + if (!input.trySkipNullValue()) { + input.readString(eAPDBCFMCHA); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1681335510: { + if (input.isAtField(FieldNames.aLOCHCBPICL)) { + if (!input.trySkipNullValue()) { + input.readString(aLOCHCBPICL); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -76791871: { + if (input.isAtField(FieldNames.cEKCDHBMACL)) { + if (!input.trySkipNullValue()) { + input.readString(cEKCDHBMACL); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1498292180: { + if (input.isAtField(FieldNames.oHFJMKNKDMM)) { + if (!input.trySkipNullValue()) { + input.readString(oHFJMKNKDMM); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 461095618: { + if (input.isAtField(FieldNames.kBHKHHAKPND)) { + if (!input.trySkipNullValue()) { + input.readString(kBHKHHAKPND); + bitField0_ |= 0x00008000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1244497140: { + if (input.isAtField(FieldNames.eEHJKJLLJEH)) { + if (!input.trySkipNullValue()) { + input.readString(eEHJKJLLJEH); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 361274612: { + if (input.isAtField(FieldNames.cHFJJPIKGCA)) { + if (!input.trySkipNullValue()) { + input.readString(cHFJJPIKGCA); + bitField0_ |= 0x00020000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1098538092: { + if (input.isAtField(FieldNames.mCCIDPAOILM)) { + if (!input.trySkipNullValue()) { + input.readString(mCCIDPAOILM); + bitField0_ |= 0x00040000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1421577174: { + if (input.isAtField(FieldNames.bMMMNJEPNKE)) { + if (!input.trySkipNullValue()) { + input.readString(bMMMNJEPNKE); + bitField0_ |= 0x00080000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1705052216: { + if (input.isAtField(FieldNames.gLABLAACICO)) { + if (!input.trySkipNullValue()) { + input.readString(gLABLAACICO); + bitField0_ |= 0x00100000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 221904541: { + if (input.isAtField(FieldNames.kBLKKIFHGDP)) { + if (!input.trySkipNullValue()) { + input.readString(kBLKKIFHGDP); + bitField0_ |= 0x00200000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerLoginCsReq clone() { + return new PlayerLoginCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerLoginCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerLoginCsReq(), data).checkInitialized(); + } + + public static PlayerLoginCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerLoginCsReq(), input).checkInitialized(); + } + + public static PlayerLoginCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerLoginCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerLoginCsReq messages + */ + public static MessageFactory getFactory() { + return PlayerLoginCsReqFactory.INSTANCE; + } + + private enum PlayerLoginCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerLoginCsReq create() { + return PlayerLoginCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName loginRandom = FieldName.forField("loginRandom", "login_random"); + + static final FieldName jLENABOEECM = FieldName.forField("JLENABOEECM"); + + static final FieldName oAAJFOGONGI = FieldName.forField("OAAJFOGONGI"); + + static final FieldName bNFGNMKNEOA = FieldName.forField("BNFGNMKNEOA"); + + static final FieldName iBHKBLGDODJ = FieldName.forField("IBHKBLGDODJ"); + + static final FieldName fNBLKPBPOBM = FieldName.forField("FNBLKPBPOBM"); + + static final FieldName iGNINMLBLHE = FieldName.forField("IGNINMLBLHE"); + + static final FieldName nPFIJOBDPAH = FieldName.forField("NPFIJOBDPAH"); + + static final FieldName eLMAEGBLBPG = FieldName.forField("ELMAEGBLBPG"); + + static final FieldName hPCEBMACCDJ = FieldName.forField("HPCEBMACCDJ"); + + static final FieldName eAPDBCFMCHA = FieldName.forField("EAPDBCFMCHA"); + + static final FieldName aLOCHCBPICL = FieldName.forField("ALOCHCBPICL"); + + static final FieldName cEKCDHBMACL = FieldName.forField("CEKCDHBMACL"); + + static final FieldName oHFJMKNKDMM = FieldName.forField("OHFJMKNKDMM"); + + static final FieldName signature = FieldName.forField("signature"); + + static final FieldName kBHKHHAKPND = FieldName.forField("KBHKHHAKPND"); + + static final FieldName eEHJKJLLJEH = FieldName.forField("EEHJKJLLJEH"); + + static final FieldName cHFJJPIKGCA = FieldName.forField("CHFJJPIKGCA"); + + static final FieldName mCCIDPAOILM = FieldName.forField("MCCIDPAOILM"); + + static final FieldName bMMMNJEPNKE = FieldName.forField("BMMMNJEPNKE"); + + static final FieldName gLABLAACICO = FieldName.forField("GLABLAACICO"); + + static final FieldName kBLKKIFHGDP = FieldName.forField("KBLKKIFHGDP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java new file mode 100644 index 0000000..a990c40 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java @@ -0,0 +1,1063 @@ +// 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.Utf8String; + +public final class PlayerLoginScRspOuterClass { + /** + * Protobuf type {@code PlayerLoginScRsp} + */ + public static final class PlayerLoginScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 login_random = 4; + */ + private long loginRandom; + + /** + * optional uint64 server_timestamp_ms = 11; + */ + private long serverTimestampMs; + + /** + * optional int32 cur_timezone = 14; + */ + private int curTimezone; + + /** + * optional uint32 stamina = 6; + */ + private int stamina; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional bool EPIIKAGFCNK = 7; + */ + private boolean ePIIKAGFCNK; + + /** + * optional bool OCAPAMPOKBM = 12; + */ + private boolean oCAPAMPOKBM; + + /** + * optional .PlayerBasicInfo basic_info = 2; + */ + private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); + + /** + * optional string HNPFOMCJIJM = 3; + */ + private final Utf8String hNPFOMCJIJM = Utf8String.newEmptyInstance(); + + /** + * optional string FCAJKKEINID = 8; + */ + private final Utf8String fCAJKKEINID = Utf8String.newEmptyInstance(); + + private PlayerLoginScRsp() { + } + + /** + * @return a new empty instance of {@code PlayerLoginScRsp} + */ + public static PlayerLoginScRsp newInstance() { + return new PlayerLoginScRsp(); + } + + /** + * optional uint64 login_random = 4; + * @return whether the loginRandom field is set + */ + public boolean hasLoginRandom() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 login_random = 4; + * @return this + */ + public PlayerLoginScRsp clearLoginRandom() { + bitField0_ &= ~0x00000001; + loginRandom = 0L; + return this; + } + + /** + * optional uint64 login_random = 4; + * @return the loginRandom + */ + public long getLoginRandom() { + return loginRandom; + } + + /** + * optional uint64 login_random = 4; + * @param value the loginRandom to set + * @return this + */ + public PlayerLoginScRsp setLoginRandom(final long value) { + bitField0_ |= 0x00000001; + loginRandom = value; + return this; + } + + /** + * optional uint64 server_timestamp_ms = 11; + * @return whether the serverTimestampMs field is set + */ + public boolean hasServerTimestampMs() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint64 server_timestamp_ms = 11; + * @return this + */ + public PlayerLoginScRsp clearServerTimestampMs() { + bitField0_ &= ~0x00000002; + serverTimestampMs = 0L; + return this; + } + + /** + * optional uint64 server_timestamp_ms = 11; + * @return the serverTimestampMs + */ + public long getServerTimestampMs() { + return serverTimestampMs; + } + + /** + * optional uint64 server_timestamp_ms = 11; + * @param value the serverTimestampMs to set + * @return this + */ + public PlayerLoginScRsp setServerTimestampMs(final long value) { + bitField0_ |= 0x00000002; + serverTimestampMs = value; + return this; + } + + /** + * optional int32 cur_timezone = 14; + * @return whether the curTimezone field is set + */ + public boolean hasCurTimezone() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional int32 cur_timezone = 14; + * @return this + */ + public PlayerLoginScRsp clearCurTimezone() { + bitField0_ &= ~0x00000004; + curTimezone = 0; + return this; + } + + /** + * optional int32 cur_timezone = 14; + * @return the curTimezone + */ + public int getCurTimezone() { + return curTimezone; + } + + /** + * optional int32 cur_timezone = 14; + * @param value the curTimezone to set + * @return this + */ + public PlayerLoginScRsp setCurTimezone(final int value) { + bitField0_ |= 0x00000004; + curTimezone = value; + return this; + } + + /** + * optional uint32 stamina = 6; + * @return whether the stamina field is set + */ + public boolean hasStamina() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 stamina = 6; + * @return this + */ + public PlayerLoginScRsp clearStamina() { + bitField0_ &= ~0x00000008; + stamina = 0; + return this; + } + + /** + * optional uint32 stamina = 6; + * @return the stamina + */ + public int getStamina() { + return stamina; + } + + /** + * optional uint32 stamina = 6; + * @param value the stamina to set + * @return this + */ + public PlayerLoginScRsp setStamina(final int value) { + bitField0_ |= 0x00000008; + stamina = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public PlayerLoginScRsp clearRetcode() { + bitField0_ &= ~0x00000010; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public PlayerLoginScRsp setRetcode(final int value) { + bitField0_ |= 0x00000010; + retcode = value; + return this; + } + + /** + * optional bool EPIIKAGFCNK = 7; + * @return whether the ePIIKAGFCNK field is set + */ + public boolean hasEPIIKAGFCNK() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool EPIIKAGFCNK = 7; + * @return this + */ + public PlayerLoginScRsp clearEPIIKAGFCNK() { + bitField0_ &= ~0x00000020; + ePIIKAGFCNK = false; + return this; + } + + /** + * optional bool EPIIKAGFCNK = 7; + * @return the ePIIKAGFCNK + */ + public boolean getEPIIKAGFCNK() { + return ePIIKAGFCNK; + } + + /** + * optional bool EPIIKAGFCNK = 7; + * @param value the ePIIKAGFCNK to set + * @return this + */ + public PlayerLoginScRsp setEPIIKAGFCNK(final boolean value) { + bitField0_ |= 0x00000020; + ePIIKAGFCNK = value; + return this; + } + + /** + * optional bool OCAPAMPOKBM = 12; + * @return whether the oCAPAMPOKBM field is set + */ + public boolean hasOCAPAMPOKBM() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool OCAPAMPOKBM = 12; + * @return this + */ + public PlayerLoginScRsp clearOCAPAMPOKBM() { + bitField0_ &= ~0x00000040; + oCAPAMPOKBM = false; + return this; + } + + /** + * optional bool OCAPAMPOKBM = 12; + * @return the oCAPAMPOKBM + */ + public boolean getOCAPAMPOKBM() { + return oCAPAMPOKBM; + } + + /** + * optional bool OCAPAMPOKBM = 12; + * @param value the oCAPAMPOKBM to set + * @return this + */ + public PlayerLoginScRsp setOCAPAMPOKBM(final boolean value) { + bitField0_ |= 0x00000040; + oCAPAMPOKBM = value; + return this; + } + + /** + * optional .PlayerBasicInfo basic_info = 2; + * @return whether the basicInfo field is set + */ + public boolean hasBasicInfo() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .PlayerBasicInfo basic_info = 2; + * @return this + */ + public PlayerLoginScRsp clearBasicInfo() { + bitField0_ &= ~0x00000080; + basicInfo.clear(); + return this; + } + + /** + * optional .PlayerBasicInfo basic_info = 2; + * + * 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 #getMutableBasicInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { + return basicInfo; + } + + /** + * optional .PlayerBasicInfo basic_info = 2; + * + * 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 PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { + bitField0_ |= 0x00000080; + return basicInfo; + } + + /** + * optional .PlayerBasicInfo basic_info = 2; + * @param value the basicInfo to set + * @return this + */ + public PlayerLoginScRsp setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) { + bitField0_ |= 0x00000080; + basicInfo.copyFrom(value); + return this; + } + + /** + * optional string HNPFOMCJIJM = 3; + * @return whether the hNPFOMCJIJM field is set + */ + public boolean hasHNPFOMCJIJM() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional string HNPFOMCJIJM = 3; + * @return this + */ + public PlayerLoginScRsp clearHNPFOMCJIJM() { + bitField0_ &= ~0x00000100; + hNPFOMCJIJM.clear(); + return this; + } + + /** + * optional string HNPFOMCJIJM = 3; + * @return the hNPFOMCJIJM + */ + public String getHNPFOMCJIJM() { + return hNPFOMCJIJM.getString(); + } + + /** + * optional string HNPFOMCJIJM = 3; + * @return internal {@code Utf8String} representation of hNPFOMCJIJM for reading + */ + public Utf8String getHNPFOMCJIJMBytes() { + return this.hNPFOMCJIJM; + } + + /** + * optional string HNPFOMCJIJM = 3; + * @return internal {@code Utf8String} representation of hNPFOMCJIJM for modifications + */ + public Utf8String getMutableHNPFOMCJIJMBytes() { + bitField0_ |= 0x00000100; + return this.hNPFOMCJIJM; + } + + /** + * optional string HNPFOMCJIJM = 3; + * @param value the hNPFOMCJIJM to set + * @return this + */ + public PlayerLoginScRsp setHNPFOMCJIJM(final CharSequence value) { + bitField0_ |= 0x00000100; + hNPFOMCJIJM.copyFrom(value); + return this; + } + + /** + * optional string HNPFOMCJIJM = 3; + * @param value the hNPFOMCJIJM to set + * @return this + */ + public PlayerLoginScRsp setHNPFOMCJIJM(final Utf8String value) { + bitField0_ |= 0x00000100; + hNPFOMCJIJM.copyFrom(value); + return this; + } + + /** + * optional string FCAJKKEINID = 8; + * @return whether the fCAJKKEINID field is set + */ + public boolean hasFCAJKKEINID() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string FCAJKKEINID = 8; + * @return this + */ + public PlayerLoginScRsp clearFCAJKKEINID() { + bitField0_ &= ~0x00000200; + fCAJKKEINID.clear(); + return this; + } + + /** + * optional string FCAJKKEINID = 8; + * @return the fCAJKKEINID + */ + public String getFCAJKKEINID() { + return fCAJKKEINID.getString(); + } + + /** + * optional string FCAJKKEINID = 8; + * @return internal {@code Utf8String} representation of fCAJKKEINID for reading + */ + public Utf8String getFCAJKKEINIDBytes() { + return this.fCAJKKEINID; + } + + /** + * optional string FCAJKKEINID = 8; + * @return internal {@code Utf8String} representation of fCAJKKEINID for modifications + */ + public Utf8String getMutableFCAJKKEINIDBytes() { + bitField0_ |= 0x00000200; + return this.fCAJKKEINID; + } + + /** + * optional string FCAJKKEINID = 8; + * @param value the fCAJKKEINID to set + * @return this + */ + public PlayerLoginScRsp setFCAJKKEINID(final CharSequence value) { + bitField0_ |= 0x00000200; + fCAJKKEINID.copyFrom(value); + return this; + } + + /** + * optional string FCAJKKEINID = 8; + * @param value the fCAJKKEINID to set + * @return this + */ + public PlayerLoginScRsp setFCAJKKEINID(final Utf8String value) { + bitField0_ |= 0x00000200; + fCAJKKEINID.copyFrom(value); + return this; + } + + @Override + public PlayerLoginScRsp copyFrom(final PlayerLoginScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + loginRandom = other.loginRandom; + serverTimestampMs = other.serverTimestampMs; + curTimezone = other.curTimezone; + stamina = other.stamina; + retcode = other.retcode; + ePIIKAGFCNK = other.ePIIKAGFCNK; + oCAPAMPOKBM = other.oCAPAMPOKBM; + basicInfo.copyFrom(other.basicInfo); + hNPFOMCJIJM.copyFrom(other.hNPFOMCJIJM); + fCAJKKEINID.copyFrom(other.fCAJKKEINID); + } + return this; + } + + @Override + public PlayerLoginScRsp mergeFrom(final PlayerLoginScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLoginRandom()) { + setLoginRandom(other.loginRandom); + } + if (other.hasServerTimestampMs()) { + setServerTimestampMs(other.serverTimestampMs); + } + if (other.hasCurTimezone()) { + setCurTimezone(other.curTimezone); + } + if (other.hasStamina()) { + setStamina(other.stamina); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEPIIKAGFCNK()) { + setEPIIKAGFCNK(other.ePIIKAGFCNK); + } + if (other.hasOCAPAMPOKBM()) { + setOCAPAMPOKBM(other.oCAPAMPOKBM); + } + if (other.hasBasicInfo()) { + getMutableBasicInfo().mergeFrom(other.basicInfo); + } + if (other.hasHNPFOMCJIJM()) { + getMutableHNPFOMCJIJMBytes().copyFrom(other.hNPFOMCJIJM); + } + if (other.hasFCAJKKEINID()) { + getMutableFCAJKKEINIDBytes().copyFrom(other.fCAJKKEINID); + } + return this; + } + + @Override + public PlayerLoginScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + loginRandom = 0L; + serverTimestampMs = 0L; + curTimezone = 0; + stamina = 0; + retcode = 0; + ePIIKAGFCNK = false; + oCAPAMPOKBM = false; + basicInfo.clear(); + hNPFOMCJIJM.clear(); + fCAJKKEINID.clear(); + return this; + } + + @Override + public PlayerLoginScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + basicInfo.clearQuick(); + hNPFOMCJIJM.clear(); + fCAJKKEINID.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerLoginScRsp)) { + return false; + } + PlayerLoginScRsp other = (PlayerLoginScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasLoginRandom() || loginRandom == other.loginRandom) + && (!hasServerTimestampMs() || serverTimestampMs == other.serverTimestampMs) + && (!hasCurTimezone() || curTimezone == other.curTimezone) + && (!hasStamina() || stamina == other.stamina) + && (!hasRetcode() || retcode == other.retcode) + && (!hasEPIIKAGFCNK() || ePIIKAGFCNK == other.ePIIKAGFCNK) + && (!hasOCAPAMPOKBM() || oCAPAMPOKBM == other.oCAPAMPOKBM) + && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)) + && (!hasHNPFOMCJIJM() || hNPFOMCJIJM.equals(other.hNPFOMCJIJM)) + && (!hasFCAJKKEINID() || fCAJKKEINID.equals(other.fCAJKKEINID)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt64NoTag(loginRandom); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt64NoTag(serverTimestampMs); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeInt32NoTag(curTimezone); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(stamina); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(ePIIKAGFCNK); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 96); + output.writeBoolNoTag(oCAPAMPOKBM); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(basicInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(hNPFOMCJIJM); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 66); + output.writeStringNoTag(fCAJKKEINID); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimestampMs); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(curTimezone); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(hNPFOMCJIJM); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(fCAJKKEINID); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerLoginScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // loginRandom + loginRandom = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // serverTimestampMs + serverTimestampMs = input.readUInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // curTimezone + curTimezone = input.readInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // stamina + stamina = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // ePIIKAGFCNK + ePIIKAGFCNK = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // oCAPAMPOKBM + oCAPAMPOKBM = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // basicInfo + input.readMessage(basicInfo); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // hNPFOMCJIJM + input.readString(hNPFOMCJIJM); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // fCAJKKEINID + input.readString(fCAJKKEINID); + bitField0_ |= 0x00000200; + 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.writeUInt64(FieldNames.loginRandom, loginRandom); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt64(FieldNames.serverTimestampMs, serverTimestampMs); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeInt32(FieldNames.curTimezone, curTimezone); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.stamina, stamina); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.ePIIKAGFCNK, ePIIKAGFCNK); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.oCAPAMPOKBM, oCAPAMPOKBM); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.basicInfo, basicInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeString(FieldNames.hNPFOMCJIJM, hNPFOMCJIJM); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeString(FieldNames.fCAJKKEINID, fCAJKKEINID); + } + output.endObject(); + } + + @Override + public PlayerLoginScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1268567436: + case -201491879: { + if (input.isAtField(FieldNames.loginRandom)) { + if (!input.trySkipNullValue()) { + loginRandom = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1700420071: + case -1078785813: { + if (input.isAtField(FieldNames.serverTimestampMs)) { + if (!input.trySkipNullValue()) { + serverTimestampMs = input.readUInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -929763751: + case 1485930264: { + if (input.isAtField(FieldNames.curTimezone)) { + if (!input.trySkipNullValue()) { + curTimezone = input.readInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897344401: { + if (input.isAtField(FieldNames.stamina)) { + if (!input.trySkipNullValue()) { + stamina = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1371058944: { + if (input.isAtField(FieldNames.ePIIKAGFCNK)) { + if (!input.trySkipNullValue()) { + ePIIKAGFCNK = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -202338200: { + if (input.isAtField(FieldNames.oCAPAMPOKBM)) { + if (!input.trySkipNullValue()) { + oCAPAMPOKBM = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1699486212: + case -1124288993: { + if (input.isAtField(FieldNames.basicInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(basicInfo); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -437515925: { + if (input.isAtField(FieldNames.hNPFOMCJIJM)) { + if (!input.trySkipNullValue()) { + input.readString(hNPFOMCJIJM); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1435904255: { + if (input.isAtField(FieldNames.fCAJKKEINID)) { + if (!input.trySkipNullValue()) { + input.readString(fCAJKKEINID); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerLoginScRsp clone() { + return new PlayerLoginScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerLoginScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerLoginScRsp(), data).checkInitialized(); + } + + public static PlayerLoginScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerLoginScRsp(), input).checkInitialized(); + } + + public static PlayerLoginScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerLoginScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerLoginScRsp messages + */ + public static MessageFactory getFactory() { + return PlayerLoginScRspFactory.INSTANCE; + } + + private enum PlayerLoginScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerLoginScRsp create() { + return PlayerLoginScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName loginRandom = FieldName.forField("loginRandom", "login_random"); + + static final FieldName serverTimestampMs = FieldName.forField("serverTimestampMs", "server_timestamp_ms"); + + static final FieldName curTimezone = FieldName.forField("curTimezone", "cur_timezone"); + + static final FieldName stamina = FieldName.forField("stamina"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName ePIIKAGFCNK = FieldName.forField("EPIIKAGFCNK"); + + static final FieldName oCAPAMPOKBM = FieldName.forField("OCAPAMPOKBM"); + + static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info"); + + static final FieldName hNPFOMCJIJM = FieldName.forField("HNPFOMCJIJM"); + + static final FieldName fCAJKKEINID = FieldName.forField("FCAJKKEINID"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java new file mode 100644 index 0000000..c02a9b7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java @@ -0,0 +1,419 @@ +// 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 PlayerSettingInfoOuterClass { + /** + * Protobuf type {@code PlayerSettingInfo} + */ + public static final class PlayerSettingInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool OFOCDABPBEN = 6; + */ + private boolean oFOCDABPBEN; + + /** + * optional bool FFIJPBKIGPJ = 11; + */ + private boolean fFIJPBKIGPJ; + + /** + * optional bool MDJEPNGEHFN = 14; + */ + private boolean mDJEPNGEHFN; + + private PlayerSettingInfo() { + } + + /** + * @return a new empty instance of {@code PlayerSettingInfo} + */ + public static PlayerSettingInfo newInstance() { + return new PlayerSettingInfo(); + } + + /** + * optional bool OFOCDABPBEN = 6; + * @return whether the oFOCDABPBEN field is set + */ + public boolean hasOFOCDABPBEN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool OFOCDABPBEN = 6; + * @return this + */ + public PlayerSettingInfo clearOFOCDABPBEN() { + bitField0_ &= ~0x00000001; + oFOCDABPBEN = false; + return this; + } + + /** + * optional bool OFOCDABPBEN = 6; + * @return the oFOCDABPBEN + */ + public boolean getOFOCDABPBEN() { + return oFOCDABPBEN; + } + + /** + * optional bool OFOCDABPBEN = 6; + * @param value the oFOCDABPBEN to set + * @return this + */ + public PlayerSettingInfo setOFOCDABPBEN(final boolean value) { + bitField0_ |= 0x00000001; + oFOCDABPBEN = value; + return this; + } + + /** + * optional bool FFIJPBKIGPJ = 11; + * @return whether the fFIJPBKIGPJ field is set + */ + public boolean hasFFIJPBKIGPJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool FFIJPBKIGPJ = 11; + * @return this + */ + public PlayerSettingInfo clearFFIJPBKIGPJ() { + bitField0_ &= ~0x00000002; + fFIJPBKIGPJ = false; + return this; + } + + /** + * optional bool FFIJPBKIGPJ = 11; + * @return the fFIJPBKIGPJ + */ + public boolean getFFIJPBKIGPJ() { + return fFIJPBKIGPJ; + } + + /** + * optional bool FFIJPBKIGPJ = 11; + * @param value the fFIJPBKIGPJ to set + * @return this + */ + public PlayerSettingInfo setFFIJPBKIGPJ(final boolean value) { + bitField0_ |= 0x00000002; + fFIJPBKIGPJ = value; + return this; + } + + /** + * optional bool MDJEPNGEHFN = 14; + * @return whether the mDJEPNGEHFN field is set + */ + public boolean hasMDJEPNGEHFN() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool MDJEPNGEHFN = 14; + * @return this + */ + public PlayerSettingInfo clearMDJEPNGEHFN() { + bitField0_ &= ~0x00000004; + mDJEPNGEHFN = false; + return this; + } + + /** + * optional bool MDJEPNGEHFN = 14; + * @return the mDJEPNGEHFN + */ + public boolean getMDJEPNGEHFN() { + return mDJEPNGEHFN; + } + + /** + * optional bool MDJEPNGEHFN = 14; + * @param value the mDJEPNGEHFN to set + * @return this + */ + public PlayerSettingInfo setMDJEPNGEHFN(final boolean value) { + bitField0_ |= 0x00000004; + mDJEPNGEHFN = value; + return this; + } + + @Override + public PlayerSettingInfo copyFrom(final PlayerSettingInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + oFOCDABPBEN = other.oFOCDABPBEN; + fFIJPBKIGPJ = other.fFIJPBKIGPJ; + mDJEPNGEHFN = other.mDJEPNGEHFN; + } + return this; + } + + @Override + public PlayerSettingInfo mergeFrom(final PlayerSettingInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOFOCDABPBEN()) { + setOFOCDABPBEN(other.oFOCDABPBEN); + } + if (other.hasFFIJPBKIGPJ()) { + setFFIJPBKIGPJ(other.fFIJPBKIGPJ); + } + if (other.hasMDJEPNGEHFN()) { + setMDJEPNGEHFN(other.mDJEPNGEHFN); + } + return this; + } + + @Override + public PlayerSettingInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oFOCDABPBEN = false; + fFIJPBKIGPJ = false; + mDJEPNGEHFN = false; + return this; + } + + @Override + public PlayerSettingInfo 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 PlayerSettingInfo)) { + return false; + } + PlayerSettingInfo other = (PlayerSettingInfo) o; + return bitField0_ == other.bitField0_ + && (!hasOFOCDABPBEN() || oFOCDABPBEN == other.oFOCDABPBEN) + && (!hasFFIJPBKIGPJ() || fFIJPBKIGPJ == other.fFIJPBKIGPJ) + && (!hasMDJEPNGEHFN() || mDJEPNGEHFN == other.mDJEPNGEHFN); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(oFOCDABPBEN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(fFIJPBKIGPJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(mDJEPNGEHFN); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerSettingInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // oFOCDABPBEN + oFOCDABPBEN = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // fFIJPBKIGPJ + fFIJPBKIGPJ = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // mDJEPNGEHFN + mDJEPNGEHFN = input.readBool(); + 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.writeBool(FieldNames.oFOCDABPBEN, oFOCDABPBEN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.fFIJPBKIGPJ, fFIJPBKIGPJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.mDJEPNGEHFN, mDJEPNGEHFN); + } + output.endObject(); + } + + @Override + public PlayerSettingInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 797917877: { + if (input.isAtField(FieldNames.oFOCDABPBEN)) { + if (!input.trySkipNullValue()) { + oFOCDABPBEN = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -837946704: { + if (input.isAtField(FieldNames.fFIJPBKIGPJ)) { + if (!input.trySkipNullValue()) { + fFIJPBKIGPJ = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1730511646: { + if (input.isAtField(FieldNames.mDJEPNGEHFN)) { + if (!input.trySkipNullValue()) { + mDJEPNGEHFN = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerSettingInfo clone() { + return new PlayerSettingInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerSettingInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerSettingInfo(), data).checkInitialized(); + } + + public static PlayerSettingInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSettingInfo(), input).checkInitialized(); + } + + public static PlayerSettingInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSettingInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerSettingInfo messages + */ + public static MessageFactory getFactory() { + return PlayerSettingInfoFactory.INSTANCE; + } + + private enum PlayerSettingInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerSettingInfo create() { + return PlayerSettingInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName oFOCDABPBEN = FieldName.forField("OFOCDABPBEN"); + + static final FieldName fFIJPBKIGPJ = FieldName.forField("FFIJPBKIGPJ"); + + static final FieldName mDJEPNGEHFN = FieldName.forField("MDJEPNGEHFN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java new file mode 100644 index 0000000..c45e0dc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java @@ -0,0 +1,1547 @@ +// 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 PlayerSyncScNotifyOuterClass { + /** + * Protobuf type {@code PlayerSyncScNotify} + */ + public static final class PlayerSyncScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .AvatarSync avatar_sync = 2; + */ + private final AvatarSyncOuterClass.AvatarSync avatarSync = AvatarSyncOuterClass.AvatarSync.newInstance(); + + /** + * optional .PlayerBasicInfo basic_info = 6; + */ + private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); + + /** + * optional .BoardDataSync board_data_sync = 1358; + */ + private final BoardDataSyncOuterClass.BoardDataSync boardDataSync = BoardDataSyncOuterClass.BoardDataSync.newInstance(); + + /** + * optional .ItemList DIMLIHPBEFB = 1780; + */ + private final ItemListOuterClass.ItemList dIMLIHPBEFB = ItemListOuterClass.ItemList.newInstance(); + + /** + * repeated uint32 del_relic_list = 4; + */ + private final RepeatedInt delRelicList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 del_equipment_list = 10; + */ + private final RepeatedInt delEquipmentList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + */ + private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); + + /** + * repeated .Material material_list = 5; + */ + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + */ + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + */ + private final RepeatedMessage waitDelResourceList = RepeatedMessage.newEmptyInstance(WaitDelResourceOuterClass.WaitDelResource.getFactory()); + + /** + * repeated .Equipment equipment_list = 12; + */ + private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); + + /** + * repeated .Material KPBMGJKOKDA = 836; + */ + private final RepeatedMessage kPBMGJKOKDA = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + + private PlayerSyncScNotify() { + } + + /** + * @return a new empty instance of {@code PlayerSyncScNotify} + */ + public static PlayerSyncScNotify newInstance() { + return new PlayerSyncScNotify(); + } + + /** + * optional .AvatarSync avatar_sync = 2; + * @return whether the avatarSync field is set + */ + public boolean hasAvatarSync() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .AvatarSync avatar_sync = 2; + * @return this + */ + public PlayerSyncScNotify clearAvatarSync() { + bitField0_ &= ~0x00000001; + avatarSync.clear(); + return this; + } + + /** + * optional .AvatarSync avatar_sync = 2; + * + * 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 #getMutableAvatarSync()} if you want to modify it. + * + * @return internal storage object for reading + */ + public AvatarSyncOuterClass.AvatarSync getAvatarSync() { + return avatarSync; + } + + /** + * optional .AvatarSync avatar_sync = 2; + * + * 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 AvatarSyncOuterClass.AvatarSync getMutableAvatarSync() { + bitField0_ |= 0x00000001; + return avatarSync; + } + + /** + * optional .AvatarSync avatar_sync = 2; + * @param value the avatarSync to set + * @return this + */ + public PlayerSyncScNotify setAvatarSync(final AvatarSyncOuterClass.AvatarSync value) { + bitField0_ |= 0x00000001; + avatarSync.copyFrom(value); + return this; + } + + /** + * optional .PlayerBasicInfo basic_info = 6; + * @return whether the basicInfo field is set + */ + public boolean hasBasicInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .PlayerBasicInfo basic_info = 6; + * @return this + */ + public PlayerSyncScNotify clearBasicInfo() { + bitField0_ &= ~0x00000002; + basicInfo.clear(); + return this; + } + + /** + * optional .PlayerBasicInfo basic_info = 6; + * + * 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 #getMutableBasicInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { + return basicInfo; + } + + /** + * optional .PlayerBasicInfo basic_info = 6; + * + * 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 PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { + bitField0_ |= 0x00000002; + return basicInfo; + } + + /** + * optional .PlayerBasicInfo basic_info = 6; + * @param value the basicInfo to set + * @return this + */ + public PlayerSyncScNotify setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) { + bitField0_ |= 0x00000002; + basicInfo.copyFrom(value); + return this; + } + + /** + * optional .BoardDataSync board_data_sync = 1358; + * @return whether the boardDataSync field is set + */ + public boolean hasBoardDataSync() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .BoardDataSync board_data_sync = 1358; + * @return this + */ + public PlayerSyncScNotify clearBoardDataSync() { + bitField0_ &= ~0x00000004; + boardDataSync.clear(); + return this; + } + + /** + * optional .BoardDataSync board_data_sync = 1358; + * + * 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 #getMutableBoardDataSync()} if you want to modify it. + * + * @return internal storage object for reading + */ + public BoardDataSyncOuterClass.BoardDataSync getBoardDataSync() { + return boardDataSync; + } + + /** + * optional .BoardDataSync board_data_sync = 1358; + * + * 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 BoardDataSyncOuterClass.BoardDataSync getMutableBoardDataSync() { + bitField0_ |= 0x00000004; + return boardDataSync; + } + + /** + * optional .BoardDataSync board_data_sync = 1358; + * @param value the boardDataSync to set + * @return this + */ + public PlayerSyncScNotify setBoardDataSync(final BoardDataSyncOuterClass.BoardDataSync value) { + bitField0_ |= 0x00000004; + boardDataSync.copyFrom(value); + return this; + } + + /** + * optional .ItemList DIMLIHPBEFB = 1780; + * @return whether the dIMLIHPBEFB field is set + */ + public boolean hasDIMLIHPBEFB() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ItemList DIMLIHPBEFB = 1780; + * @return this + */ + public PlayerSyncScNotify clearDIMLIHPBEFB() { + bitField0_ &= ~0x00000008; + dIMLIHPBEFB.clear(); + return this; + } + + /** + * optional .ItemList DIMLIHPBEFB = 1780; + * + * 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 #getMutableDIMLIHPBEFB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getDIMLIHPBEFB() { + return dIMLIHPBEFB; + } + + /** + * optional .ItemList DIMLIHPBEFB = 1780; + * + * 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 getMutableDIMLIHPBEFB() { + bitField0_ |= 0x00000008; + return dIMLIHPBEFB; + } + + /** + * optional .ItemList DIMLIHPBEFB = 1780; + * @param value the dIMLIHPBEFB to set + * @return this + */ + public PlayerSyncScNotify setDIMLIHPBEFB(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000008; + dIMLIHPBEFB.copyFrom(value); + return this; + } + + /** + * repeated uint32 del_relic_list = 4; + * @return whether the delRelicList field is set + */ + public boolean hasDelRelicList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 del_relic_list = 4; + * @return this + */ + public PlayerSyncScNotify clearDelRelicList() { + bitField0_ &= ~0x00000010; + delRelicList.clear(); + return this; + } + + /** + * repeated uint32 del_relic_list = 4; + * + * 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 #getMutableDelRelicList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDelRelicList() { + return delRelicList; + } + + /** + * repeated uint32 del_relic_list = 4; + * + * 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 getMutableDelRelicList() { + bitField0_ |= 0x00000010; + return delRelicList; + } + + /** + * repeated uint32 del_relic_list = 4; + * @param value the delRelicList to add + * @return this + */ + public PlayerSyncScNotify addDelRelicList(final int value) { + bitField0_ |= 0x00000010; + delRelicList.add(value); + return this; + } + + /** + * repeated uint32 del_relic_list = 4; + * @param values the delRelicList to add + * @return this + */ + public PlayerSyncScNotify addAllDelRelicList(final int... values) { + bitField0_ |= 0x00000010; + delRelicList.addAll(values); + return this; + } + + /** + * repeated uint32 del_equipment_list = 10; + * @return whether the delEquipmentList field is set + */ + public boolean hasDelEquipmentList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 del_equipment_list = 10; + * @return this + */ + public PlayerSyncScNotify clearDelEquipmentList() { + bitField0_ &= ~0x00000020; + delEquipmentList.clear(); + return this; + } + + /** + * repeated uint32 del_equipment_list = 10; + * + * 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 #getMutableDelEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDelEquipmentList() { + return delEquipmentList; + } + + /** + * repeated uint32 del_equipment_list = 10; + * + * 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 getMutableDelEquipmentList() { + bitField0_ |= 0x00000020; + return delEquipmentList; + } + + /** + * repeated uint32 del_equipment_list = 10; + * @param value the delEquipmentList to add + * @return this + */ + public PlayerSyncScNotify addDelEquipmentList(final int value) { + bitField0_ |= 0x00000020; + delEquipmentList.add(value); + return this; + } + + /** + * repeated uint32 del_equipment_list = 10; + * @param values the delEquipmentList to add + * @return this + */ + public PlayerSyncScNotify addAllDelEquipmentList(final int... values) { + bitField0_ |= 0x00000020; + delEquipmentList.addAll(values); + return this; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + * @return whether the basicTypeInfoList field is set + */ + public boolean hasBasicTypeInfoList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + * @return this + */ + public PlayerSyncScNotify clearBasicTypeInfoList() { + bitField0_ &= ~0x00000040; + basicTypeInfoList.clear(); + return this; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + * + * 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 #getMutableBasicTypeInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBasicTypeInfoList() { + return basicTypeInfoList; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + * + * 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 getMutableBasicTypeInfoList( + ) { + bitField0_ |= 0x00000040; + return basicTypeInfoList; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + * @param value the basicTypeInfoList to add + * @return this + */ + public PlayerSyncScNotify addBasicTypeInfoList( + final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) { + bitField0_ |= 0x00000040; + basicTypeInfoList.add(value); + return this; + } + + /** + * repeated .HeroBasicTypeInfo basic_type_info_list = 1; + * @param values the basicTypeInfoList to add + * @return this + */ + public PlayerSyncScNotify addAllBasicTypeInfoList( + final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) { + bitField0_ |= 0x00000040; + basicTypeInfoList.addAll(values); + return this; + } + + /** + * repeated .Material material_list = 5; + * @return whether the materialList field is set + */ + public boolean hasMaterialList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .Material material_list = 5; + * @return this + */ + public PlayerSyncScNotify clearMaterialList() { + bitField0_ &= ~0x00000080; + materialList.clear(); + return this; + } + + /** + * repeated .Material material_list = 5; + * + * 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 #getMutableMaterialList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMaterialList() { + return materialList; + } + + /** + * repeated .Material material_list = 5; + * + * 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 getMutableMaterialList() { + bitField0_ |= 0x00000080; + return materialList; + } + + /** + * repeated .Material material_list = 5; + * @param value the materialList to add + * @return this + */ + public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000080; + materialList.add(value); + return this; + } + + /** + * repeated .Material material_list = 5; + * @param values the materialList to add + * @return this + */ + public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000080; + materialList.addAll(values); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @return whether the relicList field is set + */ + public boolean hasRelicList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @return this + */ + public PlayerSyncScNotify clearRelicList() { + bitField0_ &= ~0x00000100; + relicList.clear(); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * + * 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 #getMutableRelicList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRelicList() { + return relicList; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * + * 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 getMutableRelicList() { + bitField0_ |= 0x00000100; + return relicList; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @param value the relicList to add + * @return this + */ + public PlayerSyncScNotify addRelicList(final RelicOuterClass.Relic value) { + bitField0_ |= 0x00000100; + relicList.add(value); + return this; + } + + /** + *
+     * repeated JAKOAONFNGN LKGOMEBOJAF = 6;
+     * 
+ * + * repeated .Relic relic_list = 7; + * @param values the relicList to add + * @return this + */ + public PlayerSyncScNotify addAllRelicList(final RelicOuterClass.Relic... values) { + bitField0_ |= 0x00000100; + relicList.addAll(values); + return this; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + * @return whether the waitDelResourceList field is set + */ + public boolean hasWaitDelResourceList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + * @return this + */ + public PlayerSyncScNotify clearWaitDelResourceList() { + bitField0_ &= ~0x00000200; + waitDelResourceList.clear(); + return this; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + * + * 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 #getMutableWaitDelResourceList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getWaitDelResourceList() { + return waitDelResourceList; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + * + * 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 getMutableWaitDelResourceList( + ) { + bitField0_ |= 0x00000200; + return waitDelResourceList; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + * @param value the waitDelResourceList to add + * @return this + */ + public PlayerSyncScNotify addWaitDelResourceList( + final WaitDelResourceOuterClass.WaitDelResource value) { + bitField0_ |= 0x00000200; + waitDelResourceList.add(value); + return this; + } + + /** + * repeated .WaitDelResource wait_del_resource_list = 8; + * @param values the waitDelResourceList to add + * @return this + */ + public PlayerSyncScNotify addAllWaitDelResourceList( + final WaitDelResourceOuterClass.WaitDelResource... values) { + bitField0_ |= 0x00000200; + waitDelResourceList.addAll(values); + return this; + } + + /** + * repeated .Equipment equipment_list = 12; + * @return whether the equipmentList field is set + */ + public boolean hasEquipmentList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .Equipment equipment_list = 12; + * @return this + */ + public PlayerSyncScNotify clearEquipmentList() { + bitField0_ &= ~0x00000400; + equipmentList.clear(); + return this; + } + + /** + * repeated .Equipment equipment_list = 12; + * + * 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 #getMutableEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipmentList() { + return equipmentList; + } + + /** + * repeated .Equipment equipment_list = 12; + * + * 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 getMutableEquipmentList() { + bitField0_ |= 0x00000400; + return equipmentList; + } + + /** + * repeated .Equipment equipment_list = 12; + * @param value the equipmentList to add + * @return this + */ + public PlayerSyncScNotify addEquipmentList(final EquipmentOuterClass.Equipment value) { + bitField0_ |= 0x00000400; + equipmentList.add(value); + return this; + } + + /** + * repeated .Equipment equipment_list = 12; + * @param values the equipmentList to add + * @return this + */ + public PlayerSyncScNotify addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { + bitField0_ |= 0x00000400; + equipmentList.addAll(values); + return this; + } + + /** + * repeated .Material KPBMGJKOKDA = 836; + * @return whether the kPBMGJKOKDA field is set + */ + public boolean hasKPBMGJKOKDA() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .Material KPBMGJKOKDA = 836; + * @return this + */ + public PlayerSyncScNotify clearKPBMGJKOKDA() { + bitField0_ &= ~0x00000800; + kPBMGJKOKDA.clear(); + return this; + } + + /** + * repeated .Material KPBMGJKOKDA = 836; + * + * 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 #getMutableKPBMGJKOKDA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getKPBMGJKOKDA() { + return kPBMGJKOKDA; + } + + /** + * repeated .Material KPBMGJKOKDA = 836; + * + * 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 getMutableKPBMGJKOKDA() { + bitField0_ |= 0x00000800; + return kPBMGJKOKDA; + } + + /** + * repeated .Material KPBMGJKOKDA = 836; + * @param value the kPBMGJKOKDA to add + * @return this + */ + public PlayerSyncScNotify addKPBMGJKOKDA(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000800; + kPBMGJKOKDA.add(value); + return this; + } + + /** + * repeated .Material KPBMGJKOKDA = 836; + * @param values the kPBMGJKOKDA to add + * @return this + */ + public PlayerSyncScNotify addAllKPBMGJKOKDA(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000800; + kPBMGJKOKDA.addAll(values); + return this; + } + + @Override + public PlayerSyncScNotify copyFrom(final PlayerSyncScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarSync.copyFrom(other.avatarSync); + basicInfo.copyFrom(other.basicInfo); + boardDataSync.copyFrom(other.boardDataSync); + dIMLIHPBEFB.copyFrom(other.dIMLIHPBEFB); + delRelicList.copyFrom(other.delRelicList); + delEquipmentList.copyFrom(other.delEquipmentList); + basicTypeInfoList.copyFrom(other.basicTypeInfoList); + materialList.copyFrom(other.materialList); + relicList.copyFrom(other.relicList); + waitDelResourceList.copyFrom(other.waitDelResourceList); + equipmentList.copyFrom(other.equipmentList); + kPBMGJKOKDA.copyFrom(other.kPBMGJKOKDA); + } + return this; + } + + @Override + public PlayerSyncScNotify mergeFrom(final PlayerSyncScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarSync()) { + getMutableAvatarSync().mergeFrom(other.avatarSync); + } + if (other.hasBasicInfo()) { + getMutableBasicInfo().mergeFrom(other.basicInfo); + } + if (other.hasBoardDataSync()) { + getMutableBoardDataSync().mergeFrom(other.boardDataSync); + } + if (other.hasDIMLIHPBEFB()) { + getMutableDIMLIHPBEFB().mergeFrom(other.dIMLIHPBEFB); + } + if (other.hasDelRelicList()) { + getMutableDelRelicList().addAll(other.delRelicList); + } + if (other.hasDelEquipmentList()) { + getMutableDelEquipmentList().addAll(other.delEquipmentList); + } + if (other.hasBasicTypeInfoList()) { + getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); + } + if (other.hasMaterialList()) { + getMutableMaterialList().addAll(other.materialList); + } + if (other.hasRelicList()) { + getMutableRelicList().addAll(other.relicList); + } + if (other.hasWaitDelResourceList()) { + getMutableWaitDelResourceList().addAll(other.waitDelResourceList); + } + if (other.hasEquipmentList()) { + getMutableEquipmentList().addAll(other.equipmentList); + } + if (other.hasKPBMGJKOKDA()) { + getMutableKPBMGJKOKDA().addAll(other.kPBMGJKOKDA); + } + return this; + } + + @Override + public PlayerSyncScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarSync.clear(); + basicInfo.clear(); + boardDataSync.clear(); + dIMLIHPBEFB.clear(); + delRelicList.clear(); + delEquipmentList.clear(); + basicTypeInfoList.clear(); + materialList.clear(); + relicList.clear(); + waitDelResourceList.clear(); + equipmentList.clear(); + kPBMGJKOKDA.clear(); + return this; + } + + @Override + public PlayerSyncScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarSync.clearQuick(); + basicInfo.clearQuick(); + boardDataSync.clearQuick(); + dIMLIHPBEFB.clearQuick(); + delRelicList.clear(); + delEquipmentList.clear(); + basicTypeInfoList.clearQuick(); + materialList.clearQuick(); + relicList.clearQuick(); + waitDelResourceList.clearQuick(); + equipmentList.clearQuick(); + kPBMGJKOKDA.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerSyncScNotify)) { + return false; + } + PlayerSyncScNotify other = (PlayerSyncScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarSync() || avatarSync.equals(other.avatarSync)) + && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)) + && (!hasBoardDataSync() || boardDataSync.equals(other.boardDataSync)) + && (!hasDIMLIHPBEFB() || dIMLIHPBEFB.equals(other.dIMLIHPBEFB)) + && (!hasDelRelicList() || delRelicList.equals(other.delRelicList)) + && (!hasDelEquipmentList() || delEquipmentList.equals(other.delEquipmentList)) + && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)) + && (!hasMaterialList() || materialList.equals(other.materialList)) + && (!hasRelicList() || relicList.equals(other.relicList)) + && (!hasWaitDelResourceList() || waitDelResourceList.equals(other.waitDelResourceList)) + && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) + && (!hasKPBMGJKOKDA() || kPBMGJKOKDA.equals(other.kPBMGJKOKDA)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(avatarSync); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(basicInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 21746); + output.writeMessageNoTag(boardDataSync); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 28578); + output.writeMessageNoTag(dIMLIHPBEFB); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < delRelicList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(delRelicList.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < delEquipmentList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(delEquipmentList.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < basicTypeInfoList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(basicTypeInfoList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(materialList.get(i)); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(relicList.get(i)); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < waitDelResourceList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(waitDelResourceList.get(i)); + } + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < equipmentList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(equipmentList.get(i)); + } + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < kPBMGJKOKDA.length(); i++) { + output.writeRawLittleEndian16((short) 13474); + output.writeMessageNoTag(kPBMGJKOKDA.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(avatarSync); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(dIMLIHPBEFB); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * delEquipmentList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delEquipmentList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * waitDelResourceList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(waitDelResourceList); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (2 * kPBMGJKOKDA.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(kPBMGJKOKDA); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerSyncScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // avatarSync + input.readMessage(avatarSync); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // basicInfo + input.readMessage(basicInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10866) { + break; + } + } + case 10866: { + // boardDataSync + input.readMessage(boardDataSync); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 14242) { + break; + } + } + case 14242: { + // dIMLIHPBEFB + input.readMessage(dIMLIHPBEFB); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // delRelicList [packed=true] + input.readPackedUInt32(delRelicList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // delEquipmentList [packed=true] + input.readPackedUInt32(delEquipmentList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // basicTypeInfoList + tag = input.readRepeatedMessage(basicTypeInfoList, tag); + bitField0_ |= 0x00000040; + if (tag != 42) { + break; + } + } + case 42: { + // materialList + tag = input.readRepeatedMessage(materialList, tag); + bitField0_ |= 0x00000080; + if (tag != 58) { + break; + } + } + case 58: { + // relicList + tag = input.readRepeatedMessage(relicList, tag); + bitField0_ |= 0x00000100; + if (tag != 66) { + break; + } + } + case 66: { + // waitDelResourceList + tag = input.readRepeatedMessage(waitDelResourceList, tag); + bitField0_ |= 0x00000200; + if (tag != 98) { + break; + } + } + case 98: { + // equipmentList + tag = input.readRepeatedMessage(equipmentList, tag); + bitField0_ |= 0x00000400; + if (tag != 6690) { + break; + } + } + case 6690: { + // kPBMGJKOKDA + tag = input.readRepeatedMessage(kPBMGJKOKDA, tag); + bitField0_ |= 0x00000800; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // delRelicList [packed=false] + tag = input.readRepeatedUInt32(delRelicList, tag); + bitField0_ |= 0x00000010; + break; + } + case 80: { + // delEquipmentList [packed=false] + tag = input.readRepeatedUInt32(delEquipmentList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.avatarSync, avatarSync); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.basicInfo, basicInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.boardDataSync, boardDataSync); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.dIMLIHPBEFB, dIMLIHPBEFB); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.delEquipmentList, delEquipmentList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.materialList, materialList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.relicList, relicList); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.waitDelResourceList, waitDelResourceList); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.kPBMGJKOKDA, kPBMGJKOKDA); + } + output.endObject(); + } + + @Override + public PlayerSyncScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -403178604: + case 397279681: { + if (input.isAtField(FieldNames.avatarSync)) { + if (!input.trySkipNullValue()) { + input.readMessage(avatarSync); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1699486212: + case -1124288993: { + if (input.isAtField(FieldNames.basicInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(basicInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 818128491: + case -589815817: { + if (input.isAtField(FieldNames.boardDataSync)) { + if (!input.trySkipNullValue()) { + input.readMessage(boardDataSync); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 975808876: { + if (input.isAtField(FieldNames.dIMLIHPBEFB)) { + if (!input.trySkipNullValue()) { + input.readMessage(dIMLIHPBEFB); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1380069094: + case 1336083102: { + if (input.isAtField(FieldNames.delRelicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(delRelicList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2124519167: + case -1682718877: { + if (input.isAtField(FieldNames.delEquipmentList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(delEquipmentList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -344592620: + case -1315699973: { + if (input.isAtField(FieldNames.basicTypeInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(basicTypeInfoList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(materialList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 204814001: + case 2071893482: { + if (input.isAtField(FieldNames.relicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(relicList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -299057342: + case -402862927: { + if (input.isAtField(FieldNames.waitDelResourceList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(waitDelResourceList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2007143244: + case 2109525167: { + if (input.isAtField(FieldNames.equipmentList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(equipmentList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1665544015: { + if (input.isAtField(FieldNames.kPBMGJKOKDA)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(kPBMGJKOKDA); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerSyncScNotify clone() { + return new PlayerSyncScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerSyncScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerSyncScNotify(), data).checkInitialized(); + } + + public static PlayerSyncScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSyncScNotify(), input).checkInitialized(); + } + + public static PlayerSyncScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSyncScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerSyncScNotify messages + */ + public static MessageFactory getFactory() { + return PlayerSyncScNotifyFactory.INSTANCE; + } + + private enum PlayerSyncScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerSyncScNotify create() { + return PlayerSyncScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarSync = FieldName.forField("avatarSync", "avatar_sync"); + + static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info"); + + static final FieldName boardDataSync = FieldName.forField("boardDataSync", "board_data_sync"); + + static final FieldName dIMLIHPBEFB = FieldName.forField("DIMLIHPBEFB"); + + static final FieldName delRelicList = FieldName.forField("delRelicList", "del_relic_list"); + + static final FieldName delEquipmentList = FieldName.forField("delEquipmentList", "del_equipment_list"); + + static final FieldName basicTypeInfoList = FieldName.forField("basicTypeInfoList", "basic_type_info_list"); + + static final FieldName materialList = FieldName.forField("materialList", "material_list"); + + static final FieldName relicList = FieldName.forField("relicList", "relic_list"); + + static final FieldName waitDelResourceList = FieldName.forField("waitDelResourceList", "wait_del_resource_list"); + + static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); + + static final FieldName kPBMGJKOKDA = FieldName.forField("KPBMGJKOKDA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java new file mode 100644 index 0000000..1cef942 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java @@ -0,0 +1,375 @@ +// 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 PromoteAvatarCsReqOuterClass { + /** + * Protobuf type {@code PromoteAvatarCsReq} + */ + public static final class PromoteAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 5; + */ + private int baseAvatarId; + + /** + * repeated .ItemCost item_list = 15; + */ + private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); + + private PromoteAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code PromoteAvatarCsReq} + */ + public static PromoteAvatarCsReq newInstance() { + return new PromoteAvatarCsReq(); + } + + /** + * optional uint32 base_avatar_id = 5; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 5; + * @return this + */ + public PromoteAvatarCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 5; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 5; + * @param value the baseAvatarId to set + * @return this + */ + public PromoteAvatarCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + /** + * repeated .ItemCost item_list = 15; + * @return whether the itemList field is set + */ + public boolean hasItemList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ItemCost item_list = 15; + * @return this + */ + public PromoteAvatarCsReq clearItemList() { + bitField0_ &= ~0x00000002; + itemList.clear(); + return this; + } + + /** + * repeated .ItemCost item_list = 15; + * + * 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 RepeatedMessage getItemList() { + return itemList; + } + + /** + * repeated .ItemCost item_list = 15; + * + * 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 getMutableItemList() { + bitField0_ |= 0x00000002; + return itemList; + } + + /** + * repeated .ItemCost item_list = 15; + * @param value the itemList to add + * @return this + */ + public PromoteAvatarCsReq addItemList(final ItemCostOuterClass.ItemCost value) { + bitField0_ |= 0x00000002; + itemList.add(value); + return this; + } + + /** + * repeated .ItemCost item_list = 15; + * @param values the itemList to add + * @return this + */ + public PromoteAvatarCsReq addAllItemList(final ItemCostOuterClass.ItemCost... values) { + bitField0_ |= 0x00000002; + itemList.addAll(values); + return this; + } + + @Override + public PromoteAvatarCsReq copyFrom(final PromoteAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + itemList.copyFrom(other.itemList); + } + return this; + } + + @Override + public PromoteAvatarCsReq mergeFrom(final PromoteAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasItemList()) { + getMutableItemList().addAll(other.itemList); + } + return this; + } + + @Override + public PromoteAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + itemList.clear(); + return this; + } + + @Override + public PromoteAvatarCsReq 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 PromoteAvatarCsReq)) { + return false; + } + PromoteAvatarCsReq other = (PromoteAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasItemList() || itemList.equals(other.itemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < itemList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(itemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * itemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(itemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PromoteAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // itemList + tag = input.readRepeatedMessage(itemList, 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.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.itemList, itemList); + } + output.endObject(); + } + + @Override + public PromoteAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1177280081: + case -2141396406: { + if (input.isAtField(FieldNames.itemList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(itemList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PromoteAvatarCsReq clone() { + return new PromoteAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PromoteAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PromoteAvatarCsReq(), data).checkInitialized(); + } + + public static PromoteAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PromoteAvatarCsReq(), input).checkInitialized(); + } + + public static PromoteAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PromoteAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PromoteAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return PromoteAvatarCsReqFactory.INSTANCE; + } + + private enum PromoteAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PromoteAvatarCsReq create() { + return PromoteAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName itemList = FieldName.forField("itemList", "item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java new file mode 100644 index 0000000..9f57597 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java @@ -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 PromoteEquipmentCsReqOuterClass { + /** + * Protobuf type {@code PromoteEquipmentCsReq} + */ + public static final class PromoteEquipmentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 equipment_unique_id = 4; + */ + private int equipmentUniqueId; + + /** + * optional .ItemCostList item_cost_list = 2; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private PromoteEquipmentCsReq() { + } + + /** + * @return a new empty instance of {@code PromoteEquipmentCsReq} + */ + public static PromoteEquipmentCsReq newInstance() { + return new PromoteEquipmentCsReq(); + } + + /** + * optional uint32 equipment_unique_id = 4; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 equipment_unique_id = 4; + * @return this + */ + public PromoteEquipmentCsReq clearEquipmentUniqueId() { + bitField0_ &= ~0x00000001; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 4; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 4; + * @param value the equipmentUniqueId to set + * @return this + */ + public PromoteEquipmentCsReq setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000001; + equipmentUniqueId = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 2; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 2; + * @return this + */ + public PromoteEquipmentCsReq clearItemCostList() { + bitField0_ &= ~0x00000002; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 2; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 2; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000002; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 2; + * @param value the itemCostList to set + * @return this + */ + public PromoteEquipmentCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000002; + itemCostList.copyFrom(value); + return this; + } + + @Override + public PromoteEquipmentCsReq copyFrom(final PromoteEquipmentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + equipmentUniqueId = other.equipmentUniqueId; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public PromoteEquipmentCsReq mergeFrom(final PromoteEquipmentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public PromoteEquipmentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + equipmentUniqueId = 0; + itemCostList.clear(); + return this; + } + + @Override + public PromoteEquipmentCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PromoteEquipmentCsReq)) { + return false; + } + PromoteEquipmentCsReq other = (PromoteEquipmentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PromoteEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // itemCostList + input.readMessage(itemCostList); + 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.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public PromoteEquipmentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PromoteEquipmentCsReq clone() { + return new PromoteEquipmentCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PromoteEquipmentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PromoteEquipmentCsReq(), data).checkInitialized(); + } + + public static PromoteEquipmentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PromoteEquipmentCsReq(), input).checkInitialized(); + } + + public static PromoteEquipmentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PromoteEquipmentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PromoteEquipmentCsReq messages + */ + public static MessageFactory getFactory() { + return PromoteEquipmentCsReqFactory.INSTANCE; + } + + private enum PromoteEquipmentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PromoteEquipmentCsReq create() { + return PromoteEquipmentCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java new file mode 100644 index 0000000..8c93834 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java @@ -0,0 +1,731 @@ +// 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 QuitLineupCsReqOuterClass { + /** + * Protobuf type {@code QuitLineupCsReq} + */ + public static final class QuitLineupCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 plane_id = 1; + */ + private int planeId; + + /** + * optional uint32 index = 3; + */ + private int index; + + /** + * optional uint32 base_avatar_id = 6; + */ + private int baseAvatarId; + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + */ + private int extraLineupType; + + /** + * optional .AvatarType avatar_type = 13; + */ + private int avatarType; + + /** + * optional bool is_virtual = 9; + */ + private boolean isVirtual; + + private QuitLineupCsReq() { + } + + /** + * @return a new empty instance of {@code QuitLineupCsReq} + */ + public static QuitLineupCsReq newInstance() { + return new QuitLineupCsReq(); + } + + /** + * optional uint32 plane_id = 1; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 plane_id = 1; + * @return this + */ + public QuitLineupCsReq clearPlaneId() { + bitField0_ &= ~0x00000001; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 1; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 1; + * @param value the planeId to set + * @return this + */ + public QuitLineupCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000001; + planeId = value; + return this; + } + + /** + * optional uint32 index = 3; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 3; + * @return this + */ + public QuitLineupCsReq clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 3; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 3; + * @param value the index to set + * @return this + */ + public QuitLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 6; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 6; + * @return this + */ + public QuitLineupCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 6; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 6; + * @param value the baseAvatarId to set + * @return this + */ + public QuitLineupCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @return this + */ + public QuitLineupCsReq clearExtraLineupType() { + bitField0_ &= ~0x00000008; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link QuitLineupCsReq#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link QuitLineupCsReq#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public QuitLineupCsReq setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000008; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 11; + * @param value the extraLineupType to set + * @return this + */ + public QuitLineupCsReq setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000008; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return this + */ + public QuitLineupCsReq clearAvatarType() { + bitField0_ &= ~0x00000010; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link QuitLineupCsReq#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link QuitLineupCsReq#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public QuitLineupCsReq setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000010; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @param value the avatarType to set + * @return this + */ + public QuitLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000010; + avatarType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 9; + * @return whether the isVirtual field is set + */ + public boolean hasIsVirtual() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool is_virtual = 9; + * @return this + */ + public QuitLineupCsReq clearIsVirtual() { + bitField0_ &= ~0x00000020; + isVirtual = false; + return this; + } + + /** + * optional bool is_virtual = 9; + * @return the isVirtual + */ + public boolean getIsVirtual() { + return isVirtual; + } + + /** + * optional bool is_virtual = 9; + * @param value the isVirtual to set + * @return this + */ + public QuitLineupCsReq setIsVirtual(final boolean value) { + bitField0_ |= 0x00000020; + isVirtual = value; + return this; + } + + @Override + public QuitLineupCsReq copyFrom(final QuitLineupCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + planeId = other.planeId; + index = other.index; + baseAvatarId = other.baseAvatarId; + extraLineupType = other.extraLineupType; + avatarType = other.avatarType; + isVirtual = other.isVirtual; + } + return this; + } + + @Override + public QuitLineupCsReq mergeFrom(final QuitLineupCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + if (other.hasIsVirtual()) { + setIsVirtual(other.isVirtual); + } + return this; + } + + @Override + public QuitLineupCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + planeId = 0; + index = 0; + baseAvatarId = 0; + extraLineupType = 0; + avatarType = 0; + isVirtual = false; + return this; + } + + @Override + public QuitLineupCsReq 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 QuitLineupCsReq)) { + return false; + } + QuitLineupCsReq other = (QuitLineupCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPlaneId() || planeId == other.planeId) + && (!hasIndex() || index == other.index) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasIsVirtual() || isVirtual == other.isVirtual); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(planeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeEnumNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(isVirtual); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public QuitLineupCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // isVirtual + isVirtual = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.index, index); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.isVirtual, isVirtual); + } + output.endObject(); + } + + @Override + public QuitLineupCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100346066: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -113613183: + case 1966475510: { + if (input.isAtField(FieldNames.isVirtual)) { + if (!input.trySkipNullValue()) { + isVirtual = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public QuitLineupCsReq clone() { + return new QuitLineupCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static QuitLineupCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new QuitLineupCsReq(), data).checkInitialized(); + } + + public static QuitLineupCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuitLineupCsReq(), input).checkInitialized(); + } + + public static QuitLineupCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuitLineupCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating QuitLineupCsReq messages + */ + public static MessageFactory getFactory() { + return QuitLineupCsReqFactory.INSTANCE; + } + + private enum QuitLineupCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public QuitLineupCsReq create() { + return QuitLineupCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName index = FieldName.forField("index"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java new file mode 100644 index 0000000..3eadc6a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java @@ -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 RankUpAvatarCsReqOuterClass { + /** + * Protobuf type {@code RankUpAvatarCsReq} + */ + public static final class RankUpAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 rank = 7; + */ + private int rank; + + /** + * optional uint32 base_avatar_id = 9; + */ + private int baseAvatarId; + + /** + * optional .ItemCostList item_cost_list = 14; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private RankUpAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code RankUpAvatarCsReq} + */ + public static RankUpAvatarCsReq newInstance() { + return new RankUpAvatarCsReq(); + } + + /** + * optional uint32 rank = 7; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 rank = 7; + * @return this + */ + public RankUpAvatarCsReq clearRank() { + bitField0_ &= ~0x00000001; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 7; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 7; + * @param value the rank to set + * @return this + */ + public RankUpAvatarCsReq setRank(final int value) { + bitField0_ |= 0x00000001; + rank = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return this + */ + public RankUpAvatarCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000002; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 9; + * @param value the baseAvatarId to set + * @return this + */ + public RankUpAvatarCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000002; + baseAvatarId = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 14; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 14; + * @return this + */ + public RankUpAvatarCsReq clearItemCostList() { + bitField0_ &= ~0x00000004; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 14; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 14; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000004; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 14; + * @param value the itemCostList to set + * @return this + */ + public RankUpAvatarCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000004; + itemCostList.copyFrom(value); + return this; + } + + @Override + public RankUpAvatarCsReq copyFrom(final RankUpAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rank = other.rank; + baseAvatarId = other.baseAvatarId; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public RankUpAvatarCsReq mergeFrom(final RankUpAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public RankUpAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rank = 0; + baseAvatarId = 0; + itemCostList.clear(); + return this; + } + + @Override + public RankUpAvatarCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RankUpAvatarCsReq)) { + return false; + } + RankUpAvatarCsReq other = (RankUpAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRank() || rank == other.rank) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RankUpAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // itemCostList + input.readMessage(itemCostList); + 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.rank, rank); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public RankUpAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RankUpAvatarCsReq clone() { + return new RankUpAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RankUpAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RankUpAvatarCsReq(), data).checkInitialized(); + } + + public static RankUpAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RankUpAvatarCsReq(), input).checkInitialized(); + } + + public static RankUpAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RankUpAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating RankUpAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return RankUpAvatarCsReqFactory.INSTANCE; + } + + private enum RankUpAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public RankUpAvatarCsReq create() { + return RankUpAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java new file mode 100644 index 0000000..e3556f6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java @@ -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 RankUpEquipmentCsReqOuterClass { + /** + * Protobuf type {@code RankUpEquipmentCsReq} + */ + public static final class RankUpEquipmentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 equipment_unique_id = 8; + */ + private int equipmentUniqueId; + + /** + * optional .ItemCostList item_cost_list = 7; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private RankUpEquipmentCsReq() { + } + + /** + * @return a new empty instance of {@code RankUpEquipmentCsReq} + */ + public static RankUpEquipmentCsReq newInstance() { + return new RankUpEquipmentCsReq(); + } + + /** + * optional uint32 equipment_unique_id = 8; + * @return whether the equipmentUniqueId field is set + */ + public boolean hasEquipmentUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 equipment_unique_id = 8; + * @return this + */ + public RankUpEquipmentCsReq clearEquipmentUniqueId() { + bitField0_ &= ~0x00000001; + equipmentUniqueId = 0; + return this; + } + + /** + * optional uint32 equipment_unique_id = 8; + * @return the equipmentUniqueId + */ + public int getEquipmentUniqueId() { + return equipmentUniqueId; + } + + /** + * optional uint32 equipment_unique_id = 8; + * @param value the equipmentUniqueId to set + * @return this + */ + public RankUpEquipmentCsReq setEquipmentUniqueId(final int value) { + bitField0_ |= 0x00000001; + equipmentUniqueId = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 7; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 7; + * @return this + */ + public RankUpEquipmentCsReq clearItemCostList() { + bitField0_ &= ~0x00000002; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 7; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 7; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000002; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 7; + * @param value the itemCostList to set + * @return this + */ + public RankUpEquipmentCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000002; + itemCostList.copyFrom(value); + return this; + } + + @Override + public RankUpEquipmentCsReq copyFrom(final RankUpEquipmentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + equipmentUniqueId = other.equipmentUniqueId; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public RankUpEquipmentCsReq mergeFrom(final RankUpEquipmentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEquipmentUniqueId()) { + setEquipmentUniqueId(other.equipmentUniqueId); + } + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public RankUpEquipmentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + equipmentUniqueId = 0; + itemCostList.clear(); + return this; + } + + @Override + public RankUpEquipmentCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RankUpEquipmentCsReq)) { + return false; + } + RankUpEquipmentCsReq other = (RankUpEquipmentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RankUpEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // itemCostList + input.readMessage(itemCostList); + 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.equipmentUniqueId, equipmentUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public RankUpEquipmentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { + if (!input.trySkipNullValue()) { + equipmentUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RankUpEquipmentCsReq clone() { + return new RankUpEquipmentCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RankUpEquipmentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RankUpEquipmentCsReq(), data).checkInitialized(); + } + + public static RankUpEquipmentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RankUpEquipmentCsReq(), input).checkInitialized(); + } + + public static RankUpEquipmentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RankUpEquipmentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating RankUpEquipmentCsReq messages + */ + public static MessageFactory getFactory() { + return RankUpEquipmentCsReqFactory.INSTANCE; + } + + private enum RankUpEquipmentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public RankUpEquipmentCsReq create() { + return RankUpEquipmentCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java new file mode 100644 index 0000000..43d18ea --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java @@ -0,0 +1,262 @@ +// 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 ReEnterLastElementStageCsReqOuterClass { + /** + * Protobuf type {@code ReEnterLastElementStageCsReq} + */ + public static final class ReEnterLastElementStageCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 stage_id = 8; + */ + private int stageId; + + private ReEnterLastElementStageCsReq() { + } + + /** + * @return a new empty instance of {@code ReEnterLastElementStageCsReq} + */ + public static ReEnterLastElementStageCsReq newInstance() { + return new ReEnterLastElementStageCsReq(); + } + + /** + * optional uint32 stage_id = 8; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 stage_id = 8; + * @return this + */ + public ReEnterLastElementStageCsReq clearStageId() { + bitField0_ &= ~0x00000001; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 8; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 8; + * @param value the stageId to set + * @return this + */ + public ReEnterLastElementStageCsReq setStageId(final int value) { + bitField0_ |= 0x00000001; + stageId = value; + return this; + } + + @Override + public ReEnterLastElementStageCsReq copyFrom(final ReEnterLastElementStageCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + stageId = other.stageId; + } + return this; + } + + @Override + public ReEnterLastElementStageCsReq mergeFrom(final ReEnterLastElementStageCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStageId()) { + setStageId(other.stageId); + } + return this; + } + + @Override + public ReEnterLastElementStageCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stageId = 0; + return this; + } + + @Override + public ReEnterLastElementStageCsReq 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 ReEnterLastElementStageCsReq)) { + return false; + } + ReEnterLastElementStageCsReq other = (ReEnterLastElementStageCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasStageId() || stageId == other.stageId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(stageId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ReEnterLastElementStageCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // stageId + stageId = 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.stageId, stageId); + } + output.endObject(); + } + + @Override + public ReEnterLastElementStageCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ReEnterLastElementStageCsReq clone() { + return new ReEnterLastElementStageCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ReEnterLastElementStageCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ReEnterLastElementStageCsReq(), data).checkInitialized(); + } + + public static ReEnterLastElementStageCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ReEnterLastElementStageCsReq(), input).checkInitialized(); + } + + public static ReEnterLastElementStageCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ReEnterLastElementStageCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ReEnterLastElementStageCsReq messages + */ + public static MessageFactory getFactory() { + return ReEnterLastElementStageCsReqFactory.INSTANCE; + } + + private enum ReEnterLastElementStageCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ReEnterLastElementStageCsReq create() { + return ReEnterLastElementStageCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java new file mode 100644 index 0000000..1be407a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java @@ -0,0 +1,465 @@ +// 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 ReEnterLastElementStageScRspOuterClass { + /** + * Protobuf type {@code ReEnterLastElementStageScRsp} + */ + public static final class ReEnterLastElementStageScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 stage_id = 2; + */ + private int stageId; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional .SceneBattleInfo battle_info = 10; + */ + private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); + + private ReEnterLastElementStageScRsp() { + } + + /** + * @return a new empty instance of {@code ReEnterLastElementStageScRsp} + */ + public static ReEnterLastElementStageScRsp newInstance() { + return new ReEnterLastElementStageScRsp(); + } + + /** + * optional uint32 stage_id = 2; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 stage_id = 2; + * @return this + */ + public ReEnterLastElementStageScRsp clearStageId() { + bitField0_ &= ~0x00000001; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 2; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 2; + * @param value the stageId to set + * @return this + */ + public ReEnterLastElementStageScRsp setStageId(final int value) { + bitField0_ |= 0x00000001; + stageId = value; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public ReEnterLastElementStageScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public ReEnterLastElementStageScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 10; + * @return whether the battleInfo field is set + */ + public boolean hasBattleInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneBattleInfo battle_info = 10; + * @return this + */ + public ReEnterLastElementStageScRsp clearBattleInfo() { + bitField0_ &= ~0x00000004; + battleInfo.clear(); + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 10; + * + * 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 #getMutableBattleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { + return battleInfo; + } + + /** + * optional .SceneBattleInfo battle_info = 10; + * + * 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 SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { + bitField0_ |= 0x00000004; + return battleInfo; + } + + /** + * optional .SceneBattleInfo battle_info = 10; + * @param value the battleInfo to set + * @return this + */ + public ReEnterLastElementStageScRsp setBattleInfo( + final SceneBattleInfoOuterClass.SceneBattleInfo value) { + bitField0_ |= 0x00000004; + battleInfo.copyFrom(value); + return this; + } + + @Override + public ReEnterLastElementStageScRsp copyFrom(final ReEnterLastElementStageScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + stageId = other.stageId; + retcode = other.retcode; + battleInfo.copyFrom(other.battleInfo); + } + return this; + } + + @Override + public ReEnterLastElementStageScRsp mergeFrom(final ReEnterLastElementStageScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBattleInfo()) { + getMutableBattleInfo().mergeFrom(other.battleInfo); + } + return this; + } + + @Override + public ReEnterLastElementStageScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stageId = 0; + retcode = 0; + battleInfo.clear(); + return this; + } + + @Override + public ReEnterLastElementStageScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ReEnterLastElementStageScRsp)) { + return false; + } + ReEnterLastElementStageScRsp other = (ReEnterLastElementStageScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasStageId() || stageId == other.stageId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(battleInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ReEnterLastElementStageScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // battleInfo + input.readMessage(battleInfo); + 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.stageId, stageId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.battleInfo, battleInfo); + } + output.endObject(); + } + + @Override + public ReEnterLastElementStageScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = 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 2053377414: + case -749633579: { + if (input.isAtField(FieldNames.battleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ReEnterLastElementStageScRsp clone() { + return new ReEnterLastElementStageScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ReEnterLastElementStageScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ReEnterLastElementStageScRsp(), data).checkInitialized(); + } + + public static ReEnterLastElementStageScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ReEnterLastElementStageScRsp(), input).checkInitialized(); + } + + public static ReEnterLastElementStageScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ReEnterLastElementStageScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating ReEnterLastElementStageScRsp messages + */ + public static MessageFactory getFactory() { + return ReEnterLastElementStageScRspFactory.INSTANCE; + } + + private enum ReEnterLastElementStageScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public ReEnterLastElementStageScRsp create() { + return ReEnterLastElementStageScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RegionEntryOuterClass.java b/src/generated/main/emu/lunarcore/proto/RegionEntryOuterClass.java new file mode 100644 index 0000000..93bd0e0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RegionEntryOuterClass.java @@ -0,0 +1,836 @@ +// 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.Utf8String; + +public final class RegionEntryOuterClass { + /** + * Protobuf type {@code RegionEntry} + */ + public static final class RegionEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional string name = 1; + */ + private final Utf8String name = Utf8String.newEmptyInstance(); + + /** + * optional string title = 2; + */ + private final Utf8String title = Utf8String.newEmptyInstance(); + + /** + * optional string dispatch_url = 3; + */ + private final Utf8String dispatchUrl = Utf8String.newEmptyInstance(); + + /** + * optional string env_type = 4; + */ + private final Utf8String envType = Utf8String.newEmptyInstance(); + + /** + * optional string display_name = 5; + */ + private final Utf8String displayName = Utf8String.newEmptyInstance(); + + /** + * optional string msg = 6; + */ + private final Utf8String msg = Utf8String.newEmptyInstance(); + + private RegionEntry() { + } + + /** + * @return a new empty instance of {@code RegionEntry} + */ + public static RegionEntry newInstance() { + return new RegionEntry(); + } + + /** + * optional string name = 1; + * @return whether the name field is set + */ + public boolean hasName() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional string name = 1; + * @return this + */ + public RegionEntry clearName() { + bitField0_ &= ~0x00000001; + name.clear(); + return this; + } + + /** + * optional string name = 1; + * @return the name + */ + public String getName() { + return name.getString(); + } + + /** + * optional string name = 1; + * @return internal {@code Utf8String} representation of name for reading + */ + public Utf8String getNameBytes() { + return this.name; + } + + /** + * optional string name = 1; + * @return internal {@code Utf8String} representation of name for modifications + */ + public Utf8String getMutableNameBytes() { + bitField0_ |= 0x00000001; + return this.name; + } + + /** + * optional string name = 1; + * @param value the name to set + * @return this + */ + public RegionEntry setName(final CharSequence value) { + bitField0_ |= 0x00000001; + name.copyFrom(value); + return this; + } + + /** + * optional string name = 1; + * @param value the name to set + * @return this + */ + public RegionEntry setName(final Utf8String value) { + bitField0_ |= 0x00000001; + name.copyFrom(value); + return this; + } + + /** + * optional string title = 2; + * @return whether the title field is set + */ + public boolean hasTitle() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string title = 2; + * @return this + */ + public RegionEntry clearTitle() { + bitField0_ &= ~0x00000002; + title.clear(); + return this; + } + + /** + * optional string title = 2; + * @return the title + */ + public String getTitle() { + return title.getString(); + } + + /** + * optional string title = 2; + * @return internal {@code Utf8String} representation of title for reading + */ + public Utf8String getTitleBytes() { + return this.title; + } + + /** + * optional string title = 2; + * @return internal {@code Utf8String} representation of title for modifications + */ + public Utf8String getMutableTitleBytes() { + bitField0_ |= 0x00000002; + return this.title; + } + + /** + * optional string title = 2; + * @param value the title to set + * @return this + */ + public RegionEntry setTitle(final CharSequence value) { + bitField0_ |= 0x00000002; + title.copyFrom(value); + return this; + } + + /** + * optional string title = 2; + * @param value the title to set + * @return this + */ + public RegionEntry setTitle(final Utf8String value) { + bitField0_ |= 0x00000002; + title.copyFrom(value); + return this; + } + + /** + * optional string dispatch_url = 3; + * @return whether the dispatchUrl field is set + */ + public boolean hasDispatchUrl() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string dispatch_url = 3; + * @return this + */ + public RegionEntry clearDispatchUrl() { + bitField0_ &= ~0x00000004; + dispatchUrl.clear(); + return this; + } + + /** + * optional string dispatch_url = 3; + * @return the dispatchUrl + */ + public String getDispatchUrl() { + return dispatchUrl.getString(); + } + + /** + * optional string dispatch_url = 3; + * @return internal {@code Utf8String} representation of dispatchUrl for reading + */ + public Utf8String getDispatchUrlBytes() { + return this.dispatchUrl; + } + + /** + * optional string dispatch_url = 3; + * @return internal {@code Utf8String} representation of dispatchUrl for modifications + */ + public Utf8String getMutableDispatchUrlBytes() { + bitField0_ |= 0x00000004; + return this.dispatchUrl; + } + + /** + * optional string dispatch_url = 3; + * @param value the dispatchUrl to set + * @return this + */ + public RegionEntry setDispatchUrl(final CharSequence value) { + bitField0_ |= 0x00000004; + dispatchUrl.copyFrom(value); + return this; + } + + /** + * optional string dispatch_url = 3; + * @param value the dispatchUrl to set + * @return this + */ + public RegionEntry setDispatchUrl(final Utf8String value) { + bitField0_ |= 0x00000004; + dispatchUrl.copyFrom(value); + return this; + } + + /** + * optional string env_type = 4; + * @return whether the envType field is set + */ + public boolean hasEnvType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string env_type = 4; + * @return this + */ + public RegionEntry clearEnvType() { + bitField0_ &= ~0x00000008; + envType.clear(); + return this; + } + + /** + * optional string env_type = 4; + * @return the envType + */ + public String getEnvType() { + return envType.getString(); + } + + /** + * optional string env_type = 4; + * @return internal {@code Utf8String} representation of envType for reading + */ + public Utf8String getEnvTypeBytes() { + return this.envType; + } + + /** + * optional string env_type = 4; + * @return internal {@code Utf8String} representation of envType for modifications + */ + public Utf8String getMutableEnvTypeBytes() { + bitField0_ |= 0x00000008; + return this.envType; + } + + /** + * optional string env_type = 4; + * @param value the envType to set + * @return this + */ + public RegionEntry setEnvType(final CharSequence value) { + bitField0_ |= 0x00000008; + envType.copyFrom(value); + return this; + } + + /** + * optional string env_type = 4; + * @param value the envType to set + * @return this + */ + public RegionEntry setEnvType(final Utf8String value) { + bitField0_ |= 0x00000008; + envType.copyFrom(value); + return this; + } + + /** + * optional string display_name = 5; + * @return whether the displayName field is set + */ + public boolean hasDisplayName() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional string display_name = 5; + * @return this + */ + public RegionEntry clearDisplayName() { + bitField0_ &= ~0x00000010; + displayName.clear(); + return this; + } + + /** + * optional string display_name = 5; + * @return the displayName + */ + public String getDisplayName() { + return displayName.getString(); + } + + /** + * optional string display_name = 5; + * @return internal {@code Utf8String} representation of displayName for reading + */ + public Utf8String getDisplayNameBytes() { + return this.displayName; + } + + /** + * optional string display_name = 5; + * @return internal {@code Utf8String} representation of displayName for modifications + */ + public Utf8String getMutableDisplayNameBytes() { + bitField0_ |= 0x00000010; + return this.displayName; + } + + /** + * optional string display_name = 5; + * @param value the displayName to set + * @return this + */ + public RegionEntry setDisplayName(final CharSequence value) { + bitField0_ |= 0x00000010; + displayName.copyFrom(value); + return this; + } + + /** + * optional string display_name = 5; + * @param value the displayName to set + * @return this + */ + public RegionEntry setDisplayName(final Utf8String value) { + bitField0_ |= 0x00000010; + displayName.copyFrom(value); + return this; + } + + /** + * optional string msg = 6; + * @return whether the msg field is set + */ + public boolean hasMsg() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string msg = 6; + * @return this + */ + public RegionEntry clearMsg() { + bitField0_ &= ~0x00000020; + msg.clear(); + return this; + } + + /** + * optional string msg = 6; + * @return the msg + */ + public String getMsg() { + return msg.getString(); + } + + /** + * optional string msg = 6; + * @return internal {@code Utf8String} representation of msg for reading + */ + public Utf8String getMsgBytes() { + return this.msg; + } + + /** + * optional string msg = 6; + * @return internal {@code Utf8String} representation of msg for modifications + */ + public Utf8String getMutableMsgBytes() { + bitField0_ |= 0x00000020; + return this.msg; + } + + /** + * optional string msg = 6; + * @param value the msg to set + * @return this + */ + public RegionEntry setMsg(final CharSequence value) { + bitField0_ |= 0x00000020; + msg.copyFrom(value); + return this; + } + + /** + * optional string msg = 6; + * @param value the msg to set + * @return this + */ + public RegionEntry setMsg(final Utf8String value) { + bitField0_ |= 0x00000020; + msg.copyFrom(value); + return this; + } + + @Override + public RegionEntry copyFrom(final RegionEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + name.copyFrom(other.name); + title.copyFrom(other.title); + dispatchUrl.copyFrom(other.dispatchUrl); + envType.copyFrom(other.envType); + displayName.copyFrom(other.displayName); + msg.copyFrom(other.msg); + } + return this; + } + + @Override + public RegionEntry mergeFrom(final RegionEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasName()) { + getMutableNameBytes().copyFrom(other.name); + } + if (other.hasTitle()) { + getMutableTitleBytes().copyFrom(other.title); + } + if (other.hasDispatchUrl()) { + getMutableDispatchUrlBytes().copyFrom(other.dispatchUrl); + } + if (other.hasEnvType()) { + getMutableEnvTypeBytes().copyFrom(other.envType); + } + if (other.hasDisplayName()) { + getMutableDisplayNameBytes().copyFrom(other.displayName); + } + if (other.hasMsg()) { + getMutableMsgBytes().copyFrom(other.msg); + } + return this; + } + + @Override + public RegionEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + name.clear(); + title.clear(); + dispatchUrl.clear(); + envType.clear(); + displayName.clear(); + msg.clear(); + return this; + } + + @Override + public RegionEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + name.clear(); + title.clear(); + dispatchUrl.clear(); + envType.clear(); + displayName.clear(); + msg.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RegionEntry)) { + return false; + } + RegionEntry other = (RegionEntry) o; + return bitField0_ == other.bitField0_ + && (!hasName() || name.equals(other.name)) + && (!hasTitle() || title.equals(other.title)) + && (!hasDispatchUrl() || dispatchUrl.equals(other.dispatchUrl)) + && (!hasEnvType() || envType.equals(other.envType)) + && (!hasDisplayName() || displayName.equals(other.displayName)) + && (!hasMsg() || msg.equals(other.msg)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(name); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(title); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(dispatchUrl); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(envType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(displayName); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(msg); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(name); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(title); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(dispatchUrl); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(envType); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(displayName); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(msg); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RegionEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // name + input.readString(name); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // title + input.readString(title); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // dispatchUrl + input.readString(dispatchUrl); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // envType + input.readString(envType); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // displayName + input.readString(displayName); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // msg + input.readString(msg); + 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.writeString(FieldNames.name, name); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.title, title); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.dispatchUrl, dispatchUrl); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.envType, envType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeString(FieldNames.displayName, displayName); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.msg, msg); + } + output.endObject(); + } + + @Override + public RegionEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3373707: { + if (input.isAtField(FieldNames.name)) { + if (!input.trySkipNullValue()) { + input.readString(name); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 110371416: { + if (input.isAtField(FieldNames.title)) { + if (!input.trySkipNullValue()) { + input.readString(title); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1065942677: + case -1315214294: { + if (input.isAtField(FieldNames.dispatchUrl)) { + if (!input.trySkipNullValue()) { + input.readString(dispatchUrl); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1590604345: + case -2054075572: { + if (input.isAtField(FieldNames.envType)) { + if (!input.trySkipNullValue()) { + input.readString(envType); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1714148973: + case 1615086568: { + if (input.isAtField(FieldNames.displayName)) { + if (!input.trySkipNullValue()) { + input.readString(displayName); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 108417: { + if (input.isAtField(FieldNames.msg)) { + if (!input.trySkipNullValue()) { + input.readString(msg); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RegionEntry clone() { + return new RegionEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RegionEntry parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RegionEntry(), data).checkInitialized(); + } + + public static RegionEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RegionEntry(), input).checkInitialized(); + } + + public static RegionEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RegionEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating RegionEntry messages + */ + public static MessageFactory getFactory() { + return RegionEntryFactory.INSTANCE; + } + + private enum RegionEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public RegionEntry create() { + return RegionEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName name = FieldName.forField("name"); + + static final FieldName title = FieldName.forField("title"); + + static final FieldName dispatchUrl = FieldName.forField("dispatchUrl", "dispatch_url"); + + static final FieldName envType = FieldName.forField("envType", "env_type"); + + static final FieldName displayName = FieldName.forField("displayName", "display_name"); + + static final FieldName msg = FieldName.forField("msg"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RelicAffixOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicAffixOuterClass.java new file mode 100644 index 0000000..a87c9fe --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicAffixOuterClass.java @@ -0,0 +1,419 @@ +// 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 RelicAffixOuterClass { + /** + * Protobuf type {@code RelicAffix} + */ + public static final class RelicAffix extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 affix_id = 1; + */ + private int affixId; + + /** + * optional uint32 cnt = 2; + */ + private int cnt; + + /** + * optional uint32 step = 3; + */ + private int step; + + private RelicAffix() { + } + + /** + * @return a new empty instance of {@code RelicAffix} + */ + public static RelicAffix newInstance() { + return new RelicAffix(); + } + + /** + * optional uint32 affix_id = 1; + * @return whether the affixId field is set + */ + public boolean hasAffixId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 affix_id = 1; + * @return this + */ + public RelicAffix clearAffixId() { + bitField0_ &= ~0x00000001; + affixId = 0; + return this; + } + + /** + * optional uint32 affix_id = 1; + * @return the affixId + */ + public int getAffixId() { + return affixId; + } + + /** + * optional uint32 affix_id = 1; + * @param value the affixId to set + * @return this + */ + public RelicAffix setAffixId(final int value) { + bitField0_ |= 0x00000001; + affixId = value; + return this; + } + + /** + * optional uint32 cnt = 2; + * @return whether the cnt field is set + */ + public boolean hasCnt() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cnt = 2; + * @return this + */ + public RelicAffix clearCnt() { + bitField0_ &= ~0x00000002; + cnt = 0; + return this; + } + + /** + * optional uint32 cnt = 2; + * @return the cnt + */ + public int getCnt() { + return cnt; + } + + /** + * optional uint32 cnt = 2; + * @param value the cnt to set + * @return this + */ + public RelicAffix setCnt(final int value) { + bitField0_ |= 0x00000002; + cnt = value; + return this; + } + + /** + * optional uint32 step = 3; + * @return whether the step field is set + */ + public boolean hasStep() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 step = 3; + * @return this + */ + public RelicAffix clearStep() { + bitField0_ &= ~0x00000004; + step = 0; + return this; + } + + /** + * optional uint32 step = 3; + * @return the step + */ + public int getStep() { + return step; + } + + /** + * optional uint32 step = 3; + * @param value the step to set + * @return this + */ + public RelicAffix setStep(final int value) { + bitField0_ |= 0x00000004; + step = value; + return this; + } + + @Override + public RelicAffix copyFrom(final RelicAffix other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + affixId = other.affixId; + cnt = other.cnt; + step = other.step; + } + return this; + } + + @Override + public RelicAffix mergeFrom(final RelicAffix other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAffixId()) { + setAffixId(other.affixId); + } + if (other.hasCnt()) { + setCnt(other.cnt); + } + if (other.hasStep()) { + setStep(other.step); + } + return this; + } + + @Override + public RelicAffix clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + affixId = 0; + cnt = 0; + step = 0; + return this; + } + + @Override + public RelicAffix 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 RelicAffix)) { + return false; + } + RelicAffix other = (RelicAffix) o; + return bitField0_ == other.bitField0_ + && (!hasAffixId() || affixId == other.affixId) + && (!hasCnt() || cnt == other.cnt) + && (!hasStep() || step == other.step); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(affixId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(cnt); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(step); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(affixId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cnt); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(step); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RelicAffix mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // affixId + affixId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // cnt + cnt = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // step + step = input.readUInt32(); + 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.affixId, affixId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.cnt, cnt); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.step, step); + } + output.endObject(); + } + + @Override + public RelicAffix mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1088837877: + case 605785578: { + if (input.isAtField(FieldNames.affixId)) { + if (!input.trySkipNullValue()) { + affixId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 98665: { + if (input.isAtField(FieldNames.cnt)) { + if (!input.trySkipNullValue()) { + cnt = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3540684: { + if (input.isAtField(FieldNames.step)) { + if (!input.trySkipNullValue()) { + step = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RelicAffix clone() { + return new RelicAffix().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RelicAffix parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RelicAffix(), data).checkInitialized(); + } + + public static RelicAffix parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicAffix(), input).checkInitialized(); + } + + public static RelicAffix parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicAffix(), input).checkInitialized(); + } + + /** + * @return factory for creating RelicAffix messages + */ + public static MessageFactory getFactory() { + return RelicAffixFactory.INSTANCE; + } + + private enum RelicAffixFactory implements MessageFactory { + INSTANCE; + + @Override + public RelicAffix create() { + return RelicAffix.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName affixId = FieldName.forField("affixId", "affix_id"); + + static final FieldName cnt = FieldName.forField("cnt"); + + static final FieldName step = FieldName.forField("step"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java new file mode 100644 index 0000000..83c6cf8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java @@ -0,0 +1,857 @@ +// 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 RelicOuterClass { + /** + * Protobuf type {@code Relic} + */ + public static final class Relic extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 tid = 2; + */ + private int tid; + + /** + * optional uint32 exp = 4; + */ + private int exp; + + /** + * optional uint32 main_affix_id = 8; + */ + private int mainAffixId; + + /** + * optional uint32 unique_id = 9; + */ + private int uniqueId; + + /** + * optional uint32 level = 11; + */ + private int level; + + /** + * optional uint32 base_avatar_id = 15; + */ + private int baseAvatarId; + + /** + * optional bool is_protected = 5; + */ + private boolean isProtected; + + /** + * repeated .RelicAffix sub_affix_list = 13; + */ + private final RepeatedMessage subAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); + + private Relic() { + } + + /** + * @return a new empty instance of {@code Relic} + */ + public static Relic newInstance() { + return new Relic(); + } + + /** + * optional uint32 tid = 2; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 tid = 2; + * @return this + */ + public Relic clearTid() { + bitField0_ &= ~0x00000001; + tid = 0; + return this; + } + + /** + * optional uint32 tid = 2; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 tid = 2; + * @param value the tid to set + * @return this + */ + public Relic setTid(final int value) { + bitField0_ |= 0x00000001; + tid = value; + return this; + } + + /** + * optional uint32 exp = 4; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 exp = 4; + * @return this + */ + public Relic clearExp() { + bitField0_ &= ~0x00000002; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 4; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 4; + * @param value the exp to set + * @return this + */ + public Relic setExp(final int value) { + bitField0_ |= 0x00000002; + exp = value; + return this; + } + + /** + * optional uint32 main_affix_id = 8; + * @return whether the mainAffixId field is set + */ + public boolean hasMainAffixId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 main_affix_id = 8; + * @return this + */ + public Relic clearMainAffixId() { + bitField0_ &= ~0x00000004; + mainAffixId = 0; + return this; + } + + /** + * optional uint32 main_affix_id = 8; + * @return the mainAffixId + */ + public int getMainAffixId() { + return mainAffixId; + } + + /** + * optional uint32 main_affix_id = 8; + * @param value the mainAffixId to set + * @return this + */ + public Relic setMainAffixId(final int value) { + bitField0_ |= 0x00000004; + mainAffixId = value; + return this; + } + + /** + * optional uint32 unique_id = 9; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 unique_id = 9; + * @return this + */ + public Relic clearUniqueId() { + bitField0_ &= ~0x00000008; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 9; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 9; + * @param value the uniqueId to set + * @return this + */ + public Relic setUniqueId(final int value) { + bitField0_ |= 0x00000008; + uniqueId = value; + return this; + } + + /** + * optional uint32 level = 11; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 level = 11; + * @return this + */ + public Relic clearLevel() { + bitField0_ &= ~0x00000010; + level = 0; + return this; + } + + /** + * optional uint32 level = 11; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 11; + * @param value the level to set + * @return this + */ + public Relic setLevel(final int value) { + bitField0_ |= 0x00000010; + level = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return this + */ + public Relic clearBaseAvatarId() { + bitField0_ &= ~0x00000020; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 15; + * @param value the baseAvatarId to set + * @return this + */ + public Relic setBaseAvatarId(final int value) { + bitField0_ |= 0x00000020; + baseAvatarId = value; + return this; + } + + /** + * optional bool is_protected = 5; + * @return whether the isProtected field is set + */ + public boolean hasIsProtected() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool is_protected = 5; + * @return this + */ + public Relic clearIsProtected() { + bitField0_ &= ~0x00000040; + isProtected = false; + return this; + } + + /** + * optional bool is_protected = 5; + * @return the isProtected + */ + public boolean getIsProtected() { + return isProtected; + } + + /** + * optional bool is_protected = 5; + * @param value the isProtected to set + * @return this + */ + public Relic setIsProtected(final boolean value) { + bitField0_ |= 0x00000040; + isProtected = value; + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; + * @return whether the subAffixList field is set + */ + public boolean hasSubAffixList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; + * @return this + */ + public Relic clearSubAffixList() { + bitField0_ &= ~0x00000080; + subAffixList.clear(); + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; + * + * 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 #getMutableSubAffixList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSubAffixList() { + return subAffixList; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; + * + * 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 getMutableSubAffixList() { + bitField0_ |= 0x00000080; + return subAffixList; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; + * @param value the subAffixList to add + * @return this + */ + public Relic addSubAffixList(final RelicAffixOuterClass.RelicAffix value) { + bitField0_ |= 0x00000080; + subAffixList.add(value); + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; + * @param values the subAffixList to add + * @return this + */ + public Relic addAllSubAffixList(final RelicAffixOuterClass.RelicAffix... values) { + bitField0_ |= 0x00000080; + subAffixList.addAll(values); + return this; + } + + @Override + public Relic copyFrom(final Relic other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + tid = other.tid; + exp = other.exp; + mainAffixId = other.mainAffixId; + uniqueId = other.uniqueId; + level = other.level; + baseAvatarId = other.baseAvatarId; + isProtected = other.isProtected; + subAffixList.copyFrom(other.subAffixList); + } + return this; + } + + @Override + public Relic mergeFrom(final Relic other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasExp()) { + setExp(other.exp); + } + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); + } + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasIsProtected()) { + setIsProtected(other.isProtected); + } + if (other.hasSubAffixList()) { + getMutableSubAffixList().addAll(other.subAffixList); + } + return this; + } + + @Override + public Relic clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tid = 0; + exp = 0; + mainAffixId = 0; + uniqueId = 0; + level = 0; + baseAvatarId = 0; + isProtected = false; + subAffixList.clear(); + return this; + } + + @Override + public Relic clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + subAffixList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Relic)) { + return false; + } + Relic other = (Relic) o; + return bitField0_ == other.bitField0_ + && (!hasTid() || tid == other.tid) + && (!hasExp() || exp == other.exp) + && (!hasMainAffixId() || mainAffixId == other.mainAffixId) + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasLevel() || level == other.level) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasIsProtected() || isProtected == other.isProtected) + && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(isProtected); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < subAffixList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(subAffixList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * subAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subAffixList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Relic mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // mainAffixId + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // isProtected + isProtected = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // subAffixList + tag = input.readRepeatedMessage(subAffixList, tag); + bitField0_ |= 0x00000080; + 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.tid, tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.exp, exp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.isProtected, isProtected); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.subAffixList, subAffixList); + } + output.endObject(); + } + + @Override + public Relic mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { + if (!input.trySkipNullValue()) { + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { + if (!input.trySkipNullValue()) { + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 569879972: + case -1919645991: { + if (input.isAtField(FieldNames.isProtected)) { + if (!input.trySkipNullValue()) { + isProtected = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -600836050: + case 919890188: { + if (input.isAtField(FieldNames.subAffixList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(subAffixList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Relic clone() { + return new Relic().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Relic parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Relic(), data).checkInitialized(); + } + + public static Relic parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Relic(), input).checkInitialized(); + } + + public static Relic parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Relic(), input).checkInitialized(); + } + + /** + * @return factory for creating Relic messages + */ + public static MessageFactory getFactory() { + return RelicFactory.INSTANCE; + } + + private enum RelicFactory implements MessageFactory { + INSTANCE; + + @Override + public Relic create() { + return Relic.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName tid = FieldName.forField("tid"); + + static final FieldName exp = FieldName.forField("exp"); + + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); + + static final FieldName subAffixList = FieldName.forField("subAffixList", "sub_affix_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java new file mode 100644 index 0000000..8fbab10 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java @@ -0,0 +1,339 @@ +// 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 RelicParamOuterClass { + /** + * Protobuf type {@code RelicParam} + */ + public static final class RelicParam extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 slot = 1; + */ + private int slot; + + /** + * optional uint32 relic_unique_id = 7; + */ + private int relicUniqueId; + + private RelicParam() { + } + + /** + * @return a new empty instance of {@code RelicParam} + */ + public static RelicParam newInstance() { + return new RelicParam(); + } + + /** + * optional uint32 slot = 1; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 slot = 1; + * @return this + */ + public RelicParam clearSlot() { + bitField0_ &= ~0x00000001; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 1; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 1; + * @param value the slot to set + * @return this + */ + public RelicParam setSlot(final int value) { + bitField0_ |= 0x00000001; + slot = value; + return this; + } + + /** + * optional uint32 relic_unique_id = 7; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 relic_unique_id = 7; + * @return this + */ + public RelicParam clearRelicUniqueId() { + bitField0_ &= ~0x00000002; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 7; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 7; + * @param value the relicUniqueId to set + * @return this + */ + public RelicParam setRelicUniqueId(final int value) { + bitField0_ |= 0x00000002; + relicUniqueId = value; + return this; + } + + @Override + public RelicParam copyFrom(final RelicParam other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + slot = other.slot; + relicUniqueId = other.relicUniqueId; + } + return this; + } + + @Override + public RelicParam mergeFrom(final RelicParam other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + return this; + } + + @Override + public RelicParam clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slot = 0; + relicUniqueId = 0; + return this; + } + + @Override + public RelicParam 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 RelicParam)) { + return false; + } + RelicParam other = (RelicParam) o; + return bitField0_ == other.bitField0_ + && (!hasSlot() || slot == other.slot) + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(relicUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RelicParam mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // relicUniqueId + relicUniqueId = 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.slot, slot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + } + output.endObject(); + } + + @Override + public RelicParam mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RelicParam clone() { + return new RelicParam().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RelicParam parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RelicParam(), data).checkInitialized(); + } + + public static RelicParam parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicParam(), input).checkInitialized(); + } + + public static RelicParam parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicParam(), input).checkInitialized(); + } + + /** + * @return factory for creating RelicParam messages + */ + public static MessageFactory getFactory() { + return RelicParamFactory.INSTANCE; + } + + private enum RelicParamFactory implements MessageFactory { + INSTANCE; + + @Override + public RelicParam create() { + return RelicParam.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java new file mode 100644 index 0000000..9e838d1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java @@ -0,0 +1,730 @@ +// 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 ReplaceLineupCsReqOuterClass { + /** + * Protobuf type {@code ReplaceLineupCsReq} + */ + public static final class ReplaceLineupCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 3; + */ + private int index; + + /** + * optional uint32 GFEFIBHEEGH = 5; + */ + private int gFEFIBHEEGH; + + /** + * optional uint32 plane_id = 10; + */ + private int planeId; + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + */ + private int extraLineupType; + + /** + * optional bool is_virtual = 11; + */ + private boolean isVirtual; + + /** + * repeated .LineupSlotData slots = 13; + */ + private final RepeatedMessage slots = RepeatedMessage.newEmptyInstance(LineupSlotDataOuterClass.LineupSlotData.getFactory()); + + private ReplaceLineupCsReq() { + } + + /** + * @return a new empty instance of {@code ReplaceLineupCsReq} + */ + public static ReplaceLineupCsReq newInstance() { + return new ReplaceLineupCsReq(); + } + + /** + * optional uint32 index = 3; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 3; + * @return this + */ + public ReplaceLineupCsReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 3; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 3; + * @param value the index to set + * @return this + */ + public ReplaceLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional uint32 GFEFIBHEEGH = 5; + * @return whether the gFEFIBHEEGH field is set + */ + public boolean hasGFEFIBHEEGH() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GFEFIBHEEGH = 5; + * @return this + */ + public ReplaceLineupCsReq clearGFEFIBHEEGH() { + bitField0_ &= ~0x00000002; + gFEFIBHEEGH = 0; + return this; + } + + /** + * optional uint32 GFEFIBHEEGH = 5; + * @return the gFEFIBHEEGH + */ + public int getGFEFIBHEEGH() { + return gFEFIBHEEGH; + } + + /** + * optional uint32 GFEFIBHEEGH = 5; + * @param value the gFEFIBHEEGH to set + * @return this + */ + public ReplaceLineupCsReq setGFEFIBHEEGH(final int value) { + bitField0_ |= 0x00000002; + gFEFIBHEEGH = value; + return this; + } + + /** + * optional uint32 plane_id = 10; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 plane_id = 10; + * @return this + */ + public ReplaceLineupCsReq clearPlaneId() { + bitField0_ &= ~0x00000004; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 10; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 10; + * @param value the planeId to set + * @return this + */ + public ReplaceLineupCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000004; + planeId = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @return this + */ + public ReplaceLineupCsReq clearExtraLineupType() { + bitField0_ &= ~0x00000008; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ReplaceLineupCsReq#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link ReplaceLineupCsReq#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ReplaceLineupCsReq setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000008; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 7; + * @param value the extraLineupType to set + * @return this + */ + public ReplaceLineupCsReq setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000008; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 11; + * @return whether the isVirtual field is set + */ + public boolean hasIsVirtual() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool is_virtual = 11; + * @return this + */ + public ReplaceLineupCsReq clearIsVirtual() { + bitField0_ &= ~0x00000010; + isVirtual = false; + return this; + } + + /** + * optional bool is_virtual = 11; + * @return the isVirtual + */ + public boolean getIsVirtual() { + return isVirtual; + } + + /** + * optional bool is_virtual = 11; + * @param value the isVirtual to set + * @return this + */ + public ReplaceLineupCsReq setIsVirtual(final boolean value) { + bitField0_ |= 0x00000010; + isVirtual = value; + return this; + } + + /** + * repeated .LineupSlotData slots = 13; + * @return whether the slots field is set + */ + public boolean hasSlots() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .LineupSlotData slots = 13; + * @return this + */ + public ReplaceLineupCsReq clearSlots() { + bitField0_ &= ~0x00000020; + slots.clear(); + return this; + } + + /** + * repeated .LineupSlotData slots = 13; + * + * 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 #getMutableSlots()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSlots() { + return slots; + } + + /** + * repeated .LineupSlotData slots = 13; + * + * 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 getMutableSlots() { + bitField0_ |= 0x00000020; + return slots; + } + + /** + * repeated .LineupSlotData slots = 13; + * @param value the slots to add + * @return this + */ + public ReplaceLineupCsReq addSlots(final LineupSlotDataOuterClass.LineupSlotData value) { + bitField0_ |= 0x00000020; + slots.add(value); + return this; + } + + /** + * repeated .LineupSlotData slots = 13; + * @param values the slots to add + * @return this + */ + public ReplaceLineupCsReq addAllSlots(final LineupSlotDataOuterClass.LineupSlotData... values) { + bitField0_ |= 0x00000020; + slots.addAll(values); + return this; + } + + @Override + public ReplaceLineupCsReq copyFrom(final ReplaceLineupCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + gFEFIBHEEGH = other.gFEFIBHEEGH; + planeId = other.planeId; + extraLineupType = other.extraLineupType; + isVirtual = other.isVirtual; + slots.copyFrom(other.slots); + } + return this; + } + + @Override + public ReplaceLineupCsReq mergeFrom(final ReplaceLineupCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasGFEFIBHEEGH()) { + setGFEFIBHEEGH(other.gFEFIBHEEGH); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + if (other.hasIsVirtual()) { + setIsVirtual(other.isVirtual); + } + if (other.hasSlots()) { + getMutableSlots().addAll(other.slots); + } + return this; + } + + @Override + public ReplaceLineupCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + gFEFIBHEEGH = 0; + planeId = 0; + extraLineupType = 0; + isVirtual = false; + slots.clear(); + return this; + } + + @Override + public ReplaceLineupCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slots.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ReplaceLineupCsReq)) { + return false; + } + ReplaceLineupCsReq other = (ReplaceLineupCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasGFEFIBHEEGH() || gFEFIBHEEGH == other.gFEFIBHEEGH) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasIsVirtual() || isVirtual == other.isVirtual) + && (!hasSlots() || slots.equals(other.slots)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(gFEFIBHEEGH); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(planeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeEnumNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(isVirtual); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < slots.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(slots.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gFEFIBHEEGH); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * slots.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(slots); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ReplaceLineupCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // gFEFIBHEEGH + gFEFIBHEEGH = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // isVirtual + isVirtual = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // slots + tag = input.readRepeatedMessage(slots, tag); + bitField0_ |= 0x00000020; + 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.gFEFIBHEEGH, gFEFIBHEEGH); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.isVirtual, isVirtual); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.slots, slots); + } + output.endObject(); + } + + @Override + public ReplaceLineupCsReq 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 -1804656: { + if (input.isAtField(FieldNames.gFEFIBHEEGH)) { + if (!input.trySkipNullValue()) { + gFEFIBHEEGH = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -113613183: + case 1966475510: { + if (input.isAtField(FieldNames.isVirtual)) { + if (!input.trySkipNullValue()) { + isVirtual = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109532725: { + if (input.isAtField(FieldNames.slots)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(slots); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ReplaceLineupCsReq clone() { + return new ReplaceLineupCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ReplaceLineupCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ReplaceLineupCsReq(), data).checkInitialized(); + } + + public static ReplaceLineupCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ReplaceLineupCsReq(), input).checkInitialized(); + } + + public static ReplaceLineupCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ReplaceLineupCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ReplaceLineupCsReq messages + */ + public static MessageFactory getFactory() { + return ReplaceLineupCsReqFactory.INSTANCE; + } + + private enum ReplaceLineupCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ReplaceLineupCsReq create() { + return ReplaceLineupCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + + static final FieldName gFEFIBHEEGH = FieldName.forField("GFEFIBHEEGH"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); + + static final FieldName slots = FieldName.forField("slots"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java new file mode 100644 index 0000000..32e71d0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java @@ -0,0 +1,759 @@ +// 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.Utf8String; + +public final class RevcMsgScNotifyOuterClass { + /** + * Protobuf type {@code RevcMsgScNotify} + */ + public static final class RevcMsgScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 to_uid = 2; + */ + private int toUid; + + /** + * optional uint32 from_uid = 4; + */ + private int fromUid; + + /** + * optional uint32 emote = 7; + */ + private int emote; + + /** + * optional .MsgType msg_type = 8; + */ + private int msgType; + + /** + * optional .ChatType chat_type = 13; + */ + private int chatType; + + /** + * optional string text = 5; + */ + private final Utf8String text = Utf8String.newEmptyInstance(); + + private RevcMsgScNotify() { + } + + /** + * @return a new empty instance of {@code RevcMsgScNotify} + */ + public static RevcMsgScNotify newInstance() { + return new RevcMsgScNotify(); + } + + /** + * optional uint32 to_uid = 2; + * @return whether the toUid field is set + */ + public boolean hasToUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 to_uid = 2; + * @return this + */ + public RevcMsgScNotify clearToUid() { + bitField0_ &= ~0x00000001; + toUid = 0; + return this; + } + + /** + * optional uint32 to_uid = 2; + * @return the toUid + */ + public int getToUid() { + return toUid; + } + + /** + * optional uint32 to_uid = 2; + * @param value the toUid to set + * @return this + */ + public RevcMsgScNotify setToUid(final int value) { + bitField0_ |= 0x00000001; + toUid = value; + return this; + } + + /** + * optional uint32 from_uid = 4; + * @return whether the fromUid field is set + */ + public boolean hasFromUid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 from_uid = 4; + * @return this + */ + public RevcMsgScNotify clearFromUid() { + bitField0_ &= ~0x00000002; + fromUid = 0; + return this; + } + + /** + * optional uint32 from_uid = 4; + * @return the fromUid + */ + public int getFromUid() { + return fromUid; + } + + /** + * optional uint32 from_uid = 4; + * @param value the fromUid to set + * @return this + */ + public RevcMsgScNotify setFromUid(final int value) { + bitField0_ |= 0x00000002; + fromUid = value; + return this; + } + + /** + * optional uint32 emote = 7; + * @return whether the emote field is set + */ + public boolean hasEmote() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 emote = 7; + * @return this + */ + public RevcMsgScNotify clearEmote() { + bitField0_ &= ~0x00000004; + emote = 0; + return this; + } + + /** + * optional uint32 emote = 7; + * @return the emote + */ + public int getEmote() { + return emote; + } + + /** + * optional uint32 emote = 7; + * @param value the emote to set + * @return this + */ + public RevcMsgScNotify setEmote(final int value) { + bitField0_ |= 0x00000004; + emote = value; + return this; + } + + /** + * optional .MsgType msg_type = 8; + * @return whether the msgType field is set + */ + public boolean hasMsgType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .MsgType msg_type = 8; + * @return this + */ + public RevcMsgScNotify clearMsgType() { + bitField0_ &= ~0x00000008; + msgType = 0; + return this; + } + + /** + * optional .MsgType msg_type = 8; + * @return the msgType + */ + public MsgTypeOuterClass.MsgType getMsgType() { + return MsgTypeOuterClass.MsgType.forNumber(msgType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RevcMsgScNotify#getMsgType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getMsgTypeValue() { + return msgType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value + * can cause {@link RevcMsgScNotify#getMsgType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RevcMsgScNotify setMsgTypeValue(final int value) { + bitField0_ |= 0x00000008; + msgType = value; + return this; + } + + /** + * optional .MsgType msg_type = 8; + * @param value the msgType to set + * @return this + */ + public RevcMsgScNotify setMsgType(final MsgTypeOuterClass.MsgType value) { + bitField0_ |= 0x00000008; + msgType = value.getNumber(); + return this; + } + + /** + * optional .ChatType chat_type = 13; + * @return whether the chatType field is set + */ + public boolean hasChatType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ChatType chat_type = 13; + * @return this + */ + public RevcMsgScNotify clearChatType() { + bitField0_ &= ~0x00000010; + chatType = 0; + return this; + } + + /** + * optional .ChatType chat_type = 13; + * @return the chatType + */ + public ChatTypeOuterClass.ChatType getChatType() { + return ChatTypeOuterClass.ChatType.forNumber(chatType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RevcMsgScNotify#getChatType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getChatTypeValue() { + return chatType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ChatTypeOuterClass.ChatType}. Setting an invalid value + * can cause {@link RevcMsgScNotify#getChatType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RevcMsgScNotify setChatTypeValue(final int value) { + bitField0_ |= 0x00000010; + chatType = value; + return this; + } + + /** + * optional .ChatType chat_type = 13; + * @param value the chatType to set + * @return this + */ + public RevcMsgScNotify setChatType(final ChatTypeOuterClass.ChatType value) { + bitField0_ |= 0x00000010; + chatType = value.getNumber(); + return this; + } + + /** + * optional string text = 5; + * @return whether the text field is set + */ + public boolean hasText() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string text = 5; + * @return this + */ + public RevcMsgScNotify clearText() { + bitField0_ &= ~0x00000020; + text.clear(); + return this; + } + + /** + * optional string text = 5; + * @return the text + */ + public String getText() { + return text.getString(); + } + + /** + * optional string text = 5; + * @return internal {@code Utf8String} representation of text for reading + */ + public Utf8String getTextBytes() { + return this.text; + } + + /** + * optional string text = 5; + * @return internal {@code Utf8String} representation of text for modifications + */ + public Utf8String getMutableTextBytes() { + bitField0_ |= 0x00000020; + return this.text; + } + + /** + * optional string text = 5; + * @param value the text to set + * @return this + */ + public RevcMsgScNotify setText(final CharSequence value) { + bitField0_ |= 0x00000020; + text.copyFrom(value); + return this; + } + + /** + * optional string text = 5; + * @param value the text to set + * @return this + */ + public RevcMsgScNotify setText(final Utf8String value) { + bitField0_ |= 0x00000020; + text.copyFrom(value); + return this; + } + + @Override + public RevcMsgScNotify copyFrom(final RevcMsgScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + toUid = other.toUid; + fromUid = other.fromUid; + emote = other.emote; + msgType = other.msgType; + chatType = other.chatType; + text.copyFrom(other.text); + } + return this; + } + + @Override + public RevcMsgScNotify mergeFrom(final RevcMsgScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasToUid()) { + setToUid(other.toUid); + } + if (other.hasFromUid()) { + setFromUid(other.fromUid); + } + if (other.hasEmote()) { + setEmote(other.emote); + } + if (other.hasMsgType()) { + setMsgTypeValue(other.msgType); + } + if (other.hasChatType()) { + setChatTypeValue(other.chatType); + } + if (other.hasText()) { + getMutableTextBytes().copyFrom(other.text); + } + return this; + } + + @Override + public RevcMsgScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + toUid = 0; + fromUid = 0; + emote = 0; + msgType = 0; + chatType = 0; + text.clear(); + return this; + } + + @Override + public RevcMsgScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + text.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RevcMsgScNotify)) { + return false; + } + RevcMsgScNotify other = (RevcMsgScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasToUid() || toUid == other.toUid) + && (!hasFromUid() || fromUid == other.fromUid) + && (!hasEmote() || emote == other.emote) + && (!hasMsgType() || msgType == other.msgType) + && (!hasChatType() || chatType == other.chatType) + && (!hasText() || text.equals(other.text)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(fromUid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(emote); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeEnumNoTag(msgType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(chatType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(text); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fromUid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(text); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RevcMsgScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // toUid + toUid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // fromUid + fromUid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // emote + emote = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // msgType + final int value = input.readInt32(); + if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { + msgType = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // chatType + final int value = input.readInt32(); + if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { + chatType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // text + input.readString(text); + 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.toUid, toUid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.fromUid, fromUid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.emote, emote); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.text, text); + } + output.endObject(); + } + + @Override + public RevcMsgScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 110520277: + case -868529012: { + if (input.isAtField(FieldNames.toUid)) { + if (!input.trySkipNullValue()) { + toUid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -594338746: + case -1244322245: { + if (input.isAtField(FieldNames.fromUid)) { + if (!input.trySkipNullValue()) { + fromUid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 96633208: { + if (input.isAtField(FieldNames.emote)) { + if (!input.trySkipNullValue()) { + emote = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1343750747: + case -1283380936: { + if (input.isAtField(FieldNames.msgType)) { + if (!input.trySkipNullValue()) { + final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); + if (value != null) { + msgType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1437412018: + case 1620118465: { + if (input.isAtField(FieldNames.chatType)) { + if (!input.trySkipNullValue()) { + final ChatTypeOuterClass.ChatType value = input.readEnum(ChatTypeOuterClass.ChatType.converter()); + if (value != null) { + chatType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 3556653: { + if (input.isAtField(FieldNames.text)) { + if (!input.trySkipNullValue()) { + input.readString(text); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RevcMsgScNotify clone() { + return new RevcMsgScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RevcMsgScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RevcMsgScNotify(), data).checkInitialized(); + } + + public static RevcMsgScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RevcMsgScNotify(), input).checkInitialized(); + } + + public static RevcMsgScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RevcMsgScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating RevcMsgScNotify messages + */ + public static MessageFactory getFactory() { + return RevcMsgScNotifyFactory.INSTANCE; + } + + private enum RevcMsgScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public RevcMsgScNotify create() { + return RevcMsgScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName toUid = FieldName.forField("toUid", "to_uid"); + + static final FieldName fromUid = FieldName.forField("fromUid", "from_uid"); + + static final FieldName emote = FieldName.forField("emote"); + + static final FieldName msgType = FieldName.forField("msgType", "msg_type"); + + static final FieldName chatType = FieldName.forField("chatType", "chat_type"); + + static final FieldName text = FieldName.forField("text"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java new file mode 100644 index 0000000..d51feb4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java @@ -0,0 +1,535 @@ +// 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 SceneActorInfoOuterClass { + /** + * Protobuf type {@code SceneActorInfo} + */ + public static final class SceneActorInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 uid = 5; + */ + private int uid; + + /** + * optional uint32 map_layer = 9; + */ + private int mapLayer; + + /** + * optional uint32 base_avatar_id = 12; + */ + private int baseAvatarId; + + /** + * optional .AvatarType avatar_type = 2; + */ + private int avatarType; + + private SceneActorInfo() { + } + + /** + * @return a new empty instance of {@code SceneActorInfo} + */ + public static SceneActorInfo newInstance() { + return new SceneActorInfo(); + } + + /** + * optional uint32 uid = 5; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 uid = 5; + * @return this + */ + public SceneActorInfo clearUid() { + bitField0_ &= ~0x00000001; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 5; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 5; + * @param value the uid to set + * @return this + */ + public SceneActorInfo setUid(final int value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + /** + * optional uint32 map_layer = 9; + * @return whether the mapLayer field is set + */ + public boolean hasMapLayer() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 map_layer = 9; + * @return this + */ + public SceneActorInfo clearMapLayer() { + bitField0_ &= ~0x00000002; + mapLayer = 0; + return this; + } + + /** + * optional uint32 map_layer = 9; + * @return the mapLayer + */ + public int getMapLayer() { + return mapLayer; + } + + /** + * optional uint32 map_layer = 9; + * @param value the mapLayer to set + * @return this + */ + public SceneActorInfo setMapLayer(final int value) { + bitField0_ |= 0x00000002; + mapLayer = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return this + */ + public SceneActorInfo clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 12; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 12; + * @param value the baseAvatarId to set + * @return this + */ + public SceneActorInfo setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return this + */ + public SceneActorInfo clearAvatarType() { + bitField0_ &= ~0x00000008; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SceneActorInfo#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link SceneActorInfo#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SceneActorInfo setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000008; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @param value the avatarType to set + * @return this + */ + public SceneActorInfo setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000008; + avatarType = value.getNumber(); + return this; + } + + @Override + public SceneActorInfo copyFrom(final SceneActorInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + mapLayer = other.mapLayer; + baseAvatarId = other.baseAvatarId; + avatarType = other.avatarType; + } + return this; + } + + @Override + public SceneActorInfo mergeFrom(final SceneActorInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasMapLayer()) { + setMapLayer(other.mapLayer); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + return this; + } + + @Override + public SceneActorInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0; + mapLayer = 0; + baseAvatarId = 0; + avatarType = 0; + return this; + } + + @Override + public SceneActorInfo 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 SceneActorInfo)) { + return false; + } + SceneActorInfo other = (SceneActorInfo) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) + && (!hasMapLayer() || mapLayer == other.mapLayer) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasAvatarType() || avatarType == other.avatarType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(avatarType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneActorInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // mapLayer + mapLayer = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + 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.uid, uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.mapLayer, mapLayer); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + output.endObject(); + } + + @Override + public SceneActorInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 160971093: + case 1248553134: { + if (input.isAtField(FieldNames.mapLayer)) { + if (!input.trySkipNullValue()) { + mapLayer = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneActorInfo clone() { + return new SceneActorInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneActorInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneActorInfo(), data).checkInitialized(); + } + + public static SceneActorInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneActorInfo(), input).checkInitialized(); + } + + public static SceneActorInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneActorInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneActorInfo messages + */ + public static MessageFactory getFactory() { + return SceneActorInfoFactory.INSTANCE; + } + + private enum SceneActorInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneActorInfo create() { + return SceneActorInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java new file mode 100644 index 0000000..25ad537 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java @@ -0,0 +1,1213 @@ +// 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 SceneBattleInfoOuterClass { + /** + * Protobuf type {@code SceneBattleInfo} + */ + public static final class SceneBattleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 rounds_limit = 1; + */ + private int roundsLimit; + + /** + * optional uint32 world_level = 3; + */ + private int worldLevel; + + /** + * optional uint32 battle_id = 7; + */ + private int battleId; + + /** + * optional uint32 logic_random_seed = 11; + */ + private int logicRandomSeed; + + /** + * optional uint32 KEFEEBINLNN = 12; + */ + private int kEFEEBINLNN; + + /** + * optional uint32 stage_id = 14; + */ + private int stageId; + + /** + * optional bool CAMAJMFLKKL = 2; + */ + private boolean cAMAJMFLKKL; + + /** + * repeated uint32 battle_scoring_list = 4; + */ + private final RepeatedInt battleScoringList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + */ + private final RepeatedMessage monsterWaveList = RepeatedMessage.newEmptyInstance(SceneMonsterWaveOuterClass.SceneMonsterWave.getFactory()); + + /** + * repeated .BattleBuff buff_list = 8; + */ + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BattleBuffOuterClass.BattleBuff.getFactory()); + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + */ + private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); + + private SceneBattleInfo() { + } + + /** + * @return a new empty instance of {@code SceneBattleInfo} + */ + public static SceneBattleInfo newInstance() { + return new SceneBattleInfo(); + } + + /** + * optional uint32 rounds_limit = 1; + * @return whether the roundsLimit field is set + */ + public boolean hasRoundsLimit() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 rounds_limit = 1; + * @return this + */ + public SceneBattleInfo clearRoundsLimit() { + bitField0_ &= ~0x00000001; + roundsLimit = 0; + return this; + } + + /** + * optional uint32 rounds_limit = 1; + * @return the roundsLimit + */ + public int getRoundsLimit() { + return roundsLimit; + } + + /** + * optional uint32 rounds_limit = 1; + * @param value the roundsLimit to set + * @return this + */ + public SceneBattleInfo setRoundsLimit(final int value) { + bitField0_ |= 0x00000001; + roundsLimit = value; + return this; + } + + /** + * optional uint32 world_level = 3; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 world_level = 3; + * @return this + */ + public SceneBattleInfo clearWorldLevel() { + bitField0_ &= ~0x00000002; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 3; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 3; + * @param value the worldLevel to set + * @return this + */ + public SceneBattleInfo setWorldLevel(final int value) { + bitField0_ |= 0x00000002; + worldLevel = value; + return this; + } + + /** + * optional uint32 battle_id = 7; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 battle_id = 7; + * @return this + */ + public SceneBattleInfo clearBattleId() { + bitField0_ &= ~0x00000004; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 7; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 7; + * @param value the battleId to set + * @return this + */ + public SceneBattleInfo setBattleId(final int value) { + bitField0_ |= 0x00000004; + battleId = value; + return this; + } + + /** + * optional uint32 logic_random_seed = 11; + * @return whether the logicRandomSeed field is set + */ + public boolean hasLogicRandomSeed() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 logic_random_seed = 11; + * @return this + */ + public SceneBattleInfo clearLogicRandomSeed() { + bitField0_ &= ~0x00000008; + logicRandomSeed = 0; + return this; + } + + /** + * optional uint32 logic_random_seed = 11; + * @return the logicRandomSeed + */ + public int getLogicRandomSeed() { + return logicRandomSeed; + } + + /** + * optional uint32 logic_random_seed = 11; + * @param value the logicRandomSeed to set + * @return this + */ + public SceneBattleInfo setLogicRandomSeed(final int value) { + bitField0_ |= 0x00000008; + logicRandomSeed = value; + return this; + } + + /** + * optional uint32 KEFEEBINLNN = 12; + * @return whether the kEFEEBINLNN field is set + */ + public boolean hasKEFEEBINLNN() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 KEFEEBINLNN = 12; + * @return this + */ + public SceneBattleInfo clearKEFEEBINLNN() { + bitField0_ &= ~0x00000010; + kEFEEBINLNN = 0; + return this; + } + + /** + * optional uint32 KEFEEBINLNN = 12; + * @return the kEFEEBINLNN + */ + public int getKEFEEBINLNN() { + return kEFEEBINLNN; + } + + /** + * optional uint32 KEFEEBINLNN = 12; + * @param value the kEFEEBINLNN to set + * @return this + */ + public SceneBattleInfo setKEFEEBINLNN(final int value) { + bitField0_ |= 0x00000010; + kEFEEBINLNN = value; + return this; + } + + /** + * optional uint32 stage_id = 14; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 stage_id = 14; + * @return this + */ + public SceneBattleInfo clearStageId() { + bitField0_ &= ~0x00000020; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 14; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 14; + * @param value the stageId to set + * @return this + */ + public SceneBattleInfo setStageId(final int value) { + bitField0_ |= 0x00000020; + stageId = value; + return this; + } + + /** + * optional bool CAMAJMFLKKL = 2; + * @return whether the cAMAJMFLKKL field is set + */ + public boolean hasCAMAJMFLKKL() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool CAMAJMFLKKL = 2; + * @return this + */ + public SceneBattleInfo clearCAMAJMFLKKL() { + bitField0_ &= ~0x00000040; + cAMAJMFLKKL = false; + return this; + } + + /** + * optional bool CAMAJMFLKKL = 2; + * @return the cAMAJMFLKKL + */ + public boolean getCAMAJMFLKKL() { + return cAMAJMFLKKL; + } + + /** + * optional bool CAMAJMFLKKL = 2; + * @param value the cAMAJMFLKKL to set + * @return this + */ + public SceneBattleInfo setCAMAJMFLKKL(final boolean value) { + bitField0_ |= 0x00000040; + cAMAJMFLKKL = value; + return this; + } + + /** + * repeated uint32 battle_scoring_list = 4; + * @return whether the battleScoringList field is set + */ + public boolean hasBattleScoringList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 battle_scoring_list = 4; + * @return this + */ + public SceneBattleInfo clearBattleScoringList() { + bitField0_ &= ~0x00000080; + battleScoringList.clear(); + return this; + } + + /** + * repeated uint32 battle_scoring_list = 4; + * + * 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 #getMutableBattleScoringList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBattleScoringList() { + return battleScoringList; + } + + /** + * repeated uint32 battle_scoring_list = 4; + * + * 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 getMutableBattleScoringList() { + bitField0_ |= 0x00000080; + return battleScoringList; + } + + /** + * repeated uint32 battle_scoring_list = 4; + * @param value the battleScoringList to add + * @return this + */ + public SceneBattleInfo addBattleScoringList(final int value) { + bitField0_ |= 0x00000080; + battleScoringList.add(value); + return this; + } + + /** + * repeated uint32 battle_scoring_list = 4; + * @param values the battleScoringList to add + * @return this + */ + public SceneBattleInfo addAllBattleScoringList(final int... values) { + bitField0_ |= 0x00000080; + battleScoringList.addAll(values); + return this; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + * @return whether the monsterWaveList field is set + */ + public boolean hasMonsterWaveList() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + * @return this + */ + public SceneBattleInfo clearMonsterWaveList() { + bitField0_ &= ~0x00000100; + monsterWaveList.clear(); + return this; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + * + * 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 #getMutableMonsterWaveList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMonsterWaveList() { + return monsterWaveList; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + * + * 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 getMutableMonsterWaveList( + ) { + bitField0_ |= 0x00000100; + return monsterWaveList; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + * @param value the monsterWaveList to add + * @return this + */ + public SceneBattleInfo addMonsterWaveList( + final SceneMonsterWaveOuterClass.SceneMonsterWave value) { + bitField0_ |= 0x00000100; + monsterWaveList.add(value); + return this; + } + + /** + * repeated .SceneMonsterWave monster_wave_list = 6; + * @param values the monsterWaveList to add + * @return this + */ + public SceneBattleInfo addAllMonsterWaveList( + final SceneMonsterWaveOuterClass.SceneMonsterWave... values) { + bitField0_ |= 0x00000100; + monsterWaveList.addAll(values); + return this; + } + + /** + * repeated .BattleBuff buff_list = 8; + * @return whether the buffList field is set + */ + public boolean hasBuffList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .BattleBuff buff_list = 8; + * @return this + */ + public SceneBattleInfo clearBuffList() { + bitField0_ &= ~0x00000200; + buffList.clear(); + return this; + } + + /** + * repeated .BattleBuff buff_list = 8; + * + * 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 getBuffList() { + return buffList; + } + + /** + * repeated .BattleBuff buff_list = 8; + * + * 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 getMutableBuffList() { + bitField0_ |= 0x00000200; + return buffList; + } + + /** + * repeated .BattleBuff buff_list = 8; + * @param value the buffList to add + * @return this + */ + public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { + bitField0_ |= 0x00000200; + buffList.add(value); + return this; + } + + /** + * repeated .BattleBuff buff_list = 8; + * @param values the buffList to add + * @return this + */ + public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { + bitField0_ |= 0x00000200; + buffList.addAll(values); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + * @return whether the battleAvatarList field is set + */ + public boolean hasBattleAvatarList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + * @return this + */ + public SceneBattleInfo clearBattleAvatarList() { + bitField0_ &= ~0x00000400; + battleAvatarList.clear(); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + * + * 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 #getMutableBattleAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleAvatarList() { + return battleAvatarList; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + * + * 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 getMutableBattleAvatarList() { + bitField0_ |= 0x00000400; + return battleAvatarList; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + * @param value the battleAvatarList to add + * @return this + */ + public SceneBattleInfo addBattleAvatarList(final BattleAvatarOuterClass.BattleAvatar value) { + bitField0_ |= 0x00000400; + battleAvatarList.add(value); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 13; + * @param values the battleAvatarList to add + * @return this + */ + public SceneBattleInfo addAllBattleAvatarList( + final BattleAvatarOuterClass.BattleAvatar... values) { + bitField0_ |= 0x00000400; + battleAvatarList.addAll(values); + return this; + } + + @Override + public SceneBattleInfo copyFrom(final SceneBattleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + roundsLimit = other.roundsLimit; + worldLevel = other.worldLevel; + battleId = other.battleId; + logicRandomSeed = other.logicRandomSeed; + kEFEEBINLNN = other.kEFEEBINLNN; + stageId = other.stageId; + cAMAJMFLKKL = other.cAMAJMFLKKL; + battleScoringList.copyFrom(other.battleScoringList); + monsterWaveList.copyFrom(other.monsterWaveList); + buffList.copyFrom(other.buffList); + battleAvatarList.copyFrom(other.battleAvatarList); + } + return this; + } + + @Override + public SceneBattleInfo mergeFrom(final SceneBattleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRoundsLimit()) { + setRoundsLimit(other.roundsLimit); + } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasBattleId()) { + setBattleId(other.battleId); + } + if (other.hasLogicRandomSeed()) { + setLogicRandomSeed(other.logicRandomSeed); + } + if (other.hasKEFEEBINLNN()) { + setKEFEEBINLNN(other.kEFEEBINLNN); + } + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasCAMAJMFLKKL()) { + setCAMAJMFLKKL(other.cAMAJMFLKKL); + } + if (other.hasBattleScoringList()) { + getMutableBattleScoringList().addAll(other.battleScoringList); + } + if (other.hasMonsterWaveList()) { + getMutableMonsterWaveList().addAll(other.monsterWaveList); + } + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); + } + if (other.hasBattleAvatarList()) { + getMutableBattleAvatarList().addAll(other.battleAvatarList); + } + return this; + } + + @Override + public SceneBattleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + roundsLimit = 0; + worldLevel = 0; + battleId = 0; + logicRandomSeed = 0; + kEFEEBINLNN = 0; + stageId = 0; + cAMAJMFLKKL = false; + battleScoringList.clear(); + monsterWaveList.clear(); + buffList.clear(); + battleAvatarList.clear(); + return this; + } + + @Override + public SceneBattleInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleScoringList.clear(); + monsterWaveList.clearQuick(); + buffList.clearQuick(); + battleAvatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneBattleInfo)) { + return false; + } + SceneBattleInfo other = (SceneBattleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasRoundsLimit() || roundsLimit == other.roundsLimit) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasBattleId() || battleId == other.battleId) + && (!hasLogicRandomSeed() || logicRandomSeed == other.logicRandomSeed) + && (!hasKEFEEBINLNN() || kEFEEBINLNN == other.kEFEEBINLNN) + && (!hasStageId() || stageId == other.stageId) + && (!hasCAMAJMFLKKL() || cAMAJMFLKKL == other.cAMAJMFLKKL) + && (!hasBattleScoringList() || battleScoringList.equals(other.battleScoringList)) + && (!hasMonsterWaveList() || monsterWaveList.equals(other.monsterWaveList)) + && (!hasBuffList() || buffList.equals(other.buffList)) + && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(roundsLimit); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(battleId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(logicRandomSeed); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(kEFEEBINLNN); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(cAMAJMFLKKL); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < battleScoringList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(battleScoringList.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < monsterWaveList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(monsterWaveList.get(i)); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(buffList.get(i)); + } + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < battleAvatarList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(battleAvatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roundsLimit); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(logicRandomSeed); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kEFEEBINLNN); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * battleScoringList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(battleScoringList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * monsterWaveList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterWaveList); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneBattleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // roundsLimit + roundsLimit = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // battleId + battleId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // logicRandomSeed + logicRandomSeed = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // kEFEEBINLNN + kEFEEBINLNN = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // cAMAJMFLKKL + cAMAJMFLKKL = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // battleScoringList [packed=true] + input.readPackedUInt32(battleScoringList, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // monsterWaveList + tag = input.readRepeatedMessage(monsterWaveList, tag); + bitField0_ |= 0x00000100; + if (tag != 66) { + break; + } + } + case 66: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); + bitField0_ |= 0x00000200; + if (tag != 106) { + break; + } + } + case 106: { + // battleAvatarList + tag = input.readRepeatedMessage(battleAvatarList, tag); + bitField0_ |= 0x00000400; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // battleScoringList [packed=false] + tag = input.readRepeatedUInt32(battleScoringList, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.roundsLimit, roundsLimit); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.battleId, battleId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.logicRandomSeed, logicRandomSeed); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.kEFEEBINLNN, kEFEEBINLNN); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.cAMAJMFLKKL, cAMAJMFLKKL); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.battleScoringList, battleScoringList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.monsterWaveList, monsterWaveList); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.buffList, buffList); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); + } + output.endObject(); + } + + @Override + public SceneBattleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 306477590: + case 1457479585: { + if (input.isAtField(FieldNames.roundsLimit)) { + if (!input.trySkipNullValue()) { + roundsLimit = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 141999058: + case -1894951668: { + if (input.isAtField(FieldNames.logicRandomSeed)) { + if (!input.trySkipNullValue()) { + logicRandomSeed = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1207275631: { + if (input.isAtField(FieldNames.kEFEEBINLNN)) { + if (!input.trySkipNullValue()) { + kEFEEBINLNN = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -919425455: { + if (input.isAtField(FieldNames.cAMAJMFLKKL)) { + if (!input.trySkipNullValue()) { + cAMAJMFLKKL = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -804890571: + case -2008328139: { + if (input.isAtField(FieldNames.battleScoringList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(battleScoringList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 697746737: + case -1492024321: { + if (input.isAtField(FieldNames.monsterWaveList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(monsterWaveList); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(buffList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 768292975: + case 328463037: { + if (input.isAtField(FieldNames.battleAvatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(battleAvatarList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneBattleInfo clone() { + return new SceneBattleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneBattleInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneBattleInfo(), data).checkInitialized(); + } + + public static SceneBattleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneBattleInfo(), input).checkInitialized(); + } + + public static SceneBattleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneBattleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneBattleInfo messages + */ + public static MessageFactory getFactory() { + return SceneBattleInfoFactory.INSTANCE; + } + + private enum SceneBattleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneBattleInfo create() { + return SceneBattleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName roundsLimit = FieldName.forField("roundsLimit", "rounds_limit"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + + static final FieldName logicRandomSeed = FieldName.forField("logicRandomSeed", "logic_random_seed"); + + static final FieldName kEFEEBINLNN = FieldName.forField("KEFEEBINLNN"); + + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName cAMAJMFLKKL = FieldName.forField("CAMAJMFLKKL"); + + static final FieldName battleScoringList = FieldName.forField("battleScoringList", "battle_scoring_list"); + + static final FieldName monsterWaveList = FieldName.forField("monsterWaveList", "monster_wave_list"); + + static final FieldName buffList = FieldName.forField("buffList", "buff_list"); + + static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java new file mode 100644 index 0000000..ec6056b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java @@ -0,0 +1,971 @@ +// 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.RepeatedEnum; +import us.hebi.quickbuf.RepeatedInt; + +public final class SceneCastSkillCsReqOuterClass { + /** + * Protobuf type {@code SceneCastSkillCsReq} + */ + public static final class SceneCastSkillCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 attacked_group_id = 5; + */ + private int attackedGroupId; + + /** + * optional uint32 skill_index = 7; + */ + private int skillIndex; + + /** + * optional uint32 LCFDKABNDLM = 8; + */ + private int lCFDKABNDLM; + + /** + * optional uint32 attacker_id = 13; + */ + private int attackerId; + + /** + * optional .MotionInfo target_motion = 10; + */ + private final MotionInfoOuterClass.MotionInfo targetMotion = MotionInfoOuterClass.MotionInfo.newInstance(); + + /** + * repeated uint32 attacked_entity_id_list = 4; + */ + private final RepeatedInt attackedEntityIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 cast_entity_id_list = 11; + */ + private final RepeatedInt castEntityIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + */ + private final RepeatedEnum castSkillType = RepeatedEnum.newEmptyInstance(SceneCastSkillOuterClass.SceneCastSkill.converter()); + + private SceneCastSkillCsReq() { + } + + /** + * @return a new empty instance of {@code SceneCastSkillCsReq} + */ + public static SceneCastSkillCsReq newInstance() { + return new SceneCastSkillCsReq(); + } + + /** + * optional uint32 attacked_group_id = 5; + * @return whether the attackedGroupId field is set + */ + public boolean hasAttackedGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 attacked_group_id = 5; + * @return this + */ + public SceneCastSkillCsReq clearAttackedGroupId() { + bitField0_ &= ~0x00000001; + attackedGroupId = 0; + return this; + } + + /** + * optional uint32 attacked_group_id = 5; + * @return the attackedGroupId + */ + public int getAttackedGroupId() { + return attackedGroupId; + } + + /** + * optional uint32 attacked_group_id = 5; + * @param value the attackedGroupId to set + * @return this + */ + public SceneCastSkillCsReq setAttackedGroupId(final int value) { + bitField0_ |= 0x00000001; + attackedGroupId = value; + return this; + } + + /** + * optional uint32 skill_index = 7; + * @return whether the skillIndex field is set + */ + public boolean hasSkillIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 skill_index = 7; + * @return this + */ + public SceneCastSkillCsReq clearSkillIndex() { + bitField0_ &= ~0x00000002; + skillIndex = 0; + return this; + } + + /** + * optional uint32 skill_index = 7; + * @return the skillIndex + */ + public int getSkillIndex() { + return skillIndex; + } + + /** + * optional uint32 skill_index = 7; + * @param value the skillIndex to set + * @return this + */ + public SceneCastSkillCsReq setSkillIndex(final int value) { + bitField0_ |= 0x00000002; + skillIndex = value; + return this; + } + + /** + * optional uint32 LCFDKABNDLM = 8; + * @return whether the lCFDKABNDLM field is set + */ + public boolean hasLCFDKABNDLM() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 LCFDKABNDLM = 8; + * @return this + */ + public SceneCastSkillCsReq clearLCFDKABNDLM() { + bitField0_ &= ~0x00000004; + lCFDKABNDLM = 0; + return this; + } + + /** + * optional uint32 LCFDKABNDLM = 8; + * @return the lCFDKABNDLM + */ + public int getLCFDKABNDLM() { + return lCFDKABNDLM; + } + + /** + * optional uint32 LCFDKABNDLM = 8; + * @param value the lCFDKABNDLM to set + * @return this + */ + public SceneCastSkillCsReq setLCFDKABNDLM(final int value) { + bitField0_ |= 0x00000004; + lCFDKABNDLM = value; + return this; + } + + /** + * optional uint32 attacker_id = 13; + * @return whether the attackerId field is set + */ + public boolean hasAttackerId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 attacker_id = 13; + * @return this + */ + public SceneCastSkillCsReq clearAttackerId() { + bitField0_ &= ~0x00000008; + attackerId = 0; + return this; + } + + /** + * optional uint32 attacker_id = 13; + * @return the attackerId + */ + public int getAttackerId() { + return attackerId; + } + + /** + * optional uint32 attacker_id = 13; + * @param value the attackerId to set + * @return this + */ + public SceneCastSkillCsReq setAttackerId(final int value) { + bitField0_ |= 0x00000008; + attackerId = value; + return this; + } + + /** + * optional .MotionInfo target_motion = 10; + * @return whether the targetMotion field is set + */ + public boolean hasTargetMotion() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .MotionInfo target_motion = 10; + * @return this + */ + public SceneCastSkillCsReq clearTargetMotion() { + bitField0_ &= ~0x00000010; + targetMotion.clear(); + return this; + } + + /** + * optional .MotionInfo target_motion = 10; + * + * 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 #getMutableTargetMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getTargetMotion() { + return targetMotion; + } + + /** + * optional .MotionInfo target_motion = 10; + * + * 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 MotionInfoOuterClass.MotionInfo getMutableTargetMotion() { + bitField0_ |= 0x00000010; + return targetMotion; + } + + /** + * optional .MotionInfo target_motion = 10; + * @param value the targetMotion to set + * @return this + */ + public SceneCastSkillCsReq setTargetMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000010; + targetMotion.copyFrom(value); + return this; + } + + /** + * repeated uint32 attacked_entity_id_list = 4; + * @return whether the attackedEntityIdList field is set + */ + public boolean hasAttackedEntityIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 attacked_entity_id_list = 4; + * @return this + */ + public SceneCastSkillCsReq clearAttackedEntityIdList() { + bitField0_ &= ~0x00000020; + attackedEntityIdList.clear(); + return this; + } + + /** + * repeated uint32 attacked_entity_id_list = 4; + * + * 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 #getMutableAttackedEntityIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getAttackedEntityIdList() { + return attackedEntityIdList; + } + + /** + * repeated uint32 attacked_entity_id_list = 4; + * + * 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 getMutableAttackedEntityIdList() { + bitField0_ |= 0x00000020; + return attackedEntityIdList; + } + + /** + * repeated uint32 attacked_entity_id_list = 4; + * @param value the attackedEntityIdList to add + * @return this + */ + public SceneCastSkillCsReq addAttackedEntityIdList(final int value) { + bitField0_ |= 0x00000020; + attackedEntityIdList.add(value); + return this; + } + + /** + * repeated uint32 attacked_entity_id_list = 4; + * @param values the attackedEntityIdList to add + * @return this + */ + public SceneCastSkillCsReq addAllAttackedEntityIdList(final int... values) { + bitField0_ |= 0x00000020; + attackedEntityIdList.addAll(values); + return this; + } + + /** + * repeated uint32 cast_entity_id_list = 11; + * @return whether the castEntityIdList field is set + */ + public boolean hasCastEntityIdList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 cast_entity_id_list = 11; + * @return this + */ + public SceneCastSkillCsReq clearCastEntityIdList() { + bitField0_ &= ~0x00000040; + castEntityIdList.clear(); + return this; + } + + /** + * repeated uint32 cast_entity_id_list = 11; + * + * 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 #getMutableCastEntityIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getCastEntityIdList() { + return castEntityIdList; + } + + /** + * repeated uint32 cast_entity_id_list = 11; + * + * 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 getMutableCastEntityIdList() { + bitField0_ |= 0x00000040; + return castEntityIdList; + } + + /** + * repeated uint32 cast_entity_id_list = 11; + * @param value the castEntityIdList to add + * @return this + */ + public SceneCastSkillCsReq addCastEntityIdList(final int value) { + bitField0_ |= 0x00000040; + castEntityIdList.add(value); + return this; + } + + /** + * repeated uint32 cast_entity_id_list = 11; + * @param values the castEntityIdList to add + * @return this + */ + public SceneCastSkillCsReq addAllCastEntityIdList(final int... values) { + bitField0_ |= 0x00000040; + castEntityIdList.addAll(values); + return this; + } + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + * @return whether the castSkillType field is set + */ + public boolean hasCastSkillType() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + * @return this + */ + public SceneCastSkillCsReq clearCastSkillType() { + bitField0_ &= ~0x00000080; + castSkillType.clear(); + return this; + } + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + * + * 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 #getMutableCastSkillType()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedEnum getCastSkillType() { + return castSkillType; + } + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + * + * 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 RepeatedEnum getMutableCastSkillType() { + bitField0_ |= 0x00000080; + return castSkillType; + } + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + * @param value the castSkillType to add + * @return this + */ + public SceneCastSkillCsReq addCastSkillType( + final SceneCastSkillOuterClass.SceneCastSkill value) { + bitField0_ |= 0x00000080; + castSkillType.add(value); + return this; + } + + /** + * repeated .SceneCastSkill cast_skill_type = 2; + * @param values the castSkillType to add + * @return this + */ + public SceneCastSkillCsReq addAllCastSkillType( + final SceneCastSkillOuterClass.SceneCastSkill... values) { + bitField0_ |= 0x00000080; + castSkillType.addAll(values); + return this; + } + + @Override + public SceneCastSkillCsReq copyFrom(final SceneCastSkillCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + attackedGroupId = other.attackedGroupId; + skillIndex = other.skillIndex; + lCFDKABNDLM = other.lCFDKABNDLM; + attackerId = other.attackerId; + targetMotion.copyFrom(other.targetMotion); + attackedEntityIdList.copyFrom(other.attackedEntityIdList); + castEntityIdList.copyFrom(other.castEntityIdList); + castSkillType.copyFrom(other.castSkillType); + } + return this; + } + + @Override + public SceneCastSkillCsReq mergeFrom(final SceneCastSkillCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAttackedGroupId()) { + setAttackedGroupId(other.attackedGroupId); + } + if (other.hasSkillIndex()) { + setSkillIndex(other.skillIndex); + } + if (other.hasLCFDKABNDLM()) { + setLCFDKABNDLM(other.lCFDKABNDLM); + } + if (other.hasAttackerId()) { + setAttackerId(other.attackerId); + } + if (other.hasTargetMotion()) { + getMutableTargetMotion().mergeFrom(other.targetMotion); + } + if (other.hasAttackedEntityIdList()) { + getMutableAttackedEntityIdList().addAll(other.attackedEntityIdList); + } + if (other.hasCastEntityIdList()) { + getMutableCastEntityIdList().addAll(other.castEntityIdList); + } + if (other.hasCastSkillType()) { + getMutableCastSkillType().addAll(other.castSkillType); + } + return this; + } + + @Override + public SceneCastSkillCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + attackedGroupId = 0; + skillIndex = 0; + lCFDKABNDLM = 0; + attackerId = 0; + targetMotion.clear(); + attackedEntityIdList.clear(); + castEntityIdList.clear(); + castSkillType.clear(); + return this; + } + + @Override + public SceneCastSkillCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + targetMotion.clearQuick(); + attackedEntityIdList.clear(); + castEntityIdList.clear(); + castSkillType.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneCastSkillCsReq)) { + return false; + } + SceneCastSkillCsReq other = (SceneCastSkillCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasSkillIndex() || skillIndex == other.skillIndex) + && (!hasLCFDKABNDLM() || lCFDKABNDLM == other.lCFDKABNDLM) + && (!hasAttackerId() || attackerId == other.attackerId) + && (!hasTargetMotion() || targetMotion.equals(other.targetMotion)) + && (!hasAttackedEntityIdList() || attackedEntityIdList.equals(other.attackedEntityIdList)) + && (!hasCastEntityIdList() || castEntityIdList.equals(other.castEntityIdList)) + && (!hasCastSkillType() || castSkillType.equals(other.castSkillType)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(skillIndex); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(lCFDKABNDLM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(attackerId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(targetMotion); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < attackedEntityIdList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(attackedEntityIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < castEntityIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(castEntityIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < castSkillType.length(); i++) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(castSkillType.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lCFDKABNDLM); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackerId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(targetMotion); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * attackedEntityIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(attackedEntityIdList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * castEntityIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(castEntityIdList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * castSkillType.length()) + ProtoSink.computeRepeatedEnumSizeNoTag(castSkillType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneCastSkillCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // attackedGroupId + attackedGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // skillIndex + skillIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // lCFDKABNDLM + lCFDKABNDLM = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // attackerId + attackerId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // targetMotion + input.readMessage(targetMotion); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // attackedEntityIdList [packed=true] + input.readPackedUInt32(attackedEntityIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // castEntityIdList [packed=true] + input.readPackedUInt32(castEntityIdList, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // castSkillType [packed=true] + input.readPackedEnum(castSkillType, 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 32: { + // attackedEntityIdList [packed=false] + tag = input.readRepeatedUInt32(attackedEntityIdList, tag); + bitField0_ |= 0x00000020; + break; + } + case 88: { + // castEntityIdList [packed=false] + tag = input.readRepeatedUInt32(castEntityIdList, tag); + bitField0_ |= 0x00000040; + break; + } + case 16: { + // castSkillType [packed=false] + tag = input.readRepeatedEnum(castSkillType, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.skillIndex, skillIndex); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.lCFDKABNDLM, lCFDKABNDLM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.attackerId, attackerId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.targetMotion, targetMotion); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.attackedEntityIdList, attackedEntityIdList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.castEntityIdList, castEntityIdList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedEnum(FieldNames.castSkillType, castSkillType); + } + output.endObject(); + } + + @Override + public SceneCastSkillCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { + if (!input.trySkipNullValue()) { + attackedGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1587034369: + case -1716021916: { + if (input.isAtField(FieldNames.skillIndex)) { + if (!input.trySkipNullValue()) { + skillIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 935910222: { + if (input.isAtField(FieldNames.lCFDKABNDLM)) { + if (!input.trySkipNullValue()) { + lCFDKABNDLM = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1960957712: + case -660125531: { + if (input.isAtField(FieldNames.attackerId)) { + if (!input.trySkipNullValue()) { + attackerId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -716903257: + case -2015521244: { + if (input.isAtField(FieldNames.targetMotion)) { + if (!input.trySkipNullValue()) { + input.readMessage(targetMotion); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -849608541: + case 1628923710: { + if (input.isAtField(FieldNames.attackedEntityIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(attackedEntityIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -182636805: + case -1429767706: { + if (input.isAtField(FieldNames.castEntityIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(castEntityIdList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1457514324: + case -1762790040: { + if (input.isAtField(FieldNames.castSkillType)) { + if (!input.trySkipNullValue()) { + input.readRepeatedEnum(castSkillType, SceneCastSkillOuterClass.SceneCastSkill.converter()); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneCastSkillCsReq clone() { + return new SceneCastSkillCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneCastSkillCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneCastSkillCsReq(), data).checkInitialized(); + } + + public static SceneCastSkillCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneCastSkillCsReq(), input).checkInitialized(); + } + + public static SceneCastSkillCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneCastSkillCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneCastSkillCsReq messages + */ + public static MessageFactory getFactory() { + return SceneCastSkillCsReqFactory.INSTANCE; + } + + private enum SceneCastSkillCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneCastSkillCsReq create() { + return SceneCastSkillCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + + static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); + + static final FieldName lCFDKABNDLM = FieldName.forField("LCFDKABNDLM"); + + static final FieldName attackerId = FieldName.forField("attackerId", "attacker_id"); + + static final FieldName targetMotion = FieldName.forField("targetMotion", "target_motion"); + + static final FieldName attackedEntityIdList = FieldName.forField("attackedEntityIdList", "attacked_entity_id_list"); + + static final FieldName castEntityIdList = FieldName.forField("castEntityIdList", "cast_entity_id_list"); + + static final FieldName castSkillType = FieldName.forField("castSkillType", "cast_skill_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java new file mode 100644 index 0000000..8feb06a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java @@ -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 SceneCastSkillMpUpdateScNotifyOuterClass { + /** + * Protobuf type {@code SceneCastSkillMpUpdateScNotify} + */ + public static final class SceneCastSkillMpUpdateScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 attacked_group_id = 10; + */ + private int attackedGroupId; + + /** + * optional uint32 mp = 13; + */ + private int mp; + + private SceneCastSkillMpUpdateScNotify() { + } + + /** + * @return a new empty instance of {@code SceneCastSkillMpUpdateScNotify} + */ + public static SceneCastSkillMpUpdateScNotify newInstance() { + return new SceneCastSkillMpUpdateScNotify(); + } + + /** + * optional uint32 attacked_group_id = 10; + * @return whether the attackedGroupId field is set + */ + public boolean hasAttackedGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 attacked_group_id = 10; + * @return this + */ + public SceneCastSkillMpUpdateScNotify clearAttackedGroupId() { + bitField0_ &= ~0x00000001; + attackedGroupId = 0; + return this; + } + + /** + * optional uint32 attacked_group_id = 10; + * @return the attackedGroupId + */ + public int getAttackedGroupId() { + return attackedGroupId; + } + + /** + * optional uint32 attacked_group_id = 10; + * @param value the attackedGroupId to set + * @return this + */ + public SceneCastSkillMpUpdateScNotify setAttackedGroupId(final int value) { + bitField0_ |= 0x00000001; + attackedGroupId = value; + return this; + } + + /** + * optional uint32 mp = 13; + * @return whether the mp field is set + */ + public boolean hasMp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 mp = 13; + * @return this + */ + public SceneCastSkillMpUpdateScNotify clearMp() { + bitField0_ &= ~0x00000002; + mp = 0; + return this; + } + + /** + * optional uint32 mp = 13; + * @return the mp + */ + public int getMp() { + return mp; + } + + /** + * optional uint32 mp = 13; + * @param value the mp to set + * @return this + */ + public SceneCastSkillMpUpdateScNotify setMp(final int value) { + bitField0_ |= 0x00000002; + mp = value; + return this; + } + + @Override + public SceneCastSkillMpUpdateScNotify copyFrom(final SceneCastSkillMpUpdateScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + attackedGroupId = other.attackedGroupId; + mp = other.mp; + } + return this; + } + + @Override + public SceneCastSkillMpUpdateScNotify mergeFrom(final SceneCastSkillMpUpdateScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAttackedGroupId()) { + setAttackedGroupId(other.attackedGroupId); + } + if (other.hasMp()) { + setMp(other.mp); + } + return this; + } + + @Override + public SceneCastSkillMpUpdateScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + attackedGroupId = 0; + mp = 0; + return this; + } + + @Override + public SceneCastSkillMpUpdateScNotify 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 SceneCastSkillMpUpdateScNotify)) { + return false; + } + SceneCastSkillMpUpdateScNotify other = (SceneCastSkillMpUpdateScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasMp() || mp == other.mp); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(mp); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneCastSkillMpUpdateScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // attackedGroupId + attackedGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // mp + mp = 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.attackedGroupId, attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.mp, mp); + } + output.endObject(); + } + + @Override + public SceneCastSkillMpUpdateScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { + if (!input.trySkipNullValue()) { + attackedGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3491: { + if (input.isAtField(FieldNames.mp)) { + if (!input.trySkipNullValue()) { + mp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneCastSkillMpUpdateScNotify clone() { + return new SceneCastSkillMpUpdateScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneCastSkillMpUpdateScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneCastSkillMpUpdateScNotify(), data).checkInitialized(); + } + + public static SceneCastSkillMpUpdateScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SceneCastSkillMpUpdateScNotify(), input).checkInitialized(); + } + + public static SceneCastSkillMpUpdateScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SceneCastSkillMpUpdateScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneCastSkillMpUpdateScNotify messages + */ + public static MessageFactory getFactory() { + return SceneCastSkillMpUpdateScNotifyFactory.INSTANCE; + } + + private enum SceneCastSkillMpUpdateScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneCastSkillMpUpdateScNotify create() { + return SceneCastSkillMpUpdateScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + + static final FieldName mp = FieldName.forField("mp"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java new file mode 100644 index 0000000..6181856 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java @@ -0,0 +1,132 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class SceneCastSkillOuterClass { + /** + * Protobuf enum {@code SceneCastSkill} + */ + public enum SceneCastSkill implements ProtoEnum { + /** + * SCENE_CAST_SKILL_NONE = 0; + */ + SCENE_CAST_SKILL_NONE("SCENE_CAST_SKILL_NONE", 0), + + /** + * SCENE_CAST_SKILL_PROJECTILE_HIT = 1; + */ + SCENE_CAST_SKILL_PROJECTILE_HIT("SCENE_CAST_SKILL_PROJECTILE_HIT", 1), + + /** + * SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH = 2; + */ + SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH("SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH", 2); + + /** + * SCENE_CAST_SKILL_NONE = 0; + */ + public static final int SCENE_CAST_SKILL_NONE_VALUE = 0; + + /** + * SCENE_CAST_SKILL_PROJECTILE_HIT = 1; + */ + public static final int SCENE_CAST_SKILL_PROJECTILE_HIT_VALUE = 1; + + /** + * SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH = 2; + */ + public static final int SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH_VALUE = 2; + + private final String name; + + private final int number; + + private SceneCastSkill(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SceneCastSkillConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SceneCastSkill forNumber(int value) { + return SceneCastSkillConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SceneCastSkill forNumberOr(int number, SceneCastSkill other) { + SceneCastSkill value = forNumber(number); + return value == null ? other : value; + } + + enum SceneCastSkillConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SceneCastSkill[] lookup = new SceneCastSkill[3]; + + static { + lookup[0] = SCENE_CAST_SKILL_NONE; + lookup[1] = SCENE_CAST_SKILL_PROJECTILE_HIT; + lookup[2] = SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH; + } + + @Override + public final SceneCastSkill forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SceneCastSkill forName(final CharSequence value) { + if (value.length() == 21) { + if (ProtoUtil.isEqual("SCENE_CAST_SKILL_NONE", value)) { + return SCENE_CAST_SKILL_NONE; + } + } + if (value.length() == 31) { + if (ProtoUtil.isEqual("SCENE_CAST_SKILL_PROJECTILE_HIT", value)) { + return SCENE_CAST_SKILL_PROJECTILE_HIT; + } + } + if (value.length() == 43) { + if (ProtoUtil.isEqual("SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH", value)) { + return SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java new file mode 100644 index 0000000..d138fd9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java @@ -0,0 +1,443 @@ +// 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 SceneCastSkillScRspOuterClass { + /** + * Protobuf type {@code SceneCastSkillScRsp} + */ + public static final class SceneCastSkillScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 attacked_group_id = 6; + */ + private int attackedGroupId; + + /** + * optional uint32 retcode = 9; + */ + private int retcode; + + /** + * optional .SceneBattleInfo battle_info = 4; + */ + private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); + + private SceneCastSkillScRsp() { + } + + /** + * @return a new empty instance of {@code SceneCastSkillScRsp} + */ + public static SceneCastSkillScRsp newInstance() { + return new SceneCastSkillScRsp(); + } + + /** + * optional uint32 attacked_group_id = 6; + * @return whether the attackedGroupId field is set + */ + public boolean hasAttackedGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 attacked_group_id = 6; + * @return this + */ + public SceneCastSkillScRsp clearAttackedGroupId() { + bitField0_ &= ~0x00000001; + attackedGroupId = 0; + return this; + } + + /** + * optional uint32 attacked_group_id = 6; + * @return the attackedGroupId + */ + public int getAttackedGroupId() { + return attackedGroupId; + } + + /** + * optional uint32 attacked_group_id = 6; + * @param value the attackedGroupId to set + * @return this + */ + public SceneCastSkillScRsp setAttackedGroupId(final int value) { + bitField0_ |= 0x00000001; + attackedGroupId = value; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 9; + * @return this + */ + public SceneCastSkillScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 9; + * @param value the retcode to set + * @return this + */ + public SceneCastSkillScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 4; + * @return whether the battleInfo field is set + */ + public boolean hasBattleInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneBattleInfo battle_info = 4; + * @return this + */ + public SceneCastSkillScRsp clearBattleInfo() { + bitField0_ &= ~0x00000004; + battleInfo.clear(); + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 4; + * + * 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 #getMutableBattleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { + return battleInfo; + } + + /** + * optional .SceneBattleInfo battle_info = 4; + * + * 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 SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { + bitField0_ |= 0x00000004; + return battleInfo; + } + + /** + * optional .SceneBattleInfo battle_info = 4; + * @param value the battleInfo to set + * @return this + */ + public SceneCastSkillScRsp setBattleInfo( + final SceneBattleInfoOuterClass.SceneBattleInfo value) { + bitField0_ |= 0x00000004; + battleInfo.copyFrom(value); + return this; + } + + @Override + public SceneCastSkillScRsp copyFrom(final SceneCastSkillScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + attackedGroupId = other.attackedGroupId; + retcode = other.retcode; + battleInfo.copyFrom(other.battleInfo); + } + return this; + } + + @Override + public SceneCastSkillScRsp mergeFrom(final SceneCastSkillScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAttackedGroupId()) { + setAttackedGroupId(other.attackedGroupId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBattleInfo()) { + getMutableBattleInfo().mergeFrom(other.battleInfo); + } + return this; + } + + @Override + public SceneCastSkillScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + attackedGroupId = 0; + retcode = 0; + battleInfo.clear(); + return this; + } + + @Override + public SceneCastSkillScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneCastSkillScRsp)) { + return false; + } + SceneCastSkillScRsp other = (SceneCastSkillScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(battleInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneCastSkillScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // attackedGroupId + attackedGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // battleInfo + input.readMessage(battleInfo); + 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.attackedGroupId, attackedGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.battleInfo, battleInfo); + } + output.endObject(); + } + + @Override + public SceneCastSkillScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { + if (!input.trySkipNullValue()) { + attackedGroupId = 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 2053377414: + case -749633579: { + if (input.isAtField(FieldNames.battleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneCastSkillScRsp clone() { + return new SceneCastSkillScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneCastSkillScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneCastSkillScRsp(), data).checkInitialized(); + } + + public static SceneCastSkillScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneCastSkillScRsp(), input).checkInitialized(); + } + + public static SceneCastSkillScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneCastSkillScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneCastSkillScRsp messages + */ + public static MessageFactory getFactory() { + return SceneCastSkillScRspFactory.INSTANCE; + } + + private enum SceneCastSkillScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneCastSkillScRsp create() { + return SceneCastSkillScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java new file mode 100644 index 0000000..12c8e68 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java @@ -0,0 +1,457 @@ +// 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 SceneEntityGroupInfoOuterClass { + /** + * Protobuf type {@code SceneEntityGroupInfo} + */ + public static final class SceneEntityGroupInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 state = 1; + */ + private int state; + + /** + * optional uint32 group_id = 9; + */ + private int groupId; + + /** + * repeated .SceneEntityInfo entity_list = 5; + */ + private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); + + private SceneEntityGroupInfo() { + } + + /** + * @return a new empty instance of {@code SceneEntityGroupInfo} + */ + public static SceneEntityGroupInfo newInstance() { + return new SceneEntityGroupInfo(); + } + + /** + * optional uint32 state = 1; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 state = 1; + * @return this + */ + public SceneEntityGroupInfo clearState() { + bitField0_ &= ~0x00000001; + state = 0; + return this; + } + + /** + * optional uint32 state = 1; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 1; + * @param value the state to set + * @return this + */ + public SceneEntityGroupInfo setState(final int value) { + bitField0_ |= 0x00000001; + state = value; + return this; + } + + /** + * optional uint32 group_id = 9; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 9; + * @return this + */ + public SceneEntityGroupInfo clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 9; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 9; + * @param value the groupId to set + * @return this + */ + public SceneEntityGroupInfo setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * repeated .SceneEntityInfo entity_list = 5; + * @return whether the entityList field is set + */ + public boolean hasEntityList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SceneEntityInfo entity_list = 5; + * @return this + */ + public SceneEntityGroupInfo clearEntityList() { + bitField0_ &= ~0x00000004; + entityList.clear(); + return this; + } + + /** + * repeated .SceneEntityInfo entity_list = 5; + * + * 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 #getMutableEntityList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEntityList() { + return entityList; + } + + /** + * repeated .SceneEntityInfo entity_list = 5; + * + * 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 getMutableEntityList() { + bitField0_ |= 0x00000004; + return entityList; + } + + /** + * repeated .SceneEntityInfo entity_list = 5; + * @param value the entityList to add + * @return this + */ + public SceneEntityGroupInfo addEntityList( + final SceneEntityInfoOuterClass.SceneEntityInfo value) { + bitField0_ |= 0x00000004; + entityList.add(value); + return this; + } + + /** + * repeated .SceneEntityInfo entity_list = 5; + * @param values the entityList to add + * @return this + */ + public SceneEntityGroupInfo addAllEntityList( + final SceneEntityInfoOuterClass.SceneEntityInfo... values) { + bitField0_ |= 0x00000004; + entityList.addAll(values); + return this; + } + + @Override + public SceneEntityGroupInfo copyFrom(final SceneEntityGroupInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + state = other.state; + groupId = other.groupId; + entityList.copyFrom(other.entityList); + } + return this; + } + + @Override + public SceneEntityGroupInfo mergeFrom(final SceneEntityGroupInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasState()) { + setState(other.state); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasEntityList()) { + getMutableEntityList().addAll(other.entityList); + } + return this; + } + + @Override + public SceneEntityGroupInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + state = 0; + groupId = 0; + entityList.clear(); + return this; + } + + @Override + public SceneEntityGroupInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityGroupInfo)) { + return false; + } + SceneEntityGroupInfo other = (SceneEntityGroupInfo) o; + return bitField0_ == other.bitField0_ + && (!hasState() || state == other.state) + && (!hasGroupId() || groupId == other.groupId) + && (!hasEntityList() || entityList.equals(other.entityList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < entityList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(entityList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityGroupInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // entityList + tag = input.readRepeatedMessage(entityList, 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.state, state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.entityList, entityList); + } + output.endObject(); + } + + @Override + public SceneEntityGroupInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1483251935: + case 1281457018: { + if (input.isAtField(FieldNames.entityList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(entityList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityGroupInfo clone() { + return new SceneEntityGroupInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityGroupInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityGroupInfo(), data).checkInitialized(); + } + + public static SceneEntityGroupInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityGroupInfo(), input).checkInitialized(); + } + + public static SceneEntityGroupInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityGroupInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityGroupInfo messages + */ + public static MessageFactory getFactory() { + return SceneEntityGroupInfoFactory.INSTANCE; + } + + private enum SceneEntityGroupInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityGroupInfo create() { + return SceneEntityGroupInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName state = FieldName.forField("state"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName entityList = FieldName.forField("entityList", "entity_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java new file mode 100644 index 0000000..5813786 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java @@ -0,0 +1,1015 @@ +// 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 SceneEntityInfoOuterClass { + /** + * Protobuf type {@code SceneEntityInfo} + */ + public static final class SceneEntityInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 inst_id = 3; + */ + private int instId; + + /** + * optional uint32 entity_id = 4; + */ + private int entityId; + + /** + * optional uint32 group_id = 9; + */ + private int groupId; + + /** + *
+     * SceneSummonUnitInfo summon_unit = 12;
+     * 
+ * + * optional .SceneNpcInfo npc = 1; + */ + private final SceneNpcInfoOuterClass.SceneNpcInfo npc = SceneNpcInfoOuterClass.SceneNpcInfo.newInstance(); + + /** + * optional .MotionInfo motion = 2; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + + /** + * optional .ScenePropInfo prop = 5; + */ + private final ScenePropInfoOuterClass.ScenePropInfo prop = ScenePropInfoOuterClass.ScenePropInfo.newInstance(); + + /** + * optional .SceneNpcMonsterInfo npc_monster = 10; + */ + private final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo npcMonster = SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo.newInstance(); + + /** + * optional .SceneActorInfo actor = 11; + */ + private final SceneActorInfoOuterClass.SceneActorInfo actor = SceneActorInfoOuterClass.SceneActorInfo.newInstance(); + + private SceneEntityInfo() { + } + + /** + * @return a new empty instance of {@code SceneEntityInfo} + */ + public static SceneEntityInfo newInstance() { + return new SceneEntityInfo(); + } + + public boolean hasEntityCase() { + return (((bitField0_ & 0x0000000f)) != 0); + } + + public SceneEntityInfo clearEntityCase() { + if (hasEntityCase()) { + clearNpc(); + clearProp(); + clearNpcMonster(); + clearActor(); + } + return this; + } + + private void clearEntityCaseOtherNpc() { + if ((((bitField0_ & 0x0000000e)) != 0)) { + clearProp(); + clearNpcMonster(); + clearActor(); + } + } + + private void clearEntityCaseOtherProp() { + if ((((bitField0_ & 0x0000000d)) != 0)) { + clearNpc(); + clearNpcMonster(); + clearActor(); + } + } + + private void clearEntityCaseOtherNpcMonster() { + if ((((bitField0_ & 0x0000000b)) != 0)) { + clearNpc(); + clearProp(); + clearActor(); + } + } + + private void clearEntityCaseOtherActor() { + if ((((bitField0_ & 0x00000007)) != 0)) { + clearNpc(); + clearProp(); + clearNpcMonster(); + } + } + + /** + * optional uint32 inst_id = 3; + * @return whether the instId field is set + */ + public boolean hasInstId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 inst_id = 3; + * @return this + */ + public SceneEntityInfo clearInstId() { + bitField0_ &= ~0x00000010; + instId = 0; + return this; + } + + /** + * optional uint32 inst_id = 3; + * @return the instId + */ + public int getInstId() { + return instId; + } + + /** + * optional uint32 inst_id = 3; + * @param value the instId to set + * @return this + */ + public SceneEntityInfo setInstId(final int value) { + bitField0_ |= 0x00000010; + instId = value; + return this; + } + + /** + * optional uint32 entity_id = 4; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 entity_id = 4; + * @return this + */ + public SceneEntityInfo clearEntityId() { + bitField0_ &= ~0x00000020; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 4; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 4; + * @param value the entityId to set + * @return this + */ + public SceneEntityInfo setEntityId(final int value) { + bitField0_ |= 0x00000020; + entityId = value; + return this; + } + + /** + * optional uint32 group_id = 9; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 group_id = 9; + * @return this + */ + public SceneEntityInfo clearGroupId() { + bitField0_ &= ~0x00000040; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 9; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 9; + * @param value the groupId to set + * @return this + */ + public SceneEntityInfo setGroupId(final int value) { + bitField0_ |= 0x00000040; + groupId = value; + return this; + } + + /** + *
+     * SceneSummonUnitInfo summon_unit = 12;
+     * 
+ * + * optional .SceneNpcInfo npc = 1; + * @return whether the npc field is set + */ + public boolean hasNpc() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * SceneSummonUnitInfo summon_unit = 12;
+     * 
+ * + * optional .SceneNpcInfo npc = 1; + * @return this + */ + public SceneEntityInfo clearNpc() { + bitField0_ &= ~0x00000001; + npc.clear(); + return this; + } + + /** + *
+     * SceneSummonUnitInfo summon_unit = 12;
+     * 
+ * + * optional .SceneNpcInfo npc = 1; + * + * 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 #getMutableNpc()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { + return npc; + } + + /** + *
+     * SceneSummonUnitInfo summon_unit = 12;
+     * 
+ * + * optional .SceneNpcInfo npc = 1; + * + * 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 SceneNpcInfoOuterClass.SceneNpcInfo getMutableNpc() { + clearEntityCaseOtherNpc(); + bitField0_ |= 0x00000001; + return npc; + } + + /** + *
+     * SceneSummonUnitInfo summon_unit = 12;
+     * 
+ * + * optional .SceneNpcInfo npc = 1; + * @param value the npc to set + * @return this + */ + public SceneEntityInfo setNpc(final SceneNpcInfoOuterClass.SceneNpcInfo value) { + clearEntityCaseOtherNpc(); + bitField0_ |= 0x00000001; + npc.copyFrom(value); + return this; + } + + /** + * optional .MotionInfo motion = 2; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .MotionInfo motion = 2; + * @return this + */ + public SceneEntityInfo clearMotion() { + bitField0_ &= ~0x00000080; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 2; + * + * 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 #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 2; + * + * 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 MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000080; + return motion; + } + + /** + * optional .MotionInfo motion = 2; + * @param value the motion to set + * @return this + */ + public SceneEntityInfo setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000080; + motion.copyFrom(value); + return this; + } + + /** + * optional .ScenePropInfo prop = 5; + * @return whether the prop field is set + */ + public boolean hasProp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ScenePropInfo prop = 5; + * @return this + */ + public SceneEntityInfo clearProp() { + bitField0_ &= ~0x00000002; + prop.clear(); + return this; + } + + /** + * optional .ScenePropInfo prop = 5; + * + * 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 #getMutableProp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ScenePropInfoOuterClass.ScenePropInfo getProp() { + return prop; + } + + /** + * optional .ScenePropInfo prop = 5; + * + * 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 ScenePropInfoOuterClass.ScenePropInfo getMutableProp() { + clearEntityCaseOtherProp(); + bitField0_ |= 0x00000002; + return prop; + } + + /** + * optional .ScenePropInfo prop = 5; + * @param value the prop to set + * @return this + */ + public SceneEntityInfo setProp(final ScenePropInfoOuterClass.ScenePropInfo value) { + clearEntityCaseOtherProp(); + bitField0_ |= 0x00000002; + prop.copyFrom(value); + return this; + } + + /** + * optional .SceneNpcMonsterInfo npc_monster = 10; + * @return whether the npcMonster field is set + */ + public boolean hasNpcMonster() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneNpcMonsterInfo npc_monster = 10; + * @return this + */ + public SceneEntityInfo clearNpcMonster() { + bitField0_ &= ~0x00000004; + npcMonster.clear(); + return this; + } + + /** + * optional .SceneNpcMonsterInfo npc_monster = 10; + * + * 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 #getMutableNpcMonster()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getNpcMonster() { + return npcMonster; + } + + /** + * optional .SceneNpcMonsterInfo npc_monster = 10; + * + * 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 SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getMutableNpcMonster() { + clearEntityCaseOtherNpcMonster(); + bitField0_ |= 0x00000004; + return npcMonster; + } + + /** + * optional .SceneNpcMonsterInfo npc_monster = 10; + * @param value the npcMonster to set + * @return this + */ + public SceneEntityInfo setNpcMonster( + final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo value) { + clearEntityCaseOtherNpcMonster(); + bitField0_ |= 0x00000004; + npcMonster.copyFrom(value); + return this; + } + + /** + * optional .SceneActorInfo actor = 11; + * @return whether the actor field is set + */ + public boolean hasActor() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SceneActorInfo actor = 11; + * @return this + */ + public SceneEntityInfo clearActor() { + bitField0_ &= ~0x00000008; + actor.clear(); + return this; + } + + /** + * optional .SceneActorInfo actor = 11; + * + * 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 #getMutableActor()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneActorInfoOuterClass.SceneActorInfo getActor() { + return actor; + } + + /** + * optional .SceneActorInfo actor = 11; + * + * 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 SceneActorInfoOuterClass.SceneActorInfo getMutableActor() { + clearEntityCaseOtherActor(); + bitField0_ |= 0x00000008; + return actor; + } + + /** + * optional .SceneActorInfo actor = 11; + * @param value the actor to set + * @return this + */ + public SceneEntityInfo setActor(final SceneActorInfoOuterClass.SceneActorInfo value) { + clearEntityCaseOtherActor(); + bitField0_ |= 0x00000008; + actor.copyFrom(value); + return this; + } + + @Override + public SceneEntityInfo copyFrom(final SceneEntityInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + instId = other.instId; + entityId = other.entityId; + groupId = other.groupId; + npc.copyFrom(other.npc); + motion.copyFrom(other.motion); + prop.copyFrom(other.prop); + npcMonster.copyFrom(other.npcMonster); + actor.copyFrom(other.actor); + } + return this; + } + + @Override + public SceneEntityInfo mergeFrom(final SceneEntityInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasInstId()) { + setInstId(other.instId); + } + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasNpc()) { + getMutableNpc().mergeFrom(other.npc); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + if (other.hasProp()) { + getMutableProp().mergeFrom(other.prop); + } + if (other.hasNpcMonster()) { + getMutableNpcMonster().mergeFrom(other.npcMonster); + } + if (other.hasActor()) { + getMutableActor().mergeFrom(other.actor); + } + return this; + } + + @Override + public SceneEntityInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + instId = 0; + entityId = 0; + groupId = 0; + npc.clear(); + motion.clear(); + prop.clear(); + npcMonster.clear(); + actor.clear(); + return this; + } + + @Override + public SceneEntityInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npc.clearQuick(); + motion.clearQuick(); + prop.clearQuick(); + npcMonster.clearQuick(); + actor.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityInfo)) { + return false; + } + SceneEntityInfo other = (SceneEntityInfo) o; + return bitField0_ == other.bitField0_ + && (!hasInstId() || instId == other.instId) + && (!hasEntityId() || entityId == other.entityId) + && (!hasGroupId() || groupId == other.groupId) + && (!hasNpc() || npc.equals(other.npc)) + && (!hasMotion() || motion.equals(other.motion)) + && (!hasProp() || prop.equals(other.prop)) + && (!hasNpcMonster() || npcMonster.equals(other.npcMonster)) + && (!hasActor() || actor.equals(other.actor)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(instId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(npc); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(motion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(prop); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(npcMonster); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(actor); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(instId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(npc); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(prop); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(npcMonster); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(actor); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // instId + instId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // npc + clearEntityCaseOtherNpc(); + input.readMessage(npc); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // motion + input.readMessage(motion); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // prop + clearEntityCaseOtherProp(); + input.readMessage(prop); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // npcMonster + clearEntityCaseOtherNpcMonster(); + input.readMessage(npcMonster); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // actor + clearEntityCaseOtherActor(); + input.readMessage(actor); + 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_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.instId, instId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.entityId, entityId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.npc, npc); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.prop, prop); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.npcMonster, npcMonster); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.actor, actor); + } + output.endObject(); + } + + @Override + public SceneEntityInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1183779327: + case 1957567924: { + if (input.isAtField(FieldNames.instId)) { + if (!input.trySkipNullValue()) { + instId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { + if (!input.trySkipNullValue()) { + entityId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109281: { + if (input.isAtField(FieldNames.npc)) { + if (!input.trySkipNullValue()) { + clearEntityCaseOtherNpc(); + input.readMessage(npc); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3449699: { + if (input.isAtField(FieldNames.prop)) { + if (!input.trySkipNullValue()) { + clearEntityCaseOtherProp(); + input.readMessage(prop); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1367251527: + case 119679100: { + if (input.isAtField(FieldNames.npcMonster)) { + if (!input.trySkipNullValue()) { + clearEntityCaseOtherNpcMonster(); + input.readMessage(npcMonster); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 92645877: { + if (input.isAtField(FieldNames.actor)) { + if (!input.trySkipNullValue()) { + clearEntityCaseOtherActor(); + input.readMessage(actor); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityInfo clone() { + return new SceneEntityInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityInfo(), data).checkInitialized(); + } + + public static SceneEntityInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityInfo(), input).checkInitialized(); + } + + public static SceneEntityInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityInfo messages + */ + public static MessageFactory getFactory() { + return SceneEntityInfoFactory.INSTANCE; + } + + private enum SceneEntityInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityInfo create() { + return SceneEntityInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName instId = FieldName.forField("instId", "inst_id"); + + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName npc = FieldName.forField("npc"); + + static final FieldName motion = FieldName.forField("motion"); + + static final FieldName prop = FieldName.forField("prop"); + + static final FieldName npcMonster = FieldName.forField("npcMonster", "npc_monster"); + + static final FieldName actor = FieldName.forField("actor"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java new file mode 100644 index 0000000..e34f296 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java @@ -0,0 +1,457 @@ +// 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 SceneEntityMoveCsReqOuterClass { + /** + * Protobuf type {@code SceneEntityMoveCsReq} + */ + public static final class SceneEntityMoveCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 ECMCBPIJPMF = 10; + */ + private long eCMCBPIJPMF; + + /** + * optional uint32 entry_id = 9; + */ + private int entryId; + + /** + * repeated .EntityMotion entity_motion_list = 5; + */ + private final RepeatedMessage entityMotionList = RepeatedMessage.newEmptyInstance(EntityMotionOuterClass.EntityMotion.getFactory()); + + private SceneEntityMoveCsReq() { + } + + /** + * @return a new empty instance of {@code SceneEntityMoveCsReq} + */ + public static SceneEntityMoveCsReq newInstance() { + return new SceneEntityMoveCsReq(); + } + + /** + * optional uint64 ECMCBPIJPMF = 10; + * @return whether the eCMCBPIJPMF field is set + */ + public boolean hasECMCBPIJPMF() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 ECMCBPIJPMF = 10; + * @return this + */ + public SceneEntityMoveCsReq clearECMCBPIJPMF() { + bitField0_ &= ~0x00000001; + eCMCBPIJPMF = 0L; + return this; + } + + /** + * optional uint64 ECMCBPIJPMF = 10; + * @return the eCMCBPIJPMF + */ + public long getECMCBPIJPMF() { + return eCMCBPIJPMF; + } + + /** + * optional uint64 ECMCBPIJPMF = 10; + * @param value the eCMCBPIJPMF to set + * @return this + */ + public SceneEntityMoveCsReq setECMCBPIJPMF(final long value) { + bitField0_ |= 0x00000001; + eCMCBPIJPMF = value; + return this; + } + + /** + * optional uint32 entry_id = 9; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 entry_id = 9; + * @return this + */ + public SceneEntityMoveCsReq clearEntryId() { + bitField0_ &= ~0x00000002; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 9; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 9; + * @param value the entryId to set + * @return this + */ + public SceneEntityMoveCsReq setEntryId(final int value) { + bitField0_ |= 0x00000002; + entryId = value; + return this; + } + + /** + * repeated .EntityMotion entity_motion_list = 5; + * @return whether the entityMotionList field is set + */ + public boolean hasEntityMotionList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .EntityMotion entity_motion_list = 5; + * @return this + */ + public SceneEntityMoveCsReq clearEntityMotionList() { + bitField0_ &= ~0x00000004; + entityMotionList.clear(); + return this; + } + + /** + * repeated .EntityMotion entity_motion_list = 5; + * + * 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 #getMutableEntityMotionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEntityMotionList() { + return entityMotionList; + } + + /** + * repeated .EntityMotion entity_motion_list = 5; + * + * 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 getMutableEntityMotionList() { + bitField0_ |= 0x00000004; + return entityMotionList; + } + + /** + * repeated .EntityMotion entity_motion_list = 5; + * @param value the entityMotionList to add + * @return this + */ + public SceneEntityMoveCsReq addEntityMotionList( + final EntityMotionOuterClass.EntityMotion value) { + bitField0_ |= 0x00000004; + entityMotionList.add(value); + return this; + } + + /** + * repeated .EntityMotion entity_motion_list = 5; + * @param values the entityMotionList to add + * @return this + */ + public SceneEntityMoveCsReq addAllEntityMotionList( + final EntityMotionOuterClass.EntityMotion... values) { + bitField0_ |= 0x00000004; + entityMotionList.addAll(values); + return this; + } + + @Override + public SceneEntityMoveCsReq copyFrom(final SceneEntityMoveCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eCMCBPIJPMF = other.eCMCBPIJPMF; + entryId = other.entryId; + entityMotionList.copyFrom(other.entityMotionList); + } + return this; + } + + @Override + public SceneEntityMoveCsReq mergeFrom(final SceneEntityMoveCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasECMCBPIJPMF()) { + setECMCBPIJPMF(other.eCMCBPIJPMF); + } + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasEntityMotionList()) { + getMutableEntityMotionList().addAll(other.entityMotionList); + } + return this; + } + + @Override + public SceneEntityMoveCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eCMCBPIJPMF = 0L; + entryId = 0; + entityMotionList.clear(); + return this; + } + + @Override + public SceneEntityMoveCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityMotionList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityMoveCsReq)) { + return false; + } + SceneEntityMoveCsReq other = (SceneEntityMoveCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasECMCBPIJPMF() || eCMCBPIJPMF == other.eCMCBPIJPMF) + && (!hasEntryId() || entryId == other.entryId) + && (!hasEntityMotionList() || entityMotionList.equals(other.entityMotionList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt64NoTag(eCMCBPIJPMF); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < entityMotionList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(entityMotionList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(eCMCBPIJPMF); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * entityMotionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityMotionList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityMoveCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // eCMCBPIJPMF + eCMCBPIJPMF = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // entityMotionList + tag = input.readRepeatedMessage(entityMotionList, 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.writeUInt64(FieldNames.eCMCBPIJPMF, eCMCBPIJPMF); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.entityMotionList, entityMotionList); + } + output.endObject(); + } + + @Override + public SceneEntityMoveCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 157773926: { + if (input.isAtField(FieldNames.eCMCBPIJPMF)) { + if (!input.trySkipNullValue()) { + eCMCBPIJPMF = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -276915785: + case 59281707: { + if (input.isAtField(FieldNames.entityMotionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(entityMotionList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityMoveCsReq clone() { + return new SceneEntityMoveCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityMoveCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityMoveCsReq(), data).checkInitialized(); + } + + public static SceneEntityMoveCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityMoveCsReq(), input).checkInitialized(); + } + + public static SceneEntityMoveCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityMoveCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityMoveCsReq messages + */ + public static MessageFactory getFactory() { + return SceneEntityMoveCsReqFactory.INSTANCE; + } + + private enum SceneEntityMoveCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityMoveCsReq create() { + return SceneEntityMoveCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eCMCBPIJPMF = FieldName.forField("ECMCBPIJPMF"); + + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName entityMotionList = FieldName.forField("entityMotionList", "entity_motion_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java new file mode 100644 index 0000000..aa94a60 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java @@ -0,0 +1,522 @@ +// 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 SceneEntityMoveScNotifyOuterClass { + /** + * Protobuf type {@code SceneEntityMoveScNotify} + */ + public static final class SceneEntityMoveScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entity_id = 3; + */ + private int entityId; + + /** + * optional uint32 ADMBBNBNIBK = 5; + */ + private int aDMBBNBNIBK; + + /** + * optional uint32 entry_id = 9; + */ + private int entryId; + + /** + * optional .MotionInfo motion = 12; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + + private SceneEntityMoveScNotify() { + } + + /** + * @return a new empty instance of {@code SceneEntityMoveScNotify} + */ + public static SceneEntityMoveScNotify newInstance() { + return new SceneEntityMoveScNotify(); + } + + /** + * optional uint32 entity_id = 3; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entity_id = 3; + * @return this + */ + public SceneEntityMoveScNotify clearEntityId() { + bitField0_ &= ~0x00000001; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 3; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 3; + * @param value the entityId to set + * @return this + */ + public SceneEntityMoveScNotify setEntityId(final int value) { + bitField0_ |= 0x00000001; + entityId = value; + return this; + } + + /** + * optional uint32 ADMBBNBNIBK = 5; + * @return whether the aDMBBNBNIBK field is set + */ + public boolean hasADMBBNBNIBK() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ADMBBNBNIBK = 5; + * @return this + */ + public SceneEntityMoveScNotify clearADMBBNBNIBK() { + bitField0_ &= ~0x00000002; + aDMBBNBNIBK = 0; + return this; + } + + /** + * optional uint32 ADMBBNBNIBK = 5; + * @return the aDMBBNBNIBK + */ + public int getADMBBNBNIBK() { + return aDMBBNBNIBK; + } + + /** + * optional uint32 ADMBBNBNIBK = 5; + * @param value the aDMBBNBNIBK to set + * @return this + */ + public SceneEntityMoveScNotify setADMBBNBNIBK(final int value) { + bitField0_ |= 0x00000002; + aDMBBNBNIBK = value; + return this; + } + + /** + * optional uint32 entry_id = 9; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 entry_id = 9; + * @return this + */ + public SceneEntityMoveScNotify clearEntryId() { + bitField0_ &= ~0x00000004; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 9; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 9; + * @param value the entryId to set + * @return this + */ + public SceneEntityMoveScNotify setEntryId(final int value) { + bitField0_ |= 0x00000004; + entryId = value; + return this; + } + + /** + * optional .MotionInfo motion = 12; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .MotionInfo motion = 12; + * @return this + */ + public SceneEntityMoveScNotify clearMotion() { + bitField0_ &= ~0x00000008; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 12; + * + * 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 #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 12; + * + * 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 MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000008; + return motion; + } + + /** + * optional .MotionInfo motion = 12; + * @param value the motion to set + * @return this + */ + public SceneEntityMoveScNotify setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000008; + motion.copyFrom(value); + return this; + } + + @Override + public SceneEntityMoveScNotify copyFrom(final SceneEntityMoveScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityId = other.entityId; + aDMBBNBNIBK = other.aDMBBNBNIBK; + entryId = other.entryId; + motion.copyFrom(other.motion); + } + return this; + } + + @Override + public SceneEntityMoveScNotify mergeFrom(final SceneEntityMoveScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityId()) { + setEntityId(other.entityId); + } + if (other.hasADMBBNBNIBK()) { + setADMBBNBNIBK(other.aDMBBNBNIBK); + } + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } + return this; + } + + @Override + public SceneEntityMoveScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityId = 0; + aDMBBNBNIBK = 0; + entryId = 0; + motion.clear(); + return this; + } + + @Override + public SceneEntityMoveScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + motion.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityMoveScNotify)) { + return false; + } + SceneEntityMoveScNotify other = (SceneEntityMoveScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasEntityId() || entityId == other.entityId) + && (!hasADMBBNBNIBK() || aDMBBNBNIBK == other.aDMBBNBNIBK) + && (!hasEntryId() || entryId == other.entryId) + && (!hasMotion() || motion.equals(other.motion)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(aDMBBNBNIBK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(motion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aDMBBNBNIBK); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityMoveScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // aDMBBNBNIBK + aDMBBNBNIBK = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // motion + input.readMessage(motion); + 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.entityId, entityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.aDMBBNBNIBK, aDMBBNBNIBK); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.motion, motion); + } + output.endObject(); + } + + @Override + public SceneEntityMoveScNotify 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; + } + case 1047677378: { + if (input.isAtField(FieldNames.aDMBBNBNIBK)) { + if (!input.trySkipNullValue()) { + aDMBBNBNIBK = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityMoveScNotify clone() { + return new SceneEntityMoveScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityMoveScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityMoveScNotify(), data).checkInitialized(); + } + + public static SceneEntityMoveScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityMoveScNotify(), input).checkInitialized(); + } + + public static SceneEntityMoveScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityMoveScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityMoveScNotify messages + */ + public static MessageFactory getFactory() { + return SceneEntityMoveScNotifyFactory.INSTANCE; + } + + private enum SceneEntityMoveScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityMoveScNotify create() { + return SceneEntityMoveScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + + static final FieldName aDMBBNBNIBK = FieldName.forField("ADMBBNBNIBK"); + + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName motion = FieldName.forField("motion"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java new file mode 100644 index 0000000..6f77777 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java @@ -0,0 +1,487 @@ +// 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 SceneEntityRefreshInfoOuterClass { + /** + * Protobuf type {@code SceneEntityRefreshInfo} + */ + public static final class SceneEntityRefreshInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 LFEHNPMNFMG = 2; + */ + private int lFEHNPMNFMG; + + /** + * optional uint32 del_entity = 15; + */ + private int delEntity; + + /** + * optional .SceneEntityInfo add_entity = 13; + */ + private final SceneEntityInfoOuterClass.SceneEntityInfo addEntity = SceneEntityInfoOuterClass.SceneEntityInfo.newInstance(); + + private SceneEntityRefreshInfo() { + } + + /** + * @return a new empty instance of {@code SceneEntityRefreshInfo} + */ + public static SceneEntityRefreshInfo newInstance() { + return new SceneEntityRefreshInfo(); + } + + public boolean hasUpdateType() { + return (((bitField0_ & 0x00000007)) != 0); + } + + public SceneEntityRefreshInfo clearUpdateType() { + if (hasUpdateType()) { + clearLFEHNPMNFMG(); + clearDelEntity(); + clearAddEntity(); + } + return this; + } + + private void clearUpdateTypeOtherLFEHNPMNFMG() { + if ((((bitField0_ & 0x00000006)) != 0)) { + clearDelEntity(); + clearAddEntity(); + } + } + + private void clearUpdateTypeOtherDelEntity() { + if ((((bitField0_ & 0x00000005)) != 0)) { + clearLFEHNPMNFMG(); + clearAddEntity(); + } + } + + private void clearUpdateTypeOtherAddEntity() { + if ((((bitField0_ & 0x00000003)) != 0)) { + clearLFEHNPMNFMG(); + clearDelEntity(); + } + } + + /** + * optional uint32 LFEHNPMNFMG = 2; + * @return whether the lFEHNPMNFMG field is set + */ + public boolean hasLFEHNPMNFMG() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LFEHNPMNFMG = 2; + * @return this + */ + public SceneEntityRefreshInfo clearLFEHNPMNFMG() { + bitField0_ &= ~0x00000001; + lFEHNPMNFMG = 0; + return this; + } + + /** + * optional uint32 LFEHNPMNFMG = 2; + * @return the lFEHNPMNFMG + */ + public int getLFEHNPMNFMG() { + return lFEHNPMNFMG; + } + + /** + * optional uint32 LFEHNPMNFMG = 2; + * @param value the lFEHNPMNFMG to set + * @return this + */ + public SceneEntityRefreshInfo setLFEHNPMNFMG(final int value) { + clearUpdateTypeOtherLFEHNPMNFMG(); + bitField0_ |= 0x00000001; + lFEHNPMNFMG = value; + return this; + } + + /** + * optional uint32 del_entity = 15; + * @return whether the delEntity field is set + */ + public boolean hasDelEntity() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 del_entity = 15; + * @return this + */ + public SceneEntityRefreshInfo clearDelEntity() { + bitField0_ &= ~0x00000002; + delEntity = 0; + return this; + } + + /** + * optional uint32 del_entity = 15; + * @return the delEntity + */ + public int getDelEntity() { + return delEntity; + } + + /** + * optional uint32 del_entity = 15; + * @param value the delEntity to set + * @return this + */ + public SceneEntityRefreshInfo setDelEntity(final int value) { + clearUpdateTypeOtherDelEntity(); + bitField0_ |= 0x00000002; + delEntity = value; + return this; + } + + /** + * optional .SceneEntityInfo add_entity = 13; + * @return whether the addEntity field is set + */ + public boolean hasAddEntity() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneEntityInfo add_entity = 13; + * @return this + */ + public SceneEntityRefreshInfo clearAddEntity() { + bitField0_ &= ~0x00000004; + addEntity.clear(); + return this; + } + + /** + * optional .SceneEntityInfo add_entity = 13; + * + * 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 #getMutableAddEntity()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneEntityInfoOuterClass.SceneEntityInfo getAddEntity() { + return addEntity; + } + + /** + * optional .SceneEntityInfo add_entity = 13; + * + * 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 SceneEntityInfoOuterClass.SceneEntityInfo getMutableAddEntity() { + clearUpdateTypeOtherAddEntity(); + bitField0_ |= 0x00000004; + return addEntity; + } + + /** + * optional .SceneEntityInfo add_entity = 13; + * @param value the addEntity to set + * @return this + */ + public SceneEntityRefreshInfo setAddEntity( + final SceneEntityInfoOuterClass.SceneEntityInfo value) { + clearUpdateTypeOtherAddEntity(); + bitField0_ |= 0x00000004; + addEntity.copyFrom(value); + return this; + } + + @Override + public SceneEntityRefreshInfo copyFrom(final SceneEntityRefreshInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lFEHNPMNFMG = other.lFEHNPMNFMG; + delEntity = other.delEntity; + addEntity.copyFrom(other.addEntity); + } + return this; + } + + @Override + public SceneEntityRefreshInfo mergeFrom(final SceneEntityRefreshInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLFEHNPMNFMG()) { + setLFEHNPMNFMG(other.lFEHNPMNFMG); + } + if (other.hasDelEntity()) { + setDelEntity(other.delEntity); + } + if (other.hasAddEntity()) { + getMutableAddEntity().mergeFrom(other.addEntity); + } + return this; + } + + @Override + public SceneEntityRefreshInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lFEHNPMNFMG = 0; + delEntity = 0; + addEntity.clear(); + return this; + } + + @Override + public SceneEntityRefreshInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + addEntity.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityRefreshInfo)) { + return false; + } + SceneEntityRefreshInfo other = (SceneEntityRefreshInfo) o; + return bitField0_ == other.bitField0_ + && (!hasLFEHNPMNFMG() || lFEHNPMNFMG == other.lFEHNPMNFMG) + && (!hasDelEntity() || delEntity == other.delEntity) + && (!hasAddEntity() || addEntity.equals(other.addEntity)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(lFEHNPMNFMG); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(delEntity); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(addEntity); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lFEHNPMNFMG); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(delEntity); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(addEntity); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityRefreshInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // lFEHNPMNFMG + clearUpdateTypeOtherLFEHNPMNFMG(); + lFEHNPMNFMG = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // delEntity + clearUpdateTypeOtherDelEntity(); + delEntity = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // addEntity + clearUpdateTypeOtherAddEntity(); + input.readMessage(addEntity); + 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.lFEHNPMNFMG, lFEHNPMNFMG); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.delEntity, delEntity); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.addEntity, addEntity); + } + output.endObject(); + } + + @Override + public SceneEntityRefreshInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -657727392: { + if (input.isAtField(FieldNames.lFEHNPMNFMG)) { + if (!input.trySkipNullValue()) { + clearUpdateTypeOtherLFEHNPMNFMG(); + lFEHNPMNFMG = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1279926322: + case 314362519: { + if (input.isAtField(FieldNames.delEntity)) { + if (!input.trySkipNullValue()) { + clearUpdateTypeOtherDelEntity(); + delEntity = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -405435420: + case 1653776705: { + if (input.isAtField(FieldNames.addEntity)) { + if (!input.trySkipNullValue()) { + clearUpdateTypeOtherAddEntity(); + input.readMessage(addEntity); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityRefreshInfo clone() { + return new SceneEntityRefreshInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityRefreshInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityRefreshInfo(), data).checkInitialized(); + } + + public static SceneEntityRefreshInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityRefreshInfo(), input).checkInitialized(); + } + + public static SceneEntityRefreshInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityRefreshInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityRefreshInfo messages + */ + public static MessageFactory getFactory() { + return SceneEntityRefreshInfoFactory.INSTANCE; + } + + private enum SceneEntityRefreshInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityRefreshInfo create() { + return SceneEntityRefreshInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lFEHNPMNFMG = FieldName.forField("LFEHNPMNFMG"); + + static final FieldName delEntity = FieldName.forField("delEntity", "del_entity"); + + static final FieldName addEntity = FieldName.forField("addEntity", "add_entity"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityUpdateScNotifyOuterClass.java new file mode 100644 index 0000000..c8cf03c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityUpdateScNotifyOuterClass.java @@ -0,0 +1,324 @@ +// 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 SceneEntityUpdateScNotifyOuterClass { + /** + * Protobuf type {@code SceneEntityUpdateScNotify} + */ + public static final class SceneEntityUpdateScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + */ + private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); + + private SceneEntityUpdateScNotify() { + } + + /** + * @return a new empty instance of {@code SceneEntityUpdateScNotify} + */ + public static SceneEntityUpdateScNotify newInstance() { + return new SceneEntityUpdateScNotify(); + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @return whether the entityList field is set + */ + public boolean hasEntityList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @return this + */ + public SceneEntityUpdateScNotify clearEntityList() { + bitField0_ &= ~0x00000001; + entityList.clear(); + return this; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * + * 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 #getMutableEntityList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEntityList() { + return entityList; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * + * 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 getMutableEntityList() { + bitField0_ |= 0x00000001; + return entityList; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @param value the entityList to add + * @return this + */ + public SceneEntityUpdateScNotify addEntityList( + final SceneEntityInfoOuterClass.SceneEntityInfo value) { + bitField0_ |= 0x00000001; + entityList.add(value); + return this; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @param values the entityList to add + * @return this + */ + public SceneEntityUpdateScNotify addAllEntityList( + final SceneEntityInfoOuterClass.SceneEntityInfo... values) { + bitField0_ |= 0x00000001; + entityList.addAll(values); + return this; + } + + @Override + public SceneEntityUpdateScNotify copyFrom(final SceneEntityUpdateScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entityList.copyFrom(other.entityList); + } + return this; + } + + @Override + public SceneEntityUpdateScNotify mergeFrom(final SceneEntityUpdateScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntityList()) { + getMutableEntityList().addAll(other.entityList); + } + return this; + } + + @Override + public SceneEntityUpdateScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityList.clear(); + return this; + } + + @Override + public SceneEntityUpdateScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entityList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneEntityUpdateScNotify)) { + return false; + } + SceneEntityUpdateScNotify other = (SceneEntityUpdateScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasEntityList() || entityList.equals(other.entityList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < entityList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(entityList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneEntityUpdateScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 90: { + // entityList + tag = input.readRepeatedMessage(entityList, 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.entityList, entityList); + } + output.endObject(); + } + + @Override + public SceneEntityUpdateScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1483251935: + case 1281457018: { + if (input.isAtField(FieldNames.entityList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(entityList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneEntityUpdateScNotify clone() { + return new SceneEntityUpdateScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneEntityUpdateScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneEntityUpdateScNotify(), data).checkInitialized(); + } + + public static SceneEntityUpdateScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityUpdateScNotify(), input).checkInitialized(); + } + + public static SceneEntityUpdateScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneEntityUpdateScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneEntityUpdateScNotify messages + */ + public static MessageFactory getFactory() { + return SceneEntityUpdateScNotifyFactory.INSTANCE; + } + + private enum SceneEntityUpdateScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneEntityUpdateScNotify create() { + return SceneEntityUpdateScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entityList = FieldName.forField("entityList", "entity_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java new file mode 100644 index 0000000..8c9c6a0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java @@ -0,0 +1,459 @@ +// 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 SceneGroupRefreshInfoOuterClass { + /** + * Protobuf type {@code SceneGroupRefreshInfo} + */ + public static final class SceneGroupRefreshInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 state = 7; + */ + private int state; + + /** + * optional uint32 group_id = 11; + */ + private int groupId; + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + */ + private final RepeatedMessage refreshEntity = RepeatedMessage.newEmptyInstance(SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo.getFactory()); + + private SceneGroupRefreshInfo() { + } + + /** + * @return a new empty instance of {@code SceneGroupRefreshInfo} + */ + public static SceneGroupRefreshInfo newInstance() { + return new SceneGroupRefreshInfo(); + } + + /** + * optional uint32 state = 7; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 state = 7; + * @return this + */ + public SceneGroupRefreshInfo clearState() { + bitField0_ &= ~0x00000001; + state = 0; + return this; + } + + /** + * optional uint32 state = 7; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 7; + * @param value the state to set + * @return this + */ + public SceneGroupRefreshInfo setState(final int value) { + bitField0_ |= 0x00000001; + state = value; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 11; + * @return this + */ + public SceneGroupRefreshInfo clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 11; + * @param value the groupId to set + * @return this + */ + public SceneGroupRefreshInfo setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + * @return whether the refreshEntity field is set + */ + public boolean hasRefreshEntity() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + * @return this + */ + public SceneGroupRefreshInfo clearRefreshEntity() { + bitField0_ &= ~0x00000004; + refreshEntity.clear(); + return this; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + * + * 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 #getMutableRefreshEntity()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRefreshEntity( + ) { + return refreshEntity; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + * + * 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 getMutableRefreshEntity( + ) { + bitField0_ |= 0x00000004; + return refreshEntity; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + * @param value the refreshEntity to add + * @return this + */ + public SceneGroupRefreshInfo addRefreshEntity( + final SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo value) { + bitField0_ |= 0x00000004; + refreshEntity.add(value); + return this; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 9; + * @param values the refreshEntity to add + * @return this + */ + public SceneGroupRefreshInfo addAllRefreshEntity( + final SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo... values) { + bitField0_ |= 0x00000004; + refreshEntity.addAll(values); + return this; + } + + @Override + public SceneGroupRefreshInfo copyFrom(final SceneGroupRefreshInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + state = other.state; + groupId = other.groupId; + refreshEntity.copyFrom(other.refreshEntity); + } + return this; + } + + @Override + public SceneGroupRefreshInfo mergeFrom(final SceneGroupRefreshInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasState()) { + setState(other.state); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasRefreshEntity()) { + getMutableRefreshEntity().addAll(other.refreshEntity); + } + return this; + } + + @Override + public SceneGroupRefreshInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + state = 0; + groupId = 0; + refreshEntity.clear(); + return this; + } + + @Override + public SceneGroupRefreshInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + refreshEntity.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneGroupRefreshInfo)) { + return false; + } + SceneGroupRefreshInfo other = (SceneGroupRefreshInfo) o; + return bitField0_ == other.bitField0_ + && (!hasState() || state == other.state) + && (!hasGroupId() || groupId == other.groupId) + && (!hasRefreshEntity() || refreshEntity.equals(other.refreshEntity)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < refreshEntity.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(refreshEntity.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * refreshEntity.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(refreshEntity); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneGroupRefreshInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // refreshEntity + tag = input.readRepeatedMessage(refreshEntity, 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.state, state); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.refreshEntity, refreshEntity); + } + output.endObject(); + } + + @Override + public SceneGroupRefreshInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2113180318: + case -1873514041: { + if (input.isAtField(FieldNames.refreshEntity)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(refreshEntity); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneGroupRefreshInfo clone() { + return new SceneGroupRefreshInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneGroupRefreshInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneGroupRefreshInfo(), data).checkInitialized(); + } + + public static SceneGroupRefreshInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneGroupRefreshInfo(), input).checkInitialized(); + } + + public static SceneGroupRefreshInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneGroupRefreshInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneGroupRefreshInfo messages + */ + public static MessageFactory getFactory() { + return SceneGroupRefreshInfoFactory.INSTANCE; + } + + private enum SceneGroupRefreshInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneGroupRefreshInfo create() { + return SceneGroupRefreshInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName state = FieldName.forField("state"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName refreshEntity = FieldName.forField("refreshEntity", "refresh_entity"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java new file mode 100644 index 0000000..e9b5f47 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java @@ -0,0 +1,298 @@ +// 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 SceneGroupRefreshScNotifyOuterClass { + /** + * Protobuf type {@code SceneGroupRefreshScNotify} + */ + public static final class SceneGroupRefreshScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + */ + private final RepeatedMessage groupRefreshInfo = RepeatedMessage.newEmptyInstance(SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo.getFactory()); + + private SceneGroupRefreshScNotify() { + } + + /** + * @return a new empty instance of {@code SceneGroupRefreshScNotify} + */ + public static SceneGroupRefreshScNotify newInstance() { + return new SceneGroupRefreshScNotify(); + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + * @return whether the groupRefreshInfo field is set + */ + public boolean hasGroupRefreshInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + * @return this + */ + public SceneGroupRefreshScNotify clearGroupRefreshInfo() { + bitField0_ &= ~0x00000001; + groupRefreshInfo.clear(); + return this; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + * + * 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 #getMutableGroupRefreshInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGroupRefreshInfo( + ) { + return groupRefreshInfo; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + * + * 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 getMutableGroupRefreshInfo( + ) { + bitField0_ |= 0x00000001; + return groupRefreshInfo; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + * @param value the groupRefreshInfo to add + * @return this + */ + public SceneGroupRefreshScNotify addGroupRefreshInfo( + final SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo value) { + bitField0_ |= 0x00000001; + groupRefreshInfo.add(value); + return this; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 7; + * @param values the groupRefreshInfo to add + * @return this + */ + public SceneGroupRefreshScNotify addAllGroupRefreshInfo( + final SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo... values) { + bitField0_ |= 0x00000001; + groupRefreshInfo.addAll(values); + return this; + } + + @Override + public SceneGroupRefreshScNotify copyFrom(final SceneGroupRefreshScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + groupRefreshInfo.copyFrom(other.groupRefreshInfo); + } + return this; + } + + @Override + public SceneGroupRefreshScNotify mergeFrom(final SceneGroupRefreshScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGroupRefreshInfo()) { + getMutableGroupRefreshInfo().addAll(other.groupRefreshInfo); + } + return this; + } + + @Override + public SceneGroupRefreshScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupRefreshInfo.clear(); + return this; + } + + @Override + public SceneGroupRefreshScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupRefreshInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneGroupRefreshScNotify)) { + return false; + } + SceneGroupRefreshScNotify other = (SceneGroupRefreshScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasGroupRefreshInfo() || groupRefreshInfo.equals(other.groupRefreshInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < groupRefreshInfo.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(groupRefreshInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * groupRefreshInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupRefreshInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneGroupRefreshScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // groupRefreshInfo + tag = input.readRepeatedMessage(groupRefreshInfo, 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.groupRefreshInfo, groupRefreshInfo); + } + output.endObject(); + } + + @Override + public SceneGroupRefreshScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 618562090: + case 851400018: { + if (input.isAtField(FieldNames.groupRefreshInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(groupRefreshInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneGroupRefreshScNotify clone() { + return new SceneGroupRefreshScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneGroupRefreshScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneGroupRefreshScNotify(), data).checkInitialized(); + } + + public static SceneGroupRefreshScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneGroupRefreshScNotify(), input).checkInitialized(); + } + + public static SceneGroupRefreshScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneGroupRefreshScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneGroupRefreshScNotify messages + */ + public static MessageFactory getFactory() { + return SceneGroupRefreshScNotifyFactory.INSTANCE; + } + + private enum SceneGroupRefreshScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneGroupRefreshScNotify create() { + return SceneGroupRefreshScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName groupRefreshInfo = FieldName.forField("groupRefreshInfo", "group_refresh_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java new file mode 100644 index 0000000..723cfb7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java @@ -0,0 +1,2381 @@ +// 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; +import us.hebi.quickbuf.Utf8String; + +public final class SceneInfoOuterClass { + /** + * Protobuf type {@code SceneInfo} + */ + public static final class SceneInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  32
+     * 
+ * + * optional uint32 world_id = 1; + */ + private int worldId; + + /** + *
+     *  96 EKENODLJHKK
+     * 
+ * + * optional uint32 client_pos_version = 5; + */ + private int clientPosVersion; + + /** + *
+     *  36
+     * 
+ * + * optional uint32 floor_id = 6; + */ + private int floorId; + + /** + *
+     *  48
+     * 
+ * + * optional uint32 plane_id = 7; + */ + private int planeId; + + /** + *
+     *  100 CCECJOJHKEO
+     * 
+ * + * optional uint32 leader_entity_id = 13; + */ + private int leaderEntityId; + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + */ + private int entryId; + + /** + *
+     *  128
+     * 
+ * + * optional uint32 game_mode_type = 15; + */ + private int gameModeType; + + /** + *
+     *  60
+     * 
+ * + * optional .MechanismBarInfo ABDCMNBLEPA = 10; + */ + private final MechanismBarInfoOuterClass.MechanismBarInfo aBDCMNBLEPA = MechanismBarInfoOuterClass.MechanismBarInfo.newInstance(); + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + */ + private final RepeatedInt oONDMDFABLJ = RepeatedInt.newEmptyInstance(); + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + */ + private final RepeatedInt pLHHEJPGCNP = RepeatedInt.newEmptyInstance(); + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + */ + private final RepeatedMessage pHBNCDKDJFO = RepeatedMessage.newEmptyInstance(BuffInfoOuterClass.BuffInfo.getFactory()); + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + */ + private final RepeatedMessage lKFHFABMMKJ = RepeatedMessage.newEmptyInstance(EntityBuffInfoOuterClass.EntityBuffInfo.getFactory()); + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + */ + private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + */ + private final RepeatedMessage entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory()); + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + */ + private final RepeatedMessage fFHKBOLIGAJ = RepeatedMessage.newEmptyInstance(FFHKBOLIGAJEntry.getFactory()); + + private SceneInfo() { + } + + /** + * @return a new empty instance of {@code SceneInfo} + */ + public static SceneInfo newInstance() { + return new SceneInfo(); + } + + /** + *
+     *  32
+     * 
+ * + * optional uint32 world_id = 1; + * @return whether the worldId field is set + */ + public boolean hasWorldId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  32
+     * 
+ * + * optional uint32 world_id = 1; + * @return this + */ + public SceneInfo clearWorldId() { + bitField0_ &= ~0x00000001; + worldId = 0; + return this; + } + + /** + *
+     *  32
+     * 
+ * + * optional uint32 world_id = 1; + * @return the worldId + */ + public int getWorldId() { + return worldId; + } + + /** + *
+     *  32
+     * 
+ * + * optional uint32 world_id = 1; + * @param value the worldId to set + * @return this + */ + public SceneInfo setWorldId(final int value) { + bitField0_ |= 0x00000001; + worldId = value; + return this; + } + + /** + *
+     *  96 EKENODLJHKK
+     * 
+ * + * optional uint32 client_pos_version = 5; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  96 EKENODLJHKK
+     * 
+ * + * optional uint32 client_pos_version = 5; + * @return this + */ + public SceneInfo clearClientPosVersion() { + bitField0_ &= ~0x00000002; + clientPosVersion = 0; + return this; + } + + /** + *
+     *  96 EKENODLJHKK
+     * 
+ * + * optional uint32 client_pos_version = 5; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + *
+     *  96 EKENODLJHKK
+     * 
+ * + * optional uint32 client_pos_version = 5; + * @param value the clientPosVersion to set + * @return this + */ + public SceneInfo setClientPosVersion(final int value) { + bitField0_ |= 0x00000002; + clientPosVersion = value; + return this; + } + + /** + *
+     *  36
+     * 
+ * + * optional uint32 floor_id = 6; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  36
+     * 
+ * + * optional uint32 floor_id = 6; + * @return this + */ + public SceneInfo clearFloorId() { + bitField0_ &= ~0x00000004; + floorId = 0; + return this; + } + + /** + *
+     *  36
+     * 
+ * + * optional uint32 floor_id = 6; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + *
+     *  36
+     * 
+ * + * optional uint32 floor_id = 6; + * @param value the floorId to set + * @return this + */ + public SceneInfo setFloorId(final int value) { + bitField0_ |= 0x00000004; + floorId = value; + return this; + } + + /** + *
+     *  48
+     * 
+ * + * optional uint32 plane_id = 7; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     *  48
+     * 
+ * + * optional uint32 plane_id = 7; + * @return this + */ + public SceneInfo clearPlaneId() { + bitField0_ &= ~0x00000008; + planeId = 0; + return this; + } + + /** + *
+     *  48
+     * 
+ * + * optional uint32 plane_id = 7; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + *
+     *  48
+     * 
+ * + * optional uint32 plane_id = 7; + * @param value the planeId to set + * @return this + */ + public SceneInfo setPlaneId(final int value) { + bitField0_ |= 0x00000008; + planeId = value; + return this; + } + + /** + *
+     *  100 CCECJOJHKEO
+     * 
+ * + * optional uint32 leader_entity_id = 13; + * @return whether the leaderEntityId field is set + */ + public boolean hasLeaderEntityId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     *  100 CCECJOJHKEO
+     * 
+ * + * optional uint32 leader_entity_id = 13; + * @return this + */ + public SceneInfo clearLeaderEntityId() { + bitField0_ &= ~0x00000010; + leaderEntityId = 0; + return this; + } + + /** + *
+     *  100 CCECJOJHKEO
+     * 
+ * + * optional uint32 leader_entity_id = 13; + * @return the leaderEntityId + */ + public int getLeaderEntityId() { + return leaderEntityId; + } + + /** + *
+     *  100 CCECJOJHKEO
+     * 
+ * + * optional uint32 leader_entity_id = 13; + * @param value the leaderEntityId to set + * @return this + */ + public SceneInfo setLeaderEntityId(final int value) { + bitField0_ |= 0x00000010; + leaderEntityId = value; + return this; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @return this + */ + public SceneInfo clearEntryId() { + bitField0_ &= ~0x00000020; + entryId = 0; + return this; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + *
+     * map KOCFNLDMPHI = 8; // 76
+     * 
+ * + * optional uint32 entry_id = 14; + * @param value the entryId to set + * @return this + */ + public SceneInfo setEntryId(final int value) { + bitField0_ |= 0x00000020; + entryId = value; + return this; + } + + /** + *
+     *  128
+     * 
+ * + * optional uint32 game_mode_type = 15; + * @return whether the gameModeType field is set + */ + public boolean hasGameModeType() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + *
+     *  128
+     * 
+ * + * optional uint32 game_mode_type = 15; + * @return this + */ + public SceneInfo clearGameModeType() { + bitField0_ &= ~0x00000040; + gameModeType = 0; + return this; + } + + /** + *
+     *  128
+     * 
+ * + * optional uint32 game_mode_type = 15; + * @return the gameModeType + */ + public int getGameModeType() { + return gameModeType; + } + + /** + *
+     *  128
+     * 
+ * + * optional uint32 game_mode_type = 15; + * @param value the gameModeType to set + * @return this + */ + public SceneInfo setGameModeType(final int value) { + bitField0_ |= 0x00000040; + gameModeType = value; + return this; + } + + /** + *
+     *  60
+     * 
+ * + * optional .MechanismBarInfo ABDCMNBLEPA = 10; + * @return whether the aBDCMNBLEPA field is set + */ + public boolean hasABDCMNBLEPA() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + *
+     *  60
+     * 
+ * + * optional .MechanismBarInfo ABDCMNBLEPA = 10; + * @return this + */ + public SceneInfo clearABDCMNBLEPA() { + bitField0_ &= ~0x00000080; + aBDCMNBLEPA.clear(); + return this; + } + + /** + *
+     *  60
+     * 
+ * + * optional .MechanismBarInfo ABDCMNBLEPA = 10; + * + * 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 #getMutableABDCMNBLEPA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MechanismBarInfoOuterClass.MechanismBarInfo getABDCMNBLEPA() { + return aBDCMNBLEPA; + } + + /** + *
+     *  60
+     * 
+ * + * optional .MechanismBarInfo ABDCMNBLEPA = 10; + * + * 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 MechanismBarInfoOuterClass.MechanismBarInfo getMutableABDCMNBLEPA() { + bitField0_ |= 0x00000080; + return aBDCMNBLEPA; + } + + /** + *
+     *  60
+     * 
+ * + * optional .MechanismBarInfo ABDCMNBLEPA = 10; + * @param value the aBDCMNBLEPA to set + * @return this + */ + public SceneInfo setABDCMNBLEPA(final MechanismBarInfoOuterClass.MechanismBarInfo value) { + bitField0_ |= 0x00000080; + aBDCMNBLEPA.copyFrom(value); + return this; + } + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + * @return whether the oONDMDFABLJ field is set + */ + public boolean hasOONDMDFABLJ() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + * @return this + */ + public SceneInfo clearOONDMDFABLJ() { + bitField0_ &= ~0x00000100; + oONDMDFABLJ.clear(); + return this; + } + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + * + * 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 #getMutableOONDMDFABLJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOONDMDFABLJ() { + return oONDMDFABLJ; + } + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + * + * 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 getMutableOONDMDFABLJ() { + bitField0_ |= 0x00000100; + return oONDMDFABLJ; + } + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + * @param value the oONDMDFABLJ to add + * @return this + */ + public SceneInfo addOONDMDFABLJ(final int value) { + bitField0_ |= 0x00000100; + oONDMDFABLJ.add(value); + return this; + } + + /** + *
+     *  88
+     * 
+ * + * repeated uint32 OONDMDFABLJ = 2; + * @param values the oONDMDFABLJ to add + * @return this + */ + public SceneInfo addAllOONDMDFABLJ(final int... values) { + bitField0_ |= 0x00000100; + oONDMDFABLJ.addAll(values); + return this; + } + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + * @return whether the pLHHEJPGCNP field is set + */ + public boolean hasPLHHEJPGCNP() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + * @return this + */ + public SceneInfo clearPLHHEJPGCNP() { + bitField0_ &= ~0x00000200; + pLHHEJPGCNP.clear(); + return this; + } + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + * + * 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 #getMutablePLHHEJPGCNP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPLHHEJPGCNP() { + return pLHHEJPGCNP; + } + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + * + * 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 getMutablePLHHEJPGCNP() { + bitField0_ |= 0x00000200; + return pLHHEJPGCNP; + } + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + * @param value the pLHHEJPGCNP to add + * @return this + */ + public SceneInfo addPLHHEJPGCNP(final int value) { + bitField0_ |= 0x00000200; + pLHHEJPGCNP.add(value); + return this; + } + + /** + *
+     *  40
+     * 
+ * + * repeated uint32 PLHHEJPGCNP = 12; + * @param values the pLHHEJPGCNP to add + * @return this + */ + public SceneInfo addAllPLHHEJPGCNP(final int... values) { + bitField0_ |= 0x00000200; + pLHHEJPGCNP.addAll(values); + return this; + } + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + * @return whether the pHBNCDKDJFO field is set + */ + public boolean hasPHBNCDKDJFO() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + * @return this + */ + public SceneInfo clearPHBNCDKDJFO() { + bitField0_ &= ~0x00000400; + pHBNCDKDJFO.clear(); + return this; + } + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + * + * 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 #getMutablePHBNCDKDJFO()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPHBNCDKDJFO() { + return pHBNCDKDJFO; + } + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + * + * 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 getMutablePHBNCDKDJFO() { + bitField0_ |= 0x00000400; + return pHBNCDKDJFO; + } + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + * @param value the pHBNCDKDJFO to add + * @return this + */ + public SceneInfo addPHBNCDKDJFO(final BuffInfoOuterClass.BuffInfo value) { + bitField0_ |= 0x00000400; + pHBNCDKDJFO.add(value); + return this; + } + + /** + *
+     * repeated OLEJDNBFIJI LABPAKNGNNB = 4; // 104
+     * repeated NFDPJPAEOEC OGOFBAICEHD = 1882; // 112
+     * 
+ * + * repeated .BuffInfo PHBNCDKDJFO = 3; + * @param values the pHBNCDKDJFO to add + * @return this + */ + public SceneInfo addAllPHBNCDKDJFO(final BuffInfoOuterClass.BuffInfo... values) { + bitField0_ |= 0x00000400; + pHBNCDKDJFO.addAll(values); + return this; + } + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + * @return whether the lKFHFABMMKJ field is set + */ + public boolean hasLKFHFABMMKJ() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + * @return this + */ + public SceneInfo clearLKFHFABMMKJ() { + bitField0_ &= ~0x00000800; + lKFHFABMMKJ.clear(); + return this; + } + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + * + * 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 #getMutableLKFHFABMMKJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLKFHFABMMKJ() { + return lKFHFABMMKJ; + } + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + * + * 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 getMutableLKFHFABMMKJ() { + bitField0_ |= 0x00000800; + return lKFHFABMMKJ; + } + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + * @param value the lKFHFABMMKJ to add + * @return this + */ + public SceneInfo addLKFHFABMMKJ(final EntityBuffInfoOuterClass.EntityBuffInfo value) { + bitField0_ |= 0x00000800; + lKFHFABMMKJ.add(value); + return this; + } + + /** + *
+     *  132
+     * 
+ * + * repeated .EntityBuffInfo LKFHFABMMKJ = 9; + * @param values the lKFHFABMMKJ to add + * @return this + */ + public SceneInfo addAllLKFHFABMMKJ(final EntityBuffInfoOuterClass.EntityBuffInfo... values) { + bitField0_ |= 0x00000800; + lKFHFABMMKJ.addAll(values); + return this; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @return whether the entityList field is set + */ + public boolean hasEntityList() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @return this + */ + public SceneInfo clearEntityList() { + bitField0_ &= ~0x00001000; + entityList.clear(); + return this; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * + * 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 #getMutableEntityList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEntityList() { + return entityList; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * + * 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 getMutableEntityList() { + bitField0_ |= 0x00001000; + return entityList; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @param value the entityList to add + * @return this + */ + public SceneInfo addEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo value) { + bitField0_ |= 0x00001000; + entityList.add(value); + return this; + } + + /** + *
+     *  52
+     * 
+ * + * repeated .SceneEntityInfo entity_list = 11; + * @param values the entityList to add + * @return this + */ + public SceneInfo addAllEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo... values) { + bitField0_ |= 0x00001000; + entityList.addAll(values); + return this; + } + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + * @return whether the entityGroupList field is set + */ + public boolean hasEntityGroupList() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + * @return this + */ + public SceneInfo clearEntityGroupList() { + bitField0_ &= ~0x00002000; + entityGroupList.clear(); + return this; + } + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + * + * 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 #getMutableEntityGroupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEntityGroupList( + ) { + return entityGroupList; + } + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + * + * 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 getMutableEntityGroupList( + ) { + bitField0_ |= 0x00002000; + return entityGroupList; + } + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + * @param value the entityGroupList to add + * @return this + */ + public SceneInfo addEntityGroupList( + final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) { + bitField0_ |= 0x00002000; + entityGroupList.add(value); + return this; + } + + /** + *
+     *  68
+     * 
+ * + * repeated .SceneEntityGroupInfo entity_group_list = 1496; + * @param values the entityGroupList to add + * @return this + */ + public SceneInfo addAllEntityGroupList( + final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo... values) { + bitField0_ |= 0x00002000; + entityGroupList.addAll(values); + return this; + } + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + * @return whether the fFHKBOLIGAJ field is set + */ + public boolean hasFFHKBOLIGAJ() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + * @return this + */ + public SceneInfo clearFFHKBOLIGAJ() { + bitField0_ &= ~0x00004000; + fFHKBOLIGAJ.clear(); + return this; + } + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + * + * 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 #getMutableFFHKBOLIGAJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFFHKBOLIGAJ() { + return fFHKBOLIGAJ; + } + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + * + * 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 getMutableFFHKBOLIGAJ() { + bitField0_ |= 0x00004000; + return fFHKBOLIGAJ; + } + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + * @param value the fFHKBOLIGAJ to add + * @return this + */ + public SceneInfo addFFHKBOLIGAJ(final FFHKBOLIGAJEntry value) { + bitField0_ |= 0x00004000; + fFHKBOLIGAJ.add(value); + return this; + } + + /** + *
+     *  24
+     * 
+ * + * repeated .SceneInfo.FFHKBOLIGAJEntry FFHKBOLIGAJ = 2028; + * @param values the fFHKBOLIGAJ to add + * @return this + */ + public SceneInfo addAllFFHKBOLIGAJ(final FFHKBOLIGAJEntry... values) { + bitField0_ |= 0x00004000; + fFHKBOLIGAJ.addAll(values); + return this; + } + + @Override + public SceneInfo copyFrom(final SceneInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + worldId = other.worldId; + clientPosVersion = other.clientPosVersion; + floorId = other.floorId; + planeId = other.planeId; + leaderEntityId = other.leaderEntityId; + entryId = other.entryId; + gameModeType = other.gameModeType; + aBDCMNBLEPA.copyFrom(other.aBDCMNBLEPA); + oONDMDFABLJ.copyFrom(other.oONDMDFABLJ); + pLHHEJPGCNP.copyFrom(other.pLHHEJPGCNP); + pHBNCDKDJFO.copyFrom(other.pHBNCDKDJFO); + lKFHFABMMKJ.copyFrom(other.lKFHFABMMKJ); + entityList.copyFrom(other.entityList); + entityGroupList.copyFrom(other.entityGroupList); + fFHKBOLIGAJ.copyFrom(other.fFHKBOLIGAJ); + } + return this; + } + + @Override + public SceneInfo mergeFrom(final SceneInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWorldId()) { + setWorldId(other.worldId); + } + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasLeaderEntityId()) { + setLeaderEntityId(other.leaderEntityId); + } + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasGameModeType()) { + setGameModeType(other.gameModeType); + } + if (other.hasABDCMNBLEPA()) { + getMutableABDCMNBLEPA().mergeFrom(other.aBDCMNBLEPA); + } + if (other.hasOONDMDFABLJ()) { + getMutableOONDMDFABLJ().addAll(other.oONDMDFABLJ); + } + if (other.hasPLHHEJPGCNP()) { + getMutablePLHHEJPGCNP().addAll(other.pLHHEJPGCNP); + } + if (other.hasPHBNCDKDJFO()) { + getMutablePHBNCDKDJFO().addAll(other.pHBNCDKDJFO); + } + if (other.hasLKFHFABMMKJ()) { + getMutableLKFHFABMMKJ().addAll(other.lKFHFABMMKJ); + } + if (other.hasEntityList()) { + getMutableEntityList().addAll(other.entityList); + } + if (other.hasEntityGroupList()) { + getMutableEntityGroupList().addAll(other.entityGroupList); + } + if (other.hasFFHKBOLIGAJ()) { + getMutableFFHKBOLIGAJ().addAll(other.fFHKBOLIGAJ); + } + return this; + } + + @Override + public SceneInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + worldId = 0; + clientPosVersion = 0; + floorId = 0; + planeId = 0; + leaderEntityId = 0; + entryId = 0; + gameModeType = 0; + aBDCMNBLEPA.clear(); + oONDMDFABLJ.clear(); + pLHHEJPGCNP.clear(); + pHBNCDKDJFO.clear(); + lKFHFABMMKJ.clear(); + entityList.clear(); + entityGroupList.clear(); + fFHKBOLIGAJ.clear(); + return this; + } + + @Override + public SceneInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aBDCMNBLEPA.clearQuick(); + oONDMDFABLJ.clear(); + pLHHEJPGCNP.clear(); + pHBNCDKDJFO.clearQuick(); + lKFHFABMMKJ.clearQuick(); + entityList.clearQuick(); + entityGroupList.clearQuick(); + fFHKBOLIGAJ.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneInfo)) { + return false; + } + SceneInfo other = (SceneInfo) o; + return bitField0_ == other.bitField0_ + && (!hasWorldId() || worldId == other.worldId) + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) + && (!hasFloorId() || floorId == other.floorId) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasLeaderEntityId() || leaderEntityId == other.leaderEntityId) + && (!hasEntryId() || entryId == other.entryId) + && (!hasGameModeType() || gameModeType == other.gameModeType) + && (!hasABDCMNBLEPA() || aBDCMNBLEPA.equals(other.aBDCMNBLEPA)) + && (!hasOONDMDFABLJ() || oONDMDFABLJ.equals(other.oONDMDFABLJ)) + && (!hasPLHHEJPGCNP() || pLHHEJPGCNP.equals(other.pLHHEJPGCNP)) + && (!hasPHBNCDKDJFO() || pHBNCDKDJFO.equals(other.pHBNCDKDJFO)) + && (!hasLKFHFABMMKJ() || lKFHFABMMKJ.equals(other.lKFHFABMMKJ)) + && (!hasEntityList() || entityList.equals(other.entityList)) + && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)) + && (!hasFFHKBOLIGAJ() || fFHKBOLIGAJ.equals(other.fFHKBOLIGAJ)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(worldId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(planeId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(leaderEntityId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(gameModeType); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(aBDCMNBLEPA); + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < oONDMDFABLJ.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(oONDMDFABLJ.array()[i]); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < pLHHEJPGCNP.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(pLHHEJPGCNP.array()[i]); + } + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < pHBNCDKDJFO.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(pHBNCDKDJFO.get(i)); + } + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < lKFHFABMMKJ.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(lKFHFABMMKJ.get(i)); + } + } + if ((bitField0_ & 0x00001000) != 0) { + for (int i = 0; i < entityList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(entityList.get(i)); + } + } + if ((bitField0_ & 0x00002000) != 0) { + for (int i = 0; i < entityGroupList.length(); i++) { + output.writeRawLittleEndian16((short) 24002); + output.writeMessageNoTag(entityGroupList.get(i)); + } + } + if ((bitField0_ & 0x00004000) != 0) { + for (int i = 0; i < fFHKBOLIGAJ.length(); i++) { + output.writeRawLittleEndian16((short) 32482); + output.writeMessageNoTag(fFHKBOLIGAJ.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderEntityId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(aBDCMNBLEPA); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * oONDMDFABLJ.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(oONDMDFABLJ); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * pLHHEJPGCNP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pLHHEJPGCNP); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * pHBNCDKDJFO.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(pHBNCDKDJFO); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * lKFHFABMMKJ.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lKFHFABMMKJ); + } + if ((bitField0_ & 0x00001000) != 0) { + size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); + } + if ((bitField0_ & 0x00002000) != 0) { + size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList); + } + if ((bitField0_ & 0x00004000) != 0) { + size += (2 * fFHKBOLIGAJ.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(fFHKBOLIGAJ); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // worldId + worldId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // leaderEntityId + leaderEntityId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // gameModeType + gameModeType = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // aBDCMNBLEPA + input.readMessage(aBDCMNBLEPA); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // oONDMDFABLJ [packed=true] + input.readPackedUInt32(oONDMDFABLJ, tag); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // pLHHEJPGCNP [packed=true] + input.readPackedUInt32(pLHHEJPGCNP, tag); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // pHBNCDKDJFO + tag = input.readRepeatedMessage(pHBNCDKDJFO, tag); + bitField0_ |= 0x00000400; + if (tag != 74) { + break; + } + } + case 74: { + // lKFHFABMMKJ + tag = input.readRepeatedMessage(lKFHFABMMKJ, tag); + bitField0_ |= 0x00000800; + if (tag != 90) { + break; + } + } + case 90: { + // entityList + tag = input.readRepeatedMessage(entityList, tag); + bitField0_ |= 0x00001000; + if (tag != 11970) { + break; + } + } + case 11970: { + // entityGroupList + tag = input.readRepeatedMessage(entityGroupList, tag); + bitField0_ |= 0x00002000; + if (tag != 16226) { + break; + } + } + case 16226: { + // fFHKBOLIGAJ + tag = input.readRepeatedMessage(fFHKBOLIGAJ, tag); + bitField0_ |= 0x00004000; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 16: { + // oONDMDFABLJ [packed=false] + tag = input.readRepeatedUInt32(oONDMDFABLJ, tag); + bitField0_ |= 0x00000100; + break; + } + case 96: { + // pLHHEJPGCNP [packed=false] + tag = input.readRepeatedUInt32(pLHHEJPGCNP, tag); + bitField0_ |= 0x00000200; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.worldId, worldId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.leaderEntityId, leaderEntityId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.gameModeType, gameModeType); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.aBDCMNBLEPA, aBDCMNBLEPA); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedUInt32(FieldNames.oONDMDFABLJ, oONDMDFABLJ); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedUInt32(FieldNames.pLHHEJPGCNP, pLHHEJPGCNP); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.pHBNCDKDJFO, pHBNCDKDJFO); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.lKFHFABMMKJ, lKFHFABMMKJ); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.entityList, entityList); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRepeatedMessage(FieldNames.fFHKBOLIGAJ, fFHKBOLIGAJ); + } + output.endObject(); + } + + @Override + public SceneInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1525188685: + case 36230376: { + if (input.isAtField(FieldNames.worldId)) { + if (!input.trySkipNullValue()) { + worldId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { + if (!input.trySkipNullValue()) { + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1693061255: + case 794634049: { + if (input.isAtField(FieldNames.leaderEntityId)) { + if (!input.trySkipNullValue()) { + leaderEntityId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -464498289: + case 1937775689: { + if (input.isAtField(FieldNames.gameModeType)) { + if (!input.trySkipNullValue()) { + gameModeType = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -851688693: { + if (input.isAtField(FieldNames.aBDCMNBLEPA)) { + if (!input.trySkipNullValue()) { + input.readMessage(aBDCMNBLEPA); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2066294552: { + if (input.isAtField(FieldNames.oONDMDFABLJ)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(oONDMDFABLJ); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1128889619: { + if (input.isAtField(FieldNames.pLHHEJPGCNP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pLHHEJPGCNP); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1827401237: { + if (input.isAtField(FieldNames.pHBNCDKDJFO)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(pHBNCDKDJFO); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1897503941: { + if (input.isAtField(FieldNames.lKFHFABMMKJ)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(lKFHFABMMKJ); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1483251935: + case 1281457018: { + if (input.isAtField(FieldNames.entityList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(entityList); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -914706662: + case 1589108794: { + if (input.isAtField(FieldNames.entityGroupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(entityGroupList); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -749696829: { + if (input.isAtField(FieldNames.fFHKBOLIGAJ)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(fFHKBOLIGAJ); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneInfo clone() { + return new SceneInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneInfo(), data).checkInitialized(); + } + + public static SceneInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneInfo(), input).checkInitialized(); + } + + public static SceneInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneInfo messages + */ + public static MessageFactory getFactory() { + return SceneInfoFactory.INSTANCE; + } + + /** + * Protobuf type {@code FFHKBOLIGAJEntry} + */ + public static final class FFHKBOLIGAJEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int32 value = 2; + */ + private int value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private FFHKBOLIGAJEntry() { + } + + /** + * @return a new empty instance of {@code FFHKBOLIGAJEntry} + */ + public static FFHKBOLIGAJEntry newInstance() { + return new FFHKBOLIGAJEntry(); + } + + /** + * optional int32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int32 value = 2; + * @return this + */ + public FFHKBOLIGAJEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional int32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional int32 value = 2; + * @param value the value_ to set + * @return this + */ + public FFHKBOLIGAJEntry setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public FFHKBOLIGAJEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public FFHKBOLIGAJEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public FFHKBOLIGAJEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public FFHKBOLIGAJEntry copyFrom(final FFHKBOLIGAJEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public FFHKBOLIGAJEntry mergeFrom(final FFHKBOLIGAJEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public FFHKBOLIGAJEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + key.clear(); + return this; + } + + @Override + public FFHKBOLIGAJEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FFHKBOLIGAJEntry)) { + return false; + } + FFHKBOLIGAJEntry other = (FFHKBOLIGAJEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FFHKBOLIGAJEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + 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.writeInt32(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public FFHKBOLIGAJEntry 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.readInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FFHKBOLIGAJEntry clone() { + return new FFHKBOLIGAJEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FFHKBOLIGAJEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FFHKBOLIGAJEntry(), data).checkInitialized(); + } + + public static FFHKBOLIGAJEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FFHKBOLIGAJEntry(), input).checkInitialized(); + } + + public static FFHKBOLIGAJEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FFHKBOLIGAJEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating FFHKBOLIGAJEntry messages + */ + public static MessageFactory getFactory() { + return FFHKBOLIGAJEntryFactory.INSTANCE; + } + + private enum FFHKBOLIGAJEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public FFHKBOLIGAJEntry create() { + return FFHKBOLIGAJEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum SceneInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneInfo create() { + return SceneInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName worldId = FieldName.forField("worldId", "world_id"); + + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName leaderEntityId = FieldName.forField("leaderEntityId", "leader_entity_id"); + + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName gameModeType = FieldName.forField("gameModeType", "game_mode_type"); + + static final FieldName aBDCMNBLEPA = FieldName.forField("ABDCMNBLEPA"); + + static final FieldName oONDMDFABLJ = FieldName.forField("OONDMDFABLJ"); + + static final FieldName pLHHEJPGCNP = FieldName.forField("PLHHEJPGCNP"); + + static final FieldName pHBNCDKDJFO = FieldName.forField("PHBNCDKDJFO"); + + static final FieldName lKFHFABMMKJ = FieldName.forField("LKFHFABMMKJ"); + + static final FieldName entityList = FieldName.forField("entityList", "entity_list"); + + static final FieldName entityGroupList = FieldName.forField("entityGroupList", "entity_group_list"); + + static final FieldName fFHKBOLIGAJ = FieldName.forField("FFHKBOLIGAJ"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java new file mode 100644 index 0000000..222948c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java @@ -0,0 +1,421 @@ +// 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 SceneMonsterOuterClass { + /** + * Protobuf type {@code SceneMonster} + */ + public static final class SceneMonster extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 max_hp = 6; + */ + private int maxHp; + + /** + * optional uint32 cur_hp = 12; + */ + private int curHp; + + /** + * optional uint32 monster_id = 15; + */ + private int monsterId; + + private SceneMonster() { + } + + /** + * @return a new empty instance of {@code SceneMonster} + */ + public static SceneMonster newInstance() { + return new SceneMonster(); + } + + /** + * optional uint32 max_hp = 6; + * @return whether the maxHp field is set + */ + public boolean hasMaxHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 max_hp = 6; + * @return this + */ + public SceneMonster clearMaxHp() { + bitField0_ &= ~0x00000001; + maxHp = 0; + return this; + } + + /** + * optional uint32 max_hp = 6; + * @return the maxHp + */ + public int getMaxHp() { + return maxHp; + } + + /** + * optional uint32 max_hp = 6; + * @param value the maxHp to set + * @return this + */ + public SceneMonster setMaxHp(final int value) { + bitField0_ |= 0x00000001; + maxHp = value; + return this; + } + + /** + * optional uint32 cur_hp = 12; + * @return whether the curHp field is set + */ + public boolean hasCurHp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_hp = 12; + * @return this + */ + public SceneMonster clearCurHp() { + bitField0_ &= ~0x00000002; + curHp = 0; + return this; + } + + /** + * optional uint32 cur_hp = 12; + * @return the curHp + */ + public int getCurHp() { + return curHp; + } + + /** + * optional uint32 cur_hp = 12; + * @param value the curHp to set + * @return this + */ + public SceneMonster setCurHp(final int value) { + bitField0_ |= 0x00000002; + curHp = value; + return this; + } + + /** + * optional uint32 monster_id = 15; + * @return whether the monsterId field is set + */ + public boolean hasMonsterId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 monster_id = 15; + * @return this + */ + public SceneMonster clearMonsterId() { + bitField0_ &= ~0x00000004; + monsterId = 0; + return this; + } + + /** + * optional uint32 monster_id = 15; + * @return the monsterId + */ + public int getMonsterId() { + return monsterId; + } + + /** + * optional uint32 monster_id = 15; + * @param value the monsterId to set + * @return this + */ + public SceneMonster setMonsterId(final int value) { + bitField0_ |= 0x00000004; + monsterId = value; + return this; + } + + @Override + public SceneMonster copyFrom(final SceneMonster other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + maxHp = other.maxHp; + curHp = other.curHp; + monsterId = other.monsterId; + } + return this; + } + + @Override + public SceneMonster mergeFrom(final SceneMonster other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMaxHp()) { + setMaxHp(other.maxHp); + } + if (other.hasCurHp()) { + setCurHp(other.curHp); + } + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); + } + return this; + } + + @Override + public SceneMonster clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + maxHp = 0; + curHp = 0; + monsterId = 0; + return this; + } + + @Override + public SceneMonster 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 SceneMonster)) { + return false; + } + SceneMonster other = (SceneMonster) o; + return bitField0_ == other.bitField0_ + && (!hasMaxHp() || maxHp == other.maxHp) + && (!hasCurHp() || curHp == other.curHp) + && (!hasMonsterId() || monsterId == other.monsterId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(maxHp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(curHp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(monsterId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxHp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneMonster mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // maxHp + maxHp = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // curHp + curHp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // monsterId + monsterId = input.readUInt32(); + 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.maxHp, maxHp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.curHp, curHp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.monsterId, monsterId); + } + output.endObject(); + } + + @Override + public SceneMonster mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 103671180: + case -1081138749: { + if (input.isAtField(FieldNames.maxHp)) { + if (!input.trySkipNullValue()) { + maxHp = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 95026024: + case -1349138585: { + if (input.isAtField(FieldNames.curHp)) { + if (!input.trySkipNullValue()) { + curHp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { + if (!input.trySkipNullValue()) { + monsterId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneMonster clone() { + return new SceneMonster().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneMonster parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneMonster(), data).checkInitialized(); + } + + public static SceneMonster parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonster(), input).checkInitialized(); + } + + public static SceneMonster parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonster(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneMonster messages + */ + public static MessageFactory getFactory() { + return SceneMonsterFactory.INSTANCE; + } + + private enum SceneMonsterFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneMonster create() { + return SceneMonster.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName maxHp = FieldName.forField("maxHp", "max_hp"); + + static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); + + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java new file mode 100644 index 0000000..286f942 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java @@ -0,0 +1,570 @@ +// 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 SceneMonsterWaveOuterClass { + /** + * Protobuf type {@code SceneMonsterWave} + */ + public static final class SceneMonsterWave extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 wave_id = 8; + */ + private int waveId; + + /** + * optional uint32 stage_id = 10; + */ + private int stageId; + + /** + * repeated .ItemList drop_list = 1; + */ + private final RepeatedMessage dropList = RepeatedMessage.newEmptyInstance(ItemListOuterClass.ItemList.getFactory()); + + /** + * repeated .SceneMonster monster_list = 9; + */ + private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(SceneMonsterOuterClass.SceneMonster.getFactory()); + + private SceneMonsterWave() { + } + + /** + * @return a new empty instance of {@code SceneMonsterWave} + */ + public static SceneMonsterWave newInstance() { + return new SceneMonsterWave(); + } + + /** + * optional uint32 wave_id = 8; + * @return whether the waveId field is set + */ + public boolean hasWaveId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 wave_id = 8; + * @return this + */ + public SceneMonsterWave clearWaveId() { + bitField0_ &= ~0x00000001; + waveId = 0; + return this; + } + + /** + * optional uint32 wave_id = 8; + * @return the waveId + */ + public int getWaveId() { + return waveId; + } + + /** + * optional uint32 wave_id = 8; + * @param value the waveId to set + * @return this + */ + public SceneMonsterWave setWaveId(final int value) { + bitField0_ |= 0x00000001; + waveId = value; + return this; + } + + /** + * optional uint32 stage_id = 10; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 stage_id = 10; + * @return this + */ + public SceneMonsterWave clearStageId() { + bitField0_ &= ~0x00000002; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 10; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 10; + * @param value the stageId to set + * @return this + */ + public SceneMonsterWave setStageId(final int value) { + bitField0_ |= 0x00000002; + stageId = value; + return this; + } + + /** + * repeated .ItemList drop_list = 1; + * @return whether the dropList field is set + */ + public boolean hasDropList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ItemList drop_list = 1; + * @return this + */ + public SceneMonsterWave clearDropList() { + bitField0_ &= ~0x00000004; + dropList.clear(); + return this; + } + + /** + * repeated .ItemList drop_list = 1; + * + * 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 #getMutableDropList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDropList() { + return dropList; + } + + /** + * repeated .ItemList drop_list = 1; + * + * 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 getMutableDropList() { + bitField0_ |= 0x00000004; + return dropList; + } + + /** + * repeated .ItemList drop_list = 1; + * @param value the dropList to add + * @return this + */ + public SceneMonsterWave addDropList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000004; + dropList.add(value); + return this; + } + + /** + * repeated .ItemList drop_list = 1; + * @param values the dropList to add + * @return this + */ + public SceneMonsterWave addAllDropList(final ItemListOuterClass.ItemList... values) { + bitField0_ |= 0x00000004; + dropList.addAll(values); + return this; + } + + /** + * repeated .SceneMonster monster_list = 9; + * @return whether the monsterList field is set + */ + public boolean hasMonsterList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SceneMonster monster_list = 9; + * @return this + */ + public SceneMonsterWave clearMonsterList() { + bitField0_ &= ~0x00000008; + monsterList.clear(); + return this; + } + + /** + * repeated .SceneMonster monster_list = 9; + * + * 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 #getMutableMonsterList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMonsterList() { + return monsterList; + } + + /** + * repeated .SceneMonster monster_list = 9; + * + * 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 getMutableMonsterList() { + bitField0_ |= 0x00000008; + return monsterList; + } + + /** + * repeated .SceneMonster monster_list = 9; + * @param value the monsterList to add + * @return this + */ + public SceneMonsterWave addMonsterList(final SceneMonsterOuterClass.SceneMonster value) { + bitField0_ |= 0x00000008; + monsterList.add(value); + return this; + } + + /** + * repeated .SceneMonster monster_list = 9; + * @param values the monsterList to add + * @return this + */ + public SceneMonsterWave addAllMonsterList(final SceneMonsterOuterClass.SceneMonster... values) { + bitField0_ |= 0x00000008; + monsterList.addAll(values); + return this; + } + + @Override + public SceneMonsterWave copyFrom(final SceneMonsterWave other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + waveId = other.waveId; + stageId = other.stageId; + dropList.copyFrom(other.dropList); + monsterList.copyFrom(other.monsterList); + } + return this; + } + + @Override + public SceneMonsterWave mergeFrom(final SceneMonsterWave other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWaveId()) { + setWaveId(other.waveId); + } + if (other.hasStageId()) { + setStageId(other.stageId); + } + if (other.hasDropList()) { + getMutableDropList().addAll(other.dropList); + } + if (other.hasMonsterList()) { + getMutableMonsterList().addAll(other.monsterList); + } + return this; + } + + @Override + public SceneMonsterWave clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + waveId = 0; + stageId = 0; + dropList.clear(); + monsterList.clear(); + return this; + } + + @Override + public SceneMonsterWave clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dropList.clearQuick(); + monsterList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneMonsterWave)) { + return false; + } + SceneMonsterWave other = (SceneMonsterWave) o; + return bitField0_ == other.bitField0_ + && (!hasWaveId() || waveId == other.waveId) + && (!hasStageId() || stageId == other.stageId) + && (!hasDropList() || dropList.equals(other.dropList)) + && (!hasMonsterList() || monsterList.equals(other.monsterList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(waveId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < dropList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(dropList.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < monsterList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(monsterList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * dropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dropList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneMonsterWave mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // waveId + waveId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // dropList + tag = input.readRepeatedMessage(dropList, tag); + bitField0_ |= 0x00000004; + if (tag != 74) { + break; + } + } + case 74: { + // monsterList + tag = input.readRepeatedMessage(monsterList, 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.waveId, waveId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.dropList, dropList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.monsterList, monsterList); + } + output.endObject(); + } + + @Override + public SceneMonsterWave mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -794902028: + case 1127862305: { + if (input.isAtField(FieldNames.waveId)) { + if (!input.trySkipNullValue()) { + waveId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -432782291: + case -513722386: { + if (input.isAtField(FieldNames.dropList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dropList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1541271448: + case 552401379: { + if (input.isAtField(FieldNames.monsterList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(monsterList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneMonsterWave clone() { + return new SceneMonsterWave().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneMonsterWave parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneMonsterWave(), data).checkInitialized(); + } + + public static SceneMonsterWave parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonsterWave(), input).checkInitialized(); + } + + public static SceneMonsterWave parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonsterWave(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneMonsterWave messages + */ + public static MessageFactory getFactory() { + return SceneMonsterWaveFactory.INSTANCE; + } + + private enum SceneMonsterWaveFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneMonsterWave create() { + return SceneMonsterWave.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName waveId = FieldName.forField("waveId", "wave_id"); + + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName dropList = FieldName.forField("dropList", "drop_list"); + + static final FieldName monsterList = FieldName.forField("monsterList", "monster_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java new file mode 100644 index 0000000..c456f15 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java @@ -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 SceneNpcInfoOuterClass { + /** + * Protobuf type {@code SceneNpcInfo} + */ + public static final class SceneNpcInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 npc_id = 15; + */ + private int npcId; + + private SceneNpcInfo() { + } + + /** + * @return a new empty instance of {@code SceneNpcInfo} + */ + public static SceneNpcInfo newInstance() { + return new SceneNpcInfo(); + } + + /** + * optional uint32 npc_id = 15; + * @return whether the npcId field is set + */ + public boolean hasNpcId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 npc_id = 15; + * @return this + */ + public SceneNpcInfo clearNpcId() { + bitField0_ &= ~0x00000001; + npcId = 0; + return this; + } + + /** + * optional uint32 npc_id = 15; + * @return the npcId + */ + public int getNpcId() { + return npcId; + } + + /** + * optional uint32 npc_id = 15; + * @param value the npcId to set + * @return this + */ + public SceneNpcInfo setNpcId(final int value) { + bitField0_ |= 0x00000001; + npcId = value; + return this; + } + + @Override + public SceneNpcInfo copyFrom(final SceneNpcInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + npcId = other.npcId; + } + return this; + } + + @Override + public SceneNpcInfo mergeFrom(final SceneNpcInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNpcId()) { + setNpcId(other.npcId); + } + return this; + } + + @Override + public SceneNpcInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcId = 0; + return this; + } + + @Override + public SceneNpcInfo 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 SceneNpcInfo)) { + return false; + } + SceneNpcInfo other = (SceneNpcInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNpcId() || npcId == other.npcId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(npcId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneNpcInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // npcId + npcId = 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.npcId, npcId); + } + output.endObject(); + } + + @Override + public SceneNpcInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 105021404: + case -1039282375: { + if (input.isAtField(FieldNames.npcId)) { + if (!input.trySkipNullValue()) { + npcId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneNpcInfo clone() { + return new SceneNpcInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneNpcInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneNpcInfo(), data).checkInitialized(); + } + + public static SceneNpcInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneNpcInfo(), input).checkInitialized(); + } + + public static SceneNpcInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneNpcInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneNpcInfo messages + */ + public static MessageFactory getFactory() { + return SceneNpcInfoFactory.INSTANCE; + } + + private enum SceneNpcInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneNpcInfo create() { + return SceneNpcInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName npcId = FieldName.forField("npcId", "npc_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java new file mode 100644 index 0000000..bb42ca3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java @@ -0,0 +1,602 @@ +// 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 SceneNpcMonsterInfoOuterClass { + /** + * Protobuf type {@code SceneNpcMonsterInfo} + */ + public static final class SceneNpcMonsterInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 world_level = 1; + */ + private int worldLevel; + + /** + * optional uint32 event_id = 5; + */ + private int eventId; + + /** + * optional uint32 monster_id = 10; + */ + private int monsterId; + + /** + *
+     * FNCLFLKHFFH HBAAIJKMJKB = 2;
+     * 
+ * + * optional bool NKNHAMFJPDJ = 7; + */ + private boolean nKNHAMFJPDJ; + + /** + * optional bool AIMDKIODIIB = 8; + */ + private boolean aIMDKIODIIB; + + private SceneNpcMonsterInfo() { + } + + /** + * @return a new empty instance of {@code SceneNpcMonsterInfo} + */ + public static SceneNpcMonsterInfo newInstance() { + return new SceneNpcMonsterInfo(); + } + + /** + * optional uint32 world_level = 1; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 world_level = 1; + * @return this + */ + public SceneNpcMonsterInfo clearWorldLevel() { + bitField0_ &= ~0x00000001; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 1; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 1; + * @param value the worldLevel to set + * @return this + */ + public SceneNpcMonsterInfo setWorldLevel(final int value) { + bitField0_ |= 0x00000001; + worldLevel = value; + return this; + } + + /** + * optional uint32 event_id = 5; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 event_id = 5; + * @return this + */ + public SceneNpcMonsterInfo clearEventId() { + bitField0_ &= ~0x00000002; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 5; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 5; + * @param value the eventId to set + * @return this + */ + public SceneNpcMonsterInfo setEventId(final int value) { + bitField0_ |= 0x00000002; + eventId = value; + return this; + } + + /** + * optional uint32 monster_id = 10; + * @return whether the monsterId field is set + */ + public boolean hasMonsterId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 monster_id = 10; + * @return this + */ + public SceneNpcMonsterInfo clearMonsterId() { + bitField0_ &= ~0x00000004; + monsterId = 0; + return this; + } + + /** + * optional uint32 monster_id = 10; + * @return the monsterId + */ + public int getMonsterId() { + return monsterId; + } + + /** + * optional uint32 monster_id = 10; + * @param value the monsterId to set + * @return this + */ + public SceneNpcMonsterInfo setMonsterId(final int value) { + bitField0_ |= 0x00000004; + monsterId = value; + return this; + } + + /** + *
+     * FNCLFLKHFFH HBAAIJKMJKB = 2;
+     * 
+ * + * optional bool NKNHAMFJPDJ = 7; + * @return whether the nKNHAMFJPDJ field is set + */ + public boolean hasNKNHAMFJPDJ() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     * FNCLFLKHFFH HBAAIJKMJKB = 2;
+     * 
+ * + * optional bool NKNHAMFJPDJ = 7; + * @return this + */ + public SceneNpcMonsterInfo clearNKNHAMFJPDJ() { + bitField0_ &= ~0x00000008; + nKNHAMFJPDJ = false; + return this; + } + + /** + *
+     * FNCLFLKHFFH HBAAIJKMJKB = 2;
+     * 
+ * + * optional bool NKNHAMFJPDJ = 7; + * @return the nKNHAMFJPDJ + */ + public boolean getNKNHAMFJPDJ() { + return nKNHAMFJPDJ; + } + + /** + *
+     * FNCLFLKHFFH HBAAIJKMJKB = 2;
+     * 
+ * + * optional bool NKNHAMFJPDJ = 7; + * @param value the nKNHAMFJPDJ to set + * @return this + */ + public SceneNpcMonsterInfo setNKNHAMFJPDJ(final boolean value) { + bitField0_ |= 0x00000008; + nKNHAMFJPDJ = value; + return this; + } + + /** + * optional bool AIMDKIODIIB = 8; + * @return whether the aIMDKIODIIB field is set + */ + public boolean hasAIMDKIODIIB() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool AIMDKIODIIB = 8; + * @return this + */ + public SceneNpcMonsterInfo clearAIMDKIODIIB() { + bitField0_ &= ~0x00000010; + aIMDKIODIIB = false; + return this; + } + + /** + * optional bool AIMDKIODIIB = 8; + * @return the aIMDKIODIIB + */ + public boolean getAIMDKIODIIB() { + return aIMDKIODIIB; + } + + /** + * optional bool AIMDKIODIIB = 8; + * @param value the aIMDKIODIIB to set + * @return this + */ + public SceneNpcMonsterInfo setAIMDKIODIIB(final boolean value) { + bitField0_ |= 0x00000010; + aIMDKIODIIB = value; + return this; + } + + @Override + public SceneNpcMonsterInfo copyFrom(final SceneNpcMonsterInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + worldLevel = other.worldLevel; + eventId = other.eventId; + monsterId = other.monsterId; + nKNHAMFJPDJ = other.nKNHAMFJPDJ; + aIMDKIODIIB = other.aIMDKIODIIB; + } + return this; + } + + @Override + public SceneNpcMonsterInfo mergeFrom(final SceneNpcMonsterInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasEventId()) { + setEventId(other.eventId); + } + if (other.hasMonsterId()) { + setMonsterId(other.monsterId); + } + if (other.hasNKNHAMFJPDJ()) { + setNKNHAMFJPDJ(other.nKNHAMFJPDJ); + } + if (other.hasAIMDKIODIIB()) { + setAIMDKIODIIB(other.aIMDKIODIIB); + } + return this; + } + + @Override + public SceneNpcMonsterInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + worldLevel = 0; + eventId = 0; + monsterId = 0; + nKNHAMFJPDJ = false; + aIMDKIODIIB = false; + return this; + } + + @Override + public SceneNpcMonsterInfo 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 SceneNpcMonsterInfo)) { + return false; + } + SceneNpcMonsterInfo other = (SceneNpcMonsterInfo) o; + return bitField0_ == other.bitField0_ + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasEventId() || eventId == other.eventId) + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasNKNHAMFJPDJ() || nKNHAMFJPDJ == other.nKNHAMFJPDJ) + && (!hasAIMDKIODIIB() || aIMDKIODIIB == other.aIMDKIODIIB); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(eventId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(monsterId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(nKNHAMFJPDJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(aIMDKIODIIB); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneNpcMonsterInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // eventId + eventId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // monsterId + monsterId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // nKNHAMFJPDJ + nKNHAMFJPDJ = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // aIMDKIODIIB + aIMDKIODIIB = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eventId, eventId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.monsterId, monsterId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.nKNHAMFJPDJ, nKNHAMFJPDJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.aIMDKIODIIB, aIMDKIODIIB); + } + output.endObject(); + } + + @Override + public SceneNpcMonsterInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { + if (!input.trySkipNullValue()) { + eventId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1316830571: + case 2127946656: { + if (input.isAtField(FieldNames.monsterId)) { + if (!input.trySkipNullValue()) { + monsterId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1228440783: { + if (input.isAtField(FieldNames.nKNHAMFJPDJ)) { + if (!input.trySkipNullValue()) { + nKNHAMFJPDJ = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1478075920: { + if (input.isAtField(FieldNames.aIMDKIODIIB)) { + if (!input.trySkipNullValue()) { + aIMDKIODIIB = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneNpcMonsterInfo clone() { + return new SceneNpcMonsterInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneNpcMonsterInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneNpcMonsterInfo(), data).checkInitialized(); + } + + public static SceneNpcMonsterInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneNpcMonsterInfo(), input).checkInitialized(); + } + + public static SceneNpcMonsterInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneNpcMonsterInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneNpcMonsterInfo messages + */ + public static MessageFactory getFactory() { + return SceneNpcMonsterInfoFactory.INSTANCE; + } + + private enum SceneNpcMonsterInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneNpcMonsterInfo create() { + return SceneNpcMonsterInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName eventId = FieldName.forField("eventId", "event_id"); + + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName nKNHAMFJPDJ = FieldName.forField("NKNHAMFJPDJ"); + + static final FieldName aIMDKIODIIB = FieldName.forField("AIMDKIODIIB"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java new file mode 100644 index 0000000..b3a7e1d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java @@ -0,0 +1,636 @@ +// 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.RepeatedString; + +public final class ScenePropInfoOuterClass { + /** + * Protobuf type {@code ScenePropInfo} + */ + public static final class ScenePropInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 create_time_ms = 13; + */ + private long createTimeMs; + + /** + *
+     * PropExtraInfo HBAAIJKMJKB = 2;
+     * 
+ * + * optional uint32 prop_id = 5; + */ + private int propId; + + /** + * optional uint32 life_time_ms = 10; + */ + private int lifeTimeMs; + + /** + * optional uint32 prop_state = 15; + */ + private int propState; + + /** + * repeated string FBMJHHCFAFK = 14; + */ + private final RepeatedString fBMJHHCFAFK = RepeatedString.newEmptyInstance(); + + private ScenePropInfo() { + } + + /** + * @return a new empty instance of {@code ScenePropInfo} + */ + public static ScenePropInfo newInstance() { + return new ScenePropInfo(); + } + + /** + * optional uint64 create_time_ms = 13; + * @return whether the createTimeMs field is set + */ + public boolean hasCreateTimeMs() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 create_time_ms = 13; + * @return this + */ + public ScenePropInfo clearCreateTimeMs() { + bitField0_ &= ~0x00000001; + createTimeMs = 0L; + return this; + } + + /** + * optional uint64 create_time_ms = 13; + * @return the createTimeMs + */ + public long getCreateTimeMs() { + return createTimeMs; + } + + /** + * optional uint64 create_time_ms = 13; + * @param value the createTimeMs to set + * @return this + */ + public ScenePropInfo setCreateTimeMs(final long value) { + bitField0_ |= 0x00000001; + createTimeMs = value; + return this; + } + + /** + *
+     * PropExtraInfo HBAAIJKMJKB = 2;
+     * 
+ * + * optional uint32 prop_id = 5; + * @return whether the propId field is set + */ + public boolean hasPropId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * PropExtraInfo HBAAIJKMJKB = 2;
+     * 
+ * + * optional uint32 prop_id = 5; + * @return this + */ + public ScenePropInfo clearPropId() { + bitField0_ &= ~0x00000002; + propId = 0; + return this; + } + + /** + *
+     * PropExtraInfo HBAAIJKMJKB = 2;
+     * 
+ * + * optional uint32 prop_id = 5; + * @return the propId + */ + public int getPropId() { + return propId; + } + + /** + *
+     * PropExtraInfo HBAAIJKMJKB = 2;
+     * 
+ * + * optional uint32 prop_id = 5; + * @param value the propId to set + * @return this + */ + public ScenePropInfo setPropId(final int value) { + bitField0_ |= 0x00000002; + propId = value; + return this; + } + + /** + * optional uint32 life_time_ms = 10; + * @return whether the lifeTimeMs field is set + */ + public boolean hasLifeTimeMs() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 life_time_ms = 10; + * @return this + */ + public ScenePropInfo clearLifeTimeMs() { + bitField0_ &= ~0x00000004; + lifeTimeMs = 0; + return this; + } + + /** + * optional uint32 life_time_ms = 10; + * @return the lifeTimeMs + */ + public int getLifeTimeMs() { + return lifeTimeMs; + } + + /** + * optional uint32 life_time_ms = 10; + * @param value the lifeTimeMs to set + * @return this + */ + public ScenePropInfo setLifeTimeMs(final int value) { + bitField0_ |= 0x00000004; + lifeTimeMs = value; + return this; + } + + /** + * optional uint32 prop_state = 15; + * @return whether the propState field is set + */ + public boolean hasPropState() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 prop_state = 15; + * @return this + */ + public ScenePropInfo clearPropState() { + bitField0_ &= ~0x00000008; + propState = 0; + return this; + } + + /** + * optional uint32 prop_state = 15; + * @return the propState + */ + public int getPropState() { + return propState; + } + + /** + * optional uint32 prop_state = 15; + * @param value the propState to set + * @return this + */ + public ScenePropInfo setPropState(final int value) { + bitField0_ |= 0x00000008; + propState = value; + return this; + } + + /** + * repeated string FBMJHHCFAFK = 14; + * @return whether the fBMJHHCFAFK field is set + */ + public boolean hasFBMJHHCFAFK() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated string FBMJHHCFAFK = 14; + * @return this + */ + public ScenePropInfo clearFBMJHHCFAFK() { + bitField0_ &= ~0x00000010; + fBMJHHCFAFK.clear(); + return this; + } + + /** + * repeated string FBMJHHCFAFK = 14; + * + * 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 #getMutableFBMJHHCFAFK()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedString getFBMJHHCFAFK() { + return fBMJHHCFAFK; + } + + /** + * repeated string FBMJHHCFAFK = 14; + * + * 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 RepeatedString getMutableFBMJHHCFAFK() { + bitField0_ |= 0x00000010; + return fBMJHHCFAFK; + } + + /** + * repeated string FBMJHHCFAFK = 14; + * @param value the fBMJHHCFAFK to add + * @return this + */ + public ScenePropInfo addFBMJHHCFAFK(final CharSequence value) { + bitField0_ |= 0x00000010; + fBMJHHCFAFK.add(value); + return this; + } + + /** + * repeated string FBMJHHCFAFK = 14; + * @param values the fBMJHHCFAFK to add + * @return this + */ + public ScenePropInfo addAllFBMJHHCFAFK(final CharSequence... values) { + bitField0_ |= 0x00000010; + fBMJHHCFAFK.addAll(values); + return this; + } + + @Override + public ScenePropInfo copyFrom(final ScenePropInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + createTimeMs = other.createTimeMs; + propId = other.propId; + lifeTimeMs = other.lifeTimeMs; + propState = other.propState; + fBMJHHCFAFK.copyFrom(other.fBMJHHCFAFK); + } + return this; + } + + @Override + public ScenePropInfo mergeFrom(final ScenePropInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCreateTimeMs()) { + setCreateTimeMs(other.createTimeMs); + } + if (other.hasPropId()) { + setPropId(other.propId); + } + if (other.hasLifeTimeMs()) { + setLifeTimeMs(other.lifeTimeMs); + } + if (other.hasPropState()) { + setPropState(other.propState); + } + if (other.hasFBMJHHCFAFK()) { + getMutableFBMJHHCFAFK().addAll(other.fBMJHHCFAFK); + } + return this; + } + + @Override + public ScenePropInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + createTimeMs = 0L; + propId = 0; + lifeTimeMs = 0; + propState = 0; + fBMJHHCFAFK.clear(); + return this; + } + + @Override + public ScenePropInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fBMJHHCFAFK.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ScenePropInfo)) { + return false; + } + ScenePropInfo other = (ScenePropInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) + && (!hasPropId() || propId == other.propId) + && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) + && (!hasPropState() || propState == other.propState) + && (!hasFBMJHHCFAFK() || fBMJHHCFAFK.equals(other.fBMJHHCFAFK)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt64NoTag(createTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(propId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(lifeTimeMs); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(propState); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < fBMJHHCFAFK.length(); i++) { + output.writeRawByte((byte) 114); + output.writeStringNoTag(fBMJHHCFAFK.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(createTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lifeTimeMs); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * fBMJHHCFAFK.length()) + ProtoSink.computeRepeatedStringSizeNoTag(fBMJHHCFAFK); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ScenePropInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // createTimeMs + createTimeMs = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // propId + propId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // lifeTimeMs + lifeTimeMs = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // propState + propState = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // fBMJHHCFAFK + tag = input.readRepeatedString(fBMJHHCFAFK, tag); + bitField0_ |= 0x00000010; + 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.writeUInt64(FieldNames.createTimeMs, createTimeMs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.propId, propId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.lifeTimeMs, lifeTimeMs); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.propState, propState); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedString(FieldNames.fBMJHHCFAFK, fBMJHHCFAFK); + } + output.endObject(); + } + + @Override + public ScenePropInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1554103663: + case 1902222357: { + if (input.isAtField(FieldNames.createTimeMs)) { + if (!input.trySkipNullValue()) { + createTimeMs = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -979804194: + case -309137545: { + if (input.isAtField(FieldNames.propId)) { + if (!input.trySkipNullValue()) { + propId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1226028177: + case 1665182229: { + if (input.isAtField(FieldNames.lifeTimeMs)) { + if (!input.trySkipNullValue()) { + lifeTimeMs = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -739191058: + case -1096911691: { + if (input.isAtField(FieldNames.propState)) { + if (!input.trySkipNullValue()) { + propState = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1332546806: { + if (input.isAtField(FieldNames.fBMJHHCFAFK)) { + if (!input.trySkipNullValue()) { + input.readRepeatedString(fBMJHHCFAFK); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ScenePropInfo clone() { + return new ScenePropInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ScenePropInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ScenePropInfo(), data).checkInitialized(); + } + + public static ScenePropInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ScenePropInfo(), input).checkInitialized(); + } + + public static ScenePropInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ScenePropInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ScenePropInfo messages + */ + public static MessageFactory getFactory() { + return ScenePropInfoFactory.INSTANCE; + } + + private enum ScenePropInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ScenePropInfo create() { + return ScenePropInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName createTimeMs = FieldName.forField("createTimeMs", "create_time_ms"); + + static final FieldName propId = FieldName.forField("propId", "prop_id"); + + static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); + + static final FieldName propState = FieldName.forField("propState", "prop_state"); + + static final FieldName fBMJHHCFAFK = FieldName.forField("FBMJHHCFAFK"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java new file mode 100644 index 0000000..c37f474 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java @@ -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 SellItemCsReqOuterClass { + /** + * Protobuf type {@code SellItemCsReq} + */ + public static final class SellItemCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ItemCostList item_cost_list = 9; + */ + private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); + + private SellItemCsReq() { + } + + /** + * @return a new empty instance of {@code SellItemCsReq} + */ + public static SellItemCsReq newInstance() { + return new SellItemCsReq(); + } + + /** + * optional .ItemCostList item_cost_list = 9; + * @return whether the itemCostList field is set + */ + public boolean hasItemCostList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ItemCostList item_cost_list = 9; + * @return this + */ + public SellItemCsReq clearItemCostList() { + bitField0_ &= ~0x00000001; + itemCostList.clear(); + return this; + } + + /** + * optional .ItemCostList item_cost_list = 9; + * + * 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 #getMutableItemCostList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getItemCostList() { + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 9; + * + * 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 getMutableItemCostList() { + bitField0_ |= 0x00000001; + return itemCostList; + } + + /** + * optional .ItemCostList item_cost_list = 9; + * @param value the itemCostList to set + * @return this + */ + public SellItemCsReq setItemCostList(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000001; + itemCostList.copyFrom(value); + return this; + } + + @Override + public SellItemCsReq copyFrom(final SellItemCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemCostList.copyFrom(other.itemCostList); + } + return this; + } + + @Override + public SellItemCsReq mergeFrom(final SellItemCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemCostList()) { + getMutableItemCostList().mergeFrom(other.itemCostList); + } + return this; + } + + @Override + public SellItemCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clear(); + return this; + } + + @Override + public SellItemCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemCostList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SellItemCsReq)) { + return false; + } + SellItemCsReq other = (SellItemCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(itemCostList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SellItemCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // itemCostList + input.readMessage(itemCostList); + 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.itemCostList, itemCostList); + } + output.endObject(); + } + + @Override + public SellItemCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 203506238: + case -1124889692: { + if (input.isAtField(FieldNames.itemCostList)) { + if (!input.trySkipNullValue()) { + input.readMessage(itemCostList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SellItemCsReq clone() { + return new SellItemCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SellItemCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SellItemCsReq(), data).checkInitialized(); + } + + public static SellItemCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SellItemCsReq(), input).checkInitialized(); + } + + public static SellItemCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SellItemCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SellItemCsReq messages + */ + public static MessageFactory getFactory() { + return SellItemCsReqFactory.INSTANCE; + } + + private enum SellItemCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SellItemCsReq create() { + return SellItemCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java new file mode 100644 index 0000000..7e45da4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java @@ -0,0 +1,360 @@ +// 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 SellItemScRspOuterClass { + /** + * Protobuf type {@code SellItemScRsp} + */ + public static final class SellItemScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 4; + */ + private int retcode; + + /** + * optional .ItemList return_item_list = 13; + */ + private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); + + private SellItemScRsp() { + } + + /** + * @return a new empty instance of {@code SellItemScRsp} + */ + public static SellItemScRsp newInstance() { + return new SellItemScRsp(); + } + + /** + * optional uint32 retcode = 4; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 4; + * @return this + */ + public SellItemScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 4; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 4; + * @param value the retcode to set + * @return this + */ + public SellItemScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ItemList return_item_list = 13; + * @return whether the returnItemList field is set + */ + public boolean hasReturnItemList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemList return_item_list = 13; + * @return this + */ + public SellItemScRsp clearReturnItemList() { + bitField0_ &= ~0x00000002; + returnItemList.clear(); + return this; + } + + /** + * optional .ItemList return_item_list = 13; + * + * 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 #getMutableReturnItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getReturnItemList() { + return returnItemList; + } + + /** + * optional .ItemList return_item_list = 13; + * + * 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 getMutableReturnItemList() { + bitField0_ |= 0x00000002; + return returnItemList; + } + + /** + * optional .ItemList return_item_list = 13; + * @param value the returnItemList to set + * @return this + */ + public SellItemScRsp setReturnItemList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000002; + returnItemList.copyFrom(value); + return this; + } + + @Override + public SellItemScRsp copyFrom(final SellItemScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + returnItemList.copyFrom(other.returnItemList); + } + return this; + } + + @Override + public SellItemScRsp mergeFrom(final SellItemScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasReturnItemList()) { + getMutableReturnItemList().mergeFrom(other.returnItemList); + } + return this; + } + + @Override + public SellItemScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + returnItemList.clear(); + return this; + } + + @Override + public SellItemScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + returnItemList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SellItemScRsp)) { + return false; + } + SellItemScRsp other = (SellItemScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(returnItemList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(returnItemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SellItemScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // returnItemList + input.readMessage(returnItemList); + 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.returnItemList, returnItemList); + } + output.endObject(); + } + + @Override + public SellItemScRsp 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 -6533215: + case -807051781: { + if (input.isAtField(FieldNames.returnItemList)) { + if (!input.trySkipNullValue()) { + input.readMessage(returnItemList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SellItemScRsp clone() { + return new SellItemScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SellItemScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SellItemScRsp(), data).checkInitialized(); + } + + public static SellItemScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SellItemScRsp(), input).checkInitialized(); + } + + public static SellItemScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SellItemScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SellItemScRsp messages + */ + public static MessageFactory getFactory() { + return SellItemScRspFactory.INSTANCE; + } + + private enum SellItemScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SellItemScRsp create() { + return SellItemScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java new file mode 100644 index 0000000..de15cae --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java @@ -0,0 +1,717 @@ +// 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.Utf8String; + +public final class SendMsgCsReqOuterClass { + /** + * Protobuf type {@code SendMsgCsReq} + */ + public static final class SendMsgCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 emote = 11; + */ + private int emote; + + /** + * optional .MsgType msg_type = 12; + */ + private int msgType; + + /** + * optional .ChatType chat_type = 14; + */ + private int chatType; + + /** + * optional string text = 4; + */ + private final Utf8String text = Utf8String.newEmptyInstance(); + + /** + * repeated uint32 toUid = 6; + */ + private final RepeatedInt toUid = RepeatedInt.newEmptyInstance(); + + private SendMsgCsReq() { + } + + /** + * @return a new empty instance of {@code SendMsgCsReq} + */ + public static SendMsgCsReq newInstance() { + return new SendMsgCsReq(); + } + + /** + * optional uint32 emote = 11; + * @return whether the emote field is set + */ + public boolean hasEmote() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 emote = 11; + * @return this + */ + public SendMsgCsReq clearEmote() { + bitField0_ &= ~0x00000001; + emote = 0; + return this; + } + + /** + * optional uint32 emote = 11; + * @return the emote + */ + public int getEmote() { + return emote; + } + + /** + * optional uint32 emote = 11; + * @param value the emote to set + * @return this + */ + public SendMsgCsReq setEmote(final int value) { + bitField0_ |= 0x00000001; + emote = value; + return this; + } + + /** + * optional .MsgType msg_type = 12; + * @return whether the msgType field is set + */ + public boolean hasMsgType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .MsgType msg_type = 12; + * @return this + */ + public SendMsgCsReq clearMsgType() { + bitField0_ &= ~0x00000002; + msgType = 0; + return this; + } + + /** + * optional .MsgType msg_type = 12; + * @return the msgType + */ + public MsgTypeOuterClass.MsgType getMsgType() { + return MsgTypeOuterClass.MsgType.forNumber(msgType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SendMsgCsReq#getMsgType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getMsgTypeValue() { + return msgType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value + * can cause {@link SendMsgCsReq#getMsgType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SendMsgCsReq setMsgTypeValue(final int value) { + bitField0_ |= 0x00000002; + msgType = value; + return this; + } + + /** + * optional .MsgType msg_type = 12; + * @param value the msgType to set + * @return this + */ + public SendMsgCsReq setMsgType(final MsgTypeOuterClass.MsgType value) { + bitField0_ |= 0x00000002; + msgType = value.getNumber(); + return this; + } + + /** + * optional .ChatType chat_type = 14; + * @return whether the chatType field is set + */ + public boolean hasChatType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChatType chat_type = 14; + * @return this + */ + public SendMsgCsReq clearChatType() { + bitField0_ &= ~0x00000004; + chatType = 0; + return this; + } + + /** + * optional .ChatType chat_type = 14; + * @return the chatType + */ + public ChatTypeOuterClass.ChatType getChatType() { + return ChatTypeOuterClass.ChatType.forNumber(chatType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SendMsgCsReq#getChatType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getChatTypeValue() { + return chatType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ChatTypeOuterClass.ChatType}. Setting an invalid value + * can cause {@link SendMsgCsReq#getChatType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SendMsgCsReq setChatTypeValue(final int value) { + bitField0_ |= 0x00000004; + chatType = value; + return this; + } + + /** + * optional .ChatType chat_type = 14; + * @param value the chatType to set + * @return this + */ + public SendMsgCsReq setChatType(final ChatTypeOuterClass.ChatType value) { + bitField0_ |= 0x00000004; + chatType = value.getNumber(); + return this; + } + + /** + * optional string text = 4; + * @return whether the text field is set + */ + public boolean hasText() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string text = 4; + * @return this + */ + public SendMsgCsReq clearText() { + bitField0_ &= ~0x00000008; + text.clear(); + return this; + } + + /** + * optional string text = 4; + * @return the text + */ + public String getText() { + return text.getString(); + } + + /** + * optional string text = 4; + * @return internal {@code Utf8String} representation of text for reading + */ + public Utf8String getTextBytes() { + return this.text; + } + + /** + * optional string text = 4; + * @return internal {@code Utf8String} representation of text for modifications + */ + public Utf8String getMutableTextBytes() { + bitField0_ |= 0x00000008; + return this.text; + } + + /** + * optional string text = 4; + * @param value the text to set + * @return this + */ + public SendMsgCsReq setText(final CharSequence value) { + bitField0_ |= 0x00000008; + text.copyFrom(value); + return this; + } + + /** + * optional string text = 4; + * @param value the text to set + * @return this + */ + public SendMsgCsReq setText(final Utf8String value) { + bitField0_ |= 0x00000008; + text.copyFrom(value); + return this; + } + + /** + * repeated uint32 toUid = 6; + * @return whether the toUid field is set + */ + public boolean hasToUid() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 toUid = 6; + * @return this + */ + public SendMsgCsReq clearToUid() { + bitField0_ &= ~0x00000010; + toUid.clear(); + return this; + } + + /** + * repeated uint32 toUid = 6; + * + * 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 #getMutableToUid()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getToUid() { + return toUid; + } + + /** + * repeated uint32 toUid = 6; + * + * 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 getMutableToUid() { + bitField0_ |= 0x00000010; + return toUid; + } + + /** + * repeated uint32 toUid = 6; + * @param value the toUid to add + * @return this + */ + public SendMsgCsReq addToUid(final int value) { + bitField0_ |= 0x00000010; + toUid.add(value); + return this; + } + + /** + * repeated uint32 toUid = 6; + * @param values the toUid to add + * @return this + */ + public SendMsgCsReq addAllToUid(final int... values) { + bitField0_ |= 0x00000010; + toUid.addAll(values); + return this; + } + + @Override + public SendMsgCsReq copyFrom(final SendMsgCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + emote = other.emote; + msgType = other.msgType; + chatType = other.chatType; + text.copyFrom(other.text); + toUid.copyFrom(other.toUid); + } + return this; + } + + @Override + public SendMsgCsReq mergeFrom(final SendMsgCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEmote()) { + setEmote(other.emote); + } + if (other.hasMsgType()) { + setMsgTypeValue(other.msgType); + } + if (other.hasChatType()) { + setChatTypeValue(other.chatType); + } + if (other.hasText()) { + getMutableTextBytes().copyFrom(other.text); + } + if (other.hasToUid()) { + getMutableToUid().addAll(other.toUid); + } + return this; + } + + @Override + public SendMsgCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + emote = 0; + msgType = 0; + chatType = 0; + text.clear(); + toUid.clear(); + return this; + } + + @Override + public SendMsgCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + text.clear(); + toUid.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SendMsgCsReq)) { + return false; + } + SendMsgCsReq other = (SendMsgCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEmote() || emote == other.emote) + && (!hasMsgType() || msgType == other.msgType) + && (!hasChatType() || chatType == other.chatType) + && (!hasText() || text.equals(other.text)) + && (!hasToUid() || toUid.equals(other.toUid)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(emote); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(msgType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(chatType); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(text); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < toUid.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(toUid.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(text); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * toUid.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(toUid); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SendMsgCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // emote + emote = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // msgType + final int value = input.readInt32(); + if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { + msgType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // chatType + final int value = input.readInt32(); + if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { + chatType = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // text + input.readString(text); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // toUid [packed=true] + input.readPackedUInt32(toUid, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 48: { + // toUid [packed=false] + tag = input.readRepeatedUInt32(toUid, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.emote, emote); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.text, text); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.toUid, toUid); + } + output.endObject(); + } + + @Override + public SendMsgCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 96633208: { + if (input.isAtField(FieldNames.emote)) { + if (!input.trySkipNullValue()) { + emote = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1343750747: + case -1283380936: { + if (input.isAtField(FieldNames.msgType)) { + if (!input.trySkipNullValue()) { + final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); + if (value != null) { + msgType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1437412018: + case 1620118465: { + if (input.isAtField(FieldNames.chatType)) { + if (!input.trySkipNullValue()) { + final ChatTypeOuterClass.ChatType value = input.readEnum(ChatTypeOuterClass.ChatType.converter()); + if (value != null) { + chatType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 3556653: { + if (input.isAtField(FieldNames.text)) { + if (!input.trySkipNullValue()) { + input.readString(text); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 110520277: { + if (input.isAtField(FieldNames.toUid)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(toUid); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SendMsgCsReq clone() { + return new SendMsgCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SendMsgCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SendMsgCsReq(), data).checkInitialized(); + } + + public static SendMsgCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SendMsgCsReq(), input).checkInitialized(); + } + + public static SendMsgCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SendMsgCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SendMsgCsReq messages + */ + public static MessageFactory getFactory() { + return SendMsgCsReqFactory.INSTANCE; + } + + private enum SendMsgCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SendMsgCsReq create() { + return SendMsgCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName emote = FieldName.forField("emote"); + + static final FieldName msgType = FieldName.forField("msgType", "msg_type"); + + static final FieldName chatType = FieldName.forField("chatType", "chat_type"); + + static final FieldName text = FieldName.forField("text"); + + static final FieldName toUid = FieldName.forField("toUid"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java new file mode 100644 index 0000000..6a0d886 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java @@ -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 SetClientPausedCsReqOuterClass { + /** + * Protobuf type {@code SetClientPausedCsReq} + */ + public static final class SetClientPausedCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool paused = 15; + */ + private boolean paused; + + private SetClientPausedCsReq() { + } + + /** + * @return a new empty instance of {@code SetClientPausedCsReq} + */ + public static SetClientPausedCsReq newInstance() { + return new SetClientPausedCsReq(); + } + + /** + * optional bool paused = 15; + * @return whether the paused field is set + */ + public boolean hasPaused() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool paused = 15; + * @return this + */ + public SetClientPausedCsReq clearPaused() { + bitField0_ &= ~0x00000001; + paused = false; + return this; + } + + /** + * optional bool paused = 15; + * @return the paused + */ + public boolean getPaused() { + return paused; + } + + /** + * optional bool paused = 15; + * @param value the paused to set + * @return this + */ + public SetClientPausedCsReq setPaused(final boolean value) { + bitField0_ |= 0x00000001; + paused = value; + return this; + } + + @Override + public SetClientPausedCsReq copyFrom(final SetClientPausedCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + paused = other.paused; + } + return this; + } + + @Override + public SetClientPausedCsReq mergeFrom(final SetClientPausedCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPaused()) { + setPaused(other.paused); + } + return this; + } + + @Override + public SetClientPausedCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + paused = false; + return this; + } + + @Override + public SetClientPausedCsReq 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 SetClientPausedCsReq)) { + return false; + } + SetClientPausedCsReq other = (SetClientPausedCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPaused() || paused == other.paused); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(paused); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetClientPausedCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // paused + paused = input.readBool(); + 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.writeBool(FieldNames.paused, paused); + } + output.endObject(); + } + + @Override + public SetClientPausedCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -995321554: { + if (input.isAtField(FieldNames.paused)) { + if (!input.trySkipNullValue()) { + paused = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetClientPausedCsReq clone() { + return new SetClientPausedCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetClientPausedCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetClientPausedCsReq(), data).checkInitialized(); + } + + public static SetClientPausedCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetClientPausedCsReq(), input).checkInitialized(); + } + + public static SetClientPausedCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetClientPausedCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetClientPausedCsReq messages + */ + public static MessageFactory getFactory() { + return SetClientPausedCsReqFactory.INSTANCE; + } + + private enum SetClientPausedCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetClientPausedCsReq create() { + return SetClientPausedCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName paused = FieldName.forField("paused"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java new file mode 100644 index 0000000..6b78117 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java @@ -0,0 +1,339 @@ +// 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 SetClientPausedScRspOuterClass { + /** + * Protobuf type {@code SetClientPausedScRsp} + */ + public static final class SetClientPausedScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + * optional bool paused = 14; + */ + private boolean paused; + + private SetClientPausedScRsp() { + } + + /** + * @return a new empty instance of {@code SetClientPausedScRsp} + */ + public static SetClientPausedScRsp newInstance() { + return new SetClientPausedScRsp(); + } + + /** + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 13; + * @return this + */ + public SetClientPausedScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public SetClientPausedScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional bool paused = 14; + * @return whether the paused field is set + */ + public boolean hasPaused() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool paused = 14; + * @return this + */ + public SetClientPausedScRsp clearPaused() { + bitField0_ &= ~0x00000002; + paused = false; + return this; + } + + /** + * optional bool paused = 14; + * @return the paused + */ + public boolean getPaused() { + return paused; + } + + /** + * optional bool paused = 14; + * @param value the paused to set + * @return this + */ + public SetClientPausedScRsp setPaused(final boolean value) { + bitField0_ |= 0x00000002; + paused = value; + return this; + } + + @Override + public SetClientPausedScRsp copyFrom(final SetClientPausedScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + paused = other.paused; + } + return this; + } + + @Override + public SetClientPausedScRsp mergeFrom(final SetClientPausedScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasPaused()) { + setPaused(other.paused); + } + return this; + } + + @Override + public SetClientPausedScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + paused = false; + return this; + } + + @Override + public SetClientPausedScRsp 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 SetClientPausedScRsp)) { + return false; + } + SetClientPausedScRsp other = (SetClientPausedScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasPaused() || paused == other.paused); + } + + @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) 112); + output.writeBoolNoTag(paused); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetClientPausedScRsp 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 != 112) { + break; + } + } + case 112: { + // paused + paused = 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.paused, paused); + } + output.endObject(); + } + + @Override + public SetClientPausedScRsp 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 -995321554: { + if (input.isAtField(FieldNames.paused)) { + if (!input.trySkipNullValue()) { + paused = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetClientPausedScRsp clone() { + return new SetClientPausedScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetClientPausedScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetClientPausedScRsp(), data).checkInitialized(); + } + + public static SetClientPausedScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetClientPausedScRsp(), input).checkInitialized(); + } + + public static SetClientPausedScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetClientPausedScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetClientPausedScRsp messages + */ + public static MessageFactory getFactory() { + return SetClientPausedScRspFactory.INSTANCE; + } + + private enum SetClientPausedScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetClientPausedScRsp create() { + return SetClientPausedScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName paused = FieldName.forField("paused"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java new file mode 100644 index 0000000..8261d96 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java @@ -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 SetGameplayBirthdayCsReqOuterClass { + /** + * Protobuf type {@code SetGameplayBirthdayCsReq} + */ + public static final class SetGameplayBirthdayCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 birthday = 6; + */ + private int birthday; + + private SetGameplayBirthdayCsReq() { + } + + /** + * @return a new empty instance of {@code SetGameplayBirthdayCsReq} + */ + public static SetGameplayBirthdayCsReq newInstance() { + return new SetGameplayBirthdayCsReq(); + } + + /** + * optional uint32 birthday = 6; + * @return whether the birthday field is set + */ + public boolean hasBirthday() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 birthday = 6; + * @return this + */ + public SetGameplayBirthdayCsReq clearBirthday() { + bitField0_ &= ~0x00000001; + birthday = 0; + return this; + } + + /** + * optional uint32 birthday = 6; + * @return the birthday + */ + public int getBirthday() { + return birthday; + } + + /** + * optional uint32 birthday = 6; + * @param value the birthday to set + * @return this + */ + public SetGameplayBirthdayCsReq setBirthday(final int value) { + bitField0_ |= 0x00000001; + birthday = value; + return this; + } + + @Override + public SetGameplayBirthdayCsReq copyFrom(final SetGameplayBirthdayCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + birthday = other.birthday; + } + return this; + } + + @Override + public SetGameplayBirthdayCsReq mergeFrom(final SetGameplayBirthdayCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBirthday()) { + setBirthday(other.birthday); + } + return this; + } + + @Override + public SetGameplayBirthdayCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + birthday = 0; + return this; + } + + @Override + public SetGameplayBirthdayCsReq 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 SetGameplayBirthdayCsReq)) { + return false; + } + SetGameplayBirthdayCsReq other = (SetGameplayBirthdayCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBirthday() || birthday == other.birthday); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(birthday); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(birthday); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetGameplayBirthdayCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // birthday + birthday = 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.birthday, birthday); + } + output.endObject(); + } + + @Override + public SetGameplayBirthdayCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1069376125: { + if (input.isAtField(FieldNames.birthday)) { + if (!input.trySkipNullValue()) { + birthday = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetGameplayBirthdayCsReq clone() { + return new SetGameplayBirthdayCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetGameplayBirthdayCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetGameplayBirthdayCsReq(), data).checkInitialized(); + } + + public static SetGameplayBirthdayCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetGameplayBirthdayCsReq(), input).checkInitialized(); + } + + public static SetGameplayBirthdayCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetGameplayBirthdayCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetGameplayBirthdayCsReq messages + */ + public static MessageFactory getFactory() { + return SetGameplayBirthdayCsReqFactory.INSTANCE; + } + + private enum SetGameplayBirthdayCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetGameplayBirthdayCsReq create() { + return SetGameplayBirthdayCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName birthday = FieldName.forField("birthday"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java new file mode 100644 index 0000000..0735da6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java @@ -0,0 +1,339 @@ +// 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 SetGameplayBirthdayScRspOuterClass { + /** + * Protobuf type {@code SetGameplayBirthdayScRsp} + */ + public static final class SetGameplayBirthdayScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 birthday = 12; + */ + private int birthday; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + private SetGameplayBirthdayScRsp() { + } + + /** + * @return a new empty instance of {@code SetGameplayBirthdayScRsp} + */ + public static SetGameplayBirthdayScRsp newInstance() { + return new SetGameplayBirthdayScRsp(); + } + + /** + * optional uint32 birthday = 12; + * @return whether the birthday field is set + */ + public boolean hasBirthday() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 birthday = 12; + * @return this + */ + public SetGameplayBirthdayScRsp clearBirthday() { + bitField0_ &= ~0x00000001; + birthday = 0; + return this; + } + + /** + * optional uint32 birthday = 12; + * @return the birthday + */ + public int getBirthday() { + return birthday; + } + + /** + * optional uint32 birthday = 12; + * @param value the birthday to set + * @return this + */ + public SetGameplayBirthdayScRsp setBirthday(final int value) { + bitField0_ |= 0x00000001; + birthday = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public SetGameplayBirthdayScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public SetGameplayBirthdayScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public SetGameplayBirthdayScRsp copyFrom(final SetGameplayBirthdayScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + birthday = other.birthday; + retcode = other.retcode; + } + return this; + } + + @Override + public SetGameplayBirthdayScRsp mergeFrom(final SetGameplayBirthdayScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBirthday()) { + setBirthday(other.birthday); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public SetGameplayBirthdayScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + birthday = 0; + retcode = 0; + return this; + } + + @Override + public SetGameplayBirthdayScRsp 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 SetGameplayBirthdayScRsp)) { + return false; + } + SetGameplayBirthdayScRsp other = (SetGameplayBirthdayScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasBirthday() || birthday == other.birthday) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(birthday); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(birthday); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetGameplayBirthdayScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // birthday + birthday = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // retcode + retcode = 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.birthday, birthday); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public SetGameplayBirthdayScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1069376125: { + if (input.isAtField(FieldNames.birthday)) { + if (!input.trySkipNullValue()) { + birthday = 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetGameplayBirthdayScRsp clone() { + return new SetGameplayBirthdayScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetGameplayBirthdayScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetGameplayBirthdayScRsp(), data).checkInitialized(); + } + + public static SetGameplayBirthdayScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetGameplayBirthdayScRsp(), input).checkInitialized(); + } + + public static SetGameplayBirthdayScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetGameplayBirthdayScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetGameplayBirthdayScRsp messages + */ + public static MessageFactory getFactory() { + return SetGameplayBirthdayScRspFactory.INSTANCE; + } + + private enum SetGameplayBirthdayScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetGameplayBirthdayScRsp create() { + return SetGameplayBirthdayScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName birthday = FieldName.forField("birthday"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java new file mode 100644 index 0000000..b6ed877 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java @@ -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 SetHeadIconCsReqOuterClass { + /** + * Protobuf type {@code SetHeadIconCsReq} + */ + public static final class SetHeadIconCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 7; + */ + private int id; + + private SetHeadIconCsReq() { + } + + /** + * @return a new empty instance of {@code SetHeadIconCsReq} + */ + public static SetHeadIconCsReq newInstance() { + return new SetHeadIconCsReq(); + } + + /** + * optional uint32 id = 7; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 7; + * @return this + */ + public SetHeadIconCsReq clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 7; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 7; + * @param value the id to set + * @return this + */ + public SetHeadIconCsReq setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + @Override + public SetHeadIconCsReq copyFrom(final SetHeadIconCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + } + return this; + } + + @Override + public SetHeadIconCsReq mergeFrom(final SetHeadIconCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + return this; + } + + @Override + public SetHeadIconCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + return this; + } + + @Override + public SetHeadIconCsReq 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 SetHeadIconCsReq)) { + return false; + } + SetHeadIconCsReq other = (SetHeadIconCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetHeadIconCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // id + id = 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.id, id); + } + output.endObject(); + } + + @Override + public SetHeadIconCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetHeadIconCsReq clone() { + return new SetHeadIconCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetHeadIconCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetHeadIconCsReq(), data).checkInitialized(); + } + + public static SetHeadIconCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeadIconCsReq(), input).checkInitialized(); + } + + public static SetHeadIconCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeadIconCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetHeadIconCsReq messages + */ + public static MessageFactory getFactory() { + return SetHeadIconCsReqFactory.INSTANCE; + } + + private enum SetHeadIconCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetHeadIconCsReq create() { + return SetHeadIconCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java new file mode 100644 index 0000000..4d6a057 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java @@ -0,0 +1,339 @@ +// 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 SetHeadIconScRspOuterClass { + /** + * Protobuf type {@code SetHeadIconScRsp} + */ + public static final class SetHeadIconScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional uint32 id = 11; + */ + private int id; + + private SetHeadIconScRsp() { + } + + /** + * @return a new empty instance of {@code SetHeadIconScRsp} + */ + public static SetHeadIconScRsp newInstance() { + return new SetHeadIconScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public SetHeadIconScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public SetHeadIconScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 id = 11; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 id = 11; + * @return this + */ + public SetHeadIconScRsp clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 id = 11; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 11; + * @param value the id to set + * @return this + */ + public SetHeadIconScRsp setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + @Override + public SetHeadIconScRsp copyFrom(final SetHeadIconScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + id = other.id; + } + return this; + } + + @Override + public SetHeadIconScRsp mergeFrom(final SetHeadIconScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasId()) { + setId(other.id); + } + return this; + } + + @Override + public SetHeadIconScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + id = 0; + return this; + } + + @Override + public SetHeadIconScRsp 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 SetHeadIconScRsp)) { + return false; + } + SetHeadIconScRsp other = (SetHeadIconScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasId() || id == other.id); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetHeadIconScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // id + id = 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + output.endObject(); + } + + @Override + public SetHeadIconScRsp 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 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetHeadIconScRsp clone() { + return new SetHeadIconScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetHeadIconScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetHeadIconScRsp(), data).checkInitialized(); + } + + public static SetHeadIconScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeadIconScRsp(), input).checkInitialized(); + } + + public static SetHeadIconScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeadIconScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetHeadIconScRsp messages + */ + public static MessageFactory getFactory() { + return SetHeadIconScRspFactory.INSTANCE; + } + + private enum SetHeadIconScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetHeadIconScRsp create() { + return SetHeadIconScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName id = FieldName.forField("id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java new file mode 100644 index 0000000..fc665c0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeCsReqOuterClass.java @@ -0,0 +1,293 @@ +// 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 SetHeroBasicTypeCsReqOuterClass { + /** + * Protobuf type {@code SetHeroBasicTypeCsReq} + */ + public static final class SetHeroBasicTypeCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .HeroBasicType basic_type = 6; + */ + private int basicType; + + private SetHeroBasicTypeCsReq() { + } + + /** + * @return a new empty instance of {@code SetHeroBasicTypeCsReq} + */ + public static SetHeroBasicTypeCsReq newInstance() { + return new SetHeroBasicTypeCsReq(); + } + + /** + * optional .HeroBasicType basic_type = 6; + * @return whether the basicType field is set + */ + public boolean hasBasicType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @return this + */ + public SetHeroBasicTypeCsReq clearBasicType() { + bitField0_ &= ~0x00000001; + basicType = 0; + return this; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @return the basicType + */ + public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { + return HeroBasicTypeOuterClass.HeroBasicType.forNumber(basicType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SetHeroBasicTypeCsReq#getBasicType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getBasicTypeValue() { + return basicType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value + * can cause {@link SetHeroBasicTypeCsReq#getBasicType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SetHeroBasicTypeCsReq setBasicTypeValue(final int value) { + bitField0_ |= 0x00000001; + basicType = value; + return this; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @param value the basicType to set + * @return this + */ + public SetHeroBasicTypeCsReq setBasicType(final HeroBasicTypeOuterClass.HeroBasicType value) { + bitField0_ |= 0x00000001; + basicType = value.getNumber(); + return this; + } + + @Override + public SetHeroBasicTypeCsReq copyFrom(final SetHeroBasicTypeCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + basicType = other.basicType; + } + return this; + } + + @Override + public SetHeroBasicTypeCsReq mergeFrom(final SetHeroBasicTypeCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBasicType()) { + setBasicTypeValue(other.basicType); + } + return this; + } + + @Override + public SetHeroBasicTypeCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + basicType = 0; + return this; + } + + @Override + public SetHeroBasicTypeCsReq 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 SetHeroBasicTypeCsReq)) { + return false; + } + SetHeroBasicTypeCsReq other = (SetHeroBasicTypeCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBasicType() || basicType == other.basicType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeEnumNoTag(basicType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(basicType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetHeroBasicTypeCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // basicType + final int value = input.readInt32(); + if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { + basicType = 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.writeEnum(FieldNames.basicType, basicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); + } + output.endObject(); + } + + @Override + public SetHeroBasicTypeCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1699147640: + case -1123950421: { + if (input.isAtField(FieldNames.basicType)) { + if (!input.trySkipNullValue()) { + final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); + if (value != null) { + basicType = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetHeroBasicTypeCsReq clone() { + return new SetHeroBasicTypeCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetHeroBasicTypeCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetHeroBasicTypeCsReq(), data).checkInitialized(); + } + + public static SetHeroBasicTypeCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeroBasicTypeCsReq(), input).checkInitialized(); + } + + public static SetHeroBasicTypeCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeroBasicTypeCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetHeroBasicTypeCsReq messages + */ + public static MessageFactory getFactory() { + return SetHeroBasicTypeCsReqFactory.INSTANCE; + } + + private enum SetHeroBasicTypeCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetHeroBasicTypeCsReq create() { + return SetHeroBasicTypeCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName basicType = FieldName.forField("basicType", "basic_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java new file mode 100644 index 0000000..a996478 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetHeroBasicTypeScRspOuterClass.java @@ -0,0 +1,373 @@ +// 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 SetHeroBasicTypeScRspOuterClass { + /** + * Protobuf type {@code SetHeroBasicTypeScRsp} + */ + public static final class SetHeroBasicTypeScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional .HeroBasicType basic_type = 6; + */ + private int basicType; + + private SetHeroBasicTypeScRsp() { + } + + /** + * @return a new empty instance of {@code SetHeroBasicTypeScRsp} + */ + public static SetHeroBasicTypeScRsp newInstance() { + return new SetHeroBasicTypeScRsp(); + } + + /** + * optional uint32 retcode = 3; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public SetHeroBasicTypeScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public SetHeroBasicTypeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @return whether the basicType field is set + */ + public boolean hasBasicType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @return this + */ + public SetHeroBasicTypeScRsp clearBasicType() { + bitField0_ &= ~0x00000002; + basicType = 0; + return this; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @return the basicType + */ + public HeroBasicTypeOuterClass.HeroBasicType getBasicType() { + return HeroBasicTypeOuterClass.HeroBasicType.forNumber(basicType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SetHeroBasicTypeScRsp#getBasicType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getBasicTypeValue() { + return basicType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value + * can cause {@link SetHeroBasicTypeScRsp#getBasicType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SetHeroBasicTypeScRsp setBasicTypeValue(final int value) { + bitField0_ |= 0x00000002; + basicType = value; + return this; + } + + /** + * optional .HeroBasicType basic_type = 6; + * @param value the basicType to set + * @return this + */ + public SetHeroBasicTypeScRsp setBasicType(final HeroBasicTypeOuterClass.HeroBasicType value) { + bitField0_ |= 0x00000002; + basicType = value.getNumber(); + return this; + } + + @Override + public SetHeroBasicTypeScRsp copyFrom(final SetHeroBasicTypeScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + basicType = other.basicType; + } + return this; + } + + @Override + public SetHeroBasicTypeScRsp mergeFrom(final SetHeroBasicTypeScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasBasicType()) { + setBasicTypeValue(other.basicType); + } + return this; + } + + @Override + public SetHeroBasicTypeScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + basicType = 0; + return this; + } + + @Override + public SetHeroBasicTypeScRsp 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 SetHeroBasicTypeScRsp)) { + return false; + } + SetHeroBasicTypeScRsp other = (SetHeroBasicTypeScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasBasicType() || basicType == other.basicType); + } + + @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) 48); + output.writeEnumNoTag(basicType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(basicType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetHeroBasicTypeScRsp 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 != 48) { + break; + } + } + case 48: { + // basicType + final int value = input.readInt32(); + if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { + basicType = value; + 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.writeEnum(FieldNames.basicType, basicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); + } + output.endObject(); + } + + @Override + public SetHeroBasicTypeScRsp 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 -1699147640: + case -1123950421: { + if (input.isAtField(FieldNames.basicType)) { + if (!input.trySkipNullValue()) { + final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); + if (value != null) { + basicType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetHeroBasicTypeScRsp clone() { + return new SetHeroBasicTypeScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetHeroBasicTypeScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetHeroBasicTypeScRsp(), data).checkInitialized(); + } + + public static SetHeroBasicTypeScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeroBasicTypeScRsp(), input).checkInitialized(); + } + + public static SetHeroBasicTypeScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetHeroBasicTypeScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetHeroBasicTypeScRsp messages + */ + public static MessageFactory getFactory() { + return SetHeroBasicTypeScRspFactory.INSTANCE; + } + + private enum SetHeroBasicTypeScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetHeroBasicTypeScRsp create() { + return SetHeroBasicTypeScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName basicType = FieldName.forField("basicType", "basic_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java new file mode 100644 index 0000000..1c4d3dc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java @@ -0,0 +1,369 @@ +// 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.Utf8String; + +public final class SetLineupNameCsReqOuterClass { + /** + * Protobuf type {@code SetLineupNameCsReq} + */ + public static final class SetLineupNameCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 8; + */ + private int index; + + /** + * optional string name = 6; + */ + private final Utf8String name = Utf8String.newEmptyInstance(); + + private SetLineupNameCsReq() { + } + + /** + * @return a new empty instance of {@code SetLineupNameCsReq} + */ + public static SetLineupNameCsReq newInstance() { + return new SetLineupNameCsReq(); + } + + /** + * optional uint32 index = 8; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 8; + * @return this + */ + public SetLineupNameCsReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 8; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 8; + * @param value the index to set + * @return this + */ + public SetLineupNameCsReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + * optional string name = 6; + * @return whether the name field is set + */ + public boolean hasName() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string name = 6; + * @return this + */ + public SetLineupNameCsReq clearName() { + bitField0_ &= ~0x00000002; + name.clear(); + return this; + } + + /** + * optional string name = 6; + * @return the name + */ + public String getName() { + return name.getString(); + } + + /** + * optional string name = 6; + * @return internal {@code Utf8String} representation of name for reading + */ + public Utf8String getNameBytes() { + return this.name; + } + + /** + * optional string name = 6; + * @return internal {@code Utf8String} representation of name for modifications + */ + public Utf8String getMutableNameBytes() { + bitField0_ |= 0x00000002; + return this.name; + } + + /** + * optional string name = 6; + * @param value the name to set + * @return this + */ + public SetLineupNameCsReq setName(final CharSequence value) { + bitField0_ |= 0x00000002; + name.copyFrom(value); + return this; + } + + /** + * optional string name = 6; + * @param value the name to set + * @return this + */ + public SetLineupNameCsReq setName(final Utf8String value) { + bitField0_ |= 0x00000002; + name.copyFrom(value); + return this; + } + + @Override + public SetLineupNameCsReq copyFrom(final SetLineupNameCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + name.copyFrom(other.name); + } + return this; + } + + @Override + public SetLineupNameCsReq mergeFrom(final SetLineupNameCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasName()) { + getMutableNameBytes().copyFrom(other.name); + } + return this; + } + + @Override + public SetLineupNameCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + name.clear(); + return this; + } + + @Override + public SetLineupNameCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + name.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetLineupNameCsReq)) { + return false; + } + SetLineupNameCsReq other = (SetLineupNameCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasName() || name.equals(other.name)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(name); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(name); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetLineupNameCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // name + input.readString(name); + 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.writeString(FieldNames.name, name); + } + output.endObject(); + } + + @Override + public SetLineupNameCsReq 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 3373707: { + if (input.isAtField(FieldNames.name)) { + if (!input.trySkipNullValue()) { + input.readString(name); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetLineupNameCsReq clone() { + return new SetLineupNameCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetLineupNameCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetLineupNameCsReq(), data).checkInitialized(); + } + + public static SetLineupNameCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetLineupNameCsReq(), input).checkInitialized(); + } + + public static SetLineupNameCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetLineupNameCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetLineupNameCsReq messages + */ + public static MessageFactory getFactory() { + return SetLineupNameCsReqFactory.INSTANCE; + } + + private enum SetLineupNameCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetLineupNameCsReq create() { + return SetLineupNameCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + + static final FieldName name = FieldName.forField("name"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java new file mode 100644 index 0000000..8b55375 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java @@ -0,0 +1,449 @@ +// 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.Utf8String; + +public final class SetLineupNameScRspOuterClass { + /** + * Protobuf type {@code SetLineupNameScRsp} + */ + public static final class SetLineupNameScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 index = 15; + */ + private int index; + + /** + * optional string name = 7; + */ + private final Utf8String name = Utf8String.newEmptyInstance(); + + private SetLineupNameScRsp() { + } + + /** + * @return a new empty instance of {@code SetLineupNameScRsp} + */ + public static SetLineupNameScRsp newInstance() { + return new SetLineupNameScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public SetLineupNameScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public SetLineupNameScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 index = 15; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 15; + * @return this + */ + public SetLineupNameScRsp clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 15; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 15; + * @param value the index to set + * @return this + */ + public SetLineupNameScRsp setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional string name = 7; + * @return whether the name field is set + */ + public boolean hasName() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string name = 7; + * @return this + */ + public SetLineupNameScRsp clearName() { + bitField0_ &= ~0x00000004; + name.clear(); + return this; + } + + /** + * optional string name = 7; + * @return the name + */ + public String getName() { + return name.getString(); + } + + /** + * optional string name = 7; + * @return internal {@code Utf8String} representation of name for reading + */ + public Utf8String getNameBytes() { + return this.name; + } + + /** + * optional string name = 7; + * @return internal {@code Utf8String} representation of name for modifications + */ + public Utf8String getMutableNameBytes() { + bitField0_ |= 0x00000004; + return this.name; + } + + /** + * optional string name = 7; + * @param value the name to set + * @return this + */ + public SetLineupNameScRsp setName(final CharSequence value) { + bitField0_ |= 0x00000004; + name.copyFrom(value); + return this; + } + + /** + * optional string name = 7; + * @param value the name to set + * @return this + */ + public SetLineupNameScRsp setName(final Utf8String value) { + bitField0_ |= 0x00000004; + name.copyFrom(value); + return this; + } + + @Override + public SetLineupNameScRsp copyFrom(final SetLineupNameScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + index = other.index; + name.copyFrom(other.name); + } + return this; + } + + @Override + public SetLineupNameScRsp mergeFrom(final SetLineupNameScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasName()) { + getMutableNameBytes().copyFrom(other.name); + } + return this; + } + + @Override + public SetLineupNameScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + index = 0; + name.clear(); + return this; + } + + @Override + public SetLineupNameScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + name.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetLineupNameScRsp)) { + return false; + } + SetLineupNameScRsp other = (SetLineupNameScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasIndex() || index == other.index) + && (!hasName() || name.equals(other.name)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeStringNoTag(name); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(name); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetLineupNameScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // name + input.readString(name); + 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.index, index); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeString(FieldNames.name, name); + } + output.endObject(); + } + + @Override + public SetLineupNameScRsp 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 100346066: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3373707: { + if (input.isAtField(FieldNames.name)) { + if (!input.trySkipNullValue()) { + input.readString(name); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetLineupNameScRsp clone() { + return new SetLineupNameScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetLineupNameScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetLineupNameScRsp(), data).checkInitialized(); + } + + public static SetLineupNameScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetLineupNameScRsp(), input).checkInitialized(); + } + + public static SetLineupNameScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetLineupNameScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetLineupNameScRsp messages + */ + public static MessageFactory getFactory() { + return SetLineupNameScRspFactory.INSTANCE; + } + + private enum SetLineupNameScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetLineupNameScRsp create() { + return SetLineupNameScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName index = FieldName.forField("index"); + + static final FieldName name = FieldName.forField("name"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java new file mode 100644 index 0000000..c2af212 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java @@ -0,0 +1,369 @@ +// 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.Utf8String; + +public final class SetNicknameCsReqOuterClass { + /** + * Protobuf type {@code SetNicknameCsReq} + */ + public static final class SetNicknameCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool PLHEIKJBKKL = 3; + */ + private boolean pLHEIKJBKKL; + + /** + * optional string nickname = 13; + */ + private final Utf8String nickname = Utf8String.newEmptyInstance(); + + private SetNicknameCsReq() { + } + + /** + * @return a new empty instance of {@code SetNicknameCsReq} + */ + public static SetNicknameCsReq newInstance() { + return new SetNicknameCsReq(); + } + + /** + * optional bool PLHEIKJBKKL = 3; + * @return whether the pLHEIKJBKKL field is set + */ + public boolean hasPLHEIKJBKKL() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool PLHEIKJBKKL = 3; + * @return this + */ + public SetNicknameCsReq clearPLHEIKJBKKL() { + bitField0_ &= ~0x00000001; + pLHEIKJBKKL = false; + return this; + } + + /** + * optional bool PLHEIKJBKKL = 3; + * @return the pLHEIKJBKKL + */ + public boolean getPLHEIKJBKKL() { + return pLHEIKJBKKL; + } + + /** + * optional bool PLHEIKJBKKL = 3; + * @param value the pLHEIKJBKKL to set + * @return this + */ + public SetNicknameCsReq setPLHEIKJBKKL(final boolean value) { + bitField0_ |= 0x00000001; + pLHEIKJBKKL = value; + return this; + } + + /** + * optional string nickname = 13; + * @return whether the nickname field is set + */ + public boolean hasNickname() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string nickname = 13; + * @return this + */ + public SetNicknameCsReq clearNickname() { + bitField0_ &= ~0x00000002; + nickname.clear(); + return this; + } + + /** + * optional string nickname = 13; + * @return the nickname + */ + public String getNickname() { + return nickname.getString(); + } + + /** + * optional string nickname = 13; + * @return internal {@code Utf8String} representation of nickname for reading + */ + public Utf8String getNicknameBytes() { + return this.nickname; + } + + /** + * optional string nickname = 13; + * @return internal {@code Utf8String} representation of nickname for modifications + */ + public Utf8String getMutableNicknameBytes() { + bitField0_ |= 0x00000002; + return this.nickname; + } + + /** + * optional string nickname = 13; + * @param value the nickname to set + * @return this + */ + public SetNicknameCsReq setNickname(final CharSequence value) { + bitField0_ |= 0x00000002; + nickname.copyFrom(value); + return this; + } + + /** + * optional string nickname = 13; + * @param value the nickname to set + * @return this + */ + public SetNicknameCsReq setNickname(final Utf8String value) { + bitField0_ |= 0x00000002; + nickname.copyFrom(value); + return this; + } + + @Override + public SetNicknameCsReq copyFrom(final SetNicknameCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pLHEIKJBKKL = other.pLHEIKJBKKL; + nickname.copyFrom(other.nickname); + } + return this; + } + + @Override + public SetNicknameCsReq mergeFrom(final SetNicknameCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPLHEIKJBKKL()) { + setPLHEIKJBKKL(other.pLHEIKJBKKL); + } + if (other.hasNickname()) { + getMutableNicknameBytes().copyFrom(other.nickname); + } + return this; + } + + @Override + public SetNicknameCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pLHEIKJBKKL = false; + nickname.clear(); + return this; + } + + @Override + public SetNicknameCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nickname.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetNicknameCsReq)) { + return false; + } + SetNicknameCsReq other = (SetNicknameCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPLHEIKJBKKL() || pLHEIKJBKKL == other.pLHEIKJBKKL) + && (!hasNickname() || nickname.equals(other.nickname)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(pLHEIKJBKKL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 106); + output.writeStringNoTag(nickname); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetNicknameCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // pLHEIKJBKKL + pLHEIKJBKKL = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // nickname + input.readString(nickname); + 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.writeBool(FieldNames.pLHEIKJBKKL, pLHEIKJBKKL); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.nickname, nickname); + } + output.endObject(); + } + + @Override + public SetNicknameCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1510608057: { + if (input.isAtField(FieldNames.pLHEIKJBKKL)) { + if (!input.trySkipNullValue()) { + pLHEIKJBKKL = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70690926: { + if (input.isAtField(FieldNames.nickname)) { + if (!input.trySkipNullValue()) { + input.readString(nickname); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetNicknameCsReq clone() { + return new SetNicknameCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetNicknameCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetNicknameCsReq(), data).checkInitialized(); + } + + public static SetNicknameCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetNicknameCsReq(), input).checkInitialized(); + } + + public static SetNicknameCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetNicknameCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetNicknameCsReq messages + */ + public static MessageFactory getFactory() { + return SetNicknameCsReqFactory.INSTANCE; + } + + private enum SetNicknameCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetNicknameCsReq create() { + return SetNicknameCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pLHEIKJBKKL = FieldName.forField("PLHEIKJBKKL"); + + static final FieldName nickname = FieldName.forField("nickname"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java new file mode 100644 index 0000000..651002c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureCsReqOuterClass.java @@ -0,0 +1,289 @@ +// 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.Utf8String; + +public final class SetSignatureCsReqOuterClass { + /** + * Protobuf type {@code SetSignatureCsReq} + */ + public static final class SetSignatureCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional string signature = 3; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + private SetSignatureCsReq() { + } + + /** + * @return a new empty instance of {@code SetSignatureCsReq} + */ + public static SetSignatureCsReq newInstance() { + return new SetSignatureCsReq(); + } + + /** + * optional string signature = 3; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional string signature = 3; + * @return this + */ + public SetSignatureCsReq clearSignature() { + bitField0_ &= ~0x00000001; + signature.clear(); + return this; + } + + /** + * optional string signature = 3; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 3; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 3; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00000001; + return this.signature; + } + + /** + * optional string signature = 3; + * @param value the signature to set + * @return this + */ + public SetSignatureCsReq setSignature(final CharSequence value) { + bitField0_ |= 0x00000001; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 3; + * @param value the signature to set + * @return this + */ + public SetSignatureCsReq setSignature(final Utf8String value) { + bitField0_ |= 0x00000001; + signature.copyFrom(value); + return this; + } + + @Override + public SetSignatureCsReq copyFrom(final SetSignatureCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + signature.copyFrom(other.signature); + } + return this; + } + + @Override + public SetSignatureCsReq mergeFrom(final SetSignatureCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + return this; + } + + @Override + public SetSignatureCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + signature.clear(); + return this; + } + + @Override + public SetSignatureCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + signature.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetSignatureCsReq)) { + return false; + } + SetSignatureCsReq other = (SetSignatureCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasSignature() || signature.equals(other.signature)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(signature); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetSignatureCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // signature + input.readString(signature); + 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.writeString(FieldNames.signature, signature); + } + output.endObject(); + } + + @Override + public SetSignatureCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetSignatureCsReq clone() { + return new SetSignatureCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetSignatureCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetSignatureCsReq(), data).checkInitialized(); + } + + public static SetSignatureCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetSignatureCsReq(), input).checkInitialized(); + } + + public static SetSignatureCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetSignatureCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetSignatureCsReq messages + */ + public static MessageFactory getFactory() { + return SetSignatureCsReqFactory.INSTANCE; + } + + private enum SetSignatureCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetSignatureCsReq create() { + return SetSignatureCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName signature = FieldName.forField("signature"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java new file mode 100644 index 0000000..8a57671 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java @@ -0,0 +1,369 @@ +// 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.Utf8String; + +public final class SetSignatureScRspOuterClass { + /** + * Protobuf type {@code SetSignatureScRsp} + */ + public static final class SetSignatureScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional string signature = 3; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + private SetSignatureScRsp() { + } + + /** + * @return a new empty instance of {@code SetSignatureScRsp} + */ + public static SetSignatureScRsp newInstance() { + return new SetSignatureScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public SetSignatureScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public SetSignatureScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional string signature = 3; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string signature = 3; + * @return this + */ + public SetSignatureScRsp clearSignature() { + bitField0_ &= ~0x00000002; + signature.clear(); + return this; + } + + /** + * optional string signature = 3; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 3; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 3; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00000002; + return this.signature; + } + + /** + * optional string signature = 3; + * @param value the signature to set + * @return this + */ + public SetSignatureScRsp setSignature(final CharSequence value) { + bitField0_ |= 0x00000002; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 3; + * @param value the signature to set + * @return this + */ + public SetSignatureScRsp setSignature(final Utf8String value) { + bitField0_ |= 0x00000002; + signature.copyFrom(value); + return this; + } + + @Override + public SetSignatureScRsp copyFrom(final SetSignatureScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + signature.copyFrom(other.signature); + } + return this; + } + + @Override + public SetSignatureScRsp mergeFrom(final SetSignatureScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + return this; + } + + @Override + public SetSignatureScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + signature.clear(); + return this; + } + + @Override + public SetSignatureScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + signature.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetSignatureScRsp)) { + return false; + } + SetSignatureScRsp other = (SetSignatureScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasSignature() || signature.equals(other.signature)); + } + + @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) 26); + output.writeStringNoTag(signature); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetSignatureScRsp 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 != 26) { + break; + } + } + case 26: { + // signature + input.readString(signature); + 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.writeString(FieldNames.signature, signature); + } + output.endObject(); + } + + @Override + public SetSignatureScRsp 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 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetSignatureScRsp clone() { + return new SetSignatureScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetSignatureScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetSignatureScRsp(), data).checkInitialized(); + } + + public static SetSignatureScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetSignatureScRsp(), input).checkInitialized(); + } + + public static SetSignatureScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetSignatureScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetSignatureScRsp messages + */ + public static MessageFactory getFactory() { + return SetSignatureScRspFactory.INSTANCE; + } + + private enum SetSignatureScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetSignatureScRsp create() { + return SetSignatureScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName signature = FieldName.forField("signature"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java new file mode 100644 index 0000000..895157e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java @@ -0,0 +1,779 @@ +// 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 ShopOuterClass { + /** + * Protobuf type {@code Shop} + */ + public static final class Shop extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 begin_time = 1; + */ + private long beginTime; + + /** + * optional int64 end_time = 2; + */ + private long endTime; + + /** + * optional uint64 city_taken_level_reward = 14; + */ + private long cityTakenLevelReward; + + /** + * optional uint32 city_exp = 5; + */ + private int cityExp; + + /** + * optional uint32 shop_id = 6; + */ + private int shopId; + + /** + * optional uint32 city_level = 8; + */ + private int cityLevel; + + /** + * repeated .Goods goods_list = 3; + */ + private final RepeatedMessage goodsList = RepeatedMessage.newEmptyInstance(GoodsOuterClass.Goods.getFactory()); + + private Shop() { + } + + /** + * @return a new empty instance of {@code Shop} + */ + public static Shop newInstance() { + return new Shop(); + } + + /** + * optional int64 begin_time = 1; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 begin_time = 1; + * @return this + */ + public Shop clearBeginTime() { + bitField0_ &= ~0x00000001; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 1; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 1; + * @param value the beginTime to set + * @return this + */ + public Shop setBeginTime(final long value) { + bitField0_ |= 0x00000001; + beginTime = value; + return this; + } + + /** + * optional int64 end_time = 2; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 end_time = 2; + * @return this + */ + public Shop clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 2; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 2; + * @param value the endTime to set + * @return this + */ + public Shop setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; + return this; + } + + /** + * optional uint64 city_taken_level_reward = 14; + * @return whether the cityTakenLevelReward field is set + */ + public boolean hasCityTakenLevelReward() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint64 city_taken_level_reward = 14; + * @return this + */ + public Shop clearCityTakenLevelReward() { + bitField0_ &= ~0x00000004; + cityTakenLevelReward = 0L; + return this; + } + + /** + * optional uint64 city_taken_level_reward = 14; + * @return the cityTakenLevelReward + */ + public long getCityTakenLevelReward() { + return cityTakenLevelReward; + } + + /** + * optional uint64 city_taken_level_reward = 14; + * @param value the cityTakenLevelReward to set + * @return this + */ + public Shop setCityTakenLevelReward(final long value) { + bitField0_ |= 0x00000004; + cityTakenLevelReward = value; + return this; + } + + /** + * optional uint32 city_exp = 5; + * @return whether the cityExp field is set + */ + public boolean hasCityExp() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 city_exp = 5; + * @return this + */ + public Shop clearCityExp() { + bitField0_ &= ~0x00000008; + cityExp = 0; + return this; + } + + /** + * optional uint32 city_exp = 5; + * @return the cityExp + */ + public int getCityExp() { + return cityExp; + } + + /** + * optional uint32 city_exp = 5; + * @param value the cityExp to set + * @return this + */ + public Shop setCityExp(final int value) { + bitField0_ |= 0x00000008; + cityExp = value; + return this; + } + + /** + * optional uint32 shop_id = 6; + * @return whether the shopId field is set + */ + public boolean hasShopId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 shop_id = 6; + * @return this + */ + public Shop clearShopId() { + bitField0_ &= ~0x00000010; + shopId = 0; + return this; + } + + /** + * optional uint32 shop_id = 6; + * @return the shopId + */ + public int getShopId() { + return shopId; + } + + /** + * optional uint32 shop_id = 6; + * @param value the shopId to set + * @return this + */ + public Shop setShopId(final int value) { + bitField0_ |= 0x00000010; + shopId = value; + return this; + } + + /** + * optional uint32 city_level = 8; + * @return whether the cityLevel field is set + */ + public boolean hasCityLevel() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 city_level = 8; + * @return this + */ + public Shop clearCityLevel() { + bitField0_ &= ~0x00000020; + cityLevel = 0; + return this; + } + + /** + * optional uint32 city_level = 8; + * @return the cityLevel + */ + public int getCityLevel() { + return cityLevel; + } + + /** + * optional uint32 city_level = 8; + * @param value the cityLevel to set + * @return this + */ + public Shop setCityLevel(final int value) { + bitField0_ |= 0x00000020; + cityLevel = value; + return this; + } + + /** + * repeated .Goods goods_list = 3; + * @return whether the goodsList field is set + */ + public boolean hasGoodsList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .Goods goods_list = 3; + * @return this + */ + public Shop clearGoodsList() { + bitField0_ &= ~0x00000040; + goodsList.clear(); + return this; + } + + /** + * repeated .Goods goods_list = 3; + * + * 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 #getMutableGoodsList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGoodsList() { + return goodsList; + } + + /** + * repeated .Goods goods_list = 3; + * + * 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 getMutableGoodsList() { + bitField0_ |= 0x00000040; + return goodsList; + } + + /** + * repeated .Goods goods_list = 3; + * @param value the goodsList to add + * @return this + */ + public Shop addGoodsList(final GoodsOuterClass.Goods value) { + bitField0_ |= 0x00000040; + goodsList.add(value); + return this; + } + + /** + * repeated .Goods goods_list = 3; + * @param values the goodsList to add + * @return this + */ + public Shop addAllGoodsList(final GoodsOuterClass.Goods... values) { + bitField0_ |= 0x00000040; + goodsList.addAll(values); + return this; + } + + @Override + public Shop copyFrom(final Shop other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + beginTime = other.beginTime; + endTime = other.endTime; + cityTakenLevelReward = other.cityTakenLevelReward; + cityExp = other.cityExp; + shopId = other.shopId; + cityLevel = other.cityLevel; + goodsList.copyFrom(other.goodsList); + } + return this; + } + + @Override + public Shop mergeFrom(final Shop other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasCityTakenLevelReward()) { + setCityTakenLevelReward(other.cityTakenLevelReward); + } + if (other.hasCityExp()) { + setCityExp(other.cityExp); + } + if (other.hasShopId()) { + setShopId(other.shopId); + } + if (other.hasCityLevel()) { + setCityLevel(other.cityLevel); + } + if (other.hasGoodsList()) { + getMutableGoodsList().addAll(other.goodsList); + } + return this; + } + + @Override + public Shop clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + beginTime = 0L; + endTime = 0L; + cityTakenLevelReward = 0L; + cityExp = 0; + shopId = 0; + cityLevel = 0; + goodsList.clear(); + return this; + } + + @Override + public Shop clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + goodsList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Shop)) { + return false; + } + Shop other = (Shop) o; + return bitField0_ == other.bitField0_ + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) + && (!hasCityTakenLevelReward() || cityTakenLevelReward == other.cityTakenLevelReward) + && (!hasCityExp() || cityExp == other.cityExp) + && (!hasShopId() || shopId == other.shopId) + && (!hasCityLevel() || cityLevel == other.cityLevel) + && (!hasGoodsList() || goodsList.equals(other.goodsList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt64NoTag(cityTakenLevelReward); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(cityExp); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(shopId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(cityLevel); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < goodsList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(goodsList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(cityTakenLevelReward); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cityExp); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cityLevel); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * goodsList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(goodsList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Shop mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cityTakenLevelReward + cityTakenLevelReward = input.readUInt64(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // cityExp + cityExp = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // shopId + shopId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // cityLevel + cityLevel = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // goodsList + tag = input.readRepeatedMessage(goodsList, tag); + bitField0_ |= 0x00000040; + 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.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt64(FieldNames.cityTakenLevelReward, cityTakenLevelReward); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cityExp, cityExp); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.shopId, shopId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.cityLevel, cityLevel); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.goodsList, goodsList); + } + output.endObject(); + } + + @Override + public Shop mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -877911017: + case -1581226986: { + if (input.isAtField(FieldNames.cityTakenLevelReward)) { + if (!input.trySkipNullValue()) { + cityTakenLevelReward = input.readUInt64(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 785415346: + case -1421171383: { + if (input.isAtField(FieldNames.cityExp)) { + if (!input.trySkipNullValue()) { + cityExp = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -903151951: + case 2067081988: { + if (input.isAtField(FieldNames.shopId)) { + if (!input.trySkipNullValue()) { + shopId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1124188967: + case 59808688: { + if (input.isAtField(FieldNames.cityLevel)) { + if (!input.trySkipNullValue()) { + cityLevel = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1394352404: + case 292878311: { + if (input.isAtField(FieldNames.goodsList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(goodsList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Shop clone() { + return new Shop().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Shop parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Shop(), data).checkInitialized(); + } + + public static Shop parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Shop(), input).checkInitialized(); + } + + public static Shop parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Shop(), input).checkInitialized(); + } + + /** + * @return factory for creating Shop messages + */ + public static MessageFactory getFactory() { + return ShopFactory.INSTANCE; + } + + private enum ShopFactory implements MessageFactory { + INSTANCE; + + @Override + public Shop create() { + return Shop.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + + static final FieldName cityTakenLevelReward = FieldName.forField("cityTakenLevelReward", "city_taken_level_reward"); + + static final FieldName cityExp = FieldName.forField("cityExp", "city_exp"); + + static final FieldName shopId = FieldName.forField("shopId", "shop_id"); + + static final FieldName cityLevel = FieldName.forField("cityLevel", "city_level"); + + static final FieldName goodsList = FieldName.forField("goodsList", "goods_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java new file mode 100644 index 0000000..11cf065 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java @@ -0,0 +1,1427 @@ +// 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.Utf8String; + +public final class SimpleInfoOuterClass { + /** + * Protobuf type {@code SimpleInfo} + */ + public static final class SimpleInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 last_active_time = 8; + */ + private long lastActiveTime; + + /** + * optional uint32 level = 1; + */ + private int level; + + /** + * optional uint32 JCKIEMDALOB = 7; + */ + private int jCKIEMDALOB; + + /** + * optional uint32 uid = 13; + */ + private int uid; + + /** + * optional uint32 profile_picture = 15; + */ + private int profilePicture; + + /** + * optional .FriendOnlineStatus online_status = 11; + */ + private int onlineStatus; + + /** + * optional .PlatformType platform_type = 14; + */ + private int platformType; + + /** + * optional bool KCKLEMNIDNK = 4; + */ + private boolean kCKLEMNIDNK; + + /** + * optional .FriendAvatarInfo friend_avatar_info = 12; + */ + private final FriendAvatarInfoOuterClass.FriendAvatarInfo friendAvatarInfo = FriendAvatarInfoOuterClass.FriendAvatarInfo.newInstance(); + + /** + * optional string CHFJJPIKGCA = 3; + */ + private final Utf8String cHFJJPIKGCA = Utf8String.newEmptyInstance(); + + /** + * optional string BMMMNJEPNKE = 5; + */ + private final Utf8String bMMMNJEPNKE = Utf8String.newEmptyInstance(); + + /** + * optional string nickname = 6; + */ + private final Utf8String nickname = Utf8String.newEmptyInstance(); + + /** + * optional string signature = 10; + */ + private final Utf8String signature = Utf8String.newEmptyInstance(); + + private SimpleInfo() { + } + + /** + * @return a new empty instance of {@code SimpleInfo} + */ + public static SimpleInfo newInstance() { + return new SimpleInfo(); + } + + /** + * optional int64 last_active_time = 8; + * @return whether the lastActiveTime field is set + */ + public boolean hasLastActiveTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 last_active_time = 8; + * @return this + */ + public SimpleInfo clearLastActiveTime() { + bitField0_ &= ~0x00000001; + lastActiveTime = 0L; + return this; + } + + /** + * optional int64 last_active_time = 8; + * @return the lastActiveTime + */ + public long getLastActiveTime() { + return lastActiveTime; + } + + /** + * optional int64 last_active_time = 8; + * @param value the lastActiveTime to set + * @return this + */ + public SimpleInfo setLastActiveTime(final long value) { + bitField0_ |= 0x00000001; + lastActiveTime = value; + return this; + } + + /** + * optional uint32 level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 1; + * @return this + */ + public SimpleInfo clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 1; + * @param value the level to set + * @return this + */ + public SimpleInfo setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 JCKIEMDALOB = 7; + * @return whether the jCKIEMDALOB field is set + */ + public boolean hasJCKIEMDALOB() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 JCKIEMDALOB = 7; + * @return this + */ + public SimpleInfo clearJCKIEMDALOB() { + bitField0_ &= ~0x00000004; + jCKIEMDALOB = 0; + return this; + } + + /** + * optional uint32 JCKIEMDALOB = 7; + * @return the jCKIEMDALOB + */ + public int getJCKIEMDALOB() { + return jCKIEMDALOB; + } + + /** + * optional uint32 JCKIEMDALOB = 7; + * @param value the jCKIEMDALOB to set + * @return this + */ + public SimpleInfo setJCKIEMDALOB(final int value) { + bitField0_ |= 0x00000004; + jCKIEMDALOB = value; + return this; + } + + /** + * optional uint32 uid = 13; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 uid = 13; + * @return this + */ + public SimpleInfo clearUid() { + bitField0_ &= ~0x00000008; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 13; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 13; + * @param value the uid to set + * @return this + */ + public SimpleInfo setUid(final int value) { + bitField0_ |= 0x00000008; + uid = value; + return this; + } + + /** + * optional uint32 profile_picture = 15; + * @return whether the profilePicture field is set + */ + public boolean hasProfilePicture() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 profile_picture = 15; + * @return this + */ + public SimpleInfo clearProfilePicture() { + bitField0_ &= ~0x00000010; + profilePicture = 0; + return this; + } + + /** + * optional uint32 profile_picture = 15; + * @return the profilePicture + */ + public int getProfilePicture() { + return profilePicture; + } + + /** + * optional uint32 profile_picture = 15; + * @param value the profilePicture to set + * @return this + */ + public SimpleInfo setProfilePicture(final int value) { + bitField0_ |= 0x00000010; + profilePicture = value; + return this; + } + + /** + * optional .FriendOnlineStatus online_status = 11; + * @return whether the onlineStatus field is set + */ + public boolean hasOnlineStatus() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .FriendOnlineStatus online_status = 11; + * @return this + */ + public SimpleInfo clearOnlineStatus() { + bitField0_ &= ~0x00000020; + onlineStatus = 0; + return this; + } + + /** + * optional .FriendOnlineStatus online_status = 11; + * @return the onlineStatus + */ + public FriendOnlineStatusOuterClass.FriendOnlineStatus getOnlineStatus() { + return FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(onlineStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SimpleInfo#getOnlineStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getOnlineStatusValue() { + return onlineStatus; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link FriendOnlineStatusOuterClass.FriendOnlineStatus}. Setting an invalid value + * can cause {@link SimpleInfo#getOnlineStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SimpleInfo setOnlineStatusValue(final int value) { + bitField0_ |= 0x00000020; + onlineStatus = value; + return this; + } + + /** + * optional .FriendOnlineStatus online_status = 11; + * @param value the onlineStatus to set + * @return this + */ + public SimpleInfo setOnlineStatus(final FriendOnlineStatusOuterClass.FriendOnlineStatus value) { + bitField0_ |= 0x00000020; + onlineStatus = value.getNumber(); + return this; + } + + /** + * optional .PlatformType platform_type = 14; + * @return whether the platformType field is set + */ + public boolean hasPlatformType() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .PlatformType platform_type = 14; + * @return this + */ + public SimpleInfo clearPlatformType() { + bitField0_ &= ~0x00000040; + platformType = 0; + return this; + } + + /** + * optional .PlatformType platform_type = 14; + * @return the platformType + */ + public PlatformTypeOuterClass.PlatformType getPlatformType() { + return PlatformTypeOuterClass.PlatformType.forNumber(platformType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SimpleInfo#getPlatformType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getPlatformTypeValue() { + return platformType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link PlatformTypeOuterClass.PlatformType}. Setting an invalid value + * can cause {@link SimpleInfo#getPlatformType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SimpleInfo setPlatformTypeValue(final int value) { + bitField0_ |= 0x00000040; + platformType = value; + return this; + } + + /** + * optional .PlatformType platform_type = 14; + * @param value the platformType to set + * @return this + */ + public SimpleInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) { + bitField0_ |= 0x00000040; + platformType = value.getNumber(); + return this; + } + + /** + * optional bool KCKLEMNIDNK = 4; + * @return whether the kCKLEMNIDNK field is set + */ + public boolean hasKCKLEMNIDNK() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool KCKLEMNIDNK = 4; + * @return this + */ + public SimpleInfo clearKCKLEMNIDNK() { + bitField0_ &= ~0x00000080; + kCKLEMNIDNK = false; + return this; + } + + /** + * optional bool KCKLEMNIDNK = 4; + * @return the kCKLEMNIDNK + */ + public boolean getKCKLEMNIDNK() { + return kCKLEMNIDNK; + } + + /** + * optional bool KCKLEMNIDNK = 4; + * @param value the kCKLEMNIDNK to set + * @return this + */ + public SimpleInfo setKCKLEMNIDNK(final boolean value) { + bitField0_ |= 0x00000080; + kCKLEMNIDNK = value; + return this; + } + + /** + * optional .FriendAvatarInfo friend_avatar_info = 12; + * @return whether the friendAvatarInfo field is set + */ + public boolean hasFriendAvatarInfo() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .FriendAvatarInfo friend_avatar_info = 12; + * @return this + */ + public SimpleInfo clearFriendAvatarInfo() { + bitField0_ &= ~0x00000100; + friendAvatarInfo.clear(); + return this; + } + + /** + * optional .FriendAvatarInfo friend_avatar_info = 12; + * + * 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 #getMutableFriendAvatarInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FriendAvatarInfoOuterClass.FriendAvatarInfo getFriendAvatarInfo() { + return friendAvatarInfo; + } + + /** + * optional .FriendAvatarInfo friend_avatar_info = 12; + * + * 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 FriendAvatarInfoOuterClass.FriendAvatarInfo getMutableFriendAvatarInfo() { + bitField0_ |= 0x00000100; + return friendAvatarInfo; + } + + /** + * optional .FriendAvatarInfo friend_avatar_info = 12; + * @param value the friendAvatarInfo to set + * @return this + */ + public SimpleInfo setFriendAvatarInfo(final FriendAvatarInfoOuterClass.FriendAvatarInfo value) { + bitField0_ |= 0x00000100; + friendAvatarInfo.copyFrom(value); + return this; + } + + /** + * optional string CHFJJPIKGCA = 3; + * @return whether the cHFJJPIKGCA field is set + */ + public boolean hasCHFJJPIKGCA() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional string CHFJJPIKGCA = 3; + * @return this + */ + public SimpleInfo clearCHFJJPIKGCA() { + bitField0_ &= ~0x00000200; + cHFJJPIKGCA.clear(); + return this; + } + + /** + * optional string CHFJJPIKGCA = 3; + * @return the cHFJJPIKGCA + */ + public String getCHFJJPIKGCA() { + return cHFJJPIKGCA.getString(); + } + + /** + * optional string CHFJJPIKGCA = 3; + * @return internal {@code Utf8String} representation of cHFJJPIKGCA for reading + */ + public Utf8String getCHFJJPIKGCABytes() { + return this.cHFJJPIKGCA; + } + + /** + * optional string CHFJJPIKGCA = 3; + * @return internal {@code Utf8String} representation of cHFJJPIKGCA for modifications + */ + public Utf8String getMutableCHFJJPIKGCABytes() { + bitField0_ |= 0x00000200; + return this.cHFJJPIKGCA; + } + + /** + * optional string CHFJJPIKGCA = 3; + * @param value the cHFJJPIKGCA to set + * @return this + */ + public SimpleInfo setCHFJJPIKGCA(final CharSequence value) { + bitField0_ |= 0x00000200; + cHFJJPIKGCA.copyFrom(value); + return this; + } + + /** + * optional string CHFJJPIKGCA = 3; + * @param value the cHFJJPIKGCA to set + * @return this + */ + public SimpleInfo setCHFJJPIKGCA(final Utf8String value) { + bitField0_ |= 0x00000200; + cHFJJPIKGCA.copyFrom(value); + return this; + } + + /** + * optional string BMMMNJEPNKE = 5; + * @return whether the bMMMNJEPNKE field is set + */ + public boolean hasBMMMNJEPNKE() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional string BMMMNJEPNKE = 5; + * @return this + */ + public SimpleInfo clearBMMMNJEPNKE() { + bitField0_ &= ~0x00000400; + bMMMNJEPNKE.clear(); + return this; + } + + /** + * optional string BMMMNJEPNKE = 5; + * @return the bMMMNJEPNKE + */ + public String getBMMMNJEPNKE() { + return bMMMNJEPNKE.getString(); + } + + /** + * optional string BMMMNJEPNKE = 5; + * @return internal {@code Utf8String} representation of bMMMNJEPNKE for reading + */ + public Utf8String getBMMMNJEPNKEBytes() { + return this.bMMMNJEPNKE; + } + + /** + * optional string BMMMNJEPNKE = 5; + * @return internal {@code Utf8String} representation of bMMMNJEPNKE for modifications + */ + public Utf8String getMutableBMMMNJEPNKEBytes() { + bitField0_ |= 0x00000400; + return this.bMMMNJEPNKE; + } + + /** + * optional string BMMMNJEPNKE = 5; + * @param value the bMMMNJEPNKE to set + * @return this + */ + public SimpleInfo setBMMMNJEPNKE(final CharSequence value) { + bitField0_ |= 0x00000400; + bMMMNJEPNKE.copyFrom(value); + return this; + } + + /** + * optional string BMMMNJEPNKE = 5; + * @param value the bMMMNJEPNKE to set + * @return this + */ + public SimpleInfo setBMMMNJEPNKE(final Utf8String value) { + bitField0_ |= 0x00000400; + bMMMNJEPNKE.copyFrom(value); + return this; + } + + /** + * optional string nickname = 6; + * @return whether the nickname field is set + */ + public boolean hasNickname() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional string nickname = 6; + * @return this + */ + public SimpleInfo clearNickname() { + bitField0_ &= ~0x00000800; + nickname.clear(); + return this; + } + + /** + * optional string nickname = 6; + * @return the nickname + */ + public String getNickname() { + return nickname.getString(); + } + + /** + * optional string nickname = 6; + * @return internal {@code Utf8String} representation of nickname for reading + */ + public Utf8String getNicknameBytes() { + return this.nickname; + } + + /** + * optional string nickname = 6; + * @return internal {@code Utf8String} representation of nickname for modifications + */ + public Utf8String getMutableNicknameBytes() { + bitField0_ |= 0x00000800; + return this.nickname; + } + + /** + * optional string nickname = 6; + * @param value the nickname to set + * @return this + */ + public SimpleInfo setNickname(final CharSequence value) { + bitField0_ |= 0x00000800; + nickname.copyFrom(value); + return this; + } + + /** + * optional string nickname = 6; + * @param value the nickname to set + * @return this + */ + public SimpleInfo setNickname(final Utf8String value) { + bitField0_ |= 0x00000800; + nickname.copyFrom(value); + return this; + } + + /** + * optional string signature = 10; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string signature = 10; + * @return this + */ + public SimpleInfo clearSignature() { + bitField0_ &= ~0x00001000; + signature.clear(); + return this; + } + + /** + * optional string signature = 10; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 10; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 10; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00001000; + return this.signature; + } + + /** + * optional string signature = 10; + * @param value the signature to set + * @return this + */ + public SimpleInfo setSignature(final CharSequence value) { + bitField0_ |= 0x00001000; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 10; + * @param value the signature to set + * @return this + */ + public SimpleInfo setSignature(final Utf8String value) { + bitField0_ |= 0x00001000; + signature.copyFrom(value); + return this; + } + + @Override + public SimpleInfo copyFrom(final SimpleInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lastActiveTime = other.lastActiveTime; + level = other.level; + jCKIEMDALOB = other.jCKIEMDALOB; + uid = other.uid; + profilePicture = other.profilePicture; + onlineStatus = other.onlineStatus; + platformType = other.platformType; + kCKLEMNIDNK = other.kCKLEMNIDNK; + friendAvatarInfo.copyFrom(other.friendAvatarInfo); + cHFJJPIKGCA.copyFrom(other.cHFJJPIKGCA); + bMMMNJEPNKE.copyFrom(other.bMMMNJEPNKE); + nickname.copyFrom(other.nickname); + signature.copyFrom(other.signature); + } + return this; + } + + @Override + public SimpleInfo mergeFrom(final SimpleInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLastActiveTime()) { + setLastActiveTime(other.lastActiveTime); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasJCKIEMDALOB()) { + setJCKIEMDALOB(other.jCKIEMDALOB); + } + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasProfilePicture()) { + setProfilePicture(other.profilePicture); + } + if (other.hasOnlineStatus()) { + setOnlineStatusValue(other.onlineStatus); + } + if (other.hasPlatformType()) { + setPlatformTypeValue(other.platformType); + } + if (other.hasKCKLEMNIDNK()) { + setKCKLEMNIDNK(other.kCKLEMNIDNK); + } + if (other.hasFriendAvatarInfo()) { + getMutableFriendAvatarInfo().mergeFrom(other.friendAvatarInfo); + } + if (other.hasCHFJJPIKGCA()) { + getMutableCHFJJPIKGCABytes().copyFrom(other.cHFJJPIKGCA); + } + if (other.hasBMMMNJEPNKE()) { + getMutableBMMMNJEPNKEBytes().copyFrom(other.bMMMNJEPNKE); + } + if (other.hasNickname()) { + getMutableNicknameBytes().copyFrom(other.nickname); + } + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + return this; + } + + @Override + public SimpleInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lastActiveTime = 0L; + level = 0; + jCKIEMDALOB = 0; + uid = 0; + profilePicture = 0; + onlineStatus = 0; + platformType = 0; + kCKLEMNIDNK = false; + friendAvatarInfo.clear(); + cHFJJPIKGCA.clear(); + bMMMNJEPNKE.clear(); + nickname.clear(); + signature.clear(); + return this; + } + + @Override + public SimpleInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + friendAvatarInfo.clearQuick(); + cHFJJPIKGCA.clear(); + bMMMNJEPNKE.clear(); + nickname.clear(); + signature.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SimpleInfo)) { + return false; + } + SimpleInfo other = (SimpleInfo) o; + return bitField0_ == other.bitField0_ + && (!hasLastActiveTime() || lastActiveTime == other.lastActiveTime) + && (!hasLevel() || level == other.level) + && (!hasJCKIEMDALOB() || jCKIEMDALOB == other.jCKIEMDALOB) + && (!hasUid() || uid == other.uid) + && (!hasProfilePicture() || profilePicture == other.profilePicture) + && (!hasOnlineStatus() || onlineStatus == other.onlineStatus) + && (!hasPlatformType() || platformType == other.platformType) + && (!hasKCKLEMNIDNK() || kCKLEMNIDNK == other.kCKLEMNIDNK) + && (!hasFriendAvatarInfo() || friendAvatarInfo.equals(other.friendAvatarInfo)) + && (!hasCHFJJPIKGCA() || cHFJJPIKGCA.equals(other.cHFJJPIKGCA)) + && (!hasBMMMNJEPNKE() || bMMMNJEPNKE.equals(other.bMMMNJEPNKE)) + && (!hasNickname() || nickname.equals(other.nickname)) + && (!hasSignature() || signature.equals(other.signature)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeInt64NoTag(lastActiveTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(jCKIEMDALOB); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(profilePicture); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 88); + output.writeEnumNoTag(onlineStatus); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(platformType); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(kCKLEMNIDNK); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(friendAvatarInfo); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(cHFJJPIKGCA); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(bMMMNJEPNKE); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(nickname); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 82); + output.writeStringNoTag(signature); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(lastActiveTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jCKIEMDALOB); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(profilePicture); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(platformType); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(friendAvatarInfo); + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(cHFJJPIKGCA); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(bMMMNJEPNKE); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SimpleInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // lastActiveTime + lastActiveTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // jCKIEMDALOB + jCKIEMDALOB = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // profilePicture + profilePicture = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // onlineStatus + final int value = input.readInt32(); + if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) { + onlineStatus = value; + bitField0_ |= 0x00000020; + } + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // platformType + final int value = input.readInt32(); + if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { + platformType = value; + bitField0_ |= 0x00000040; + } + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // kCKLEMNIDNK + kCKLEMNIDNK = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // friendAvatarInfo + input.readMessage(friendAvatarInfo); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // cHFJJPIKGCA + input.readString(cHFJJPIKGCA); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // bMMMNJEPNKE + input.readString(bMMMNJEPNKE); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // nickname + input.readString(nickname); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // signature + input.readString(signature); + bitField0_ |= 0x00001000; + 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.writeInt64(FieldNames.lastActiveTime, lastActiveTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.jCKIEMDALOB, jCKIEMDALOB); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.profilePicture, profilePicture); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter()); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.kCKLEMNIDNK, kCKLEMNIDNK); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.friendAvatarInfo, friendAvatarInfo); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeString(FieldNames.cHFJJPIKGCA, cHFJJPIKGCA); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeString(FieldNames.bMMMNJEPNKE, bMMMNJEPNKE); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeString(FieldNames.nickname, nickname); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeString(FieldNames.signature, signature); + } + output.endObject(); + } + + @Override + public SimpleInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2041905623: + case 1542438973: { + if (input.isAtField(FieldNames.lastActiveTime)) { + if (!input.trySkipNullValue()) { + lastActiveTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -773412445: { + if (input.isAtField(FieldNames.jCKIEMDALOB)) { + if (!input.trySkipNullValue()) { + jCKIEMDALOB = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1406866667: + case 1782764648: { + if (input.isAtField(FieldNames.profilePicture)) { + if (!input.trySkipNullValue()) { + profilePicture = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1159866405: + case -650386594: { + if (input.isAtField(FieldNames.onlineStatus)) { + if (!input.trySkipNullValue()) { + final FriendOnlineStatusOuterClass.FriendOnlineStatus value = input.readEnum(FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); + if (value != null) { + onlineStatus = value.getNumber(); + bitField0_ |= 0x00000020; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 155581005: + case 538062726: { + if (input.isAtField(FieldNames.platformType)) { + if (!input.trySkipNullValue()) { + final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter()); + if (value != null) { + platformType = value.getNumber(); + bitField0_ |= 0x00000040; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1627434267: { + if (input.isAtField(FieldNames.kCKLEMNIDNK)) { + if (!input.trySkipNullValue()) { + kCKLEMNIDNK = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2012020453: + case 1631238067: { + if (input.isAtField(FieldNames.friendAvatarInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(friendAvatarInfo); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 361274612: { + if (input.isAtField(FieldNames.cHFJJPIKGCA)) { + if (!input.trySkipNullValue()) { + input.readString(cHFJJPIKGCA); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1421577174: { + if (input.isAtField(FieldNames.bMMMNJEPNKE)) { + if (!input.trySkipNullValue()) { + input.readString(bMMMNJEPNKE); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 70690926: { + if (input.isAtField(FieldNames.nickname)) { + if (!input.trySkipNullValue()) { + input.readString(nickname); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { + if (!input.trySkipNullValue()) { + input.readString(signature); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SimpleInfo clone() { + return new SimpleInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SimpleInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SimpleInfo(), data).checkInitialized(); + } + + public static SimpleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SimpleInfo(), input).checkInitialized(); + } + + public static SimpleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SimpleInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SimpleInfo messages + */ + public static MessageFactory getFactory() { + return SimpleInfoFactory.INSTANCE; + } + + private enum SimpleInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SimpleInfo create() { + return SimpleInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lastActiveTime = FieldName.forField("lastActiveTime", "last_active_time"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName jCKIEMDALOB = FieldName.forField("JCKIEMDALOB"); + + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName profilePicture = FieldName.forField("profilePicture", "profile_picture"); + + static final FieldName onlineStatus = FieldName.forField("onlineStatus", "online_status"); + + static final FieldName platformType = FieldName.forField("platformType", "platform_type"); + + static final FieldName kCKLEMNIDNK = FieldName.forField("KCKLEMNIDNK"); + + static final FieldName friendAvatarInfo = FieldName.forField("friendAvatarInfo", "friend_avatar_info"); + + static final FieldName cHFJJPIKGCA = FieldName.forField("CHFJJPIKGCA"); + + static final FieldName bMMMNJEPNKE = FieldName.forField("BMMMNJEPNKE"); + + static final FieldName nickname = FieldName.forField("nickname"); + + static final FieldName signature = FieldName.forField("signature"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SpBarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SpBarInfoOuterClass.java new file mode 100644 index 0000000..33f6a6d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SpBarInfoOuterClass.java @@ -0,0 +1,380 @@ +// 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 SpBarInfoOuterClass { + /** + * Protobuf type {@code SpBarInfo} + */ + public static final class SpBarInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  +24
+     * 
+ * + * optional uint32 cur_sp = 1; + */ + private int curSp; + + /** + *
+     *  +28
+     * 
+ * + * optional uint32 max_sp = 2; + */ + private int maxSp; + + private SpBarInfo() { + } + + /** + * @return a new empty instance of {@code SpBarInfo} + */ + public static SpBarInfo newInstance() { + return new SpBarInfo(); + } + + /** + *
+     *  +24
+     * 
+ * + * optional uint32 cur_sp = 1; + * @return whether the curSp field is set + */ + public boolean hasCurSp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  +24
+     * 
+ * + * optional uint32 cur_sp = 1; + * @return this + */ + public SpBarInfo clearCurSp() { + bitField0_ &= ~0x00000001; + curSp = 0; + return this; + } + + /** + *
+     *  +24
+     * 
+ * + * optional uint32 cur_sp = 1; + * @return the curSp + */ + public int getCurSp() { + return curSp; + } + + /** + *
+     *  +24
+     * 
+ * + * optional uint32 cur_sp = 1; + * @param value the curSp to set + * @return this + */ + public SpBarInfo setCurSp(final int value) { + bitField0_ |= 0x00000001; + curSp = value; + return this; + } + + /** + *
+     *  +28
+     * 
+ * + * optional uint32 max_sp = 2; + * @return whether the maxSp field is set + */ + public boolean hasMaxSp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  +28
+     * 
+ * + * optional uint32 max_sp = 2; + * @return this + */ + public SpBarInfo clearMaxSp() { + bitField0_ &= ~0x00000002; + maxSp = 0; + return this; + } + + /** + *
+     *  +28
+     * 
+ * + * optional uint32 max_sp = 2; + * @return the maxSp + */ + public int getMaxSp() { + return maxSp; + } + + /** + *
+     *  +28
+     * 
+ * + * optional uint32 max_sp = 2; + * @param value the maxSp to set + * @return this + */ + public SpBarInfo setMaxSp(final int value) { + bitField0_ |= 0x00000002; + maxSp = value; + return this; + } + + @Override + public SpBarInfo copyFrom(final SpBarInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curSp = other.curSp; + maxSp = other.maxSp; + } + return this; + } + + @Override + public SpBarInfo mergeFrom(final SpBarInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurSp()) { + setCurSp(other.curSp); + } + if (other.hasMaxSp()) { + setMaxSp(other.maxSp); + } + return this; + } + + @Override + public SpBarInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curSp = 0; + maxSp = 0; + return this; + } + + @Override + public SpBarInfo 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 SpBarInfo)) { + return false; + } + SpBarInfo other = (SpBarInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCurSp() || curSp == other.curSp) + && (!hasMaxSp() || maxSp == other.maxSp); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(curSp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(maxSp); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curSp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxSp); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SpBarInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // curSp + curSp = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // maxSp + maxSp = 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.curSp, curSp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.maxSp, maxSp); + } + output.endObject(); + } + + @Override + public SpBarInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 95026365: + case -1349138244: { + if (input.isAtField(FieldNames.curSp)) { + if (!input.trySkipNullValue()) { + curSp = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 103671521: + case -1081138408: { + if (input.isAtField(FieldNames.maxSp)) { + if (!input.trySkipNullValue()) { + maxSp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SpBarInfo clone() { + return new SpBarInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SpBarInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SpBarInfo(), data).checkInitialized(); + } + + public static SpBarInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SpBarInfo(), input).checkInitialized(); + } + + public static SpBarInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SpBarInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SpBarInfo messages + */ + public static MessageFactory getFactory() { + return SpBarInfoFactory.INSTANCE; + } + + private enum SpBarInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SpBarInfo create() { + return SpBarInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curSp = FieldName.forField("curSp", "cur_sp"); + + static final FieldName maxSp = FieldName.forField("maxSp", "max_sp"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SpringTransferCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SpringTransferCsReqOuterClass.java new file mode 100644 index 0000000..0a900f1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SpringTransferCsReqOuterClass.java @@ -0,0 +1,422 @@ +// 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 SpringTransferCsReqOuterClass { + /** + * Protobuf type {@code SpringTransferCsReq} + */ + public static final class SpringTransferCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 floor_id = 4; + */ + private int floorId; + + /** + * optional uint32 prop_entity_id = 8; + */ + private int propEntityId; + + /** + * optional uint32 plane_id = 13; + */ + private int planeId; + + private SpringTransferCsReq() { + } + + /** + * @return a new empty instance of {@code SpringTransferCsReq} + */ + public static SpringTransferCsReq newInstance() { + return new SpringTransferCsReq(); + } + + /** + * optional uint32 floor_id = 4; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 floor_id = 4; + * @return this + */ + public SpringTransferCsReq clearFloorId() { + bitField0_ &= ~0x00000001; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 4; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 4; + * @param value the floorId to set + * @return this + */ + public SpringTransferCsReq setFloorId(final int value) { + bitField0_ |= 0x00000001; + floorId = value; + return this; + } + + /** + * optional uint32 prop_entity_id = 8; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 prop_entity_id = 8; + * @return this + */ + public SpringTransferCsReq clearPropEntityId() { + bitField0_ &= ~0x00000002; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 8; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 8; + * @param value the propEntityId to set + * @return this + */ + public SpringTransferCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000002; + propEntityId = value; + return this; + } + + /** + * optional uint32 plane_id = 13; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 plane_id = 13; + * @return this + */ + public SpringTransferCsReq clearPlaneId() { + bitField0_ &= ~0x00000004; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 13; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 13; + * @param value the planeId to set + * @return this + */ + public SpringTransferCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000004; + planeId = value; + return this; + } + + @Override + public SpringTransferCsReq copyFrom(final SpringTransferCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + floorId = other.floorId; + propEntityId = other.propEntityId; + planeId = other.planeId; + } + return this; + } + + @Override + public SpringTransferCsReq mergeFrom(final SpringTransferCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + return this; + } + + @Override + public SpringTransferCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + floorId = 0; + propEntityId = 0; + planeId = 0; + return this; + } + + @Override + public SpringTransferCsReq 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 SpringTransferCsReq)) { + return false; + } + SpringTransferCsReq other = (SpringTransferCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasFloorId() || floorId == other.floorId) + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasPlaneId() || planeId == other.planeId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(propEntityId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(planeId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SpringTransferCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // planeId + planeId = input.readUInt32(); + 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.floorId, floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.propEntityId, propEntityId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + output.endObject(); + } + + @Override + public SpringTransferCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SpringTransferCsReq clone() { + return new SpringTransferCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SpringTransferCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SpringTransferCsReq(), data).checkInitialized(); + } + + public static SpringTransferCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SpringTransferCsReq(), input).checkInitialized(); + } + + public static SpringTransferCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SpringTransferCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SpringTransferCsReq messages + */ + public static MessageFactory getFactory() { + return SpringTransferCsReqFactory.INSTANCE; + } + + private enum SpringTransferCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SpringTransferCsReq create() { + return SpringTransferCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java new file mode 100644 index 0000000..760f0ee --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java @@ -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 StartChallengeCsReqOuterClass { + /** + * Protobuf type {@code StartChallengeCsReq} + */ + public static final class StartChallengeCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 OGAEOEHBKKJ = 6; + */ + private int oGAEOEHBKKJ; + + /** + * optional uint32 challenge_id = 13; + */ + private int challengeId; + + private StartChallengeCsReq() { + } + + /** + * @return a new empty instance of {@code StartChallengeCsReq} + */ + public static StartChallengeCsReq newInstance() { + return new StartChallengeCsReq(); + } + + /** + * optional uint32 OGAEOEHBKKJ = 6; + * @return whether the oGAEOEHBKKJ field is set + */ + public boolean hasOGAEOEHBKKJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 OGAEOEHBKKJ = 6; + * @return this + */ + public StartChallengeCsReq clearOGAEOEHBKKJ() { + bitField0_ &= ~0x00000001; + oGAEOEHBKKJ = 0; + return this; + } + + /** + * optional uint32 OGAEOEHBKKJ = 6; + * @return the oGAEOEHBKKJ + */ + public int getOGAEOEHBKKJ() { + return oGAEOEHBKKJ; + } + + /** + * optional uint32 OGAEOEHBKKJ = 6; + * @param value the oGAEOEHBKKJ to set + * @return this + */ + public StartChallengeCsReq setOGAEOEHBKKJ(final int value) { + bitField0_ |= 0x00000001; + oGAEOEHBKKJ = value; + return this; + } + + /** + * optional uint32 challenge_id = 13; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 challenge_id = 13; + * @return this + */ + public StartChallengeCsReq clearChallengeId() { + bitField0_ &= ~0x00000002; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 13; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 13; + * @param value the challengeId to set + * @return this + */ + public StartChallengeCsReq setChallengeId(final int value) { + bitField0_ |= 0x00000002; + challengeId = value; + return this; + } + + @Override + public StartChallengeCsReq copyFrom(final StartChallengeCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + oGAEOEHBKKJ = other.oGAEOEHBKKJ; + challengeId = other.challengeId; + } + return this; + } + + @Override + public StartChallengeCsReq mergeFrom(final StartChallengeCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOGAEOEHBKKJ()) { + setOGAEOEHBKKJ(other.oGAEOEHBKKJ); + } + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } + return this; + } + + @Override + public StartChallengeCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oGAEOEHBKKJ = 0; + challengeId = 0; + return this; + } + + @Override + public StartChallengeCsReq 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 StartChallengeCsReq)) { + return false; + } + StartChallengeCsReq other = (StartChallengeCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasOGAEOEHBKKJ() || oGAEOEHBKKJ == other.oGAEOEHBKKJ) + && (!hasChallengeId() || challengeId == other.challengeId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(oGAEOEHBKKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(challengeId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oGAEOEHBKKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartChallengeCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // oGAEOEHBKKJ + oGAEOEHBKKJ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // challengeId + challengeId = 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.oGAEOEHBKKJ, oGAEOEHBKKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.challengeId, challengeId); + } + output.endObject(); + } + + @Override + public StartChallengeCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 618871838: { + if (input.isAtField(FieldNames.oGAEOEHBKKJ)) { + if (!input.trySkipNullValue()) { + oGAEOEHBKKJ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { + if (!input.trySkipNullValue()) { + challengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartChallengeCsReq clone() { + return new StartChallengeCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartChallengeCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartChallengeCsReq(), data).checkInitialized(); + } + + public static StartChallengeCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartChallengeCsReq(), input).checkInitialized(); + } + + public static StartChallengeCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartChallengeCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating StartChallengeCsReq messages + */ + public static MessageFactory getFactory() { + return StartChallengeCsReqFactory.INSTANCE; + } + + private enum StartChallengeCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public StartChallengeCsReq create() { + return StartChallengeCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName oGAEOEHBKKJ = FieldName.forField("OGAEOEHBKKJ"); + + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java new file mode 100644 index 0000000..e479e86 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java @@ -0,0 +1,563 @@ +// 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 StartChallengeScRspOuterClass { + /** + * Protobuf type {@code StartChallengeScRsp} + */ + public static final class StartChallengeScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional .SceneInfo scene = 4; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + + /** + * optional .LineupInfo lineup = 12; + */ + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + /** + * optional .ChallengeInfo challenge_info = 13; + */ + private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); + + private StartChallengeScRsp() { + } + + /** + * @return a new empty instance of {@code StartChallengeScRsp} + */ + public static StartChallengeScRsp newInstance() { + return new StartChallengeScRsp(); + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public StartChallengeScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public StartChallengeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .SceneInfo scene = 4; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .SceneInfo scene = 4; + * @return this + */ + public StartChallengeScRsp clearScene() { + bitField0_ &= ~0x00000002; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 4; + * + * 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; + } + + /** + * optional .SceneInfo scene = 4; + * + * 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; + } + + /** + * optional .SceneInfo scene = 4; + * @param value the scene to set + * @return this + */ + public StartChallengeScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000002; + scene.copyFrom(value); + return this; + } + + /** + * optional .LineupInfo lineup = 12; + * @return whether the lineup field is set + */ + public boolean hasLineup() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .LineupInfo lineup = 12; + * @return this + */ + public StartChallengeScRsp clearLineup() { + bitField0_ &= ~0x00000004; + lineup.clear(); + return this; + } + + /** + * optional .LineupInfo lineup = 12; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 12; + * + * 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_ |= 0x00000004; + return lineup; + } + + /** + * optional .LineupInfo lineup = 12; + * @param value the lineup to set + * @return this + */ + public StartChallengeScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000004; + lineup.copyFrom(value); + return this; + } + + /** + * optional .ChallengeInfo challenge_info = 13; + * @return whether the challengeInfo field is set + */ + public boolean hasChallengeInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .ChallengeInfo challenge_info = 13; + * @return this + */ + public StartChallengeScRsp clearChallengeInfo() { + bitField0_ &= ~0x00000008; + challengeInfo.clear(); + return this; + } + + /** + * optional .ChallengeInfo challenge_info = 13; + * + * 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 #getMutableChallengeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { + return challengeInfo; + } + + /** + * optional .ChallengeInfo challenge_info = 13; + * + * 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 ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { + bitField0_ |= 0x00000008; + return challengeInfo; + } + + /** + * optional .ChallengeInfo challenge_info = 13; + * @param value the challengeInfo to set + * @return this + */ + public StartChallengeScRsp setChallengeInfo(final ChallengeInfoOuterClass.ChallengeInfo value) { + bitField0_ |= 0x00000008; + challengeInfo.copyFrom(value); + return this; + } + + @Override + public StartChallengeScRsp copyFrom(final StartChallengeScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + scene.copyFrom(other.scene); + lineup.copyFrom(other.lineup); + challengeInfo.copyFrom(other.challengeInfo); + } + return this; + } + + @Override + public StartChallengeScRsp mergeFrom(final StartChallengeScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } + if (other.hasLineup()) { + getMutableLineup().mergeFrom(other.lineup); + } + if (other.hasChallengeInfo()) { + getMutableChallengeInfo().mergeFrom(other.challengeInfo); + } + return this; + } + + @Override + public StartChallengeScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + scene.clear(); + lineup.clear(); + challengeInfo.clear(); + return this; + } + + @Override + public StartChallengeScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + scene.clearQuick(); + lineup.clearQuick(); + challengeInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StartChallengeScRsp)) { + return false; + } + StartChallengeScRsp other = (StartChallengeScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasScene() || scene.equals(other.scene)) + && (!hasLineup() || lineup.equals(other.lineup)) + && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(scene); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(lineup); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(challengeInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartChallengeScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // scene + input.readMessage(scene); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // lineup + input.readMessage(lineup); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // challengeInfo + input.readMessage(challengeInfo); + 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.scene, scene); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.lineup, lineup); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.challengeInfo, challengeInfo); + } + output.endObject(); + } + + @Override + public StartChallengeScRsp 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 109254796: { + if (input.isAtField(FieldNames.scene)) { + if (!input.trySkipNullValue()) { + input.readMessage(scene); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1102671473: { + if (input.isAtField(FieldNames.lineup)) { + if (!input.trySkipNullValue()) { + input.readMessage(lineup); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -812487759: + case 602859274: { + if (input.isAtField(FieldNames.challengeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(challengeInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartChallengeScRsp clone() { + return new StartChallengeScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartChallengeScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartChallengeScRsp(), data).checkInitialized(); + } + + public static StartChallengeScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartChallengeScRsp(), input).checkInitialized(); + } + + public static StartChallengeScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartChallengeScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating StartChallengeScRsp messages + */ + public static MessageFactory getFactory() { + return StartChallengeScRspFactory.INSTANCE; + } + + private enum StartChallengeScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public StartChallengeScRsp create() { + return StartChallengeScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName scene = FieldName.forField("scene"); + + static final FieldName lineup = FieldName.forField("lineup"); + + static final FieldName challengeInfo = FieldName.forField("challengeInfo", "challenge_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java new file mode 100644 index 0000000..76251a6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java @@ -0,0 +1,502 @@ +// 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 StartCocoonStageCsReqOuterClass { + /** + * Protobuf type {@code StartCocoonStageCsReq} + */ + public static final class StartCocoonStageCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 world_level = 3; + */ + private int worldLevel; + + /** + * optional uint32 wave = 7; + */ + private int wave; + + /** + * optional uint32 cocoon_id = 11; + */ + private int cocoonId; + + /** + * optional uint32 prop_entity_id = 13; + */ + private int propEntityId; + + private StartCocoonStageCsReq() { + } + + /** + * @return a new empty instance of {@code StartCocoonStageCsReq} + */ + public static StartCocoonStageCsReq newInstance() { + return new StartCocoonStageCsReq(); + } + + /** + * optional uint32 world_level = 3; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 world_level = 3; + * @return this + */ + public StartCocoonStageCsReq clearWorldLevel() { + bitField0_ &= ~0x00000001; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 3; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 3; + * @param value the worldLevel to set + * @return this + */ + public StartCocoonStageCsReq setWorldLevel(final int value) { + bitField0_ |= 0x00000001; + worldLevel = value; + return this; + } + + /** + * optional uint32 wave = 7; + * @return whether the wave field is set + */ + public boolean hasWave() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 wave = 7; + * @return this + */ + public StartCocoonStageCsReq clearWave() { + bitField0_ &= ~0x00000002; + wave = 0; + return this; + } + + /** + * optional uint32 wave = 7; + * @return the wave + */ + public int getWave() { + return wave; + } + + /** + * optional uint32 wave = 7; + * @param value the wave to set + * @return this + */ + public StartCocoonStageCsReq setWave(final int value) { + bitField0_ |= 0x00000002; + wave = value; + return this; + } + + /** + * optional uint32 cocoon_id = 11; + * @return whether the cocoonId field is set + */ + public boolean hasCocoonId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cocoon_id = 11; + * @return this + */ + public StartCocoonStageCsReq clearCocoonId() { + bitField0_ &= ~0x00000004; + cocoonId = 0; + return this; + } + + /** + * optional uint32 cocoon_id = 11; + * @return the cocoonId + */ + public int getCocoonId() { + return cocoonId; + } + + /** + * optional uint32 cocoon_id = 11; + * @param value the cocoonId to set + * @return this + */ + public StartCocoonStageCsReq setCocoonId(final int value) { + bitField0_ |= 0x00000004; + cocoonId = value; + return this; + } + + /** + * optional uint32 prop_entity_id = 13; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 prop_entity_id = 13; + * @return this + */ + public StartCocoonStageCsReq clearPropEntityId() { + bitField0_ &= ~0x00000008; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 13; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 13; + * @param value the propEntityId to set + * @return this + */ + public StartCocoonStageCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000008; + propEntityId = value; + return this; + } + + @Override + public StartCocoonStageCsReq copyFrom(final StartCocoonStageCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + worldLevel = other.worldLevel; + wave = other.wave; + cocoonId = other.cocoonId; + propEntityId = other.propEntityId; + } + return this; + } + + @Override + public StartCocoonStageCsReq mergeFrom(final StartCocoonStageCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasWave()) { + setWave(other.wave); + } + if (other.hasCocoonId()) { + setCocoonId(other.cocoonId); + } + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + return this; + } + + @Override + public StartCocoonStageCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + worldLevel = 0; + wave = 0; + cocoonId = 0; + propEntityId = 0; + return this; + } + + @Override + public StartCocoonStageCsReq 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 StartCocoonStageCsReq)) { + return false; + } + StartCocoonStageCsReq other = (StartCocoonStageCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasWave() || wave == other.wave) + && (!hasCocoonId() || cocoonId == other.cocoonId) + && (!hasPropEntityId() || propEntityId == other.propEntityId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(wave); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(cocoonId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(propEntityId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartCocoonStageCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // wave + wave = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // cocoonId + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // propEntityId + propEntityId = input.readUInt32(); + 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.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.wave, wave); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.cocoonId, cocoonId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.propEntityId, propEntityId); + } + output.endObject(); + } + + @Override + public StartCocoonStageCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3642105: { + if (input.isAtField(FieldNames.wave)) { + if (!input.trySkipNullValue()) { + wave = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { + if (!input.trySkipNullValue()) { + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartCocoonStageCsReq clone() { + return new StartCocoonStageCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartCocoonStageCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartCocoonStageCsReq(), data).checkInitialized(); + } + + public static StartCocoonStageCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartCocoonStageCsReq(), input).checkInitialized(); + } + + public static StartCocoonStageCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartCocoonStageCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating StartCocoonStageCsReq messages + */ + public static MessageFactory getFactory() { + return StartCocoonStageCsReqFactory.INSTANCE; + } + + private enum StartCocoonStageCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public StartCocoonStageCsReq create() { + return StartCocoonStageCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName wave = FieldName.forField("wave"); + + static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); + + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java new file mode 100644 index 0000000..23c4043 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java @@ -0,0 +1,604 @@ +// 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 StartCocoonStageScRspOuterClass { + /** + * Protobuf type {@code StartCocoonStageScRsp} + */ + public static final class StartCocoonStageScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + /** + * optional uint32 wave = 2; + */ + private int wave; + + /** + * optional uint32 prop_entity_id = 14; + */ + private int propEntityId; + + /** + * optional uint32 cocoon_id = 15; + */ + private int cocoonId; + + /** + * optional .SceneBattleInfo battle_info = 11; + */ + private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); + + private StartCocoonStageScRsp() { + } + + /** + * @return a new empty instance of {@code StartCocoonStageScRsp} + */ + public static StartCocoonStageScRsp newInstance() { + return new StartCocoonStageScRsp(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public StartCocoonStageScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public StartCocoonStageScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 wave = 2; + * @return whether the wave field is set + */ + public boolean hasWave() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 wave = 2; + * @return this + */ + public StartCocoonStageScRsp clearWave() { + bitField0_ &= ~0x00000002; + wave = 0; + return this; + } + + /** + * optional uint32 wave = 2; + * @return the wave + */ + public int getWave() { + return wave; + } + + /** + * optional uint32 wave = 2; + * @param value the wave to set + * @return this + */ + public StartCocoonStageScRsp setWave(final int value) { + bitField0_ |= 0x00000002; + wave = value; + return this; + } + + /** + * optional uint32 prop_entity_id = 14; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 prop_entity_id = 14; + * @return this + */ + public StartCocoonStageScRsp clearPropEntityId() { + bitField0_ &= ~0x00000004; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 14; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 14; + * @param value the propEntityId to set + * @return this + */ + public StartCocoonStageScRsp setPropEntityId(final int value) { + bitField0_ |= 0x00000004; + propEntityId = value; + return this; + } + + /** + * optional uint32 cocoon_id = 15; + * @return whether the cocoonId field is set + */ + public boolean hasCocoonId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 cocoon_id = 15; + * @return this + */ + public StartCocoonStageScRsp clearCocoonId() { + bitField0_ &= ~0x00000008; + cocoonId = 0; + return this; + } + + /** + * optional uint32 cocoon_id = 15; + * @return the cocoonId + */ + public int getCocoonId() { + return cocoonId; + } + + /** + * optional uint32 cocoon_id = 15; + * @param value the cocoonId to set + * @return this + */ + public StartCocoonStageScRsp setCocoonId(final int value) { + bitField0_ |= 0x00000008; + cocoonId = value; + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 11; + * @return whether the battleInfo field is set + */ + public boolean hasBattleInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .SceneBattleInfo battle_info = 11; + * @return this + */ + public StartCocoonStageScRsp clearBattleInfo() { + bitField0_ &= ~0x00000010; + battleInfo.clear(); + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 11; + * + * 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 #getMutableBattleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { + return battleInfo; + } + + /** + * optional .SceneBattleInfo battle_info = 11; + * + * 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 SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { + bitField0_ |= 0x00000010; + return battleInfo; + } + + /** + * optional .SceneBattleInfo battle_info = 11; + * @param value the battleInfo to set + * @return this + */ + public StartCocoonStageScRsp setBattleInfo( + final SceneBattleInfoOuterClass.SceneBattleInfo value) { + bitField0_ |= 0x00000010; + battleInfo.copyFrom(value); + return this; + } + + @Override + public StartCocoonStageScRsp copyFrom(final StartCocoonStageScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + wave = other.wave; + propEntityId = other.propEntityId; + cocoonId = other.cocoonId; + battleInfo.copyFrom(other.battleInfo); + } + return this; + } + + @Override + public StartCocoonStageScRsp mergeFrom(final StartCocoonStageScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasWave()) { + setWave(other.wave); + } + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + if (other.hasCocoonId()) { + setCocoonId(other.cocoonId); + } + if (other.hasBattleInfo()) { + getMutableBattleInfo().mergeFrom(other.battleInfo); + } + return this; + } + + @Override + public StartCocoonStageScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + wave = 0; + propEntityId = 0; + cocoonId = 0; + battleInfo.clear(); + return this; + } + + @Override + public StartCocoonStageScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StartCocoonStageScRsp)) { + return false; + } + StartCocoonStageScRsp other = (StartCocoonStageScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasWave() || wave == other.wave) + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasCocoonId() || cocoonId == other.cocoonId) + && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(wave); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(propEntityId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(cocoonId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(battleInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartCocoonStageScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // wave + wave = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // cocoonId + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // battleInfo + input.readMessage(battleInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.wave, wave); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.propEntityId, propEntityId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cocoonId, cocoonId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.battleInfo, battleInfo); + } + output.endObject(); + } + + @Override + public StartCocoonStageScRsp 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 3642105: { + if (input.isAtField(FieldNames.wave)) { + if (!input.trySkipNullValue()) { + wave = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { + if (!input.trySkipNullValue()) { + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2053377414: + case -749633579: { + if (input.isAtField(FieldNames.battleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartCocoonStageScRsp clone() { + return new StartCocoonStageScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartCocoonStageScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartCocoonStageScRsp(), data).checkInitialized(); + } + + public static StartCocoonStageScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartCocoonStageScRsp(), input).checkInitialized(); + } + + public static StartCocoonStageScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartCocoonStageScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating StartCocoonStageScRsp messages + */ + public static MessageFactory getFactory() { + return StartCocoonStageScRspFactory.INSTANCE; + } + + private enum StartCocoonStageScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public StartCocoonStageScRsp create() { + return StartCocoonStageScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName wave = FieldName.forField("wave"); + + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); + + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java new file mode 100644 index 0000000..6123b7b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java @@ -0,0 +1,698 @@ +// 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 SwapLineupCsReqOuterClass { + /** + * Protobuf type {@code SwapLineupCsReq} + */ + public static final class SwapLineupCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 src_slot = 3; + */ + private int srcSlot; + + /** + * optional uint32 plane_id = 8; + */ + private int planeId; + + /** + * optional uint32 dst_slot = 11; + */ + private int dstSlot; + + /** + * optional uint32 index = 13; + */ + private int index; + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + */ + private int extraLineupType; + + /** + * optional bool is_virtual = 4; + */ + private boolean isVirtual; + + private SwapLineupCsReq() { + } + + /** + * @return a new empty instance of {@code SwapLineupCsReq} + */ + public static SwapLineupCsReq newInstance() { + return new SwapLineupCsReq(); + } + + /** + * optional uint32 src_slot = 3; + * @return whether the srcSlot field is set + */ + public boolean hasSrcSlot() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 src_slot = 3; + * @return this + */ + public SwapLineupCsReq clearSrcSlot() { + bitField0_ &= ~0x00000001; + srcSlot = 0; + return this; + } + + /** + * optional uint32 src_slot = 3; + * @return the srcSlot + */ + public int getSrcSlot() { + return srcSlot; + } + + /** + * optional uint32 src_slot = 3; + * @param value the srcSlot to set + * @return this + */ + public SwapLineupCsReq setSrcSlot(final int value) { + bitField0_ |= 0x00000001; + srcSlot = value; + return this; + } + + /** + * optional uint32 plane_id = 8; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 plane_id = 8; + * @return this + */ + public SwapLineupCsReq clearPlaneId() { + bitField0_ &= ~0x00000002; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 8; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 8; + * @param value the planeId to set + * @return this + */ + public SwapLineupCsReq setPlaneId(final int value) { + bitField0_ |= 0x00000002; + planeId = value; + return this; + } + + /** + * optional uint32 dst_slot = 11; + * @return whether the dstSlot field is set + */ + public boolean hasDstSlot() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 dst_slot = 11; + * @return this + */ + public SwapLineupCsReq clearDstSlot() { + bitField0_ &= ~0x00000004; + dstSlot = 0; + return this; + } + + /** + * optional uint32 dst_slot = 11; + * @return the dstSlot + */ + public int getDstSlot() { + return dstSlot; + } + + /** + * optional uint32 dst_slot = 11; + * @param value the dstSlot to set + * @return this + */ + public SwapLineupCsReq setDstSlot(final int value) { + bitField0_ |= 0x00000004; + dstSlot = value; + return this; + } + + /** + * optional uint32 index = 13; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 index = 13; + * @return this + */ + public SwapLineupCsReq clearIndex() { + bitField0_ &= ~0x00000008; + index = 0; + return this; + } + + /** + * optional uint32 index = 13; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 13; + * @param value the index to set + * @return this + */ + public SwapLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000008; + index = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @return this + */ + public SwapLineupCsReq clearExtraLineupType() { + bitField0_ &= ~0x00000010; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SwapLineupCsReq#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link SwapLineupCsReq#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SwapLineupCsReq setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000010; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 5; + * @param value the extraLineupType to set + * @return this + */ + public SwapLineupCsReq setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000010; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 4; + * @return whether the isVirtual field is set + */ + public boolean hasIsVirtual() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool is_virtual = 4; + * @return this + */ + public SwapLineupCsReq clearIsVirtual() { + bitField0_ &= ~0x00000020; + isVirtual = false; + return this; + } + + /** + * optional bool is_virtual = 4; + * @return the isVirtual + */ + public boolean getIsVirtual() { + return isVirtual; + } + + /** + * optional bool is_virtual = 4; + * @param value the isVirtual to set + * @return this + */ + public SwapLineupCsReq setIsVirtual(final boolean value) { + bitField0_ |= 0x00000020; + isVirtual = value; + return this; + } + + @Override + public SwapLineupCsReq copyFrom(final SwapLineupCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + srcSlot = other.srcSlot; + planeId = other.planeId; + dstSlot = other.dstSlot; + index = other.index; + extraLineupType = other.extraLineupType; + isVirtual = other.isVirtual; + } + return this; + } + + @Override + public SwapLineupCsReq mergeFrom(final SwapLineupCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSrcSlot()) { + setSrcSlot(other.srcSlot); + } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasDstSlot()) { + setDstSlot(other.dstSlot); + } + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } + if (other.hasIsVirtual()) { + setIsVirtual(other.isVirtual); + } + return this; + } + + @Override + public SwapLineupCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + srcSlot = 0; + planeId = 0; + dstSlot = 0; + index = 0; + extraLineupType = 0; + isVirtual = false; + return this; + } + + @Override + public SwapLineupCsReq 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 SwapLineupCsReq)) { + return false; + } + SwapLineupCsReq other = (SwapLineupCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasSrcSlot() || srcSlot == other.srcSlot) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasDstSlot() || dstSlot == other.dstSlot) + && (!hasIndex() || index == other.index) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasIsVirtual() || isVirtual == other.isVirtual); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(srcSlot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(planeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(dstSlot); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeEnumNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isVirtual); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(srcSlot); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dstSlot); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SwapLineupCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // srcSlot + srcSlot = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // dstSlot + dstSlot = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isVirtual + isVirtual = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.srcSlot, srcSlot); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.dstSlot, dstSlot); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.index, index); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.isVirtual, isVirtual); + } + output.endObject(); + } + + @Override + public SwapLineupCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1953527294: + case -418516103: { + if (input.isAtField(FieldNames.srcSlot)) { + if (!input.trySkipNullValue()) { + srcSlot = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1958115683: + case 583331896: { + if (input.isAtField(FieldNames.dstSlot)) { + if (!input.trySkipNullValue()) { + dstSlot = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100346066: { + if (input.isAtField(FieldNames.index)) { + if (!input.trySkipNullValue()) { + index = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -113613183: + case 1966475510: { + if (input.isAtField(FieldNames.isVirtual)) { + if (!input.trySkipNullValue()) { + isVirtual = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SwapLineupCsReq clone() { + return new SwapLineupCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SwapLineupCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SwapLineupCsReq(), data).checkInitialized(); + } + + public static SwapLineupCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwapLineupCsReq(), input).checkInitialized(); + } + + public static SwapLineupCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwapLineupCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SwapLineupCsReq messages + */ + public static MessageFactory getFactory() { + return SwapLineupCsReqFactory.INSTANCE; + } + + private enum SwapLineupCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SwapLineupCsReq create() { + return SwapLineupCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName srcSlot = FieldName.forField("srcSlot", "src_slot"); + + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName dstSlot = FieldName.forField("dstSlot", "dst_slot"); + + static final FieldName index = FieldName.forField("index"); + + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java new file mode 100644 index 0000000..06c0f05 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java @@ -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 SwitchLineupIndexCsReqOuterClass { + /** + * Protobuf type {@code SwitchLineupIndexCsReq} + */ + public static final class SwitchLineupIndexCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 13; + */ + private int index; + + private SwitchLineupIndexCsReq() { + } + + /** + * @return a new empty instance of {@code SwitchLineupIndexCsReq} + */ + public static SwitchLineupIndexCsReq newInstance() { + return new SwitchLineupIndexCsReq(); + } + + /** + * optional uint32 index = 13; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 13; + * @return this + */ + public SwitchLineupIndexCsReq clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 13; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 13; + * @param value the index to set + * @return this + */ + public SwitchLineupIndexCsReq setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + @Override + public SwitchLineupIndexCsReq copyFrom(final SwitchLineupIndexCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + } + return this; + } + + @Override + public SwitchLineupIndexCsReq mergeFrom(final SwitchLineupIndexCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + return this; + } + + @Override + public SwitchLineupIndexCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + return this; + } + + @Override + public SwitchLineupIndexCsReq 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 SwitchLineupIndexCsReq)) { + return false; + } + SwitchLineupIndexCsReq other = (SwitchLineupIndexCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(index); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SwitchLineupIndexCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // index + index = 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.index, index); + } + output.endObject(); + } + + @Override + public SwitchLineupIndexCsReq 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SwitchLineupIndexCsReq clone() { + return new SwitchLineupIndexCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SwitchLineupIndexCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SwitchLineupIndexCsReq(), data).checkInitialized(); + } + + public static SwitchLineupIndexCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchLineupIndexCsReq(), input).checkInitialized(); + } + + public static SwitchLineupIndexCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchLineupIndexCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SwitchLineupIndexCsReq messages + */ + public static MessageFactory getFactory() { + return SwitchLineupIndexCsReqFactory.INSTANCE; + } + + private enum SwitchLineupIndexCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SwitchLineupIndexCsReq create() { + return SwitchLineupIndexCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java new file mode 100644 index 0000000..f473942 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java @@ -0,0 +1,359 @@ +// 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 SwitchLineupIndexScRspOuterClass { + /** + * Protobuf type {@code SwitchLineupIndexScRsp} + */ + public static final class SwitchLineupIndexScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 index = 4; + */ + private int index; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + private SwitchLineupIndexScRsp() { + } + + /** + * @return a new empty instance of {@code SwitchLineupIndexScRsp} + */ + public static SwitchLineupIndexScRsp newInstance() { + return new SwitchLineupIndexScRsp(); + } + + /** + * optional uint32 index = 4; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 index = 4; + * @return this + */ + public SwitchLineupIndexScRsp clearIndex() { + bitField0_ &= ~0x00000001; + index = 0; + return this; + } + + /** + * optional uint32 index = 4; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 4; + * @param value the index to set + * @return this + */ + public SwitchLineupIndexScRsp setIndex(final int value) { + bitField0_ |= 0x00000001; + index = value; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public SwitchLineupIndexScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public SwitchLineupIndexScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public SwitchLineupIndexScRsp copyFrom(final SwitchLineupIndexScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + index = other.index; + retcode = other.retcode; + } + return this; + } + + @Override + public SwitchLineupIndexScRsp mergeFrom(final SwitchLineupIndexScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public SwitchLineupIndexScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + index = 0; + retcode = 0; + return this; + } + + @Override + public SwitchLineupIndexScRsp 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 SwitchLineupIndexScRsp)) { + return false; + } + SwitchLineupIndexScRsp other = (SwitchLineupIndexScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasIndex() || index == other.index) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SwitchLineupIndexScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // retcode + retcode = 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.retcode, retcode); + } + output.endObject(); + } + + @Override + public SwitchLineupIndexScRsp 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 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SwitchLineupIndexScRsp clone() { + return new SwitchLineupIndexScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SwitchLineupIndexScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SwitchLineupIndexScRsp(), data).checkInitialized(); + } + + public static SwitchLineupIndexScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchLineupIndexScRsp(), input).checkInitialized(); + } + + public static SwitchLineupIndexScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchLineupIndexScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SwitchLineupIndexScRsp messages + */ + public static MessageFactory getFactory() { + return SwitchLineupIndexScRspFactory.INSTANCE; + } + + private enum SwitchLineupIndexScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SwitchLineupIndexScRsp create() { + return SwitchLineupIndexScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName index = FieldName.forField("index"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java new file mode 100644 index 0000000..a0bf647 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java @@ -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 SyncClientResVersionCsReqOuterClass { + /** + * Protobuf type {@code SyncClientResVersionCsReq} + */ + public static final class SyncClientResVersionCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 client_res_version = 13; + */ + private int clientResVersion; + + private SyncClientResVersionCsReq() { + } + + /** + * @return a new empty instance of {@code SyncClientResVersionCsReq} + */ + public static SyncClientResVersionCsReq newInstance() { + return new SyncClientResVersionCsReq(); + } + + /** + * optional uint32 client_res_version = 13; + * @return whether the clientResVersion field is set + */ + public boolean hasClientResVersion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 client_res_version = 13; + * @return this + */ + public SyncClientResVersionCsReq clearClientResVersion() { + bitField0_ &= ~0x00000001; + clientResVersion = 0; + return this; + } + + /** + * optional uint32 client_res_version = 13; + * @return the clientResVersion + */ + public int getClientResVersion() { + return clientResVersion; + } + + /** + * optional uint32 client_res_version = 13; + * @param value the clientResVersion to set + * @return this + */ + public SyncClientResVersionCsReq setClientResVersion(final int value) { + bitField0_ |= 0x00000001; + clientResVersion = value; + return this; + } + + @Override + public SyncClientResVersionCsReq copyFrom(final SyncClientResVersionCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + clientResVersion = other.clientResVersion; + } + return this; + } + + @Override + public SyncClientResVersionCsReq mergeFrom(final SyncClientResVersionCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasClientResVersion()) { + setClientResVersion(other.clientResVersion); + } + return this; + } + + @Override + public SyncClientResVersionCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + clientResVersion = 0; + return this; + } + + @Override + public SyncClientResVersionCsReq 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 SyncClientResVersionCsReq)) { + return false; + } + SyncClientResVersionCsReq other = (SyncClientResVersionCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasClientResVersion() || clientResVersion == other.clientResVersion); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(clientResVersion); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncClientResVersionCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // clientResVersion + clientResVersion = 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.clientResVersion, clientResVersion); + } + output.endObject(); + } + + @Override + public SyncClientResVersionCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2005674429: + case -349907515: { + if (input.isAtField(FieldNames.clientResVersion)) { + if (!input.trySkipNullValue()) { + clientResVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncClientResVersionCsReq clone() { + return new SyncClientResVersionCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncClientResVersionCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncClientResVersionCsReq(), data).checkInitialized(); + } + + public static SyncClientResVersionCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncClientResVersionCsReq(), input).checkInitialized(); + } + + public static SyncClientResVersionCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncClientResVersionCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncClientResVersionCsReq messages + */ + public static MessageFactory getFactory() { + return SyncClientResVersionCsReqFactory.INSTANCE; + } + + private enum SyncClientResVersionCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncClientResVersionCsReq create() { + return SyncClientResVersionCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java new file mode 100644 index 0000000..557db25 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java @@ -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 SyncClientResVersionScRspOuterClass { + /** + * Protobuf type {@code SyncClientResVersionScRsp} + */ + public static final class SyncClientResVersionScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 client_res_version = 1; + */ + private int clientResVersion; + + /** + * optional uint32 retcode = 12; + */ + private int retcode; + + private SyncClientResVersionScRsp() { + } + + /** + * @return a new empty instance of {@code SyncClientResVersionScRsp} + */ + public static SyncClientResVersionScRsp newInstance() { + return new SyncClientResVersionScRsp(); + } + + /** + * optional uint32 client_res_version = 1; + * @return whether the clientResVersion field is set + */ + public boolean hasClientResVersion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 client_res_version = 1; + * @return this + */ + public SyncClientResVersionScRsp clearClientResVersion() { + bitField0_ &= ~0x00000001; + clientResVersion = 0; + return this; + } + + /** + * optional uint32 client_res_version = 1; + * @return the clientResVersion + */ + public int getClientResVersion() { + return clientResVersion; + } + + /** + * optional uint32 client_res_version = 1; + * @param value the clientResVersion to set + * @return this + */ + public SyncClientResVersionScRsp setClientResVersion(final int value) { + bitField0_ |= 0x00000001; + clientResVersion = value; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public SyncClientResVersionScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public SyncClientResVersionScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public SyncClientResVersionScRsp copyFrom(final SyncClientResVersionScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + clientResVersion = other.clientResVersion; + retcode = other.retcode; + } + return this; + } + + @Override + public SyncClientResVersionScRsp mergeFrom(final SyncClientResVersionScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasClientResVersion()) { + setClientResVersion(other.clientResVersion); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public SyncClientResVersionScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + clientResVersion = 0; + retcode = 0; + return this; + } + + @Override + public SyncClientResVersionScRsp 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 SyncClientResVersionScRsp)) { + return false; + } + SyncClientResVersionScRsp other = (SyncClientResVersionScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasClientResVersion() || clientResVersion == other.clientResVersion) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(clientResVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncClientResVersionScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // clientResVersion + clientResVersion = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // retcode + retcode = 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.clientResVersion, clientResVersion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public SyncClientResVersionScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -2005674429: + case -349907515: { + if (input.isAtField(FieldNames.clientResVersion)) { + if (!input.trySkipNullValue()) { + clientResVersion = 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncClientResVersionScRsp clone() { + return new SyncClientResVersionScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncClientResVersionScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncClientResVersionScRsp(), data).checkInitialized(); + } + + public static SyncClientResVersionScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncClientResVersionScRsp(), input).checkInitialized(); + } + + public static SyncClientResVersionScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncClientResVersionScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncClientResVersionScRsp messages + */ + public static MessageFactory getFactory() { + return SyncClientResVersionScRspFactory.INSTANCE; + } + + private enum SyncClientResVersionScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncClientResVersionScRsp create() { + return SyncClientResVersionScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java new file mode 100644 index 0000000..c62f297 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java @@ -0,0 +1,402 @@ +// 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.RepeatedEnum; + +public final class SyncLineupNotifyOuterClass { + /** + * Protobuf type {@code SyncLineupNotify} + */ + public static final class SyncLineupNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .LineupInfo lineup = 3; + */ + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + /** + * repeated .SyncReason reason_list = 6; + */ + private final RepeatedEnum reasonList = RepeatedEnum.newEmptyInstance(SyncReasonOuterClass.SyncReason.converter()); + + private SyncLineupNotify() { + } + + /** + * @return a new empty instance of {@code SyncLineupNotify} + */ + public static SyncLineupNotify newInstance() { + return new SyncLineupNotify(); + } + + /** + * optional .LineupInfo lineup = 3; + * @return whether the lineup field is set + */ + public boolean hasLineup() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .LineupInfo lineup = 3; + * @return this + */ + public SyncLineupNotify clearLineup() { + bitField0_ &= ~0x00000001; + lineup.clear(); + return this; + } + + /** + * optional .LineupInfo lineup = 3; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 3; + * + * 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; + } + + /** + * optional .LineupInfo lineup = 3; + * @param value the lineup to set + * @return this + */ + public SyncLineupNotify setLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000001; + lineup.copyFrom(value); + return this; + } + + /** + * repeated .SyncReason reason_list = 6; + * @return whether the reasonList field is set + */ + public boolean hasReasonList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SyncReason reason_list = 6; + * @return this + */ + public SyncLineupNotify clearReasonList() { + bitField0_ &= ~0x00000002; + reasonList.clear(); + return this; + } + + /** + * repeated .SyncReason reason_list = 6; + * + * 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 #getMutableReasonList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedEnum getReasonList() { + return reasonList; + } + + /** + * repeated .SyncReason reason_list = 6; + * + * 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 RepeatedEnum getMutableReasonList() { + bitField0_ |= 0x00000002; + return reasonList; + } + + /** + * repeated .SyncReason reason_list = 6; + * @param value the reasonList to add + * @return this + */ + public SyncLineupNotify addReasonList(final SyncReasonOuterClass.SyncReason value) { + bitField0_ |= 0x00000002; + reasonList.add(value); + return this; + } + + /** + * repeated .SyncReason reason_list = 6; + * @param values the reasonList to add + * @return this + */ + public SyncLineupNotify addAllReasonList(final SyncReasonOuterClass.SyncReason... values) { + bitField0_ |= 0x00000002; + reasonList.addAll(values); + return this; + } + + @Override + public SyncLineupNotify copyFrom(final SyncLineupNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lineup.copyFrom(other.lineup); + reasonList.copyFrom(other.reasonList); + } + return this; + } + + @Override + public SyncLineupNotify mergeFrom(final SyncLineupNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLineup()) { + getMutableLineup().mergeFrom(other.lineup); + } + if (other.hasReasonList()) { + getMutableReasonList().addAll(other.reasonList); + } + return this; + } + + @Override + public SyncLineupNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lineup.clear(); + reasonList.clear(); + return this; + } + + @Override + public SyncLineupNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lineup.clearQuick(); + reasonList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncLineupNotify)) { + return false; + } + SyncLineupNotify other = (SyncLineupNotify) o; + return bitField0_ == other.bitField0_ + && (!hasLineup() || lineup.equals(other.lineup)) + && (!hasReasonList() || reasonList.equals(other.reasonList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(lineup); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < reasonList.length(); i++) { + output.writeRawByte((byte) 48); + output.writeEnumNoTag(reasonList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * reasonList.length()) + ProtoSink.computeRepeatedEnumSizeNoTag(reasonList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncLineupNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // lineup + input.readMessage(lineup); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // reasonList [packed=true] + input.readPackedEnum(reasonList, 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 48: { + // reasonList [packed=false] + tag = input.readRepeatedEnum(reasonList, tag); + bitField0_ |= 0x00000002; + 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.writeRepeatedEnum(FieldNames.reasonList, reasonList); + } + output.endObject(); + } + + @Override + public SyncLineupNotify 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 722400514: + case 937206201: { + if (input.isAtField(FieldNames.reasonList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedEnum(reasonList, SyncReasonOuterClass.SyncReason.converter()); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncLineupNotify clone() { + return new SyncLineupNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncLineupNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncLineupNotify(), data).checkInitialized(); + } + + public static SyncLineupNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncLineupNotify(), input).checkInitialized(); + } + + public static SyncLineupNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncLineupNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncLineupNotify messages + */ + public static MessageFactory getFactory() { + return SyncLineupNotifyFactory.INSTANCE; + } + + private enum SyncLineupNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncLineupNotify create() { + return SyncLineupNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lineup = FieldName.forField("lineup"); + + static final FieldName reasonList = FieldName.forField("reasonList", "reason_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java new file mode 100644 index 0000000..518ff6a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java @@ -0,0 +1,160 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class SyncReasonOuterClass { + /** + * Protobuf enum {@code SyncReason} + */ + public enum SyncReason implements ProtoEnum { + /** + * SYNC_REASON_NONE = 0; + */ + SYNC_REASON_NONE("SYNC_REASON_NONE", 0), + + /** + * SYNC_REASON_MP_ADD = 1; + */ + SYNC_REASON_MP_ADD("SYNC_REASON_MP_ADD", 1), + + /** + * SYNC_REASON_MP_ADD_PROP_HIT = 2; + */ + SYNC_REASON_MP_ADD_PROP_HIT("SYNC_REASON_MP_ADD_PROP_HIT", 2), + + /** + * SYNC_REASON_HP_ADD = 3; + */ + SYNC_REASON_HP_ADD("SYNC_REASON_HP_ADD", 3), + + /** + * SYNC_REASON_HP_ADD_PROP_HIT = 4; + */ + SYNC_REASON_HP_ADD_PROP_HIT("SYNC_REASON_HP_ADD_PROP_HIT", 4); + + /** + * SYNC_REASON_NONE = 0; + */ + public static final int SYNC_REASON_NONE_VALUE = 0; + + /** + * SYNC_REASON_MP_ADD = 1; + */ + public static final int SYNC_REASON_MP_ADD_VALUE = 1; + + /** + * SYNC_REASON_MP_ADD_PROP_HIT = 2; + */ + public static final int SYNC_REASON_MP_ADD_PROP_HIT_VALUE = 2; + + /** + * SYNC_REASON_HP_ADD = 3; + */ + public static final int SYNC_REASON_HP_ADD_VALUE = 3; + + /** + * SYNC_REASON_HP_ADD_PROP_HIT = 4; + */ + public static final int SYNC_REASON_HP_ADD_PROP_HIT_VALUE = 4; + + private final String name; + + private final int number; + + private SyncReason(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SyncReasonConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SyncReason forNumber(int value) { + return SyncReasonConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SyncReason forNumberOr(int number, SyncReason other) { + SyncReason value = forNumber(number); + return value == null ? other : value; + } + + enum SyncReasonConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SyncReason[] lookup = new SyncReason[5]; + + static { + lookup[0] = SYNC_REASON_NONE; + lookup[1] = SYNC_REASON_MP_ADD; + lookup[2] = SYNC_REASON_MP_ADD_PROP_HIT; + lookup[3] = SYNC_REASON_HP_ADD; + lookup[4] = SYNC_REASON_HP_ADD_PROP_HIT; + } + + @Override + public final SyncReason forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SyncReason forName(final CharSequence value) { + if (value.length() == 16) { + if (ProtoUtil.isEqual("SYNC_REASON_NONE", value)) { + return SYNC_REASON_NONE; + } + } + if (value.length() == 18) { + if (ProtoUtil.isEqual("SYNC_REASON_MP_ADD", value)) { + return SYNC_REASON_MP_ADD; + } + if (ProtoUtil.isEqual("SYNC_REASON_HP_ADD", value)) { + return SYNC_REASON_HP_ADD; + } + } + if (value.length() == 27) { + if (ProtoUtil.isEqual("SYNC_REASON_MP_ADD_PROP_HIT", value)) { + return SYNC_REASON_MP_ADD_PROP_HIT; + } + if (ProtoUtil.isEqual("SYNC_REASON_HP_ADD_PROP_HIT", value)) { + return SYNC_REASON_HP_ADD_PROP_HIT; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java new file mode 100644 index 0000000..945639e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java @@ -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 TakeOffEquipmentCsReqOuterClass { + /** + * Protobuf type {@code TakeOffEquipmentCsReq} + */ + public static final class TakeOffEquipmentCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 2; + */ + private int baseAvatarId; + + private TakeOffEquipmentCsReq() { + } + + /** + * @return a new empty instance of {@code TakeOffEquipmentCsReq} + */ + public static TakeOffEquipmentCsReq newInstance() { + return new TakeOffEquipmentCsReq(); + } + + /** + * optional uint32 base_avatar_id = 2; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 2; + * @return this + */ + public TakeOffEquipmentCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 2; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 2; + * @param value the baseAvatarId to set + * @return this + */ + public TakeOffEquipmentCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + @Override + public TakeOffEquipmentCsReq copyFrom(final TakeOffEquipmentCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + } + return this; + } + + @Override + public TakeOffEquipmentCsReq mergeFrom(final TakeOffEquipmentCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + return this; + } + + @Override + public TakeOffEquipmentCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + return this; + } + + @Override + public TakeOffEquipmentCsReq 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 TakeOffEquipmentCsReq)) { + return false; + } + TakeOffEquipmentCsReq other = (TakeOffEquipmentCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(baseAvatarId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TakeOffEquipmentCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // baseAvatarId + baseAvatarId = 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.baseAvatarId, baseAvatarId); + } + output.endObject(); + } + + @Override + public TakeOffEquipmentCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TakeOffEquipmentCsReq clone() { + return new TakeOffEquipmentCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TakeOffEquipmentCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TakeOffEquipmentCsReq(), data).checkInitialized(); + } + + public static TakeOffEquipmentCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeOffEquipmentCsReq(), input).checkInitialized(); + } + + public static TakeOffEquipmentCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeOffEquipmentCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating TakeOffEquipmentCsReq messages + */ + public static MessageFactory getFactory() { + return TakeOffEquipmentCsReqFactory.INSTANCE; + } + + private enum TakeOffEquipmentCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TakeOffEquipmentCsReq create() { + return TakeOffEquipmentCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java new file mode 100644 index 0000000..fb1cbc0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java @@ -0,0 +1,382 @@ +// 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 TakeOffRelicCsReqOuterClass { + /** + * Protobuf type {@code TakeOffRelicCsReq} + */ + public static final class TakeOffRelicCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 base_avatar_id = 15; + */ + private int baseAvatarId; + + /** + * repeated uint32 slot_list = 11; + */ + private final RepeatedInt slotList = RepeatedInt.newEmptyInstance(); + + private TakeOffRelicCsReq() { + } + + /** + * @return a new empty instance of {@code TakeOffRelicCsReq} + */ + public static TakeOffRelicCsReq newInstance() { + return new TakeOffRelicCsReq(); + } + + /** + * optional uint32 base_avatar_id = 15; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return this + */ + public TakeOffRelicCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000001; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 15; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 15; + * @param value the baseAvatarId to set + * @return this + */ + public TakeOffRelicCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000001; + baseAvatarId = value; + return this; + } + + /** + * repeated uint32 slot_list = 11; + * @return whether the slotList field is set + */ + public boolean hasSlotList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 slot_list = 11; + * @return this + */ + public TakeOffRelicCsReq clearSlotList() { + bitField0_ &= ~0x00000002; + slotList.clear(); + return this; + } + + /** + * repeated uint32 slot_list = 11; + * + * 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 #getMutableSlotList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getSlotList() { + return slotList; + } + + /** + * repeated uint32 slot_list = 11; + * + * 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 getMutableSlotList() { + bitField0_ |= 0x00000002; + return slotList; + } + + /** + * repeated uint32 slot_list = 11; + * @param value the slotList to add + * @return this + */ + public TakeOffRelicCsReq addSlotList(final int value) { + bitField0_ |= 0x00000002; + slotList.add(value); + return this; + } + + /** + * repeated uint32 slot_list = 11; + * @param values the slotList to add + * @return this + */ + public TakeOffRelicCsReq addAllSlotList(final int... values) { + bitField0_ |= 0x00000002; + slotList.addAll(values); + return this; + } + + @Override + public TakeOffRelicCsReq copyFrom(final TakeOffRelicCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarId = other.baseAvatarId; + slotList.copyFrom(other.slotList); + } + return this; + } + + @Override + public TakeOffRelicCsReq mergeFrom(final TakeOffRelicCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasSlotList()) { + getMutableSlotList().addAll(other.slotList); + } + return this; + } + + @Override + public TakeOffRelicCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarId = 0; + slotList.clear(); + return this; + } + + @Override + public TakeOffRelicCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + slotList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TakeOffRelicCsReq)) { + return false; + } + TakeOffRelicCsReq other = (TakeOffRelicCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasSlotList() || slotList.equals(other.slotList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < slotList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(slotList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * slotList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(slotList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TakeOffRelicCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // slotList [packed=true] + input.readPackedUInt32(slotList, 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: { + // slotList [packed=false] + tag = input.readRepeatedUInt32(slotList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.slotList, slotList); + } + output.endObject(); + } + + @Override + public TakeOffRelicCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1086791748: + case 686820927: { + if (input.isAtField(FieldNames.slotList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(slotList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TakeOffRelicCsReq clone() { + return new TakeOffRelicCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TakeOffRelicCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TakeOffRelicCsReq(), data).checkInitialized(); + } + + public static TakeOffRelicCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeOffRelicCsReq(), input).checkInitialized(); + } + + public static TakeOffRelicCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeOffRelicCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating TakeOffRelicCsReq messages + */ + public static MessageFactory getFactory() { + return TakeOffRelicCsReqFactory.INSTANCE; + } + + private enum TakeOffRelicCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TakeOffRelicCsReq create() { + return TakeOffRelicCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName slotList = FieldName.forField("slotList", "slot_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java new file mode 100644 index 0000000..0c78f12 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java @@ -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 TakePromotionRewardCsReqOuterClass { + /** + * Protobuf type {@code TakePromotionRewardCsReq} + */ + public static final class TakePromotionRewardCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 promotion = 1; + */ + private int promotion; + + /** + * optional uint32 base_avatar_id = 13; + */ + private int baseAvatarId; + + private TakePromotionRewardCsReq() { + } + + /** + * @return a new empty instance of {@code TakePromotionRewardCsReq} + */ + public static TakePromotionRewardCsReq newInstance() { + return new TakePromotionRewardCsReq(); + } + + /** + * optional uint32 promotion = 1; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 promotion = 1; + * @return this + */ + public TakePromotionRewardCsReq clearPromotion() { + bitField0_ &= ~0x00000001; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 1; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 1; + * @param value the promotion to set + * @return this + */ + public TakePromotionRewardCsReq setPromotion(final int value) { + bitField0_ |= 0x00000001; + promotion = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 13; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 base_avatar_id = 13; + * @return this + */ + public TakePromotionRewardCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000002; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 13; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 13; + * @param value the baseAvatarId to set + * @return this + */ + public TakePromotionRewardCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000002; + baseAvatarId = value; + return this; + } + + @Override + public TakePromotionRewardCsReq copyFrom(final TakePromotionRewardCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + promotion = other.promotion; + baseAvatarId = other.baseAvatarId; + } + return this; + } + + @Override + public TakePromotionRewardCsReq mergeFrom(final TakePromotionRewardCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + return this; + } + + @Override + public TakePromotionRewardCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + promotion = 0; + baseAvatarId = 0; + return this; + } + + @Override + public TakePromotionRewardCsReq 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 TakePromotionRewardCsReq)) { + return false; + } + TakePromotionRewardCsReq other = (TakePromotionRewardCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPromotion() || promotion == other.promotion) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(baseAvatarId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TakePromotionRewardCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // baseAvatarId + baseAvatarId = 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.promotion, promotion); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + output.endObject(); + } + + @Override + public TakePromotionRewardCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TakePromotionRewardCsReq clone() { + return new TakePromotionRewardCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TakePromotionRewardCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TakePromotionRewardCsReq(), data).checkInitialized(); + } + + public static TakePromotionRewardCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakePromotionRewardCsReq(), input).checkInitialized(); + } + + public static TakePromotionRewardCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakePromotionRewardCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating TakePromotionRewardCsReq messages + */ + public static MessageFactory getFactory() { + return TakePromotionRewardCsReqFactory.INSTANCE; + } + + private enum TakePromotionRewardCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public TakePromotionRewardCsReq create() { + return TakePromotionRewardCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java new file mode 100644 index 0000000..6b416f8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java @@ -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 TakePromotionRewardScRspOuterClass { + /** + * Protobuf type {@code TakePromotionRewardScRsp} + */ + public static final class TakePromotionRewardScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional .ItemList reward_list = 11; + */ + private final ItemListOuterClass.ItemList rewardList = ItemListOuterClass.ItemList.newInstance(); + + private TakePromotionRewardScRsp() { + } + + /** + * @return a new empty instance of {@code TakePromotionRewardScRsp} + */ + public static TakePromotionRewardScRsp newInstance() { + return new TakePromotionRewardScRsp(); + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return this + */ + public TakePromotionRewardScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     * repeated DFINCAGAMOF BKACCCFJMBI = 5;
+     * 
+ * + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public TakePromotionRewardScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .ItemList reward_list = 11; + * @return whether the rewardList field is set + */ + public boolean hasRewardList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ItemList reward_list = 11; + * @return this + */ + public TakePromotionRewardScRsp clearRewardList() { + bitField0_ &= ~0x00000002; + rewardList.clear(); + return this; + } + + /** + * optional .ItemList reward_list = 11; + * + * 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 #getMutableRewardList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getRewardList() { + return rewardList; + } + + /** + * optional .ItemList reward_list = 11; + * + * 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 getMutableRewardList() { + bitField0_ |= 0x00000002; + return rewardList; + } + + /** + * optional .ItemList reward_list = 11; + * @param value the rewardList to set + * @return this + */ + public TakePromotionRewardScRsp setRewardList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000002; + rewardList.copyFrom(value); + return this; + } + + @Override + public TakePromotionRewardScRsp copyFrom(final TakePromotionRewardScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + rewardList.copyFrom(other.rewardList); + } + return this; + } + + @Override + public TakePromotionRewardScRsp mergeFrom(final TakePromotionRewardScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRewardList()) { + getMutableRewardList().mergeFrom(other.rewardList); + } + return this; + } + + @Override + public TakePromotionRewardScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + rewardList.clear(); + return this; + } + + @Override + public TakePromotionRewardScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rewardList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TakePromotionRewardScRsp)) { + return false; + } + TakePromotionRewardScRsp other = (TakePromotionRewardScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRewardList() || rewardList.equals(other.rewardList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(rewardList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rewardList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TakePromotionRewardScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // rewardList + input.readMessage(rewardList); + 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.rewardList, rewardList); + } + output.endObject(); + } + + @Override + public TakePromotionRewardScRsp 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 1690977389: + case 898318254: { + if (input.isAtField(FieldNames.rewardList)) { + if (!input.trySkipNullValue()) { + input.readMessage(rewardList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TakePromotionRewardScRsp clone() { + return new TakePromotionRewardScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TakePromotionRewardScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TakePromotionRewardScRsp(), data).checkInitialized(); + } + + public static TakePromotionRewardScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakePromotionRewardScRsp(), input).checkInitialized(); + } + + public static TakePromotionRewardScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakePromotionRewardScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating TakePromotionRewardScRsp messages + */ + public static MessageFactory getFactory() { + return TakePromotionRewardScRspFactory.INSTANCE; + } + + private enum TakePromotionRewardScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public TakePromotionRewardScRsp create() { + return TakePromotionRewardScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rewardList = FieldName.forField("rewardList", "reward_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java new file mode 100644 index 0000000..52ab986 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java @@ -0,0 +1,455 @@ +// 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 UnlockSkilltreeCsReqOuterClass { + /** + * Protobuf type {@code UnlockSkilltreeCsReq} + */ + public static final class UnlockSkilltreeCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 level = 1; + */ + private int level; + + /** + * optional uint32 point_id = 11; + */ + private int pointId; + + /** + * repeated .ItemCost item_list = 3; + */ + private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); + + private UnlockSkilltreeCsReq() { + } + + /** + * @return a new empty instance of {@code UnlockSkilltreeCsReq} + */ + public static UnlockSkilltreeCsReq newInstance() { + return new UnlockSkilltreeCsReq(); + } + + /** + * optional uint32 level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 level = 1; + * @return this + */ + public UnlockSkilltreeCsReq clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 1; + * @param value the level to set + * @return this + */ + public UnlockSkilltreeCsReq setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 point_id = 11; + * @return whether the pointId field is set + */ + public boolean hasPointId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 point_id = 11; + * @return this + */ + public UnlockSkilltreeCsReq clearPointId() { + bitField0_ &= ~0x00000002; + pointId = 0; + return this; + } + + /** + * optional uint32 point_id = 11; + * @return the pointId + */ + public int getPointId() { + return pointId; + } + + /** + * optional uint32 point_id = 11; + * @param value the pointId to set + * @return this + */ + public UnlockSkilltreeCsReq setPointId(final int value) { + bitField0_ |= 0x00000002; + pointId = value; + return this; + } + + /** + * repeated .ItemCost item_list = 3; + * @return whether the itemList field is set + */ + public boolean hasItemList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ItemCost item_list = 3; + * @return this + */ + public UnlockSkilltreeCsReq clearItemList() { + bitField0_ &= ~0x00000004; + itemList.clear(); + return this; + } + + /** + * repeated .ItemCost item_list = 3; + * + * 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 RepeatedMessage getItemList() { + return itemList; + } + + /** + * repeated .ItemCost item_list = 3; + * + * 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 getMutableItemList() { + bitField0_ |= 0x00000004; + return itemList; + } + + /** + * repeated .ItemCost item_list = 3; + * @param value the itemList to add + * @return this + */ + public UnlockSkilltreeCsReq addItemList(final ItemCostOuterClass.ItemCost value) { + bitField0_ |= 0x00000004; + itemList.add(value); + return this; + } + + /** + * repeated .ItemCost item_list = 3; + * @param values the itemList to add + * @return this + */ + public UnlockSkilltreeCsReq addAllItemList(final ItemCostOuterClass.ItemCost... values) { + bitField0_ |= 0x00000004; + itemList.addAll(values); + return this; + } + + @Override + public UnlockSkilltreeCsReq copyFrom(final UnlockSkilltreeCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + pointId = other.pointId; + itemList.copyFrom(other.itemList); + } + return this; + } + + @Override + public UnlockSkilltreeCsReq mergeFrom(final UnlockSkilltreeCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasPointId()) { + setPointId(other.pointId); + } + if (other.hasItemList()) { + getMutableItemList().addAll(other.itemList); + } + return this; + } + + @Override + public UnlockSkilltreeCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + pointId = 0; + itemList.clear(); + return this; + } + + @Override + public UnlockSkilltreeCsReq 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 UnlockSkilltreeCsReq)) { + return false; + } + UnlockSkilltreeCsReq other = (UnlockSkilltreeCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasPointId() || pointId == other.pointId) + && (!hasItemList() || itemList.equals(other.itemList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(pointId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < itemList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(itemList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * itemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(itemList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UnlockSkilltreeCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // pointId + pointId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // itemList + tag = input.readRepeatedMessage(itemList, 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.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.pointId, pointId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.itemList, itemList); + } + output.endObject(); + } + + @Override + public UnlockSkilltreeCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -400606517: + case 466121258: { + if (input.isAtField(FieldNames.pointId)) { + if (!input.trySkipNullValue()) { + pointId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1177280081: + case -2141396406: { + if (input.isAtField(FieldNames.itemList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(itemList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UnlockSkilltreeCsReq clone() { + return new UnlockSkilltreeCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UnlockSkilltreeCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UnlockSkilltreeCsReq(), data).checkInitialized(); + } + + public static UnlockSkilltreeCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockSkilltreeCsReq(), input).checkInitialized(); + } + + public static UnlockSkilltreeCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockSkilltreeCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating UnlockSkilltreeCsReq messages + */ + public static MessageFactory getFactory() { + return UnlockSkilltreeCsReqFactory.INSTANCE; + } + + private enum UnlockSkilltreeCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public UnlockSkilltreeCsReq create() { + return UnlockSkilltreeCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("level"); + + static final FieldName pointId = FieldName.forField("pointId", "point_id"); + + static final FieldName itemList = FieldName.forField("itemList", "item_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java new file mode 100644 index 0000000..3c3453e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java @@ -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 UnlockSkilltreeScRspOuterClass { + /** + * Protobuf type {@code UnlockSkilltreeScRsp} + */ + public static final class UnlockSkilltreeScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 point_id = 2; + */ + private int pointId; + + /** + * optional uint32 level = 8; + */ + private int level; + + /** + * optional uint32 base_avatar_id = 10; + */ + private int baseAvatarId; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + private UnlockSkilltreeScRsp() { + } + + /** + * @return a new empty instance of {@code UnlockSkilltreeScRsp} + */ + public static UnlockSkilltreeScRsp newInstance() { + return new UnlockSkilltreeScRsp(); + } + + /** + * optional uint32 point_id = 2; + * @return whether the pointId field is set + */ + public boolean hasPointId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 point_id = 2; + * @return this + */ + public UnlockSkilltreeScRsp clearPointId() { + bitField0_ &= ~0x00000001; + pointId = 0; + return this; + } + + /** + * optional uint32 point_id = 2; + * @return the pointId + */ + public int getPointId() { + return pointId; + } + + /** + * optional uint32 point_id = 2; + * @param value the pointId to set + * @return this + */ + public UnlockSkilltreeScRsp setPointId(final int value) { + bitField0_ |= 0x00000001; + pointId = value; + return this; + } + + /** + * optional uint32 level = 8; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 8; + * @return this + */ + public UnlockSkilltreeScRsp clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 8; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 8; + * @param value the level to set + * @return this + */ + public UnlockSkilltreeScRsp setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return this + */ + public UnlockSkilltreeScRsp clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 10; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 10; + * @param value the baseAvatarId to set + * @return this + */ + public UnlockSkilltreeScRsp setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public UnlockSkilltreeScRsp clearRetcode() { + bitField0_ &= ~0x00000008; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public UnlockSkilltreeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000008; + retcode = value; + return this; + } + + @Override + public UnlockSkilltreeScRsp copyFrom(final UnlockSkilltreeScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pointId = other.pointId; + level = other.level; + baseAvatarId = other.baseAvatarId; + retcode = other.retcode; + } + return this; + } + + @Override + public UnlockSkilltreeScRsp mergeFrom(final UnlockSkilltreeScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPointId()) { + setPointId(other.pointId); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public UnlockSkilltreeScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pointId = 0; + level = 0; + baseAvatarId = 0; + retcode = 0; + return this; + } + + @Override + public UnlockSkilltreeScRsp 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 UnlockSkilltreeScRsp)) { + return false; + } + UnlockSkilltreeScRsp other = (UnlockSkilltreeScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasPointId() || pointId == other.pointId) + && (!hasLevel() || level == other.level) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(pointId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UnlockSkilltreeScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // pointId + pointId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + 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.pointId, pointId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public UnlockSkilltreeScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -400606517: + case 466121258: { + if (input.isAtField(FieldNames.pointId)) { + if (!input.trySkipNullValue()) { + pointId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UnlockSkilltreeScRsp clone() { + return new UnlockSkilltreeScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UnlockSkilltreeScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UnlockSkilltreeScRsp(), data).checkInitialized(); + } + + public static UnlockSkilltreeScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockSkilltreeScRsp(), input).checkInitialized(); + } + + public static UnlockSkilltreeScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockSkilltreeScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating UnlockSkilltreeScRsp messages + */ + public static MessageFactory getFactory() { + return UnlockSkilltreeScRspFactory.INSTANCE; + } + + private enum UnlockSkilltreeScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public UnlockSkilltreeScRsp create() { + return UnlockSkilltreeScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pointId = FieldName.forField("pointId", "point_id"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java new file mode 100644 index 0000000..22771c2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java @@ -0,0 +1,418 @@ +// 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 VectorOuterClass { + /** + * Protobuf type {@code Vector} + */ + public static final class Vector extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional sint32 y = 6; + */ + private int y; + + /** + * optional sint32 z = 9; + */ + private int z; + + /** + * optional sint32 x = 10; + */ + private int x; + + private Vector() { + } + + /** + * @return a new empty instance of {@code Vector} + */ + public static Vector newInstance() { + return new Vector(); + } + + /** + * optional sint32 y = 6; + * @return whether the y field is set + */ + public boolean hasY() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional sint32 y = 6; + * @return this + */ + public Vector clearY() { + bitField0_ &= ~0x00000001; + y = 0; + return this; + } + + /** + * optional sint32 y = 6; + * @return the y + */ + public int getY() { + return y; + } + + /** + * optional sint32 y = 6; + * @param value the y to set + * @return this + */ + public Vector setY(final int value) { + bitField0_ |= 0x00000001; + y = value; + return this; + } + + /** + * optional sint32 z = 9; + * @return whether the z field is set + */ + public boolean hasZ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional sint32 z = 9; + * @return this + */ + public Vector clearZ() { + bitField0_ &= ~0x00000002; + z = 0; + return this; + } + + /** + * optional sint32 z = 9; + * @return the z + */ + public int getZ() { + return z; + } + + /** + * optional sint32 z = 9; + * @param value the z to set + * @return this + */ + public Vector setZ(final int value) { + bitField0_ |= 0x00000002; + z = value; + return this; + } + + /** + * optional sint32 x = 10; + * @return whether the x field is set + */ + public boolean hasX() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional sint32 x = 10; + * @return this + */ + public Vector clearX() { + bitField0_ &= ~0x00000004; + x = 0; + return this; + } + + /** + * optional sint32 x = 10; + * @return the x + */ + public int getX() { + return x; + } + + /** + * optional sint32 x = 10; + * @param value the x to set + * @return this + */ + public Vector setX(final int value) { + bitField0_ |= 0x00000004; + x = value; + return this; + } + + @Override + public Vector copyFrom(final Vector other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + y = other.y; + z = other.z; + x = other.x; + } + return this; + } + + @Override + public Vector mergeFrom(final Vector other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasY()) { + setY(other.y); + } + if (other.hasZ()) { + setZ(other.z); + } + if (other.hasX()) { + setX(other.x); + } + return this; + } + + @Override + public Vector clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + y = 0; + z = 0; + x = 0; + return this; + } + + @Override + public Vector 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 Vector)) { + return false; + } + Vector other = (Vector) o; + return bitField0_ == other.bitField0_ + && (!hasY() || y == other.y) + && (!hasZ() || z == other.z) + && (!hasX() || x == other.x); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeSInt32NoTag(y); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeSInt32NoTag(z); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeSInt32NoTag(x); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(y); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(z); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(x); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Vector mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // y + y = input.readSInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // z + z = input.readSInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // x + x = input.readSInt32(); + 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.writeSInt32(FieldNames.y, y); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeSInt32(FieldNames.z, z); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeSInt32(FieldNames.x, x); + } + output.endObject(); + } + + @Override + public Vector mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 121: { + if (input.isAtField(FieldNames.y)) { + if (!input.trySkipNullValue()) { + y = input.readSInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 122: { + if (input.isAtField(FieldNames.z)) { + if (!input.trySkipNullValue()) { + z = input.readSInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 120: { + if (input.isAtField(FieldNames.x)) { + if (!input.trySkipNullValue()) { + x = input.readSInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Vector clone() { + return new Vector().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Vector parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Vector(), data).checkInitialized(); + } + + public static Vector parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Vector(), input).checkInitialized(); + } + + public static Vector parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Vector(), input).checkInitialized(); + } + + /** + * @return factory for creating Vector messages + */ + public static MessageFactory getFactory() { + return VectorFactory.INSTANCE; + } + + private enum VectorFactory implements MessageFactory { + INSTANCE; + + @Override + public Vector create() { + return Vector.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName y = FieldName.forField("y"); + + static final FieldName z = FieldName.forField("z"); + + static final FieldName x = FieldName.forField("x"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/WaitDelResourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/WaitDelResourceOuterClass.java new file mode 100644 index 0000000..ad7b970 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/WaitDelResourceOuterClass.java @@ -0,0 +1,339 @@ +// 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 WaitDelResourceOuterClass { + /** + * Protobuf type {@code WaitDelResource} + */ + public static final class WaitDelResource extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 tid = 9; + */ + private int tid; + + /** + * optional uint32 num = 12; + */ + private int num; + + private WaitDelResource() { + } + + /** + * @return a new empty instance of {@code WaitDelResource} + */ + public static WaitDelResource newInstance() { + return new WaitDelResource(); + } + + /** + * optional uint32 tid = 9; + * @return whether the tid field is set + */ + public boolean hasTid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 tid = 9; + * @return this + */ + public WaitDelResource clearTid() { + bitField0_ &= ~0x00000001; + tid = 0; + return this; + } + + /** + * optional uint32 tid = 9; + * @return the tid + */ + public int getTid() { + return tid; + } + + /** + * optional uint32 tid = 9; + * @param value the tid to set + * @return this + */ + public WaitDelResource setTid(final int value) { + bitField0_ |= 0x00000001; + tid = value; + return this; + } + + /** + * optional uint32 num = 12; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 num = 12; + * @return this + */ + public WaitDelResource clearNum() { + bitField0_ &= ~0x00000002; + num = 0; + return this; + } + + /** + * optional uint32 num = 12; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 12; + * @param value the num to set + * @return this + */ + public WaitDelResource setNum(final int value) { + bitField0_ |= 0x00000002; + num = value; + return this; + } + + @Override + public WaitDelResource copyFrom(final WaitDelResource other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + tid = other.tid; + num = other.num; + } + return this; + } + + @Override + public WaitDelResource mergeFrom(final WaitDelResource other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTid()) { + setTid(other.tid); + } + if (other.hasNum()) { + setNum(other.num); + } + return this; + } + + @Override + public WaitDelResource clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + tid = 0; + num = 0; + return this; + } + + @Override + public WaitDelResource 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 WaitDelResource)) { + return false; + } + WaitDelResource other = (WaitDelResource) o; + return bitField0_ == other.bitField0_ + && (!hasTid() || tid == other.tid) + && (!hasNum() || num == other.num); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(num); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public WaitDelResource mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // num + num = 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.tid, tid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.num, num); + } + output.endObject(); + } + + @Override + public WaitDelResource mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 114831: { + if (input.isAtField(FieldNames.tid)) { + if (!input.trySkipNullValue()) { + tid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public WaitDelResource clone() { + return new WaitDelResource().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static WaitDelResource parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new WaitDelResource(), data).checkInitialized(); + } + + public static WaitDelResource parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new WaitDelResource(), input).checkInitialized(); + } + + public static WaitDelResource parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new WaitDelResource(), input).checkInitialized(); + } + + /** + * @return factory for creating WaitDelResource messages + */ + public static MessageFactory getFactory() { + return WaitDelResourceFactory.INSTANCE; + } + + private enum WaitDelResourceFactory implements MessageFactory { + INSTANCE; + + @Override + public WaitDelResource create() { + return WaitDelResource.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName tid = FieldName.forField("tid"); + + static final FieldName num = FieldName.forField("num"); + } + } +}