Update to 1.2.0

This commit is contained in:
Melledy
2025-11-17 22:01:06 -08:00
parent 9921bf4efe
commit 6ac782e25c
13 changed files with 8832 additions and 621 deletions
@@ -54,6 +54,16 @@ public final class ActivityCookieSettle {
*/
private int excellentNum;
/**
* <code>optional uint32 MissNum = 8;</code>
*/
private int missNum;
/**
* <code>optional uint32 Good = 9;</code>
*/
private int good;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -328,12 +338,86 @@ public final class ActivityCookieSettle {
return this;
}
/**
* <code>optional uint32 MissNum = 8;</code>
* @return whether the missNum field is set
*/
public boolean hasMissNum() {
return (bitField0_ & 0x00000080) != 0;
}
/**
* <code>optional uint32 MissNum = 8;</code>
* @return this
*/
public ActivityCookieSettleReq clearMissNum() {
bitField0_ &= ~0x00000080;
missNum = 0;
return this;
}
/**
* <code>optional uint32 MissNum = 8;</code>
* @return the missNum
*/
public int getMissNum() {
return missNum;
}
/**
* <code>optional uint32 MissNum = 8;</code>
* @param value the missNum to set
* @return this
*/
public ActivityCookieSettleReq setMissNum(final int value) {
bitField0_ |= 0x00000080;
missNum = value;
return this;
}
/**
* <code>optional uint32 Good = 9;</code>
* @return whether the good field is set
*/
public boolean hasGood() {
return (bitField0_ & 0x00000100) != 0;
}
/**
* <code>optional uint32 Good = 9;</code>
* @return this
*/
public ActivityCookieSettleReq clearGood() {
bitField0_ &= ~0x00000100;
good = 0;
return this;
}
/**
* <code>optional uint32 Good = 9;</code>
* @return the good
*/
public int getGood() {
return good;
}
/**
* <code>optional uint32 Good = 9;</code>
* @param value the good to set
* @return this
*/
public ActivityCookieSettleReq setGood(final int value) {
bitField0_ |= 0x00000100;
good = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000080) != 0;
return (bitField0_ & 0x00000200) != 0;
}
/**
@@ -341,7 +425,7 @@ public final class ActivityCookieSettle {
* @return this
*/
public ActivityCookieSettleReq clearNextPackage() {
bitField0_ &= ~0x00000080;
bitField0_ &= ~0x00000200;
nextPackage.clear();
return this;
}
@@ -370,7 +454,7 @@ public final class ActivityCookieSettle {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000200;
return nextPackage;
}
@@ -380,7 +464,7 @@ public final class ActivityCookieSettle {
* @return this
*/
public ActivityCookieSettleReq addNextPackage(final byte value) {
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000200;
nextPackage.add(value);
return this;
}
@@ -391,7 +475,7 @@ public final class ActivityCookieSettle {
* @return this
*/
public ActivityCookieSettleReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000200;
nextPackage.addAll(values);
return this;
}
@@ -402,7 +486,7 @@ public final class ActivityCookieSettle {
* @return this
*/
public ActivityCookieSettleReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000200;
nextPackage.copyFrom(values);
return this;
}
@@ -419,6 +503,8 @@ public final class ActivityCookieSettle {
packageNum = other.packageNum;
perfectNum = other.perfectNum;
excellentNum = other.excellentNum;
missNum = other.missNum;
good = other.good;
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -451,6 +537,12 @@ public final class ActivityCookieSettle {
if (other.hasExcellentNum()) {
setExcellentNum(other.excellentNum);
}
if (other.hasMissNum()) {
setMissNum(other.missNum);
}
if (other.hasGood()) {
setGood(other.good);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -471,6 +563,8 @@ public final class ActivityCookieSettle {
packageNum = 0;
perfectNum = 0;
excellentNum = 0;
missNum = 0;
good = 0;
nextPackage.clear();
return this;
}
@@ -503,6 +597,8 @@ public final class ActivityCookieSettle {
&& (!hasPackageNum() || packageNum == other.packageNum)
&& (!hasPerfectNum() || perfectNum == other.perfectNum)
&& (!hasExcellentNum() || excellentNum == other.excellentNum)
&& (!hasMissNum() || missNum == other.missNum)
&& (!hasGood() || good == other.good)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -537,6 +633,14 @@ public final class ActivityCookieSettle {
output.writeUInt32NoTag(excellentNum);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(missNum);
}
if ((bitField0_ & 0x00000100) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(good);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -567,6 +671,12 @@ public final class ActivityCookieSettle {
size += 1 + ProtoSink.computeUInt32SizeNoTag(excellentNum);
}
if ((bitField0_ & 0x00000080) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(missNum);
}
if ((bitField0_ & 0x00000100) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(good);
}
if ((bitField0_ & 0x00000200) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -638,6 +748,24 @@ public final class ActivityCookieSettle {
excellentNum = input.readUInt32();
bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 64) {
break;
}
}
case 64: {
// missNum
missNum = input.readUInt32();
bitField0_ |= 0x00000080;
tag = input.readTag();
if (tag != 72) {
break;
}
}
case 72: {
// good
good = input.readUInt32();
bitField0_ |= 0x00000100;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -645,7 +773,7 @@ public final class ActivityCookieSettle {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000200;
tag = input.readTag();
if (tag != 0) {
break;
@@ -690,6 +818,12 @@ public final class ActivityCookieSettle {
output.writeUInt32(FieldNames.excellentNum, excellentNum);
}
if ((bitField0_ & 0x00000080) != 0) {
output.writeUInt32(FieldNames.missNum, missNum);
}
if ((bitField0_ & 0x00000100) != 0) {
output.writeUInt32(FieldNames.good, good);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -779,11 +913,33 @@ public final class ActivityCookieSettle {
}
break;
}
case -1560890166: {
if (input.isAtField(FieldNames.missNum)) {
if (!input.trySkipNullValue()) {
missNum = input.readUInt32();
bitField0_ |= 0x00000080;
}
} else {
input.skipUnknownField();
}
break;
}
case 2225373: {
if (input.isAtField(FieldNames.good)) {
if (!input.trySkipNullValue()) {
good = input.readUInt32();
bitField0_ |= 0x00000100;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000080;
bitField0_ |= 0x00000200;
}
} else {
input.skipUnknownField();
@@ -857,6 +1013,10 @@ public final class ActivityCookieSettle {
static final FieldName excellentNum = FieldName.forField("ExcellentNum");
static final FieldName missNum = FieldName.forField("MissNum");
static final FieldName good = FieldName.forField("Good");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
@@ -85,6 +85,11 @@ public final class ActivityDetail {
*/
private final Public.ActivityShop shop = Public.ActivityShop.newInstance();
/**
* <code>optional .ActivityBuildConvert BdConvert = 14;</code>
*/
private final Public.ActivityBuildConvert bdConvert = Public.ActivityBuildConvert.newInstance();
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -821,12 +826,69 @@ public final class ActivityDetail {
return this;
}
/**
* <code>optional .ActivityBuildConvert BdConvert = 14;</code>
* @return whether the bdConvert field is set
*/
public boolean hasBdConvert() {
return (bitField0_ & 0x00002000) != 0;
}
/**
* <code>optional .ActivityBuildConvert BdConvert = 14;</code>
* @return this
*/
public ActivityMsg clearBdConvert() {
bitField0_ &= ~0x00002000;
bdConvert.clear();
return this;
}
/**
* <code>optional .ActivityBuildConvert BdConvert = 14;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableBdConvert()} if you want to modify it.
*
* @return internal storage object for reading
*/
public Public.ActivityBuildConvert getBdConvert() {
return bdConvert;
}
/**
* <code>optional .ActivityBuildConvert BdConvert = 14;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public Public.ActivityBuildConvert getMutableBdConvert() {
bitField0_ |= 0x00002000;
return bdConvert;
}
/**
* <code>optional .ActivityBuildConvert BdConvert = 14;</code>
* @param value the bdConvert to set
* @return this
*/
public ActivityMsg setBdConvert(final Public.ActivityBuildConvert value) {
bitField0_ |= 0x00002000;
bdConvert.copyFrom(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00002000) != 0;
return (bitField0_ & 0x00004000) != 0;
}
/**
@@ -834,7 +896,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg clearNextPackage() {
bitField0_ &= ~0x00002000;
bitField0_ &= ~0x00004000;
nextPackage.clear();
return this;
}
@@ -863,7 +925,7 @@ public final class ActivityDetail {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00002000;
bitField0_ |= 0x00004000;
return nextPackage;
}
@@ -873,7 +935,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg addNextPackage(final byte value) {
bitField0_ |= 0x00002000;
bitField0_ |= 0x00004000;
nextPackage.add(value);
return this;
}
@@ -884,7 +946,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg addAllNextPackage(final byte... values) {
bitField0_ |= 0x00002000;
bitField0_ |= 0x00004000;
nextPackage.addAll(values);
return this;
}
@@ -895,7 +957,7 @@ public final class ActivityDetail {
* @return this
*/
public ActivityMsg setNextPackage(final byte... values) {
bitField0_ |= 0x00002000;
bitField0_ |= 0x00004000;
nextPackage.copyFrom(values);
return this;
}
@@ -918,6 +980,7 @@ public final class ActivityDetail {
avg.copyFrom(other.avg);
task.copyFrom(other.task);
shop.copyFrom(other.shop);
bdConvert.copyFrom(other.bdConvert);
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -968,6 +1031,9 @@ public final class ActivityDetail {
if (other.hasShop()) {
getMutableShop().mergeFrom(other.shop);
}
if (other.hasBdConvert()) {
getMutableBdConvert().mergeFrom(other.bdConvert);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -994,6 +1060,7 @@ public final class ActivityDetail {
avg.clear();
task.clear();
shop.clear();
bdConvert.clear();
nextPackage.clear();
return this;
}
@@ -1017,6 +1084,7 @@ public final class ActivityDetail {
avg.clearQuick();
task.clearQuick();
shop.clearQuick();
bdConvert.clearQuick();
nextPackage.clear();
return this;
}
@@ -1044,6 +1112,7 @@ public final class ActivityDetail {
&& (!hasAvg() || avg.equals(other.avg))
&& (!hasTask() || task.equals(other.task))
&& (!hasShop() || shop.equals(other.shop))
&& (!hasBdConvert() || bdConvert.equals(other.bdConvert))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -1102,6 +1171,10 @@ public final class ActivityDetail {
output.writeMessageNoTag(shop);
}
if ((bitField0_ & 0x00002000) != 0) {
output.writeRawByte((byte) 114);
output.writeMessageNoTag(bdConvert);
}
if ((bitField0_ & 0x00004000) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -1150,6 +1223,9 @@ public final class ActivityDetail {
size += 1 + ProtoSink.computeMessageSizeNoTag(shop);
}
if ((bitField0_ & 0x00002000) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(bdConvert);
}
if ((bitField0_ & 0x00004000) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -1275,6 +1351,15 @@ public final class ActivityDetail {
input.readMessage(shop);
bitField0_ |= 0x00001000;
tag = input.readTag();
if (tag != 114) {
break;
}
}
case 114: {
// bdConvert
input.readMessage(bdConvert);
bitField0_ |= 0x00002000;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -1282,7 +1367,7 @@ public final class ActivityDetail {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00002000;
bitField0_ |= 0x00004000;
tag = input.readTag();
if (tag != 0) {
break;
@@ -1345,6 +1430,9 @@ public final class ActivityDetail {
output.writeMessage(FieldNames.shop, shop);
}
if ((bitField0_ & 0x00002000) != 0) {
output.writeMessage(FieldNames.bdConvert, bdConvert);
}
if ((bitField0_ & 0x00004000) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -1500,11 +1588,22 @@ public final class ActivityDetail {
}
break;
}
case 1770707697: {
if (input.isAtField(FieldNames.bdConvert)) {
if (!input.trySkipNullValue()) {
input.readMessage(bdConvert);
bitField0_ |= 0x00002000;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00002000;
bitField0_ |= 0x00004000;
}
} else {
input.skipUnknownField();
@@ -1589,6 +1688,8 @@ public final class ActivityDetail {
static final FieldName shop = FieldName.forField("Shop");
static final FieldName bdConvert = FieldName.forField("BdConvert");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
@@ -0,0 +1,421 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.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;
public final class BuildConvertDetailListGet {
/**
* Protobuf type {@code BuildConvertDetailListGetResp}
*/
public static final class BuildConvertDetailListGetResp extends ProtoMessage<BuildConvertDetailListGetResp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
*/
private final RepeatedMessage<PublicStarTower.StarTowerBuildInfo> details = RepeatedMessage.newEmptyInstance(PublicStarTower.StarTowerBuildInfo.getFactory());
private BuildConvertDetailListGetResp() {
}
/**
* @return a new empty instance of {@code BuildConvertDetailListGetResp}
*/
public static BuildConvertDetailListGetResp newInstance() {
return new BuildConvertDetailListGetResp();
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public BuildConvertDetailListGetResp clearNextPackage() {
bitField0_ &= ~0x00000001;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000001;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public BuildConvertDetailListGetResp addNextPackage(final byte value) {
bitField0_ |= 0x00000001;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public BuildConvertDetailListGetResp addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public BuildConvertDetailListGetResp setNextPackage(final byte... values) {
bitField0_ |= 0x00000001;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
* @return whether the details field is set
*/
public boolean hasDetails() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
* @return this
*/
public BuildConvertDetailListGetResp clearDetails() {
bitField0_ &= ~0x00000002;
details.clear();
return this;
}
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableDetails()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<PublicStarTower.StarTowerBuildInfo> getDetails() {
return details;
}
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<PublicStarTower.StarTowerBuildInfo> getMutableDetails() {
bitField0_ |= 0x00000002;
return details;
}
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
* @param value the details to add
* @return this
*/
public BuildConvertDetailListGetResp addDetails(
final PublicStarTower.StarTowerBuildInfo value) {
bitField0_ |= 0x00000002;
details.add(value);
return this;
}
/**
* <code>repeated .StarTowerBuildInfo Details = 1;</code>
* @param values the details to add
* @return this
*/
public BuildConvertDetailListGetResp addAllDetails(
final PublicStarTower.StarTowerBuildInfo... values) {
bitField0_ |= 0x00000002;
details.addAll(values);
return this;
}
@Override
public BuildConvertDetailListGetResp copyFrom(final BuildConvertDetailListGetResp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
nextPackage.copyFrom(other.nextPackage);
details.copyFrom(other.details);
}
return this;
}
@Override
public BuildConvertDetailListGetResp mergeFrom(final BuildConvertDetailListGetResp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasDetails()) {
getMutableDetails().addAll(other.details);
}
return this;
}
@Override
public BuildConvertDetailListGetResp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
details.clear();
return this;
}
@Override
public BuildConvertDetailListGetResp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
details.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof BuildConvertDetailListGetResp)) {
return false;
}
BuildConvertDetailListGetResp other = (BuildConvertDetailListGetResp) o;
return bitField0_ == other.bitField0_
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasDetails() || details.equals(other.details));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < details.length(); i++) {
output.writeRawByte((byte) 10);
output.writeMessageNoTag(details.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * details.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(details);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public BuildConvertDetailListGetResp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 10) {
break;
}
}
case 10: {
// details
tag = input.readRepeatedMessage(details, 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.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedMessage(FieldNames.details, details);
}
output.endObject();
}
@Override
public BuildConvertDetailListGetResp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1072592350: {
if (input.isAtField(FieldNames.details)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(details);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public BuildConvertDetailListGetResp clone() {
return new BuildConvertDetailListGetResp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static BuildConvertDetailListGetResp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new BuildConvertDetailListGetResp(), data).checkInitialized();
}
public static BuildConvertDetailListGetResp parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new BuildConvertDetailListGetResp(), input).checkInitialized();
}
public static BuildConvertDetailListGetResp parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new BuildConvertDetailListGetResp(), input).checkInitialized();
}
/**
* @return factory for creating BuildConvertDetailListGetResp messages
*/
public static MessageFactory<BuildConvertDetailListGetResp> getFactory() {
return BuildConvertDetailListGetRespFactory.INSTANCE;
}
private enum BuildConvertDetailListGetRespFactory implements MessageFactory<BuildConvertDetailListGetResp> {
INSTANCE;
@Override
public BuildConvertDetailListGetResp create() {
return BuildConvertDetailListGetResp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName details = FieldName.forField("Details");
}
}
}
@@ -0,0 +1,644 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.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.RepeatedInt;
import us.hebi.quickbuf.RepeatedMessage;
public final class BuildConvertGroupRewardReceive {
/**
* Protobuf type {@code BuildConvertGroupRewardReceiveResp}
*/
public static final class BuildConvertGroupRewardReceiveResp extends ProtoMessage<BuildConvertGroupRewardReceiveResp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChangeInfo Change = 2;</code>
*/
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated uint32 Ids = 1;</code>
*/
private final RepeatedInt ids = RepeatedInt.newEmptyInstance();
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
*/
private final RepeatedMessage<Public.ItemTpl> awardItems = RepeatedMessage.newEmptyInstance(Public.ItemTpl.getFactory());
private BuildConvertGroupRewardReceiveResp() {
}
/**
* @return a new empty instance of {@code BuildConvertGroupRewardReceiveResp}
*/
public static BuildConvertGroupRewardReceiveResp newInstance() {
return new BuildConvertGroupRewardReceiveResp();
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
* @return whether the change field is set
*/
public boolean hasChange() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
* @return this
*/
public BuildConvertGroupRewardReceiveResp clearChange() {
bitField0_ &= ~0x00000001;
change.clear();
return this;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableChange()} if you want to modify it.
*
* @return internal storage object for reading
*/
public Public.ChangeInfo getChange() {
return change;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public Public.ChangeInfo getMutableChange() {
bitField0_ |= 0x00000001;
return change;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
* @param value the change to set
* @return this
*/
public BuildConvertGroupRewardReceiveResp setChange(final Public.ChangeInfo value) {
bitField0_ |= 0x00000001;
change.copyFrom(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public BuildConvertGroupRewardReceiveResp clearNextPackage() {
bitField0_ &= ~0x00000002;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000002;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public BuildConvertGroupRewardReceiveResp addNextPackage(final byte value) {
bitField0_ |= 0x00000002;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public BuildConvertGroupRewardReceiveResp addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public BuildConvertGroupRewardReceiveResp setNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated uint32 Ids = 1;</code>
* @return whether the ids field is set
*/
public boolean hasIds() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated uint32 Ids = 1;</code>
* @return this
*/
public BuildConvertGroupRewardReceiveResp clearIds() {
bitField0_ &= ~0x00000004;
ids.clear();
return this;
}
/**
* <code>repeated uint32 Ids = 1;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableIds()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getIds() {
return ids;
}
/**
* <code>repeated uint32 Ids = 1;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedInt getMutableIds() {
bitField0_ |= 0x00000004;
return ids;
}
/**
* <code>repeated uint32 Ids = 1;</code>
* @param value the ids to add
* @return this
*/
public BuildConvertGroupRewardReceiveResp addIds(final int value) {
bitField0_ |= 0x00000004;
ids.add(value);
return this;
}
/**
* <code>repeated uint32 Ids = 1;</code>
* @param values the ids to add
* @return this
*/
public BuildConvertGroupRewardReceiveResp addAllIds(final int... values) {
bitField0_ |= 0x00000004;
ids.addAll(values);
return this;
}
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
* @return whether the awardItems field is set
*/
public boolean hasAwardItems() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
* @return this
*/
public BuildConvertGroupRewardReceiveResp clearAwardItems() {
bitField0_ &= ~0x00000008;
awardItems.clear();
return this;
}
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableAwardItems()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<Public.ItemTpl> getAwardItems() {
return awardItems;
}
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<Public.ItemTpl> getMutableAwardItems() {
bitField0_ |= 0x00000008;
return awardItems;
}
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
* @param value the awardItems to add
* @return this
*/
public BuildConvertGroupRewardReceiveResp addAwardItems(final Public.ItemTpl value) {
bitField0_ |= 0x00000008;
awardItems.add(value);
return this;
}
/**
* <code>repeated .ItemTpl AwardItems = 3;</code>
* @param values the awardItems to add
* @return this
*/
public BuildConvertGroupRewardReceiveResp addAllAwardItems(final Public.ItemTpl... values) {
bitField0_ |= 0x00000008;
awardItems.addAll(values);
return this;
}
@Override
public BuildConvertGroupRewardReceiveResp copyFrom(
final BuildConvertGroupRewardReceiveResp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
change.copyFrom(other.change);
nextPackage.copyFrom(other.nextPackage);
ids.copyFrom(other.ids);
awardItems.copyFrom(other.awardItems);
}
return this;
}
@Override
public BuildConvertGroupRewardReceiveResp mergeFrom(
final BuildConvertGroupRewardReceiveResp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasChange()) {
getMutableChange().mergeFrom(other.change);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasIds()) {
getMutableIds().addAll(other.ids);
}
if (other.hasAwardItems()) {
getMutableAwardItems().addAll(other.awardItems);
}
return this;
}
@Override
public BuildConvertGroupRewardReceiveResp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
change.clear();
nextPackage.clear();
ids.clear();
awardItems.clear();
return this;
}
@Override
public BuildConvertGroupRewardReceiveResp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
change.clearQuick();
nextPackage.clear();
ids.clear();
awardItems.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof BuildConvertGroupRewardReceiveResp)) {
return false;
}
BuildConvertGroupRewardReceiveResp other = (BuildConvertGroupRewardReceiveResp) o;
return bitField0_ == other.bitField0_
&& (!hasChange() || change.equals(other.change))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasIds() || ids.equals(other.ids))
&& (!hasAwardItems() || awardItems.equals(other.awardItems));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(change);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < ids.length(); i++) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(ids.array()[i]);
}
}
if ((bitField0_ & 0x00000008) != 0) {
for (int i = 0; i < awardItems.length(); i++) {
output.writeRawByte((byte) 26);
output.writeMessageNoTag(awardItems.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * ids.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ids);
}
if ((bitField0_ & 0x00000008) != 0) {
size += (1 * awardItems.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(awardItems);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public BuildConvertGroupRewardReceiveResp mergeFrom(final ProtoSource input) throws
IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 18: {
// change
input.readMessage(change);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 10) {
break;
}
}
case 10: {
// ids [packed=true]
input.readPackedUInt32(ids, tag);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 26) {
break;
}
}
case 26: {
// awardItems
tag = input.readRepeatedMessage(awardItems, tag);
bitField0_ |= 0x00000008;
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 8: {
// ids [packed=false]
tag = input.readRepeatedUInt32(ids, tag);
bitField0_ |= 0x00000004;
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeMessage(FieldNames.change, change);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedUInt32(FieldNames.ids, ids);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRepeatedMessage(FieldNames.awardItems, awardItems);
}
output.endObject();
}
@Override
public BuildConvertGroupRewardReceiveResp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 2017198032: {
if (input.isAtField(FieldNames.change)) {
if (!input.trySkipNullValue()) {
input.readMessage(change);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 73368: {
if (input.isAtField(FieldNames.ids)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(ids);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -1943188605: {
if (input.isAtField(FieldNames.awardItems)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(awardItems);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public BuildConvertGroupRewardReceiveResp clone() {
return new BuildConvertGroupRewardReceiveResp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static BuildConvertGroupRewardReceiveResp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new BuildConvertGroupRewardReceiveResp(), data).checkInitialized();
}
public static BuildConvertGroupRewardReceiveResp parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new BuildConvertGroupRewardReceiveResp(), input).checkInitialized();
}
public static BuildConvertGroupRewardReceiveResp parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new BuildConvertGroupRewardReceiveResp(), input).checkInitialized();
}
/**
* @return factory for creating BuildConvertGroupRewardReceiveResp messages
*/
public static MessageFactory<BuildConvertGroupRewardReceiveResp> getFactory() {
return BuildConvertGroupRewardReceiveRespFactory.INSTANCE;
}
private enum BuildConvertGroupRewardReceiveRespFactory implements MessageFactory<BuildConvertGroupRewardReceiveResp> {
INSTANCE;
@Override
public BuildConvertGroupRewardReceiveResp create() {
return BuildConvertGroupRewardReceiveResp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName change = FieldName.forField("Change");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName ids = FieldName.forField("Ids");
static final FieldName awardItems = FieldName.forField("AwardItems");
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,966 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.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;
public final class DiscAllLimitBreak {
/**
* Protobuf type {@code DiscAllLimitBreakResp}
*/
public static final class DiscAllLimitBreakResp extends ProtoMessage<DiscAllLimitBreakResp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional .ChangeInfo Change = 2;</code>
*/
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
*/
private final RepeatedMessage<DiscLimitBreakChange> limitBreaks = RepeatedMessage.newEmptyInstance(DiscLimitBreakChange.getFactory());
private DiscAllLimitBreakResp() {
}
/**
* @return a new empty instance of {@code DiscAllLimitBreakResp}
*/
public static DiscAllLimitBreakResp newInstance() {
return new DiscAllLimitBreakResp();
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
* @return whether the change field is set
*/
public boolean hasChange() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
* @return this
*/
public DiscAllLimitBreakResp clearChange() {
bitField0_ &= ~0x00000001;
change.clear();
return this;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableChange()} if you want to modify it.
*
* @return internal storage object for reading
*/
public Public.ChangeInfo getChange() {
return change;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public Public.ChangeInfo getMutableChange() {
bitField0_ |= 0x00000001;
return change;
}
/**
* <code>optional .ChangeInfo Change = 2;</code>
* @param value the change to set
* @return this
*/
public DiscAllLimitBreakResp setChange(final Public.ChangeInfo value) {
bitField0_ |= 0x00000001;
change.copyFrom(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public DiscAllLimitBreakResp clearNextPackage() {
bitField0_ &= ~0x00000002;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000002;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public DiscAllLimitBreakResp addNextPackage(final byte value) {
bitField0_ |= 0x00000002;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public DiscAllLimitBreakResp addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public DiscAllLimitBreakResp setNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
* @return whether the limitBreaks field is set
*/
public boolean hasLimitBreaks() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
* @return this
*/
public DiscAllLimitBreakResp clearLimitBreaks() {
bitField0_ &= ~0x00000004;
limitBreaks.clear();
return this;
}
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableLimitBreaks()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedMessage<DiscLimitBreakChange> getLimitBreaks() {
return limitBreaks;
}
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedMessage<DiscLimitBreakChange> getMutableLimitBreaks() {
bitField0_ |= 0x00000004;
return limitBreaks;
}
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
* @param value the limitBreaks to add
* @return this
*/
public DiscAllLimitBreakResp addLimitBreaks(final DiscLimitBreakChange value) {
bitField0_ |= 0x00000004;
limitBreaks.add(value);
return this;
}
/**
* <code>repeated .DiscLimitBreakChange LimitBreaks = 1;</code>
* @param values the limitBreaks to add
* @return this
*/
public DiscAllLimitBreakResp addAllLimitBreaks(final DiscLimitBreakChange... values) {
bitField0_ |= 0x00000004;
limitBreaks.addAll(values);
return this;
}
@Override
public DiscAllLimitBreakResp copyFrom(final DiscAllLimitBreakResp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
change.copyFrom(other.change);
nextPackage.copyFrom(other.nextPackage);
limitBreaks.copyFrom(other.limitBreaks);
}
return this;
}
@Override
public DiscAllLimitBreakResp mergeFrom(final DiscAllLimitBreakResp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasChange()) {
getMutableChange().mergeFrom(other.change);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasLimitBreaks()) {
getMutableLimitBreaks().addAll(other.limitBreaks);
}
return this;
}
@Override
public DiscAllLimitBreakResp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
change.clear();
nextPackage.clear();
limitBreaks.clear();
return this;
}
@Override
public DiscAllLimitBreakResp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
change.clearQuick();
nextPackage.clear();
limitBreaks.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof DiscAllLimitBreakResp)) {
return false;
}
DiscAllLimitBreakResp other = (DiscAllLimitBreakResp) o;
return bitField0_ == other.bitField0_
&& (!hasChange() || change.equals(other.change))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasLimitBreaks() || limitBreaks.equals(other.limitBreaks));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 18);
output.writeMessageNoTag(change);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
for (int i = 0; i < limitBreaks.length(); i++) {
output.writeRawByte((byte) 10);
output.writeMessageNoTag(limitBreaks.get(i));
}
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
size += (1 * limitBreaks.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(limitBreaks);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public DiscAllLimitBreakResp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 18: {
// change
input.readMessage(change);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 10) {
break;
}
}
case 10: {
// limitBreaks
tag = input.readRepeatedMessage(limitBreaks, 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.writeMessage(FieldNames.change, change);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRepeatedMessage(FieldNames.limitBreaks, limitBreaks);
}
output.endObject();
}
@Override
public DiscAllLimitBreakResp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 2017198032: {
if (input.isAtField(FieldNames.change)) {
if (!input.trySkipNullValue()) {
input.readMessage(change);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1846825265: {
if (input.isAtField(FieldNames.limitBreaks)) {
if (!input.trySkipNullValue()) {
input.readRepeatedMessage(limitBreaks);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public DiscAllLimitBreakResp clone() {
return new DiscAllLimitBreakResp().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static DiscAllLimitBreakResp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new DiscAllLimitBreakResp(), data).checkInitialized();
}
public static DiscAllLimitBreakResp parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new DiscAllLimitBreakResp(), input).checkInitialized();
}
public static DiscAllLimitBreakResp parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new DiscAllLimitBreakResp(), input).checkInitialized();
}
/**
* @return factory for creating DiscAllLimitBreakResp messages
*/
public static MessageFactory<DiscAllLimitBreakResp> getFactory() {
return DiscAllLimitBreakRespFactory.INSTANCE;
}
private enum DiscAllLimitBreakRespFactory implements MessageFactory<DiscAllLimitBreakResp> {
INSTANCE;
@Override
public DiscAllLimitBreakResp create() {
return DiscAllLimitBreakResp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName change = FieldName.forField("Change");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName limitBreaks = FieldName.forField("LimitBreaks");
}
}
/**
* Protobuf type {@code DiscLimitBreakChange}
*/
public static final class DiscLimitBreakChange extends ProtoMessage<DiscLimitBreakChange> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 Id = 1;</code>
*/
private int id;
/**
* <code>optional uint32 Star = 2;</code>
*/
private int star;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
private DiscLimitBreakChange() {
}
/**
* @return a new empty instance of {@code DiscLimitBreakChange}
*/
public static DiscLimitBreakChange newInstance() {
return new DiscLimitBreakChange();
}
/**
* <code>optional uint32 Id = 1;</code>
* @return whether the id field is set
*/
public boolean hasId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 Id = 1;</code>
* @return this
*/
public DiscLimitBreakChange clearId() {
bitField0_ &= ~0x00000001;
id = 0;
return this;
}
/**
* <code>optional uint32 Id = 1;</code>
* @return the id
*/
public int getId() {
return id;
}
/**
* <code>optional uint32 Id = 1;</code>
* @param value the id to set
* @return this
*/
public DiscLimitBreakChange setId(final int value) {
bitField0_ |= 0x00000001;
id = value;
return this;
}
/**
* <code>optional uint32 Star = 2;</code>
* @return whether the star field is set
*/
public boolean hasStar() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 Star = 2;</code>
* @return this
*/
public DiscLimitBreakChange clearStar() {
bitField0_ &= ~0x00000002;
star = 0;
return this;
}
/**
* <code>optional uint32 Star = 2;</code>
* @return the star
*/
public int getStar() {
return star;
}
/**
* <code>optional uint32 Star = 2;</code>
* @param value the star to set
* @return this
*/
public DiscLimitBreakChange setStar(final int value) {
bitField0_ |= 0x00000002;
star = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public DiscLimitBreakChange clearNextPackage() {
bitField0_ &= ~0x00000004;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000004;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public DiscLimitBreakChange addNextPackage(final byte value) {
bitField0_ |= 0x00000004;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public DiscLimitBreakChange addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public DiscLimitBreakChange setNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
nextPackage.copyFrom(values);
return this;
}
@Override
public DiscLimitBreakChange copyFrom(final DiscLimitBreakChange other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
id = other.id;
star = other.star;
nextPackage.copyFrom(other.nextPackage);
}
return this;
}
@Override
public DiscLimitBreakChange mergeFrom(final DiscLimitBreakChange other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasId()) {
setId(other.id);
}
if (other.hasStar()) {
setStar(other.star);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
return this;
}
@Override
public DiscLimitBreakChange clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
id = 0;
star = 0;
nextPackage.clear();
return this;
}
@Override
public DiscLimitBreakChange clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof DiscLimitBreakChange)) {
return false;
}
DiscLimitBreakChange other = (DiscLimitBreakChange) o;
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasStar() || star == other.star)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@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(star);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(star);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public DiscLimitBreakChange 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: {
// star
star = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
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.star, star);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
}
@Override
public DiscLimitBreakChange mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 2363: {
if (input.isAtField(FieldNames.id)) {
if (!input.trySkipNullValue()) {
id = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 2587250: {
if (input.isAtField(FieldNames.star)) {
if (!input.trySkipNullValue()) {
star = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public DiscLimitBreakChange clone() {
return new DiscLimitBreakChange().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static DiscLimitBreakChange parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new DiscLimitBreakChange(), data).checkInitialized();
}
public static DiscLimitBreakChange parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new DiscLimitBreakChange(), input).checkInitialized();
}
public static DiscLimitBreakChange parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new DiscLimitBreakChange(), input).checkInitialized();
}
/**
* @return factory for creating DiscLimitBreakChange messages
*/
public static MessageFactory<DiscLimitBreakChange> getFactory() {
return DiscLimitBreakChangeFactory.INSTANCE;
}
private enum DiscLimitBreakChangeFactory implements MessageFactory<DiscLimitBreakChange> {
INSTANCE;
@Override
public DiscLimitBreakChange create() {
return DiscLimitBreakChange.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName id = FieldName.forField("Id");
static final FieldName star = FieldName.forField("Star");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
}
File diff suppressed because it is too large Load Diff
@@ -417,6 +417,11 @@ public final class PlayerNameEdit {
public static final class PlayerNameEditResp extends ProtoMessage<PlayerNameEditResp> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional int64 ResetTime = 15;</code>
*/
private long resetTime;
/**
* <code>optional uint32 Hashtag = 1;</code>
*/
@@ -437,12 +442,49 @@ public final class PlayerNameEdit {
return new PlayerNameEditResp();
}
/**
* <code>optional int64 ResetTime = 15;</code>
* @return whether the resetTime field is set
*/
public boolean hasResetTime() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional int64 ResetTime = 15;</code>
* @return this
*/
public PlayerNameEditResp clearResetTime() {
bitField0_ &= ~0x00000001;
resetTime = 0L;
return this;
}
/**
* <code>optional int64 ResetTime = 15;</code>
* @return the resetTime
*/
public long getResetTime() {
return resetTime;
}
/**
* <code>optional int64 ResetTime = 15;</code>
* @param value the resetTime to set
* @return this
*/
public PlayerNameEditResp setResetTime(final long value) {
bitField0_ |= 0x00000001;
resetTime = value;
return this;
}
/**
* <code>optional uint32 Hashtag = 1;</code>
* @return whether the hashtag field is set
*/
public boolean hasHashtag() {
return (bitField0_ & 0x00000001) != 0;
return (bitField0_ & 0x00000002) != 0;
}
/**
@@ -450,7 +492,7 @@ public final class PlayerNameEdit {
* @return this
*/
public PlayerNameEditResp clearHashtag() {
bitField0_ &= ~0x00000001;
bitField0_ &= ~0x00000002;
hashtag = 0;
return this;
}
@@ -469,7 +511,7 @@ public final class PlayerNameEdit {
* @return this
*/
public PlayerNameEditResp setHashtag(final int value) {
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
hashtag = value;
return this;
}
@@ -479,7 +521,7 @@ public final class PlayerNameEdit {
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000002) != 0;
return (bitField0_ & 0x00000004) != 0;
}
/**
@@ -487,7 +529,7 @@ public final class PlayerNameEdit {
* @return this
*/
public PlayerNameEditResp clearNextPackage() {
bitField0_ &= ~0x00000002;
bitField0_ &= ~0x00000004;
nextPackage.clear();
return this;
}
@@ -516,7 +558,7 @@ public final class PlayerNameEdit {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
return nextPackage;
}
@@ -526,7 +568,7 @@ public final class PlayerNameEdit {
* @return this
*/
public PlayerNameEditResp addNextPackage(final byte value) {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
nextPackage.add(value);
return this;
}
@@ -537,7 +579,7 @@ public final class PlayerNameEdit {
* @return this
*/
public PlayerNameEditResp addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
nextPackage.addAll(values);
return this;
}
@@ -548,7 +590,7 @@ public final class PlayerNameEdit {
* @return this
*/
public PlayerNameEditResp setNextPackage(final byte... values) {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
nextPackage.copyFrom(values);
return this;
}
@@ -558,6 +600,7 @@ public final class PlayerNameEdit {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
resetTime = other.resetTime;
hashtag = other.hashtag;
nextPackage.copyFrom(other.nextPackage);
}
@@ -570,6 +613,9 @@ public final class PlayerNameEdit {
return this;
}
cachedSize = -1;
if (other.hasResetTime()) {
setResetTime(other.resetTime);
}
if (other.hasHashtag()) {
setHashtag(other.hashtag);
}
@@ -586,6 +632,7 @@ public final class PlayerNameEdit {
}
cachedSize = -1;
bitField0_ = 0;
resetTime = 0L;
hashtag = 0;
nextPackage.clear();
return this;
@@ -612,6 +659,7 @@ public final class PlayerNameEdit {
}
PlayerNameEditResp other = (PlayerNameEditResp) o;
return bitField0_ == other.bitField0_
&& (!hasResetTime() || resetTime == other.resetTime)
&& (!hasHashtag() || hashtag == other.hashtag)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -619,10 +667,14 @@ public final class PlayerNameEdit {
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 120);
output.writeInt64NoTag(resetTime);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(hashtag);
}
if ((bitField0_ & 0x00000002) != 0) {
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -632,9 +684,12 @@ public final class PlayerNameEdit {
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(hashtag);
size += 1 + ProtoSink.computeInt64SizeNoTag(resetTime);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(hashtag);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -647,10 +702,19 @@ public final class PlayerNameEdit {
int tag = input.readTag();
while (true) {
switch (tag) {
case 120: {
// resetTime
resetTime = input.readInt64();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 8) {
break;
}
}
case 8: {
// hashtag
hashtag = input.readUInt32();
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 16378) {
break;
@@ -659,7 +723,7 @@ public final class PlayerNameEdit {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 0) {
break;
@@ -683,9 +747,12 @@ public final class PlayerNameEdit {
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.hashtag, hashtag);
output.writeInt64(FieldNames.resetTime, resetTime);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.hashtag, hashtag);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -698,11 +765,22 @@ public final class PlayerNameEdit {
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -267205476: {
if (input.isAtField(FieldNames.resetTime)) {
if (!input.trySkipNullValue()) {
resetTime = input.readInt64();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1932766292: {
if (input.isAtField(FieldNames.hashtag)) {
if (!input.trySkipNullValue()) {
hashtag = input.readUInt32();
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
@@ -713,7 +791,7 @@ public final class PlayerNameEdit {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
@@ -773,6 +851,8 @@ public final class PlayerNameEdit {
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName resetTime = FieldName.forField("ResetTime");
static final FieldName hashtag = FieldName.forField("Hashtag");
static final FieldName nextPackage = FieldName.forField("NextPackage");
File diff suppressed because it is too large Load Diff
@@ -25,6 +25,11 @@ public final class VampireSurvivorAreaChange {
*/
private int time;
/**
* <code>optional .VampireClientData ClientData = 6;</code>
*/
private final Public.VampireClientData clientData = Public.VampireClientData.newInstance();
/**
* <code>optional .Events Events = 7;</code>
*/
@@ -87,12 +92,69 @@ public final class VampireSurvivorAreaChange {
return this;
}
/**
* <code>optional .VampireClientData ClientData = 6;</code>
* @return whether the clientData field is set
*/
public boolean hasClientData() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional .VampireClientData ClientData = 6;</code>
* @return this
*/
public VampireSurvivorAreaChangeReq clearClientData() {
bitField0_ &= ~0x00000002;
clientData.clear();
return this;
}
/**
* <code>optional .VampireClientData ClientData = 6;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableClientData()} if you want to modify it.
*
* @return internal storage object for reading
*/
public Public.VampireClientData getClientData() {
return clientData;
}
/**
* <code>optional .VampireClientData ClientData = 6;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public Public.VampireClientData getMutableClientData() {
bitField0_ |= 0x00000002;
return clientData;
}
/**
* <code>optional .VampireClientData ClientData = 6;</code>
* @param value the clientData to set
* @return this
*/
public VampireSurvivorAreaChangeReq setClientData(final Public.VampireClientData value) {
bitField0_ |= 0x00000002;
clientData.copyFrom(value);
return this;
}
/**
* <code>optional .Events Events = 7;</code>
* @return whether the events field is set
*/
public boolean hasEvents() {
return (bitField0_ & 0x00000002) != 0;
return (bitField0_ & 0x00000004) != 0;
}
/**
@@ -100,7 +162,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq clearEvents() {
bitField0_ &= ~0x00000002;
bitField0_ &= ~0x00000004;
events.clear();
return this;
}
@@ -129,7 +191,7 @@ public final class VampireSurvivorAreaChange {
* @return internal storage object for modifications
*/
public Public.Events getMutableEvents() {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
return events;
}
@@ -139,7 +201,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq setEvents(final Public.Events value) {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
events.copyFrom(value);
return this;
}
@@ -149,7 +211,7 @@ public final class VampireSurvivorAreaChange {
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000004) != 0;
return (bitField0_ & 0x00000008) != 0;
}
/**
@@ -157,7 +219,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq clearNextPackage() {
bitField0_ &= ~0x00000004;
bitField0_ &= ~0x00000008;
nextPackage.clear();
return this;
}
@@ -186,7 +248,7 @@ public final class VampireSurvivorAreaChange {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
return nextPackage;
}
@@ -196,7 +258,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq addNextPackage(final byte value) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.add(value);
return this;
}
@@ -207,7 +269,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.addAll(values);
return this;
}
@@ -218,7 +280,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.copyFrom(values);
return this;
}
@@ -228,7 +290,7 @@ public final class VampireSurvivorAreaChange {
* @return whether the killCount field is set
*/
public boolean hasKillCount() {
return (bitField0_ & 0x00000008) != 0;
return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -236,7 +298,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq clearKillCount() {
bitField0_ &= ~0x00000008;
bitField0_ &= ~0x00000010;
killCount.clear();
return this;
}
@@ -265,7 +327,7 @@ public final class VampireSurvivorAreaChange {
* @return internal storage object for modifications
*/
public RepeatedInt getMutableKillCount() {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
return killCount;
}
@@ -275,7 +337,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq addKillCount(final int value) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
killCount.add(value);
return this;
}
@@ -286,7 +348,7 @@ public final class VampireSurvivorAreaChange {
* @return this
*/
public VampireSurvivorAreaChangeReq addAllKillCount(final int... values) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
killCount.addAll(values);
return this;
}
@@ -297,6 +359,7 @@ public final class VampireSurvivorAreaChange {
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
time = other.time;
clientData.copyFrom(other.clientData);
events.copyFrom(other.events);
nextPackage.copyFrom(other.nextPackage);
killCount.copyFrom(other.killCount);
@@ -313,6 +376,9 @@ public final class VampireSurvivorAreaChange {
if (other.hasTime()) {
setTime(other.time);
}
if (other.hasClientData()) {
getMutableClientData().mergeFrom(other.clientData);
}
if (other.hasEvents()) {
getMutableEvents().mergeFrom(other.events);
}
@@ -333,6 +399,7 @@ public final class VampireSurvivorAreaChange {
cachedSize = -1;
bitField0_ = 0;
time = 0;
clientData.clear();
events.clear();
nextPackage.clear();
killCount.clear();
@@ -346,6 +413,7 @@ public final class VampireSurvivorAreaChange {
}
cachedSize = -1;
bitField0_ = 0;
clientData.clearQuick();
events.clearQuick();
nextPackage.clear();
killCount.clear();
@@ -363,6 +431,7 @@ public final class VampireSurvivorAreaChange {
VampireSurvivorAreaChangeReq other = (VampireSurvivorAreaChangeReq) o;
return bitField0_ == other.bitField0_
&& (!hasTime() || time == other.time)
&& (!hasClientData() || clientData.equals(other.clientData))
&& (!hasEvents() || events.equals(other.events))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasKillCount() || killCount.equals(other.killCount));
@@ -375,14 +444,18 @@ public final class VampireSurvivorAreaChange {
output.writeUInt32NoTag(time);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 50);
output.writeMessageNoTag(clientData);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 58);
output.writeMessageNoTag(events);
}
if ((bitField0_ & 0x00000004) != 0) {
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
if ((bitField0_ & 0x00000010) != 0) {
for (int i = 0; i < killCount.length(); i++) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(killCount.array()[i]);
@@ -397,12 +470,15 @@ public final class VampireSurvivorAreaChange {
size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(events);
size += 1 + ProtoSink.computeMessageSizeNoTag(clientData);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
size += 1 + ProtoSink.computeMessageSizeNoTag(events);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
size += (1 * killCount.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(killCount);
}
return size;
@@ -420,6 +496,15 @@ public final class VampireSurvivorAreaChange {
time = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 50) {
break;
}
}
case 50: {
// clientData
input.readMessage(clientData);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 58) {
break;
}
@@ -427,7 +512,7 @@ public final class VampireSurvivorAreaChange {
case 58: {
// events
input.readMessage(events);
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 16378) {
break;
@@ -436,7 +521,7 @@ public final class VampireSurvivorAreaChange {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 10) {
break;
@@ -445,7 +530,7 @@ public final class VampireSurvivorAreaChange {
case 10: {
// killCount [packed=true]
input.readPackedUInt32(killCount, tag);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 0) {
break;
@@ -464,7 +549,7 @@ public final class VampireSurvivorAreaChange {
case 8: {
// killCount [packed=false]
tag = input.readRepeatedUInt32(killCount, tag);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
break;
}
}
@@ -478,12 +563,15 @@ public final class VampireSurvivorAreaChange {
output.writeUInt32(FieldNames.time, time);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.events, events);
output.writeMessage(FieldNames.clientData, clientData);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
output.writeMessage(FieldNames.events, events);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRepeatedUInt32(FieldNames.killCount, killCount);
}
output.endObject();
@@ -507,11 +595,22 @@ public final class VampireSurvivorAreaChange {
}
break;
}
case -1199548875: {
if (input.isAtField(FieldNames.clientData)) {
if (!input.trySkipNullValue()) {
input.readMessage(clientData);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case 2087505209: {
if (input.isAtField(FieldNames.events)) {
if (!input.trySkipNullValue()) {
input.readMessage(events);
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
@@ -522,7 +621,7 @@ public final class VampireSurvivorAreaChange {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -533,7 +632,7 @@ public final class VampireSurvivorAreaChange {
if (input.isAtField(FieldNames.killCount)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(killCount);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -597,6 +696,8 @@ public final class VampireSurvivorAreaChange {
static class FieldNames {
static final FieldName time = FieldName.forField("Time");
static final FieldName clientData = FieldName.forField("ClientData");
static final FieldName events = FieldName.forField("Events");
static final FieldName nextPackage = FieldName.forField("NextPackage");
File diff suppressed because it is too large Load Diff