mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
2626 lines
73 KiB
Java
2626 lines
73 KiB
Java
// 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 VampireSurvivorSettle {
|
|
/**
|
|
* Protobuf type {@code VampireSurvivorSettleReq}
|
|
*/
|
|
public static final class VampireSurvivorSettleReq extends ProtoMessage<VampireSurvivorSettleReq> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 2;</code>
|
|
*/
|
|
private int time;
|
|
|
|
/**
|
|
* <code>optional bool Defeat = 3;</code>
|
|
*/
|
|
private boolean defeat;
|
|
|
|
/**
|
|
* <code>optional .Events Events = 7;</code>
|
|
*/
|
|
private final Public.Events events = Public.Events.newInstance();
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
*/
|
|
private final RepeatedInt killCount = RepeatedInt.newEmptyInstance();
|
|
|
|
private VampireSurvivorSettleReq() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code VampireSurvivorSettleReq}
|
|
*/
|
|
public static VampireSurvivorSettleReq newInstance() {
|
|
return new VampireSurvivorSettleReq();
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 2;</code>
|
|
* @return whether the time field is set
|
|
*/
|
|
public boolean hasTime() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 2;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq clearTime() {
|
|
bitField0_ &= ~0x00000001;
|
|
time = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 2;</code>
|
|
* @return the time
|
|
*/
|
|
public int getTime() {
|
|
return time;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 2;</code>
|
|
* @param value the time to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq setTime(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
time = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Defeat = 3;</code>
|
|
* @return whether the defeat field is set
|
|
*/
|
|
public boolean hasDefeat() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Defeat = 3;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq clearDefeat() {
|
|
bitField0_ &= ~0x00000002;
|
|
defeat = false;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Defeat = 3;</code>
|
|
* @return the defeat
|
|
*/
|
|
public boolean getDefeat() {
|
|
return defeat;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Defeat = 3;</code>
|
|
* @param value the defeat to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq setDefeat(final boolean value) {
|
|
bitField0_ |= 0x00000002;
|
|
defeat = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .Events Events = 7;</code>
|
|
* @return whether the events field is set
|
|
*/
|
|
public boolean hasEvents() {
|
|
return (bitField0_ & 0x00000004) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .Events Events = 7;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq clearEvents() {
|
|
bitField0_ &= ~0x00000004;
|
|
events.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .Events Events = 7;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableEvents()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public Public.Events getEvents() {
|
|
return events;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .Events Events = 7;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public Public.Events getMutableEvents() {
|
|
bitField0_ |= 0x00000004;
|
|
return events;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .Events Events = 7;</code>
|
|
* @param value the events to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq setEvents(final Public.Events value) {
|
|
bitField0_ |= 0x00000004;
|
|
events.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @return whether the nextPackage field is set
|
|
*/
|
|
public boolean hasNextPackage() {
|
|
return (bitField0_ & 0x00000008) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq clearNextPackage() {
|
|
bitField0_ &= ~0x00000008;
|
|
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_ |= 0x00000008;
|
|
return nextPackage;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param value the nextPackage to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq addNextPackage(final byte value) {
|
|
bitField0_ |= 0x00000008;
|
|
nextPackage.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param values the nextPackage to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq addAllNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000008;
|
|
nextPackage.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param values the nextPackage to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000008;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @return whether the killCount field is set
|
|
*/
|
|
public boolean hasKillCount() {
|
|
return (bitField0_ & 0x00000010) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq clearKillCount() {
|
|
bitField0_ &= ~0x00000010;
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 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 #getMutableKillCount()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedInt getKillCount() {
|
|
return killCount;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 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 getMutableKillCount() {
|
|
bitField0_ |= 0x00000010;
|
|
return killCount;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @param value the killCount to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq addKillCount(final int value) {
|
|
bitField0_ |= 0x00000010;
|
|
killCount.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @param values the killCount to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleReq addAllKillCount(final int... values) {
|
|
bitField0_ |= 0x00000010;
|
|
killCount.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq copyFrom(final VampireSurvivorSettleReq other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
time = other.time;
|
|
defeat = other.defeat;
|
|
events.copyFrom(other.events);
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
killCount.copyFrom(other.killCount);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq mergeFrom(final VampireSurvivorSettleReq other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasTime()) {
|
|
setTime(other.time);
|
|
}
|
|
if (other.hasDefeat()) {
|
|
setDefeat(other.defeat);
|
|
}
|
|
if (other.hasEvents()) {
|
|
getMutableEvents().mergeFrom(other.events);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
if (other.hasKillCount()) {
|
|
getMutableKillCount().addAll(other.killCount);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
time = 0;
|
|
defeat = false;
|
|
events.clear();
|
|
nextPackage.clear();
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
events.clearQuick();
|
|
nextPackage.clear();
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof VampireSurvivorSettleReq)) {
|
|
return false;
|
|
}
|
|
VampireSurvivorSettleReq other = (VampireSurvivorSettleReq) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasTime() || time == other.time)
|
|
&& (!hasDefeat() || defeat == other.defeat)
|
|
&& (!hasEvents() || events.equals(other.events))
|
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
|
&& (!hasKillCount() || killCount.equals(other.killCount));
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final ProtoSink output) throws IOException {
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeRawByte((byte) 16);
|
|
output.writeUInt32NoTag(time);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 24);
|
|
output.writeBoolNoTag(defeat);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRawByte((byte) 58);
|
|
output.writeMessageNoTag(events);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeRawLittleEndian16((short) 32762);
|
|
output.writeBytesNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
for (int i = 0; i < killCount.length(); i++) {
|
|
output.writeRawByte((byte) 8);
|
|
output.writeUInt32NoTag(killCount.array()[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 2;
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public VampireSurvivorSettleReq mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 16: {
|
|
// time
|
|
time = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 24) {
|
|
break;
|
|
}
|
|
}
|
|
case 24: {
|
|
// defeat
|
|
defeat = input.readBool();
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 58) {
|
|
break;
|
|
}
|
|
}
|
|
case 58: {
|
|
// events
|
|
input.readMessage(events);
|
|
bitField0_ |= 0x00000004;
|
|
tag = input.readTag();
|
|
if (tag != 16378) {
|
|
break;
|
|
}
|
|
}
|
|
case 16378: {
|
|
// nextPackage
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000008;
|
|
tag = input.readTag();
|
|
if (tag != 10) {
|
|
break;
|
|
}
|
|
}
|
|
case 10: {
|
|
// killCount [packed=true]
|
|
input.readPackedUInt32(killCount, 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 8: {
|
|
// killCount [packed=false]
|
|
tag = input.readRepeatedUInt32(killCount, tag);
|
|
bitField0_ |= 0x00000010;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final JsonSink output) throws IOException {
|
|
output.beginObject();
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeUInt32(FieldNames.time, time);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeBool(FieldNames.defeat, defeat);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
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();
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case 2606829: {
|
|
if (input.isAtField(FieldNames.time)) {
|
|
if (!input.trySkipNullValue()) {
|
|
time = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2043196755: {
|
|
if (input.isAtField(FieldNames.defeat)) {
|
|
if (!input.trySkipNullValue()) {
|
|
defeat = input.readBool();
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2087505209: {
|
|
if (input.isAtField(FieldNames.events)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(events);
|
|
bitField0_ |= 0x00000004;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -2082324045: {
|
|
if (input.isAtField(FieldNames.nextPackage)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000008;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 414756913: {
|
|
if (input.isAtField(FieldNames.killCount)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedUInt32(killCount);
|
|
bitField0_ |= 0x00000010;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq clone() {
|
|
return new VampireSurvivorSettleReq().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static VampireSurvivorSettleReq parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorSettleReq(), data).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorSettleReq parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorSettleReq(), input).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorSettleReq parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorSettleReq(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating VampireSurvivorSettleReq messages
|
|
*/
|
|
public static MessageFactory<VampireSurvivorSettleReq> getFactory() {
|
|
return VampireSurvivorSettleReqFactory.INSTANCE;
|
|
}
|
|
|
|
private enum VampireSurvivorSettleReqFactory implements MessageFactory<VampireSurvivorSettleReq> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public VampireSurvivorSettleReq create() {
|
|
return VampireSurvivorSettleReq.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName time = FieldName.forField("Time");
|
|
|
|
static final FieldName defeat = FieldName.forField("Defeat");
|
|
|
|
static final FieldName events = FieldName.forField("Events");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
|
|
static final FieldName killCount = FieldName.forField("KillCount");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Protobuf type {@code VampireSurvivorSettleResp}
|
|
*/
|
|
public static final class VampireSurvivorSettleResp extends ProtoMessage<VampireSurvivorSettleResp> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.VictoryData Victory = 1;</code>
|
|
*/
|
|
private final VictoryData victory = VictoryData.newInstance();
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.DefeatData Defeat = 2;</code>
|
|
*/
|
|
private final DefeatData defeat = DefeatData.newInstance();
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
private VampireSurvivorSettleResp() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code VampireSurvivorSettleResp}
|
|
*/
|
|
public static VampireSurvivorSettleResp newInstance() {
|
|
return new VampireSurvivorSettleResp();
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.VictoryData Victory = 1;</code>
|
|
* @return whether the victory field is set
|
|
*/
|
|
public boolean hasVictory() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.VictoryData Victory = 1;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleResp clearVictory() {
|
|
bitField0_ &= ~0x00000001;
|
|
victory.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.VictoryData Victory = 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 #getMutableVictory()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public VictoryData getVictory() {
|
|
return victory;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.VictoryData Victory = 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 VictoryData getMutableVictory() {
|
|
bitField0_ |= 0x00000001;
|
|
return victory;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.VictoryData Victory = 1;</code>
|
|
* @param value the victory to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleResp setVictory(final VictoryData value) {
|
|
bitField0_ |= 0x00000001;
|
|
victory.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.DefeatData Defeat = 2;</code>
|
|
* @return whether the defeat field is set
|
|
*/
|
|
public boolean hasDefeat() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.DefeatData Defeat = 2;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleResp clearDefeat() {
|
|
bitField0_ &= ~0x00000002;
|
|
defeat.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.DefeatData Defeat = 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 #getMutableDefeat()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public DefeatData getDefeat() {
|
|
return defeat;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.DefeatData Defeat = 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 DefeatData getMutableDefeat() {
|
|
bitField0_ |= 0x00000002;
|
|
return defeat;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorSettleResp.DefeatData Defeat = 2;</code>
|
|
* @param value the defeat to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorSettleResp setDefeat(final DefeatData value) {
|
|
bitField0_ |= 0x00000002;
|
|
defeat.copyFrom(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 VampireSurvivorSettleResp 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 VampireSurvivorSettleResp 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 VampireSurvivorSettleResp 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 VampireSurvivorSettleResp setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000004;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleResp copyFrom(final VampireSurvivorSettleResp other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
victory.copyFrom(other.victory);
|
|
defeat.copyFrom(other.defeat);
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleResp mergeFrom(final VampireSurvivorSettleResp other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasVictory()) {
|
|
getMutableVictory().mergeFrom(other.victory);
|
|
}
|
|
if (other.hasDefeat()) {
|
|
getMutableDefeat().mergeFrom(other.defeat);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleResp clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
victory.clear();
|
|
defeat.clear();
|
|
nextPackage.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleResp clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
victory.clearQuick();
|
|
defeat.clearQuick();
|
|
nextPackage.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof VampireSurvivorSettleResp)) {
|
|
return false;
|
|
}
|
|
VampireSurvivorSettleResp other = (VampireSurvivorSettleResp) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasVictory() || victory.equals(other.victory))
|
|
&& (!hasDefeat() || defeat.equals(other.defeat))
|
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final ProtoSink output) throws IOException {
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeRawByte((byte) 10);
|
|
output.writeMessageNoTag(victory);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 18);
|
|
output.writeMessageNoTag(defeat);
|
|
}
|
|
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.computeMessageSizeNoTag(victory);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeMessageSizeNoTag(defeat);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public VampireSurvivorSettleResp mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 10: {
|
|
// victory
|
|
input.readMessage(victory);
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 18) {
|
|
break;
|
|
}
|
|
}
|
|
case 18: {
|
|
// defeat
|
|
input.readMessage(defeat);
|
|
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.writeMessage(FieldNames.victory, victory);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeMessage(FieldNames.defeat, defeat);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorSettleResp mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case 2116960754: {
|
|
if (input.isAtField(FieldNames.victory)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(victory);
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2043196755: {
|
|
if (input.isAtField(FieldNames.defeat)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(defeat);
|
|
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 VampireSurvivorSettleResp clone() {
|
|
return new VampireSurvivorSettleResp().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static VampireSurvivorSettleResp parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorSettleResp(), data).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorSettleResp parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorSettleResp(), input).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorSettleResp parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorSettleResp(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating VampireSurvivorSettleResp messages
|
|
*/
|
|
public static MessageFactory<VampireSurvivorSettleResp> getFactory() {
|
|
return VampireSurvivorSettleRespFactory.INSTANCE;
|
|
}
|
|
|
|
/**
|
|
* Protobuf type {@code VictoryData}
|
|
*/
|
|
public static final class VictoryData extends ProtoMessage<VictoryData> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 2;</code>
|
|
*/
|
|
private int finalScore;
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 3;</code>
|
|
*/
|
|
private int seasonId;
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 1;</code>
|
|
*/
|
|
private final RepeatedMessage<VampireSurvivorAreaInfo> infos = RepeatedMessage.newEmptyInstance(VampireSurvivorAreaInfo.getFactory());
|
|
|
|
private VictoryData() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code VictoryData}
|
|
*/
|
|
public static VictoryData newInstance() {
|
|
return new VictoryData();
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 2;</code>
|
|
* @return whether the finalScore field is set
|
|
*/
|
|
public boolean hasFinalScore() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 2;</code>
|
|
* @return this
|
|
*/
|
|
public VictoryData clearFinalScore() {
|
|
bitField0_ &= ~0x00000001;
|
|
finalScore = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 2;</code>
|
|
* @return the finalScore
|
|
*/
|
|
public int getFinalScore() {
|
|
return finalScore;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 2;</code>
|
|
* @param value the finalScore to set
|
|
* @return this
|
|
*/
|
|
public VictoryData setFinalScore(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
finalScore = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 3;</code>
|
|
* @return whether the seasonId field is set
|
|
*/
|
|
public boolean hasSeasonId() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 3;</code>
|
|
* @return this
|
|
*/
|
|
public VictoryData clearSeasonId() {
|
|
bitField0_ &= ~0x00000002;
|
|
seasonId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 3;</code>
|
|
* @return the seasonId
|
|
*/
|
|
public int getSeasonId() {
|
|
return seasonId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 3;</code>
|
|
* @param value the seasonId to set
|
|
* @return this
|
|
*/
|
|
public VictoryData setSeasonId(final int value) {
|
|
bitField0_ |= 0x00000002;
|
|
seasonId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 1;</code>
|
|
* @return whether the infos field is set
|
|
*/
|
|
public boolean hasInfos() {
|
|
return (bitField0_ & 0x00000004) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 1;</code>
|
|
* @return this
|
|
*/
|
|
public VictoryData clearInfos() {
|
|
bitField0_ &= ~0x00000004;
|
|
infos.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 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 #getMutableInfos()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedMessage<VampireSurvivorAreaInfo> getInfos() {
|
|
return infos;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 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<VampireSurvivorAreaInfo> getMutableInfos() {
|
|
bitField0_ |= 0x00000004;
|
|
return infos;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 1;</code>
|
|
* @param value the infos to add
|
|
* @return this
|
|
*/
|
|
public VictoryData addInfos(final VampireSurvivorAreaInfo value) {
|
|
bitField0_ |= 0x00000004;
|
|
infos.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorAreaInfo Infos = 1;</code>
|
|
* @param values the infos to add
|
|
* @return this
|
|
*/
|
|
public VictoryData addAllInfos(final VampireSurvivorAreaInfo... values) {
|
|
bitField0_ |= 0x00000004;
|
|
infos.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VictoryData copyFrom(final VictoryData other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
finalScore = other.finalScore;
|
|
seasonId = other.seasonId;
|
|
infos.copyFrom(other.infos);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VictoryData mergeFrom(final VictoryData other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasFinalScore()) {
|
|
setFinalScore(other.finalScore);
|
|
}
|
|
if (other.hasSeasonId()) {
|
|
setSeasonId(other.seasonId);
|
|
}
|
|
if (other.hasInfos()) {
|
|
getMutableInfos().addAll(other.infos);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VictoryData clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
finalScore = 0;
|
|
seasonId = 0;
|
|
infos.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VictoryData clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
infos.clearQuick();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof VictoryData)) {
|
|
return false;
|
|
}
|
|
VictoryData other = (VictoryData) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasFinalScore() || finalScore == other.finalScore)
|
|
&& (!hasSeasonId() || seasonId == other.seasonId)
|
|
&& (!hasInfos() || infos.equals(other.infos));
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final ProtoSink output) throws IOException {
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeRawByte((byte) 16);
|
|
output.writeUInt32NoTag(finalScore);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 24);
|
|
output.writeUInt32NoTag(seasonId);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
for (int i = 0; i < infos.length(); i++) {
|
|
output.writeRawByte((byte) 10);
|
|
output.writeMessageNoTag(infos.get(i));
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(finalScore);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += (1 * infos.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(infos);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public VictoryData mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 16: {
|
|
// finalScore
|
|
finalScore = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 24) {
|
|
break;
|
|
}
|
|
}
|
|
case 24: {
|
|
// seasonId
|
|
seasonId = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 10) {
|
|
break;
|
|
}
|
|
}
|
|
case 10: {
|
|
// infos
|
|
tag = input.readRepeatedMessage(infos, 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.finalScore, finalScore);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeUInt32(FieldNames.seasonId, seasonId);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRepeatedMessage(FieldNames.infos, infos);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public VictoryData mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case 120578780: {
|
|
if (input.isAtField(FieldNames.finalScore)) {
|
|
if (!input.trySkipNullValue()) {
|
|
finalScore = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 954575742: {
|
|
if (input.isAtField(FieldNames.seasonId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
seasonId = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 70795621: {
|
|
if (input.isAtField(FieldNames.infos)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedMessage(infos);
|
|
bitField0_ |= 0x00000004;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VictoryData clone() {
|
|
return new VictoryData().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static VictoryData parseFrom(final byte[] data) throws InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new VictoryData(), data).checkInitialized();
|
|
}
|
|
|
|
public static VictoryData parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VictoryData(), input).checkInitialized();
|
|
}
|
|
|
|
public static VictoryData parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VictoryData(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating VictoryData messages
|
|
*/
|
|
public static MessageFactory<VictoryData> getFactory() {
|
|
return VictoryDataFactory.INSTANCE;
|
|
}
|
|
|
|
private enum VictoryDataFactory implements MessageFactory<VictoryData> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public VictoryData create() {
|
|
return VictoryData.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName finalScore = FieldName.forField("FinalScore");
|
|
|
|
static final FieldName seasonId = FieldName.forField("SeasonId");
|
|
|
|
static final FieldName infos = FieldName.forField("Infos");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Protobuf type {@code DefeatData}
|
|
*/
|
|
public static final class DefeatData extends ProtoMessage<DefeatData> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 1;</code>
|
|
*/
|
|
private int finalScore;
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 2;</code>
|
|
*/
|
|
private int seasonId;
|
|
|
|
private DefeatData() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code DefeatData}
|
|
*/
|
|
public static DefeatData newInstance() {
|
|
return new DefeatData();
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 1;</code>
|
|
* @return whether the finalScore field is set
|
|
*/
|
|
public boolean hasFinalScore() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 1;</code>
|
|
* @return this
|
|
*/
|
|
public DefeatData clearFinalScore() {
|
|
bitField0_ &= ~0x00000001;
|
|
finalScore = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 1;</code>
|
|
* @return the finalScore
|
|
*/
|
|
public int getFinalScore() {
|
|
return finalScore;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FinalScore = 1;</code>
|
|
* @param value the finalScore to set
|
|
* @return this
|
|
*/
|
|
public DefeatData setFinalScore(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
finalScore = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 2;</code>
|
|
* @return whether the seasonId field is set
|
|
*/
|
|
public boolean hasSeasonId() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 2;</code>
|
|
* @return this
|
|
*/
|
|
public DefeatData clearSeasonId() {
|
|
bitField0_ &= ~0x00000002;
|
|
seasonId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 2;</code>
|
|
* @return the seasonId
|
|
*/
|
|
public int getSeasonId() {
|
|
return seasonId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SeasonId = 2;</code>
|
|
* @param value the seasonId to set
|
|
* @return this
|
|
*/
|
|
public DefeatData setSeasonId(final int value) {
|
|
bitField0_ |= 0x00000002;
|
|
seasonId = value;
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public DefeatData copyFrom(final DefeatData other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
finalScore = other.finalScore;
|
|
seasonId = other.seasonId;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public DefeatData mergeFrom(final DefeatData other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasFinalScore()) {
|
|
setFinalScore(other.finalScore);
|
|
}
|
|
if (other.hasSeasonId()) {
|
|
setSeasonId(other.seasonId);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public DefeatData clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
finalScore = 0;
|
|
seasonId = 0;
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public DefeatData 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 DefeatData)) {
|
|
return false;
|
|
}
|
|
DefeatData other = (DefeatData) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasFinalScore() || finalScore == other.finalScore)
|
|
&& (!hasSeasonId() || seasonId == other.seasonId);
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final ProtoSink output) throws IOException {
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeRawByte((byte) 8);
|
|
output.writeUInt32NoTag(finalScore);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 16);
|
|
output.writeUInt32NoTag(seasonId);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(finalScore);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public DefeatData mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 8: {
|
|
// finalScore
|
|
finalScore = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 16) {
|
|
break;
|
|
}
|
|
}
|
|
case 16: {
|
|
// seasonId
|
|
seasonId = 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.finalScore, finalScore);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeUInt32(FieldNames.seasonId, seasonId);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public DefeatData mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case 120578780: {
|
|
if (input.isAtField(FieldNames.finalScore)) {
|
|
if (!input.trySkipNullValue()) {
|
|
finalScore = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 954575742: {
|
|
if (input.isAtField(FieldNames.seasonId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
seasonId = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public DefeatData clone() {
|
|
return new DefeatData().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static DefeatData parseFrom(final byte[] data) throws InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new DefeatData(), data).checkInitialized();
|
|
}
|
|
|
|
public static DefeatData parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new DefeatData(), input).checkInitialized();
|
|
}
|
|
|
|
public static DefeatData parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new DefeatData(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating DefeatData messages
|
|
*/
|
|
public static MessageFactory<DefeatData> getFactory() {
|
|
return DefeatDataFactory.INSTANCE;
|
|
}
|
|
|
|
private enum DefeatDataFactory implements MessageFactory<DefeatData> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public DefeatData create() {
|
|
return DefeatData.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName finalScore = FieldName.forField("FinalScore");
|
|
|
|
static final FieldName seasonId = FieldName.forField("SeasonId");
|
|
}
|
|
}
|
|
|
|
private enum VampireSurvivorSettleRespFactory implements MessageFactory<VampireSurvivorSettleResp> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public VampireSurvivorSettleResp create() {
|
|
return VampireSurvivorSettleResp.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName victory = FieldName.forField("Victory");
|
|
|
|
static final FieldName defeat = FieldName.forField("Defeat");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Protobuf type {@code VampireSurvivorAreaInfo}
|
|
*/
|
|
public static final class VampireSurvivorAreaInfo extends ProtoMessage<VampireSurvivorAreaInfo> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 BossTime = 3;</code>
|
|
*/
|
|
private int bossTime;
|
|
|
|
/**
|
|
* <code>optional uint32 Score = 4;</code>
|
|
*/
|
|
private int score;
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
*/
|
|
private final RepeatedInt killCount = RepeatedInt.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 2;</code>
|
|
*/
|
|
private final RepeatedInt killScore = RepeatedInt.newEmptyInstance();
|
|
|
|
private VampireSurvivorAreaInfo() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code VampireSurvivorAreaInfo}
|
|
*/
|
|
public static VampireSurvivorAreaInfo newInstance() {
|
|
return new VampireSurvivorAreaInfo();
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 BossTime = 3;</code>
|
|
* @return whether the bossTime field is set
|
|
*/
|
|
public boolean hasBossTime() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 BossTime = 3;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo clearBossTime() {
|
|
bitField0_ &= ~0x00000001;
|
|
bossTime = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 BossTime = 3;</code>
|
|
* @return the bossTime
|
|
*/
|
|
public int getBossTime() {
|
|
return bossTime;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 BossTime = 3;</code>
|
|
* @param value the bossTime to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo setBossTime(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
bossTime = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Score = 4;</code>
|
|
* @return whether the score field is set
|
|
*/
|
|
public boolean hasScore() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Score = 4;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo clearScore() {
|
|
bitField0_ &= ~0x00000002;
|
|
score = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Score = 4;</code>
|
|
* @return the score
|
|
*/
|
|
public int getScore() {
|
|
return score;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Score = 4;</code>
|
|
* @param value the score to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo setScore(final int value) {
|
|
bitField0_ |= 0x00000002;
|
|
score = 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 VampireSurvivorAreaInfo 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 VampireSurvivorAreaInfo 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 VampireSurvivorAreaInfo 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 VampireSurvivorAreaInfo setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000004;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @return whether the killCount field is set
|
|
*/
|
|
public boolean hasKillCount() {
|
|
return (bitField0_ & 0x00000008) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo clearKillCount() {
|
|
bitField0_ &= ~0x00000008;
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 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 #getMutableKillCount()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedInt getKillCount() {
|
|
return killCount;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 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 getMutableKillCount() {
|
|
bitField0_ |= 0x00000008;
|
|
return killCount;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @param value the killCount to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo addKillCount(final int value) {
|
|
bitField0_ |= 0x00000008;
|
|
killCount.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 1;</code>
|
|
* @param values the killCount to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo addAllKillCount(final int... values) {
|
|
bitField0_ |= 0x00000008;
|
|
killCount.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 2;</code>
|
|
* @return whether the killScore field is set
|
|
*/
|
|
public boolean hasKillScore() {
|
|
return (bitField0_ & 0x00000010) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 2;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo clearKillScore() {
|
|
bitField0_ &= ~0x00000010;
|
|
killScore.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 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 #getMutableKillScore()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedInt getKillScore() {
|
|
return killScore;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 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 RepeatedInt getMutableKillScore() {
|
|
bitField0_ |= 0x00000010;
|
|
return killScore;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 2;</code>
|
|
* @param value the killScore to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo addKillScore(final int value) {
|
|
bitField0_ |= 0x00000010;
|
|
killScore.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillScore = 2;</code>
|
|
* @param values the killScore to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorAreaInfo addAllKillScore(final int... values) {
|
|
bitField0_ |= 0x00000010;
|
|
killScore.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo copyFrom(final VampireSurvivorAreaInfo other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
bossTime = other.bossTime;
|
|
score = other.score;
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
killCount.copyFrom(other.killCount);
|
|
killScore.copyFrom(other.killScore);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo mergeFrom(final VampireSurvivorAreaInfo other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasBossTime()) {
|
|
setBossTime(other.bossTime);
|
|
}
|
|
if (other.hasScore()) {
|
|
setScore(other.score);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
if (other.hasKillCount()) {
|
|
getMutableKillCount().addAll(other.killCount);
|
|
}
|
|
if (other.hasKillScore()) {
|
|
getMutableKillScore().addAll(other.killScore);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
bossTime = 0;
|
|
score = 0;
|
|
nextPackage.clear();
|
|
killCount.clear();
|
|
killScore.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
nextPackage.clear();
|
|
killCount.clear();
|
|
killScore.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof VampireSurvivorAreaInfo)) {
|
|
return false;
|
|
}
|
|
VampireSurvivorAreaInfo other = (VampireSurvivorAreaInfo) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasBossTime() || bossTime == other.bossTime)
|
|
&& (!hasScore() || score == other.score)
|
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
|
&& (!hasKillCount() || killCount.equals(other.killCount))
|
|
&& (!hasKillScore() || killScore.equals(other.killScore));
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final ProtoSink output) throws IOException {
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeRawByte((byte) 24);
|
|
output.writeUInt32NoTag(bossTime);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 32);
|
|
output.writeUInt32NoTag(score);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRawLittleEndian16((short) 32762);
|
|
output.writeBytesNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
for (int i = 0; i < killCount.length(); i++) {
|
|
output.writeRawByte((byte) 8);
|
|
output.writeUInt32NoTag(killCount.array()[i]);
|
|
}
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
for (int i = 0; i < killScore.length(); i++) {
|
|
output.writeRawByte((byte) 16);
|
|
output.writeUInt32NoTag(killScore.array()[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(bossTime);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(score);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
size += (1 * killCount.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(killCount);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
size += (1 * killScore.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(killScore);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public VampireSurvivorAreaInfo mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 24: {
|
|
// bossTime
|
|
bossTime = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 32) {
|
|
break;
|
|
}
|
|
}
|
|
case 32: {
|
|
// score
|
|
score = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 16378) {
|
|
break;
|
|
}
|
|
}
|
|
case 16378: {
|
|
// nextPackage
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000004;
|
|
tag = input.readTag();
|
|
if (tag != 10) {
|
|
break;
|
|
}
|
|
}
|
|
case 10: {
|
|
// killCount [packed=true]
|
|
input.readPackedUInt32(killCount, tag);
|
|
bitField0_ |= 0x00000008;
|
|
tag = input.readTag();
|
|
if (tag != 18) {
|
|
break;
|
|
}
|
|
}
|
|
case 18: {
|
|
// killScore [packed=true]
|
|
input.readPackedUInt32(killScore, 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 8: {
|
|
// killCount [packed=false]
|
|
tag = input.readRepeatedUInt32(killCount, tag);
|
|
bitField0_ |= 0x00000008;
|
|
break;
|
|
}
|
|
case 16: {
|
|
// killScore [packed=false]
|
|
tag = input.readRepeatedUInt32(killScore, tag);
|
|
bitField0_ |= 0x00000010;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final JsonSink output) throws IOException {
|
|
output.beginObject();
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeUInt32(FieldNames.bossTime, bossTime);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeUInt32(FieldNames.score, score);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeRepeatedUInt32(FieldNames.killCount, killCount);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeRepeatedUInt32(FieldNames.killScore, killScore);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case -2103777286: {
|
|
if (input.isAtField(FieldNames.bossTime)) {
|
|
if (!input.trySkipNullValue()) {
|
|
bossTime = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 79711858: {
|
|
if (input.isAtField(FieldNames.score)) {
|
|
if (!input.trySkipNullValue()) {
|
|
score = 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;
|
|
}
|
|
case 414756913: {
|
|
if (input.isAtField(FieldNames.killCount)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedUInt32(killCount);
|
|
bitField0_ |= 0x00000008;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 429170100: {
|
|
if (input.isAtField(FieldNames.killScore)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedUInt32(killScore);
|
|
bitField0_ |= 0x00000010;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo clone() {
|
|
return new VampireSurvivorAreaInfo().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static VampireSurvivorAreaInfo parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorAreaInfo(), data).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorAreaInfo parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorAreaInfo(), input).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorAreaInfo parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorAreaInfo(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating VampireSurvivorAreaInfo messages
|
|
*/
|
|
public static MessageFactory<VampireSurvivorAreaInfo> getFactory() {
|
|
return VampireSurvivorAreaInfoFactory.INSTANCE;
|
|
}
|
|
|
|
private enum VampireSurvivorAreaInfoFactory implements MessageFactory<VampireSurvivorAreaInfo> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public VampireSurvivorAreaInfo create() {
|
|
return VampireSurvivorAreaInfo.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName bossTime = FieldName.forField("BossTime");
|
|
|
|
static final FieldName score = FieldName.forField("Score");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
|
|
static final FieldName killCount = FieldName.forField("KillCount");
|
|
|
|
static final FieldName killScore = FieldName.forField("KillScore");
|
|
}
|
|
}
|
|
}
|