mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
2058 lines
56 KiB
Java
2058 lines
56 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.RepeatedMessage;
|
|
import us.hebi.quickbuf.Utf8String;
|
|
|
|
public final class StarTowerApply {
|
|
/**
|
|
* Protobuf type {@code StarTowerApplyReq}
|
|
*/
|
|
public static final class StarTowerApplyReq extends ProtoMessage<StarTowerApplyReq> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 Id = 1;</code>
|
|
*/
|
|
private int id;
|
|
|
|
/**
|
|
* <code>optional uint32 FormationId = 2;</code>
|
|
*/
|
|
private int formationId;
|
|
|
|
/**
|
|
* <code>optional uint32 CharHp = 3;</code>
|
|
*/
|
|
private int charHp;
|
|
|
|
/**
|
|
* <code>optional uint32 MapId = 4;</code>
|
|
*/
|
|
private int mapId;
|
|
|
|
/**
|
|
* <code>optional uint32 ParamId = 5;</code>
|
|
*/
|
|
private int paramId;
|
|
|
|
/**
|
|
* <code>optional uint32 MapTableId = 7;</code>
|
|
*/
|
|
private int mapTableId;
|
|
|
|
/**
|
|
* <code>optional bool Sweep = 15;</code>
|
|
*/
|
|
private boolean sweep;
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
*/
|
|
private final Utf8String mapParam = Utf8String.newEmptyInstance();
|
|
|
|
private StarTowerApplyReq() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code StarTowerApplyReq}
|
|
*/
|
|
public static StarTowerApplyReq newInstance() {
|
|
return new StarTowerApplyReq();
|
|
}
|
|
|
|
/**
|
|
* <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 StarTowerApplyReq 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 StarTowerApplyReq setId(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
id = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FormationId = 2;</code>
|
|
* @return whether the formationId field is set
|
|
*/
|
|
public boolean hasFormationId() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FormationId = 2;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearFormationId() {
|
|
bitField0_ &= ~0x00000002;
|
|
formationId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FormationId = 2;</code>
|
|
* @return the formationId
|
|
*/
|
|
public int getFormationId() {
|
|
return formationId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FormationId = 2;</code>
|
|
* @param value the formationId to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setFormationId(final int value) {
|
|
bitField0_ |= 0x00000002;
|
|
formationId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CharHp = 3;</code>
|
|
* @return whether the charHp field is set
|
|
*/
|
|
public boolean hasCharHp() {
|
|
return (bitField0_ & 0x00000004) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CharHp = 3;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearCharHp() {
|
|
bitField0_ &= ~0x00000004;
|
|
charHp = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CharHp = 3;</code>
|
|
* @return the charHp
|
|
*/
|
|
public int getCharHp() {
|
|
return charHp;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CharHp = 3;</code>
|
|
* @param value the charHp to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setCharHp(final int value) {
|
|
bitField0_ |= 0x00000004;
|
|
charHp = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapId = 4;</code>
|
|
* @return whether the mapId field is set
|
|
*/
|
|
public boolean hasMapId() {
|
|
return (bitField0_ & 0x00000008) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapId = 4;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearMapId() {
|
|
bitField0_ &= ~0x00000008;
|
|
mapId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapId = 4;</code>
|
|
* @return the mapId
|
|
*/
|
|
public int getMapId() {
|
|
return mapId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapId = 4;</code>
|
|
* @param value the mapId to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setMapId(final int value) {
|
|
bitField0_ |= 0x00000008;
|
|
mapId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 ParamId = 5;</code>
|
|
* @return whether the paramId field is set
|
|
*/
|
|
public boolean hasParamId() {
|
|
return (bitField0_ & 0x00000010) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 ParamId = 5;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearParamId() {
|
|
bitField0_ &= ~0x00000010;
|
|
paramId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 ParamId = 5;</code>
|
|
* @return the paramId
|
|
*/
|
|
public int getParamId() {
|
|
return paramId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 ParamId = 5;</code>
|
|
* @param value the paramId to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setParamId(final int value) {
|
|
bitField0_ |= 0x00000010;
|
|
paramId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapTableId = 7;</code>
|
|
* @return whether the mapTableId field is set
|
|
*/
|
|
public boolean hasMapTableId() {
|
|
return (bitField0_ & 0x00000020) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapTableId = 7;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearMapTableId() {
|
|
bitField0_ &= ~0x00000020;
|
|
mapTableId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapTableId = 7;</code>
|
|
* @return the mapTableId
|
|
*/
|
|
public int getMapTableId() {
|
|
return mapTableId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 MapTableId = 7;</code>
|
|
* @param value the mapTableId to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setMapTableId(final int value) {
|
|
bitField0_ |= 0x00000020;
|
|
mapTableId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Sweep = 15;</code>
|
|
* @return whether the sweep field is set
|
|
*/
|
|
public boolean hasSweep() {
|
|
return (bitField0_ & 0x00000040) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Sweep = 15;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearSweep() {
|
|
bitField0_ &= ~0x00000040;
|
|
sweep = false;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Sweep = 15;</code>
|
|
* @return the sweep
|
|
*/
|
|
public boolean getSweep() {
|
|
return sweep;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool Sweep = 15;</code>
|
|
* @param value the sweep to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setSweep(final boolean value) {
|
|
bitField0_ |= 0x00000040;
|
|
sweep = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @return whether the nextPackage field is set
|
|
*/
|
|
public boolean hasNextPackage() {
|
|
return (bitField0_ & 0x00000080) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearNextPackage() {
|
|
bitField0_ &= ~0x00000080;
|
|
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_ |= 0x00000080;
|
|
return nextPackage;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param value the nextPackage to add
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq addNextPackage(final byte value) {
|
|
bitField0_ |= 0x00000080;
|
|
nextPackage.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param values the nextPackage to add
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq addAllNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000080;
|
|
nextPackage.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param values the nextPackage to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000080;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @return whether the mapParam field is set
|
|
*/
|
|
public boolean hasMapParam() {
|
|
return (bitField0_ & 0x00000100) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq clearMapParam() {
|
|
bitField0_ &= ~0x00000100;
|
|
mapParam.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @return the mapParam
|
|
*/
|
|
public String getMapParam() {
|
|
return mapParam.getString();
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @return internal {@code Utf8String} representation of mapParam for reading
|
|
*/
|
|
public Utf8String getMapParamBytes() {
|
|
return this.mapParam;
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @return internal {@code Utf8String} representation of mapParam for modifications
|
|
*/
|
|
public Utf8String getMutableMapParamBytes() {
|
|
bitField0_ |= 0x00000100;
|
|
return this.mapParam;
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @param value the mapParam to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setMapParam(final CharSequence value) {
|
|
bitField0_ |= 0x00000100;
|
|
mapParam.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional string MapParam = 6;</code>
|
|
* @param value the mapParam to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyReq setMapParam(final Utf8String value) {
|
|
bitField0_ |= 0x00000100;
|
|
mapParam.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyReq copyFrom(final StarTowerApplyReq other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
id = other.id;
|
|
formationId = other.formationId;
|
|
charHp = other.charHp;
|
|
mapId = other.mapId;
|
|
paramId = other.paramId;
|
|
mapTableId = other.mapTableId;
|
|
sweep = other.sweep;
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
mapParam.copyFrom(other.mapParam);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyReq mergeFrom(final StarTowerApplyReq other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasId()) {
|
|
setId(other.id);
|
|
}
|
|
if (other.hasFormationId()) {
|
|
setFormationId(other.formationId);
|
|
}
|
|
if (other.hasCharHp()) {
|
|
setCharHp(other.charHp);
|
|
}
|
|
if (other.hasMapId()) {
|
|
setMapId(other.mapId);
|
|
}
|
|
if (other.hasParamId()) {
|
|
setParamId(other.paramId);
|
|
}
|
|
if (other.hasMapTableId()) {
|
|
setMapTableId(other.mapTableId);
|
|
}
|
|
if (other.hasSweep()) {
|
|
setSweep(other.sweep);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
if (other.hasMapParam()) {
|
|
getMutableMapParamBytes().copyFrom(other.mapParam);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyReq clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
id = 0;
|
|
formationId = 0;
|
|
charHp = 0;
|
|
mapId = 0;
|
|
paramId = 0;
|
|
mapTableId = 0;
|
|
sweep = false;
|
|
nextPackage.clear();
|
|
mapParam.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyReq clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
nextPackage.clear();
|
|
mapParam.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof StarTowerApplyReq)) {
|
|
return false;
|
|
}
|
|
StarTowerApplyReq other = (StarTowerApplyReq) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasId() || id == other.id)
|
|
&& (!hasFormationId() || formationId == other.formationId)
|
|
&& (!hasCharHp() || charHp == other.charHp)
|
|
&& (!hasMapId() || mapId == other.mapId)
|
|
&& (!hasParamId() || paramId == other.paramId)
|
|
&& (!hasMapTableId() || mapTableId == other.mapTableId)
|
|
&& (!hasSweep() || sweep == other.sweep)
|
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
|
&& (!hasMapParam() || mapParam.equals(other.mapParam));
|
|
}
|
|
|
|
@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(formationId);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRawByte((byte) 24);
|
|
output.writeUInt32NoTag(charHp);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeRawByte((byte) 32);
|
|
output.writeUInt32NoTag(mapId);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeRawByte((byte) 40);
|
|
output.writeUInt32NoTag(paramId);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
output.writeRawByte((byte) 56);
|
|
output.writeUInt32NoTag(mapTableId);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
output.writeRawByte((byte) 120);
|
|
output.writeBoolNoTag(sweep);
|
|
}
|
|
if ((bitField0_ & 0x00000080) != 0) {
|
|
output.writeRawLittleEndian16((short) 32762);
|
|
output.writeBytesNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000100) != 0) {
|
|
output.writeRawByte((byte) 50);
|
|
output.writeStringNoTag(mapParam);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(formationId);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(charHp);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(paramId);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(mapTableId);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
size += 2;
|
|
}
|
|
if ((bitField0_ & 0x00000080) != 0) {
|
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000100) != 0) {
|
|
size += 1 + ProtoSink.computeStringSizeNoTag(mapParam);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public StarTowerApplyReq 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: {
|
|
// formationId
|
|
formationId = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 24) {
|
|
break;
|
|
}
|
|
}
|
|
case 24: {
|
|
// charHp
|
|
charHp = input.readUInt32();
|
|
bitField0_ |= 0x00000004;
|
|
tag = input.readTag();
|
|
if (tag != 32) {
|
|
break;
|
|
}
|
|
}
|
|
case 32: {
|
|
// mapId
|
|
mapId = input.readUInt32();
|
|
bitField0_ |= 0x00000008;
|
|
tag = input.readTag();
|
|
if (tag != 40) {
|
|
break;
|
|
}
|
|
}
|
|
case 40: {
|
|
// paramId
|
|
paramId = input.readUInt32();
|
|
bitField0_ |= 0x00000010;
|
|
tag = input.readTag();
|
|
if (tag != 56) {
|
|
break;
|
|
}
|
|
}
|
|
case 56: {
|
|
// mapTableId
|
|
mapTableId = input.readUInt32();
|
|
bitField0_ |= 0x00000020;
|
|
tag = input.readTag();
|
|
if (tag != 120) {
|
|
break;
|
|
}
|
|
}
|
|
case 120: {
|
|
// sweep
|
|
sweep = input.readBool();
|
|
bitField0_ |= 0x00000040;
|
|
tag = input.readTag();
|
|
if (tag != 16378) {
|
|
break;
|
|
}
|
|
}
|
|
case 16378: {
|
|
// nextPackage
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000080;
|
|
tag = input.readTag();
|
|
if (tag != 50) {
|
|
break;
|
|
}
|
|
}
|
|
case 50: {
|
|
// mapParam
|
|
input.readString(mapParam);
|
|
bitField0_ |= 0x00000100;
|
|
tag = input.readTag();
|
|
if (tag != 0) {
|
|
break;
|
|
}
|
|
}
|
|
case 0: {
|
|
return this;
|
|
}
|
|
default: {
|
|
if (!input.skipField(tag)) {
|
|
return this;
|
|
}
|
|
tag = input.readTag();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final JsonSink output) throws IOException {
|
|
output.beginObject();
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeUInt32(FieldNames.id, id);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeUInt32(FieldNames.formationId, formationId);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeUInt32(FieldNames.charHp, charHp);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeUInt32(FieldNames.mapId, mapId);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeUInt32(FieldNames.paramId, paramId);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
output.writeUInt32(FieldNames.mapTableId, mapTableId);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
output.writeBool(FieldNames.sweep, sweep);
|
|
}
|
|
if ((bitField0_ & 0x00000080) != 0) {
|
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000100) != 0) {
|
|
output.writeString(FieldNames.mapParam, mapParam);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyReq 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 -1159409268: {
|
|
if (input.isAtField(FieldNames.formationId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
formationId = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2017200926: {
|
|
if (input.isAtField(FieldNames.charHp)) {
|
|
if (!input.trySkipNullValue()) {
|
|
charHp = input.readUInt32();
|
|
bitField0_ |= 0x00000004;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 74110839: {
|
|
if (input.isAtField(FieldNames.mapId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
mapId = input.readUInt32();
|
|
bitField0_ |= 0x00000008;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 871156328: {
|
|
if (input.isAtField(FieldNames.paramId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
paramId = input.readUInt32();
|
|
bitField0_ |= 0x00000010;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 556914861: {
|
|
if (input.isAtField(FieldNames.mapTableId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
mapTableId = input.readUInt32();
|
|
bitField0_ |= 0x00000020;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 80297676: {
|
|
if (input.isAtField(FieldNames.sweep)) {
|
|
if (!input.trySkipNullValue()) {
|
|
sweep = input.readBool();
|
|
bitField0_ |= 0x00000040;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -2082324045: {
|
|
if (input.isAtField(FieldNames.nextPackage)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000080;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 229302449: {
|
|
if (input.isAtField(FieldNames.mapParam)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readString(mapParam);
|
|
bitField0_ |= 0x00000100;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyReq clone() {
|
|
return new StarTowerApplyReq().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static StarTowerApplyReq parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new StarTowerApplyReq(), data).checkInitialized();
|
|
}
|
|
|
|
public static StarTowerApplyReq parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new StarTowerApplyReq(), input).checkInitialized();
|
|
}
|
|
|
|
public static StarTowerApplyReq parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new StarTowerApplyReq(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating StarTowerApplyReq messages
|
|
*/
|
|
public static MessageFactory<StarTowerApplyReq> getFactory() {
|
|
return StarTowerApplyReqFactory.INSTANCE;
|
|
}
|
|
|
|
private enum StarTowerApplyReqFactory implements MessageFactory<StarTowerApplyReq> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public StarTowerApplyReq create() {
|
|
return StarTowerApplyReq.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName id = FieldName.forField("Id");
|
|
|
|
static final FieldName formationId = FieldName.forField("FormationId");
|
|
|
|
static final FieldName charHp = FieldName.forField("CharHp");
|
|
|
|
static final FieldName mapId = FieldName.forField("MapId");
|
|
|
|
static final FieldName paramId = FieldName.forField("ParamId");
|
|
|
|
static final FieldName mapTableId = FieldName.forField("MapTableId");
|
|
|
|
static final FieldName sweep = FieldName.forField("Sweep");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
|
|
static final FieldName mapParam = FieldName.forField("MapParam");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Protobuf type {@code StarTowerApplyResp}
|
|
*/
|
|
public static final class StarTowerApplyResp extends ProtoMessage<StarTowerApplyResp> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 LastId = 2;</code>
|
|
*/
|
|
private int lastId;
|
|
|
|
/**
|
|
* <code>optional uint32 CoinQty = 4;</code>
|
|
*/
|
|
private int coinQty;
|
|
|
|
/**
|
|
* <code>optional uint32 FateCardId = 6;</code>
|
|
*/
|
|
private int fateCardId;
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicket = 8;</code>
|
|
*/
|
|
private int sweepTicket;
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicketUndated = 9;</code>
|
|
*/
|
|
private int sweepTicketUndated;
|
|
|
|
/**
|
|
* <code>optional bool NewFateCard = 7;</code>
|
|
*/
|
|
private boolean newFateCard;
|
|
|
|
/**
|
|
* <code>optional .StarTowerInfo Info = 1;</code>
|
|
*/
|
|
private final PublicStarTower.StarTowerInfo info = PublicStarTower.StarTowerInfo.newInstance();
|
|
|
|
/**
|
|
* <code>optional .ChangeInfo Change = 15;</code>
|
|
*/
|
|
private final Public.ChangeInfo change = Public.ChangeInfo.newInstance();
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
*/
|
|
private final RepeatedMessage<PublicStarTower.SubNoteSkillInfo> infos = RepeatedMessage.newEmptyInstance(PublicStarTower.SubNoteSkillInfo.getFactory());
|
|
|
|
private StarTowerApplyResp() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code StarTowerApplyResp}
|
|
*/
|
|
public static StarTowerApplyResp newInstance() {
|
|
return new StarTowerApplyResp();
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 LastId = 2;</code>
|
|
* @return whether the lastId field is set
|
|
*/
|
|
public boolean hasLastId() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 LastId = 2;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearLastId() {
|
|
bitField0_ &= ~0x00000001;
|
|
lastId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 LastId = 2;</code>
|
|
* @return the lastId
|
|
*/
|
|
public int getLastId() {
|
|
return lastId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 LastId = 2;</code>
|
|
* @param value the lastId to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setLastId(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
lastId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CoinQty = 4;</code>
|
|
* @return whether the coinQty field is set
|
|
*/
|
|
public boolean hasCoinQty() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CoinQty = 4;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearCoinQty() {
|
|
bitField0_ &= ~0x00000002;
|
|
coinQty = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CoinQty = 4;</code>
|
|
* @return the coinQty
|
|
*/
|
|
public int getCoinQty() {
|
|
return coinQty;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 CoinQty = 4;</code>
|
|
* @param value the coinQty to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setCoinQty(final int value) {
|
|
bitField0_ |= 0x00000002;
|
|
coinQty = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FateCardId = 6;</code>
|
|
* @return whether the fateCardId field is set
|
|
*/
|
|
public boolean hasFateCardId() {
|
|
return (bitField0_ & 0x00000004) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FateCardId = 6;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearFateCardId() {
|
|
bitField0_ &= ~0x00000004;
|
|
fateCardId = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FateCardId = 6;</code>
|
|
* @return the fateCardId
|
|
*/
|
|
public int getFateCardId() {
|
|
return fateCardId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 FateCardId = 6;</code>
|
|
* @param value the fateCardId to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setFateCardId(final int value) {
|
|
bitField0_ |= 0x00000004;
|
|
fateCardId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicket = 8;</code>
|
|
* @return whether the sweepTicket field is set
|
|
*/
|
|
public boolean hasSweepTicket() {
|
|
return (bitField0_ & 0x00000008) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicket = 8;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearSweepTicket() {
|
|
bitField0_ &= ~0x00000008;
|
|
sweepTicket = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicket = 8;</code>
|
|
* @return the sweepTicket
|
|
*/
|
|
public int getSweepTicket() {
|
|
return sweepTicket;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicket = 8;</code>
|
|
* @param value the sweepTicket to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setSweepTicket(final int value) {
|
|
bitField0_ |= 0x00000008;
|
|
sweepTicket = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicketUndated = 9;</code>
|
|
* @return whether the sweepTicketUndated field is set
|
|
*/
|
|
public boolean hasSweepTicketUndated() {
|
|
return (bitField0_ & 0x00000010) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicketUndated = 9;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearSweepTicketUndated() {
|
|
bitField0_ &= ~0x00000010;
|
|
sweepTicketUndated = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicketUndated = 9;</code>
|
|
* @return the sweepTicketUndated
|
|
*/
|
|
public int getSweepTicketUndated() {
|
|
return sweepTicketUndated;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SweepTicketUndated = 9;</code>
|
|
* @param value the sweepTicketUndated to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setSweepTicketUndated(final int value) {
|
|
bitField0_ |= 0x00000010;
|
|
sweepTicketUndated = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool NewFateCard = 7;</code>
|
|
* @return whether the newFateCard field is set
|
|
*/
|
|
public boolean hasNewFateCard() {
|
|
return (bitField0_ & 0x00000020) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool NewFateCard = 7;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearNewFateCard() {
|
|
bitField0_ &= ~0x00000020;
|
|
newFateCard = false;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool NewFateCard = 7;</code>
|
|
* @return the newFateCard
|
|
*/
|
|
public boolean getNewFateCard() {
|
|
return newFateCard;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bool NewFateCard = 7;</code>
|
|
* @param value the newFateCard to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setNewFateCard(final boolean value) {
|
|
bitField0_ |= 0x00000020;
|
|
newFateCard = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .StarTowerInfo Info = 1;</code>
|
|
* @return whether the info field is set
|
|
*/
|
|
public boolean hasInfo() {
|
|
return (bitField0_ & 0x00000040) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .StarTowerInfo Info = 1;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearInfo() {
|
|
bitField0_ &= ~0x00000040;
|
|
info.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .StarTowerInfo Info = 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 #getMutableInfo()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public PublicStarTower.StarTowerInfo getInfo() {
|
|
return info;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .StarTowerInfo Info = 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 PublicStarTower.StarTowerInfo getMutableInfo() {
|
|
bitField0_ |= 0x00000040;
|
|
return info;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .StarTowerInfo Info = 1;</code>
|
|
* @param value the info to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setInfo(final PublicStarTower.StarTowerInfo value) {
|
|
bitField0_ |= 0x00000040;
|
|
info.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .ChangeInfo Change = 15;</code>
|
|
* @return whether the change field is set
|
|
*/
|
|
public boolean hasChange() {
|
|
return (bitField0_ & 0x00000080) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .ChangeInfo Change = 15;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearChange() {
|
|
bitField0_ &= ~0x00000080;
|
|
change.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .ChangeInfo Change = 15;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableChange()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public Public.ChangeInfo getChange() {
|
|
return change;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .ChangeInfo Change = 15;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public Public.ChangeInfo getMutableChange() {
|
|
bitField0_ |= 0x00000080;
|
|
return change;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .ChangeInfo Change = 15;</code>
|
|
* @param value the change to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setChange(final Public.ChangeInfo value) {
|
|
bitField0_ |= 0x00000080;
|
|
change.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @return whether the nextPackage field is set
|
|
*/
|
|
public boolean hasNextPackage() {
|
|
return (bitField0_ & 0x00000100) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearNextPackage() {
|
|
bitField0_ &= ~0x00000100;
|
|
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_ |= 0x00000100;
|
|
return nextPackage;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param value the nextPackage to add
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp addNextPackage(final byte value) {
|
|
bitField0_ |= 0x00000100;
|
|
nextPackage.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param values the nextPackage to add
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp addAllNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000100;
|
|
nextPackage.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
* @param values the nextPackage to set
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000100;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
* @return whether the infos field is set
|
|
*/
|
|
public boolean hasInfos() {
|
|
return (bitField0_ & 0x00000200) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp clearInfos() {
|
|
bitField0_ &= ~0x00000200;
|
|
infos.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableInfos()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedMessage<PublicStarTower.SubNoteSkillInfo> getInfos() {
|
|
return infos;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public RepeatedMessage<PublicStarTower.SubNoteSkillInfo> getMutableInfos() {
|
|
bitField0_ |= 0x00000200;
|
|
return infos;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
* @param value the infos to add
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp addInfos(final PublicStarTower.SubNoteSkillInfo value) {
|
|
bitField0_ |= 0x00000200;
|
|
infos.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .SubNoteSkillInfo Infos = 5;</code>
|
|
* @param values the infos to add
|
|
* @return this
|
|
*/
|
|
public StarTowerApplyResp addAllInfos(final PublicStarTower.SubNoteSkillInfo... values) {
|
|
bitField0_ |= 0x00000200;
|
|
infos.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyResp copyFrom(final StarTowerApplyResp other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
lastId = other.lastId;
|
|
coinQty = other.coinQty;
|
|
fateCardId = other.fateCardId;
|
|
sweepTicket = other.sweepTicket;
|
|
sweepTicketUndated = other.sweepTicketUndated;
|
|
newFateCard = other.newFateCard;
|
|
info.copyFrom(other.info);
|
|
change.copyFrom(other.change);
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
infos.copyFrom(other.infos);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyResp mergeFrom(final StarTowerApplyResp other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasLastId()) {
|
|
setLastId(other.lastId);
|
|
}
|
|
if (other.hasCoinQty()) {
|
|
setCoinQty(other.coinQty);
|
|
}
|
|
if (other.hasFateCardId()) {
|
|
setFateCardId(other.fateCardId);
|
|
}
|
|
if (other.hasSweepTicket()) {
|
|
setSweepTicket(other.sweepTicket);
|
|
}
|
|
if (other.hasSweepTicketUndated()) {
|
|
setSweepTicketUndated(other.sweepTicketUndated);
|
|
}
|
|
if (other.hasNewFateCard()) {
|
|
setNewFateCard(other.newFateCard);
|
|
}
|
|
if (other.hasInfo()) {
|
|
getMutableInfo().mergeFrom(other.info);
|
|
}
|
|
if (other.hasChange()) {
|
|
getMutableChange().mergeFrom(other.change);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
if (other.hasInfos()) {
|
|
getMutableInfos().addAll(other.infos);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyResp clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
lastId = 0;
|
|
coinQty = 0;
|
|
fateCardId = 0;
|
|
sweepTicket = 0;
|
|
sweepTicketUndated = 0;
|
|
newFateCard = false;
|
|
info.clear();
|
|
change.clear();
|
|
nextPackage.clear();
|
|
infos.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyResp clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
info.clearQuick();
|
|
change.clearQuick();
|
|
nextPackage.clear();
|
|
infos.clearQuick();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof StarTowerApplyResp)) {
|
|
return false;
|
|
}
|
|
StarTowerApplyResp other = (StarTowerApplyResp) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasLastId() || lastId == other.lastId)
|
|
&& (!hasCoinQty() || coinQty == other.coinQty)
|
|
&& (!hasFateCardId() || fateCardId == other.fateCardId)
|
|
&& (!hasSweepTicket() || sweepTicket == other.sweepTicket)
|
|
&& (!hasSweepTicketUndated() || sweepTicketUndated == other.sweepTicketUndated)
|
|
&& (!hasNewFateCard() || newFateCard == other.newFateCard)
|
|
&& (!hasInfo() || info.equals(other.info))
|
|
&& (!hasChange() || change.equals(other.change))
|
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
|
&& (!hasInfos() || infos.equals(other.infos));
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final ProtoSink output) throws IOException {
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeRawByte((byte) 16);
|
|
output.writeUInt32NoTag(lastId);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 32);
|
|
output.writeUInt32NoTag(coinQty);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRawByte((byte) 48);
|
|
output.writeUInt32NoTag(fateCardId);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeRawByte((byte) 64);
|
|
output.writeUInt32NoTag(sweepTicket);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeRawByte((byte) 72);
|
|
output.writeUInt32NoTag(sweepTicketUndated);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
output.writeRawByte((byte) 56);
|
|
output.writeBoolNoTag(newFateCard);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
output.writeRawByte((byte) 10);
|
|
output.writeMessageNoTag(info);
|
|
}
|
|
if ((bitField0_ & 0x00000080) != 0) {
|
|
output.writeRawByte((byte) 122);
|
|
output.writeMessageNoTag(change);
|
|
}
|
|
if ((bitField0_ & 0x00000100) != 0) {
|
|
output.writeRawLittleEndian16((short) 32762);
|
|
output.writeBytesNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000200) != 0) {
|
|
for (int i = 0; i < infos.length(); i++) {
|
|
output.writeRawByte((byte) 42);
|
|
output.writeMessageNoTag(infos.get(i));
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(lastId);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(coinQty);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(fateCardId);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(sweepTicket);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(sweepTicketUndated);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
size += 2;
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
size += 1 + ProtoSink.computeMessageSizeNoTag(info);
|
|
}
|
|
if ((bitField0_ & 0x00000080) != 0) {
|
|
size += 1 + ProtoSink.computeMessageSizeNoTag(change);
|
|
}
|
|
if ((bitField0_ & 0x00000100) != 0) {
|
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000200) != 0) {
|
|
size += (1 * infos.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(infos);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public StarTowerApplyResp mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 16: {
|
|
// lastId
|
|
lastId = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 32) {
|
|
break;
|
|
}
|
|
}
|
|
case 32: {
|
|
// coinQty
|
|
coinQty = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 48) {
|
|
break;
|
|
}
|
|
}
|
|
case 48: {
|
|
// fateCardId
|
|
fateCardId = input.readUInt32();
|
|
bitField0_ |= 0x00000004;
|
|
tag = input.readTag();
|
|
if (tag != 64) {
|
|
break;
|
|
}
|
|
}
|
|
case 64: {
|
|
// sweepTicket
|
|
sweepTicket = input.readUInt32();
|
|
bitField0_ |= 0x00000008;
|
|
tag = input.readTag();
|
|
if (tag != 72) {
|
|
break;
|
|
}
|
|
}
|
|
case 72: {
|
|
// sweepTicketUndated
|
|
sweepTicketUndated = input.readUInt32();
|
|
bitField0_ |= 0x00000010;
|
|
tag = input.readTag();
|
|
if (tag != 56) {
|
|
break;
|
|
}
|
|
}
|
|
case 56: {
|
|
// newFateCard
|
|
newFateCard = input.readBool();
|
|
bitField0_ |= 0x00000020;
|
|
tag = input.readTag();
|
|
if (tag != 10) {
|
|
break;
|
|
}
|
|
}
|
|
case 10: {
|
|
// info
|
|
input.readMessage(info);
|
|
bitField0_ |= 0x00000040;
|
|
tag = input.readTag();
|
|
if (tag != 122) {
|
|
break;
|
|
}
|
|
}
|
|
case 122: {
|
|
// change
|
|
input.readMessage(change);
|
|
bitField0_ |= 0x00000080;
|
|
tag = input.readTag();
|
|
if (tag != 16378) {
|
|
break;
|
|
}
|
|
}
|
|
case 16378: {
|
|
// nextPackage
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000100;
|
|
tag = input.readTag();
|
|
if (tag != 42) {
|
|
break;
|
|
}
|
|
}
|
|
case 42: {
|
|
// infos
|
|
tag = input.readRepeatedMessage(infos, tag);
|
|
bitField0_ |= 0x00000200;
|
|
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.lastId, lastId);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeUInt32(FieldNames.coinQty, coinQty);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeUInt32(FieldNames.fateCardId, fateCardId);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeUInt32(FieldNames.sweepTicket, sweepTicket);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeUInt32(FieldNames.sweepTicketUndated, sweepTicketUndated);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
output.writeBool(FieldNames.newFateCard, newFateCard);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
output.writeMessage(FieldNames.info, info);
|
|
}
|
|
if ((bitField0_ & 0x00000080) != 0) {
|
|
output.writeMessage(FieldNames.change, change);
|
|
}
|
|
if ((bitField0_ & 0x00000100) != 0) {
|
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000200) != 0) {
|
|
output.writeRepeatedMessage(FieldNames.infos, infos);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyResp mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case -2026030479: {
|
|
if (input.isAtField(FieldNames.lastId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
lastId = input.readUInt32();
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -1683598779: {
|
|
if (input.isAtField(FieldNames.coinQty)) {
|
|
if (!input.trySkipNullValue()) {
|
|
coinQty = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 1656856567: {
|
|
if (input.isAtField(FieldNames.fateCardId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
fateCardId = input.readUInt32();
|
|
bitField0_ |= 0x00000004;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 153570552: {
|
|
if (input.isAtField(FieldNames.sweepTicket)) {
|
|
if (!input.trySkipNullValue()) {
|
|
sweepTicket = input.readUInt32();
|
|
bitField0_ |= 0x00000008;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2051306341: {
|
|
if (input.isAtField(FieldNames.sweepTicketUndated)) {
|
|
if (!input.trySkipNullValue()) {
|
|
sweepTicketUndated = input.readUInt32();
|
|
bitField0_ |= 0x00000010;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -387463364: {
|
|
if (input.isAtField(FieldNames.newFateCard)) {
|
|
if (!input.trySkipNullValue()) {
|
|
newFateCard = input.readBool();
|
|
bitField0_ |= 0x00000020;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2283726: {
|
|
if (input.isAtField(FieldNames.info)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(info);
|
|
bitField0_ |= 0x00000040;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2017198032: {
|
|
if (input.isAtField(FieldNames.change)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(change);
|
|
bitField0_ |= 0x00000080;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -2082324045: {
|
|
if (input.isAtField(FieldNames.nextPackage)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000100;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 70795621: {
|
|
if (input.isAtField(FieldNames.infos)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedMessage(infos);
|
|
bitField0_ |= 0x00000200;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public StarTowerApplyResp clone() {
|
|
return new StarTowerApplyResp().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static StarTowerApplyResp parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new StarTowerApplyResp(), data).checkInitialized();
|
|
}
|
|
|
|
public static StarTowerApplyResp parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new StarTowerApplyResp(), input).checkInitialized();
|
|
}
|
|
|
|
public static StarTowerApplyResp parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new StarTowerApplyResp(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating StarTowerApplyResp messages
|
|
*/
|
|
public static MessageFactory<StarTowerApplyResp> getFactory() {
|
|
return StarTowerApplyRespFactory.INSTANCE;
|
|
}
|
|
|
|
private enum StarTowerApplyRespFactory implements MessageFactory<StarTowerApplyResp> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public StarTowerApplyResp create() {
|
|
return StarTowerApplyResp.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName lastId = FieldName.forField("LastId");
|
|
|
|
static final FieldName coinQty = FieldName.forField("CoinQty");
|
|
|
|
static final FieldName fateCardId = FieldName.forField("FateCardId");
|
|
|
|
static final FieldName sweepTicket = FieldName.forField("SweepTicket");
|
|
|
|
static final FieldName sweepTicketUndated = FieldName.forField("SweepTicketUndated");
|
|
|
|
static final FieldName newFateCard = FieldName.forField("NewFateCard");
|
|
|
|
static final FieldName info = FieldName.forField("Info");
|
|
|
|
static final FieldName change = FieldName.forField("Change");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
|
|
static final FieldName infos = FieldName.forField("Infos");
|
|
}
|
|
}
|
|
}
|