mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
1582 lines
45 KiB
Java
1582 lines
45 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 VampireSurvivorInfo {
|
|
/**
|
|
* Protobuf type {@code VampireSurvivorInfoResp}
|
|
*/
|
|
public static final class VampireSurvivorInfoResp extends ProtoMessage<VampireSurvivorInfoResp> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint32 Id = 1;</code>
|
|
*/
|
|
private int id;
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorLevelReward Reward = 3;</code>
|
|
*/
|
|
private final Public.VampireSurvivorLevelReward reward = Public.VampireSurvivorLevelReward.newInstance();
|
|
|
|
/**
|
|
* <code>optional .VampireClientData ClientData = 6;</code>
|
|
*/
|
|
private final Public.VampireClientData clientData = Public.VampireClientData.newInstance();
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 5;</code>
|
|
*/
|
|
private final RepeatedInt fateCardIds = RepeatedInt.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 2;</code>
|
|
*/
|
|
private final RepeatedMessage<Public.VampireSurvivorEvent> events = RepeatedMessage.newEmptyInstance(Public.VampireSurvivorEvent.getFactory());
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
*/
|
|
private final RepeatedMessage<VampireSceneInfo> scenes = RepeatedMessage.newEmptyInstance(VampireSceneInfo.getFactory());
|
|
|
|
private VampireSurvivorInfoResp() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code VampireSurvivorInfoResp}
|
|
*/
|
|
public static VampireSurvivorInfoResp newInstance() {
|
|
return new VampireSurvivorInfoResp();
|
|
}
|
|
|
|
/**
|
|
* <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 VampireSurvivorInfoResp 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 VampireSurvivorInfoResp setId(final int value) {
|
|
bitField0_ |= 0x00000001;
|
|
id = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorLevelReward Reward = 3;</code>
|
|
* @return whether the reward field is set
|
|
*/
|
|
public boolean hasReward() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorLevelReward Reward = 3;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp clearReward() {
|
|
bitField0_ &= ~0x00000002;
|
|
reward.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorLevelReward Reward = 3;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableReward()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public Public.VampireSurvivorLevelReward getReward() {
|
|
return reward;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorLevelReward Reward = 3;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public Public.VampireSurvivorLevelReward getMutableReward() {
|
|
bitField0_ |= 0x00000002;
|
|
return reward;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireSurvivorLevelReward Reward = 3;</code>
|
|
* @param value the reward to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp setReward(final Public.VampireSurvivorLevelReward value) {
|
|
bitField0_ |= 0x00000002;
|
|
reward.copyFrom(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireClientData ClientData = 6;</code>
|
|
* @return whether the clientData field is set
|
|
*/
|
|
public boolean hasClientData() {
|
|
return (bitField0_ & 0x00000004) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireClientData ClientData = 6;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp clearClientData() {
|
|
bitField0_ &= ~0x00000004;
|
|
clientData.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireClientData ClientData = 6;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableClientData()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public Public.VampireClientData getClientData() {
|
|
return clientData;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireClientData ClientData = 6;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public Public.VampireClientData getMutableClientData() {
|
|
bitField0_ |= 0x00000004;
|
|
return clientData;
|
|
}
|
|
|
|
/**
|
|
* <code>optional .VampireClientData ClientData = 6;</code>
|
|
* @param value the clientData to set
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp setClientData(final Public.VampireClientData value) {
|
|
bitField0_ |= 0x00000004;
|
|
clientData.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 VampireSurvivorInfoResp 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 VampireSurvivorInfoResp 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 VampireSurvivorInfoResp 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 VampireSurvivorInfoResp setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000008;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 5;</code>
|
|
* @return whether the fateCardIds field is set
|
|
*/
|
|
public boolean hasFateCardIds() {
|
|
return (bitField0_ & 0x00000010) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 5;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp clearFateCardIds() {
|
|
bitField0_ &= ~0x00000010;
|
|
fateCardIds.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 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 #getMutableFateCardIds()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedInt getFateCardIds() {
|
|
return fateCardIds;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 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 RepeatedInt getMutableFateCardIds() {
|
|
bitField0_ |= 0x00000010;
|
|
return fateCardIds;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 5;</code>
|
|
* @param value the fateCardIds to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp addFateCardIds(final int value) {
|
|
bitField0_ |= 0x00000010;
|
|
fateCardIds.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 FateCardIds = 5;</code>
|
|
* @param values the fateCardIds to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp addAllFateCardIds(final int... values) {
|
|
bitField0_ |= 0x00000010;
|
|
fateCardIds.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 2;</code>
|
|
* @return whether the events field is set
|
|
*/
|
|
public boolean hasEvents() {
|
|
return (bitField0_ & 0x00000020) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 2;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp clearEvents() {
|
|
bitField0_ &= ~0x00000020;
|
|
events.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 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 #getMutableEvents()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedMessage<Public.VampireSurvivorEvent> getEvents() {
|
|
return events;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 2;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public RepeatedMessage<Public.VampireSurvivorEvent> getMutableEvents() {
|
|
bitField0_ |= 0x00000020;
|
|
return events;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 2;</code>
|
|
* @param value the events to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp addEvents(final Public.VampireSurvivorEvent value) {
|
|
bitField0_ |= 0x00000020;
|
|
events.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSurvivorEvent Events = 2;</code>
|
|
* @param values the events to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp addAllEvents(final Public.VampireSurvivorEvent... values) {
|
|
bitField0_ |= 0x00000020;
|
|
events.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
* @return whether the scenes field is set
|
|
*/
|
|
public boolean hasScenes() {
|
|
return (bitField0_ & 0x00000040) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp clearScenes() {
|
|
bitField0_ &= ~0x00000040;
|
|
scenes.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableScenes()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedMessage<VampireSceneInfo> getScenes() {
|
|
return scenes;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public RepeatedMessage<VampireSceneInfo> getMutableScenes() {
|
|
bitField0_ |= 0x00000040;
|
|
return scenes;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
* @param value the scenes to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp addScenes(final VampireSceneInfo value) {
|
|
bitField0_ |= 0x00000040;
|
|
scenes.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated .VampireSceneInfo Scenes = 4;</code>
|
|
* @param values the scenes to add
|
|
* @return this
|
|
*/
|
|
public VampireSurvivorInfoResp addAllScenes(final VampireSceneInfo... values) {
|
|
bitField0_ |= 0x00000040;
|
|
scenes.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp copyFrom(final VampireSurvivorInfoResp other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
id = other.id;
|
|
reward.copyFrom(other.reward);
|
|
clientData.copyFrom(other.clientData);
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
fateCardIds.copyFrom(other.fateCardIds);
|
|
events.copyFrom(other.events);
|
|
scenes.copyFrom(other.scenes);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp mergeFrom(final VampireSurvivorInfoResp other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasId()) {
|
|
setId(other.id);
|
|
}
|
|
if (other.hasReward()) {
|
|
getMutableReward().mergeFrom(other.reward);
|
|
}
|
|
if (other.hasClientData()) {
|
|
getMutableClientData().mergeFrom(other.clientData);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
if (other.hasFateCardIds()) {
|
|
getMutableFateCardIds().addAll(other.fateCardIds);
|
|
}
|
|
if (other.hasEvents()) {
|
|
getMutableEvents().addAll(other.events);
|
|
}
|
|
if (other.hasScenes()) {
|
|
getMutableScenes().addAll(other.scenes);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
id = 0;
|
|
reward.clear();
|
|
clientData.clear();
|
|
nextPackage.clear();
|
|
fateCardIds.clear();
|
|
events.clear();
|
|
scenes.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
reward.clearQuick();
|
|
clientData.clearQuick();
|
|
nextPackage.clear();
|
|
fateCardIds.clear();
|
|
events.clearQuick();
|
|
scenes.clearQuick();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof VampireSurvivorInfoResp)) {
|
|
return false;
|
|
}
|
|
VampireSurvivorInfoResp other = (VampireSurvivorInfoResp) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasId() || id == other.id)
|
|
&& (!hasReward() || reward.equals(other.reward))
|
|
&& (!hasClientData() || clientData.equals(other.clientData))
|
|
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
|
|
&& (!hasFateCardIds() || fateCardIds.equals(other.fateCardIds))
|
|
&& (!hasEvents() || events.equals(other.events))
|
|
&& (!hasScenes() || scenes.equals(other.scenes));
|
|
}
|
|
|
|
@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) 26);
|
|
output.writeMessageNoTag(reward);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRawByte((byte) 50);
|
|
output.writeMessageNoTag(clientData);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeRawLittleEndian16((short) 32762);
|
|
output.writeBytesNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
for (int i = 0; i < fateCardIds.length(); i++) {
|
|
output.writeRawByte((byte) 40);
|
|
output.writeUInt32NoTag(fateCardIds.array()[i]);
|
|
}
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
for (int i = 0; i < events.length(); i++) {
|
|
output.writeRawByte((byte) 18);
|
|
output.writeMessageNoTag(events.get(i));
|
|
}
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
for (int i = 0; i < scenes.length(); i++) {
|
|
output.writeRawByte((byte) 34);
|
|
output.writeMessageNoTag(scenes.get(i));
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeMessageSizeNoTag(reward);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += 1 + ProtoSink.computeMessageSizeNoTag(clientData);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
size += (1 * fateCardIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(fateCardIds);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
size += (1 * events.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(events);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
size += (1 * scenes.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(scenes);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
@Override
|
|
@SuppressWarnings("fallthrough")
|
|
public VampireSurvivorInfoResp 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 != 26) {
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
// reward
|
|
input.readMessage(reward);
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 50) {
|
|
break;
|
|
}
|
|
}
|
|
case 50: {
|
|
// clientData
|
|
input.readMessage(clientData);
|
|
bitField0_ |= 0x00000004;
|
|
tag = input.readTag();
|
|
if (tag != 16378) {
|
|
break;
|
|
}
|
|
}
|
|
case 16378: {
|
|
// nextPackage
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000008;
|
|
tag = input.readTag();
|
|
if (tag != 42) {
|
|
break;
|
|
}
|
|
}
|
|
case 42: {
|
|
// fateCardIds [packed=true]
|
|
input.readPackedUInt32(fateCardIds, tag);
|
|
bitField0_ |= 0x00000010;
|
|
tag = input.readTag();
|
|
if (tag != 18) {
|
|
break;
|
|
}
|
|
}
|
|
case 18: {
|
|
// events
|
|
tag = input.readRepeatedMessage(events, tag);
|
|
bitField0_ |= 0x00000020;
|
|
if (tag != 34) {
|
|
break;
|
|
}
|
|
}
|
|
case 34: {
|
|
// scenes
|
|
tag = input.readRepeatedMessage(scenes, tag);
|
|
bitField0_ |= 0x00000040;
|
|
if (tag != 0) {
|
|
break;
|
|
}
|
|
}
|
|
case 0: {
|
|
return this;
|
|
}
|
|
default: {
|
|
if (!input.skipField(tag)) {
|
|
return this;
|
|
}
|
|
tag = input.readTag();
|
|
break;
|
|
}
|
|
case 40: {
|
|
// fateCardIds [packed=false]
|
|
tag = input.readRepeatedUInt32(fateCardIds, tag);
|
|
bitField0_ |= 0x00000010;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void writeTo(final JsonSink output) throws IOException {
|
|
output.beginObject();
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
output.writeUInt32(FieldNames.id, id);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeMessage(FieldNames.reward, reward);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeMessage(FieldNames.clientData, clientData);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeRepeatedUInt32(FieldNames.fateCardIds, fateCardIds);
|
|
}
|
|
if ((bitField0_ & 0x00000020) != 0) {
|
|
output.writeRepeatedMessage(FieldNames.events, events);
|
|
}
|
|
if ((bitField0_ & 0x00000040) != 0) {
|
|
output.writeRepeatedMessage(FieldNames.scenes, scenes);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp 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 -1850459313: {
|
|
if (input.isAtField(FieldNames.reward)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(reward);
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -1199548875: {
|
|
if (input.isAtField(FieldNames.clientData)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readMessage(clientData);
|
|
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 -177053860: {
|
|
if (input.isAtField(FieldNames.fateCardIds)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedUInt32(fateCardIds);
|
|
bitField0_ |= 0x00000010;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2087505209: {
|
|
if (input.isAtField(FieldNames.events)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedMessage(events);
|
|
bitField0_ |= 0x00000020;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -1824201337: {
|
|
if (input.isAtField(FieldNames.scenes)) {
|
|
if (!input.trySkipNullValue()) {
|
|
input.readRepeatedMessage(scenes);
|
|
bitField0_ |= 0x00000040;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
default: {
|
|
input.skipUnknownField();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
input.endObject();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp clone() {
|
|
return new VampireSurvivorInfoResp().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static VampireSurvivorInfoResp parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorInfoResp(), data).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorInfoResp parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorInfoResp(), input).checkInitialized();
|
|
}
|
|
|
|
public static VampireSurvivorInfoResp parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSurvivorInfoResp(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating VampireSurvivorInfoResp messages
|
|
*/
|
|
public static MessageFactory<VampireSurvivorInfoResp> getFactory() {
|
|
return VampireSurvivorInfoRespFactory.INSTANCE;
|
|
}
|
|
|
|
private enum VampireSurvivorInfoRespFactory implements MessageFactory<VampireSurvivorInfoResp> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public VampireSurvivorInfoResp create() {
|
|
return VampireSurvivorInfoResp.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName id = FieldName.forField("Id");
|
|
|
|
static final FieldName reward = FieldName.forField("Reward");
|
|
|
|
static final FieldName clientData = FieldName.forField("ClientData");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
|
|
static final FieldName fateCardIds = FieldName.forField("FateCardIds");
|
|
|
|
static final FieldName events = FieldName.forField("Events");
|
|
|
|
static final FieldName scenes = FieldName.forField("Scenes");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Protobuf type {@code VampireSceneInfo}
|
|
*/
|
|
public static final class VampireSceneInfo extends ProtoMessage<VampireSceneInfo> implements Cloneable {
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
/**
|
|
* <code>optional uint64 BuildId = 2;</code>
|
|
*/
|
|
private long buildId;
|
|
|
|
/**
|
|
* <code>optional uint32 SceneType = 1;</code>
|
|
*/
|
|
private int sceneType;
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 4;</code>
|
|
*/
|
|
private int time;
|
|
|
|
/**
|
|
* <code>optional bytes NextPackage = 2047;</code>
|
|
*/
|
|
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
*/
|
|
private final RepeatedInt killCount = RepeatedInt.newEmptyInstance();
|
|
|
|
private VampireSceneInfo() {
|
|
}
|
|
|
|
/**
|
|
* @return a new empty instance of {@code VampireSceneInfo}
|
|
*/
|
|
public static VampireSceneInfo newInstance() {
|
|
return new VampireSceneInfo();
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint64 BuildId = 2;</code>
|
|
* @return whether the buildId field is set
|
|
*/
|
|
public boolean hasBuildId() {
|
|
return (bitField0_ & 0x00000001) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint64 BuildId = 2;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo clearBuildId() {
|
|
bitField0_ &= ~0x00000001;
|
|
buildId = 0L;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint64 BuildId = 2;</code>
|
|
* @return the buildId
|
|
*/
|
|
public long getBuildId() {
|
|
return buildId;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint64 BuildId = 2;</code>
|
|
* @param value the buildId to set
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo setBuildId(final long value) {
|
|
bitField0_ |= 0x00000001;
|
|
buildId = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SceneType = 1;</code>
|
|
* @return whether the sceneType field is set
|
|
*/
|
|
public boolean hasSceneType() {
|
|
return (bitField0_ & 0x00000002) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SceneType = 1;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo clearSceneType() {
|
|
bitField0_ &= ~0x00000002;
|
|
sceneType = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SceneType = 1;</code>
|
|
* @return the sceneType
|
|
*/
|
|
public int getSceneType() {
|
|
return sceneType;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 SceneType = 1;</code>
|
|
* @param value the sceneType to set
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo setSceneType(final int value) {
|
|
bitField0_ |= 0x00000002;
|
|
sceneType = value;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 4;</code>
|
|
* @return whether the time field is set
|
|
*/
|
|
public boolean hasTime() {
|
|
return (bitField0_ & 0x00000004) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 4;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo clearTime() {
|
|
bitField0_ &= ~0x00000004;
|
|
time = 0;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 4;</code>
|
|
* @return the time
|
|
*/
|
|
public int getTime() {
|
|
return time;
|
|
}
|
|
|
|
/**
|
|
* <code>optional uint32 Time = 4;</code>
|
|
* @param value the time to set
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo setTime(final int value) {
|
|
bitField0_ |= 0x00000004;
|
|
time = 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 VampireSceneInfo 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 VampireSceneInfo 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 VampireSceneInfo 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 VampireSceneInfo setNextPackage(final byte... values) {
|
|
bitField0_ |= 0x00000008;
|
|
nextPackage.copyFrom(values);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
* @return whether the killCount field is set
|
|
*/
|
|
public boolean hasKillCount() {
|
|
return (bitField0_ & 0x00000010) != 0;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo clearKillCount() {
|
|
bitField0_ &= ~0x00000010;
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
*
|
|
* This method returns the internal storage object without modifying any has state.
|
|
* The returned object should not be modified and be treated as read-only.
|
|
*
|
|
* Use {@link #getMutableKillCount()} if you want to modify it.
|
|
*
|
|
* @return internal storage object for reading
|
|
*/
|
|
public RepeatedInt getKillCount() {
|
|
return killCount;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
*
|
|
* This method returns the internal storage object and sets the corresponding
|
|
* has state. The returned object will become part of this message and its
|
|
* contents may be modified as long as the has state is not cleared.
|
|
*
|
|
* @return internal storage object for modifications
|
|
*/
|
|
public RepeatedInt getMutableKillCount() {
|
|
bitField0_ |= 0x00000010;
|
|
return killCount;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
* @param value the killCount to add
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo addKillCount(final int value) {
|
|
bitField0_ |= 0x00000010;
|
|
killCount.add(value);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* <code>repeated uint32 KillCount = 3;</code>
|
|
* @param values the killCount to add
|
|
* @return this
|
|
*/
|
|
public VampireSceneInfo addAllKillCount(final int... values) {
|
|
bitField0_ |= 0x00000010;
|
|
killCount.addAll(values);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSceneInfo copyFrom(final VampireSceneInfo other) {
|
|
cachedSize = other.cachedSize;
|
|
if ((bitField0_ | other.bitField0_) != 0) {
|
|
bitField0_ = other.bitField0_;
|
|
buildId = other.buildId;
|
|
sceneType = other.sceneType;
|
|
time = other.time;
|
|
nextPackage.copyFrom(other.nextPackage);
|
|
killCount.copyFrom(other.killCount);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSceneInfo mergeFrom(final VampireSceneInfo other) {
|
|
if (other.isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
if (other.hasBuildId()) {
|
|
setBuildId(other.buildId);
|
|
}
|
|
if (other.hasSceneType()) {
|
|
setSceneType(other.sceneType);
|
|
}
|
|
if (other.hasTime()) {
|
|
setTime(other.time);
|
|
}
|
|
if (other.hasNextPackage()) {
|
|
getMutableNextPackage().copyFrom(other.nextPackage);
|
|
}
|
|
if (other.hasKillCount()) {
|
|
getMutableKillCount().addAll(other.killCount);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSceneInfo clear() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
buildId = 0L;
|
|
sceneType = 0;
|
|
time = 0;
|
|
nextPackage.clear();
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public VampireSceneInfo clearQuick() {
|
|
if (isEmpty()) {
|
|
return this;
|
|
}
|
|
cachedSize = -1;
|
|
bitField0_ = 0;
|
|
nextPackage.clear();
|
|
killCount.clear();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == this) {
|
|
return true;
|
|
}
|
|
if (!(o instanceof VampireSceneInfo)) {
|
|
return false;
|
|
}
|
|
VampireSceneInfo other = (VampireSceneInfo) o;
|
|
return bitField0_ == other.bitField0_
|
|
&& (!hasBuildId() || buildId == other.buildId)
|
|
&& (!hasSceneType() || sceneType == other.sceneType)
|
|
&& (!hasTime() || time == other.time)
|
|
&& (!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.writeUInt64NoTag(buildId);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeRawByte((byte) 8);
|
|
output.writeUInt32NoTag(sceneType);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeRawByte((byte) 32);
|
|
output.writeUInt32NoTag(time);
|
|
}
|
|
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) 24);
|
|
output.writeUInt32NoTag(killCount.array()[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected int computeSerializedSize() {
|
|
int size = 0;
|
|
if ((bitField0_ & 0x00000001) != 0) {
|
|
size += 1 + ProtoSink.computeUInt64SizeNoTag(buildId);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(sceneType);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(time);
|
|
}
|
|
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 VampireSceneInfo mergeFrom(final ProtoSource input) throws IOException {
|
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
int tag = input.readTag();
|
|
while (true) {
|
|
switch (tag) {
|
|
case 16: {
|
|
// buildId
|
|
buildId = input.readUInt64();
|
|
bitField0_ |= 0x00000001;
|
|
tag = input.readTag();
|
|
if (tag != 8) {
|
|
break;
|
|
}
|
|
}
|
|
case 8: {
|
|
// sceneType
|
|
sceneType = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
tag = input.readTag();
|
|
if (tag != 32) {
|
|
break;
|
|
}
|
|
}
|
|
case 32: {
|
|
// time
|
|
time = input.readUInt32();
|
|
bitField0_ |= 0x00000004;
|
|
tag = input.readTag();
|
|
if (tag != 16378) {
|
|
break;
|
|
}
|
|
}
|
|
case 16378: {
|
|
// nextPackage
|
|
input.readBytes(nextPackage);
|
|
bitField0_ |= 0x00000008;
|
|
tag = input.readTag();
|
|
if (tag != 26) {
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
// 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 24: {
|
|
// 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.writeUInt64(FieldNames.buildId, buildId);
|
|
}
|
|
if ((bitField0_ & 0x00000002) != 0) {
|
|
output.writeUInt32(FieldNames.sceneType, sceneType);
|
|
}
|
|
if ((bitField0_ & 0x00000004) != 0) {
|
|
output.writeUInt32(FieldNames.time, time);
|
|
}
|
|
if ((bitField0_ & 0x00000008) != 0) {
|
|
output.writeBytes(FieldNames.nextPackage, nextPackage);
|
|
}
|
|
if ((bitField0_ & 0x00000010) != 0) {
|
|
output.writeRepeatedUInt32(FieldNames.killCount, killCount);
|
|
}
|
|
output.endObject();
|
|
}
|
|
|
|
@Override
|
|
public VampireSceneInfo mergeFrom(final JsonSource input) throws IOException {
|
|
if (!input.beginObject()) {
|
|
return this;
|
|
}
|
|
while (!input.isAtEnd()) {
|
|
switch (input.readFieldHash()) {
|
|
case 1895597065: {
|
|
if (input.isAtField(FieldNames.buildId)) {
|
|
if (!input.trySkipNullValue()) {
|
|
buildId = input.readUInt64();
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case -561637946: {
|
|
if (input.isAtField(FieldNames.sceneType)) {
|
|
if (!input.trySkipNullValue()) {
|
|
sceneType = input.readUInt32();
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
} else {
|
|
input.skipUnknownField();
|
|
}
|
|
break;
|
|
}
|
|
case 2606829: {
|
|
if (input.isAtField(FieldNames.time)) {
|
|
if (!input.trySkipNullValue()) {
|
|
time = input.readUInt32();
|
|
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 VampireSceneInfo clone() {
|
|
return new VampireSceneInfo().copyFrom(this);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return ((bitField0_) == 0);
|
|
}
|
|
|
|
public static VampireSceneInfo parseFrom(final byte[] data) throws
|
|
InvalidProtocolBufferException {
|
|
return ProtoMessage.mergeFrom(new VampireSceneInfo(), data).checkInitialized();
|
|
}
|
|
|
|
public static VampireSceneInfo parseFrom(final ProtoSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSceneInfo(), input).checkInitialized();
|
|
}
|
|
|
|
public static VampireSceneInfo parseFrom(final JsonSource input) throws IOException {
|
|
return ProtoMessage.mergeFrom(new VampireSceneInfo(), input).checkInitialized();
|
|
}
|
|
|
|
/**
|
|
* @return factory for creating VampireSceneInfo messages
|
|
*/
|
|
public static MessageFactory<VampireSceneInfo> getFactory() {
|
|
return VampireSceneInfoFactory.INSTANCE;
|
|
}
|
|
|
|
private enum VampireSceneInfoFactory implements MessageFactory<VampireSceneInfo> {
|
|
INSTANCE;
|
|
|
|
@Override
|
|
public VampireSceneInfo create() {
|
|
return VampireSceneInfo.newInstance();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Contains name constants used for serializing JSON
|
|
*/
|
|
static class FieldNames {
|
|
static final FieldName buildId = FieldName.forField("BuildId");
|
|
|
|
static final FieldName sceneType = FieldName.forField("SceneType");
|
|
|
|
static final FieldName time = FieldName.forField("Time");
|
|
|
|
static final FieldName nextPackage = FieldName.forField("NextPackage");
|
|
|
|
static final FieldName killCount = FieldName.forField("KillCount");
|
|
}
|
|
}
|
|
}
|