// 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 JointDrillRank { /** * Protobuf type {@code JointDrillRankInfo} */ public static final class JointDrillRankInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** * optional int64 LastRefreshTime = 1; */ private long lastRefreshTime; /** * optional uint32 Total = 4; */ private int total; /** * optional .JointDrillRankData Self = 2; */ private final JointDrillRankData self = JointDrillRankData.newInstance(); /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** * repeated .JointDrillRankData Rank = 3; */ private final RepeatedMessage rank = RepeatedMessage.newEmptyInstance(JointDrillRankData.getFactory()); private JointDrillRankInfo() { } /** * @return a new empty instance of {@code JointDrillRankInfo} */ public static JointDrillRankInfo newInstance() { return new JointDrillRankInfo(); } /** * optional int64 LastRefreshTime = 1; * @return whether the lastRefreshTime field is set */ public boolean hasLastRefreshTime() { return (bitField0_ & 0x00000001) != 0; } /** * optional int64 LastRefreshTime = 1; * @return this */ public JointDrillRankInfo clearLastRefreshTime() { bitField0_ &= ~0x00000001; lastRefreshTime = 0L; return this; } /** * optional int64 LastRefreshTime = 1; * @return the lastRefreshTime */ public long getLastRefreshTime() { return lastRefreshTime; } /** * optional int64 LastRefreshTime = 1; * @param value the lastRefreshTime to set * @return this */ public JointDrillRankInfo setLastRefreshTime(final long value) { bitField0_ |= 0x00000001; lastRefreshTime = value; return this; } /** * optional uint32 Total = 4; * @return whether the total field is set */ public boolean hasTotal() { return (bitField0_ & 0x00000002) != 0; } /** * optional uint32 Total = 4; * @return this */ public JointDrillRankInfo clearTotal() { bitField0_ &= ~0x00000002; total = 0; return this; } /** * optional uint32 Total = 4; * @return the total */ public int getTotal() { return total; } /** * optional uint32 Total = 4; * @param value the total to set * @return this */ public JointDrillRankInfo setTotal(final int value) { bitField0_ |= 0x00000002; total = value; return this; } /** * optional .JointDrillRankData Self = 2; * @return whether the self field is set */ public boolean hasSelf() { return (bitField0_ & 0x00000004) != 0; } /** * optional .JointDrillRankData Self = 2; * @return this */ public JointDrillRankInfo clearSelf() { bitField0_ &= ~0x00000004; self.clear(); return this; } /** * optional .JointDrillRankData Self = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * * Use {@link #getMutableSelf()} if you want to modify it. * * @return internal storage object for reading */ public JointDrillRankData getSelf() { return self; } /** * optional .JointDrillRankData Self = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its * contents may be modified as long as the has state is not cleared. * * @return internal storage object for modifications */ public JointDrillRankData getMutableSelf() { bitField0_ |= 0x00000004; return self; } /** * optional .JointDrillRankData Self = 2; * @param value the self to set * @return this */ public JointDrillRankInfo setSelf(final JointDrillRankData value) { bitField0_ |= 0x00000004; self.copyFrom(value); return this; } /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { return (bitField0_ & 0x00000008) != 0; } /** * optional bytes NextPackage = 2047; * @return this */ public JointDrillRankInfo clearNextPackage() { bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * @param value the nextPackage to add * @return this */ public JointDrillRankInfo addNextPackage(final byte value) { bitField0_ |= 0x00000008; nextPackage.add(value); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to add * @return this */ public JointDrillRankInfo addAllNextPackage(final byte... values) { bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to set * @return this */ public JointDrillRankInfo setNextPackage(final byte... values) { bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } /** * repeated .JointDrillRankData Rank = 3; * @return whether the rank field is set */ public boolean hasRank() { return (bitField0_ & 0x00000010) != 0; } /** * repeated .JointDrillRankData Rank = 3; * @return this */ public JointDrillRankInfo clearRank() { bitField0_ &= ~0x00000010; rank.clear(); return this; } /** * repeated .JointDrillRankData Rank = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * * Use {@link #getMutableRank()} if you want to modify it. * * @return internal storage object for reading */ public RepeatedMessage getRank() { return rank; } /** * repeated .JointDrillRankData Rank = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its * contents may be modified as long as the has state is not cleared. * * @return internal storage object for modifications */ public RepeatedMessage getMutableRank() { bitField0_ |= 0x00000010; return rank; } /** * repeated .JointDrillRankData Rank = 3; * @param value the rank to add * @return this */ public JointDrillRankInfo addRank(final JointDrillRankData value) { bitField0_ |= 0x00000010; rank.add(value); return this; } /** * repeated .JointDrillRankData Rank = 3; * @param values the rank to add * @return this */ public JointDrillRankInfo addAllRank(final JointDrillRankData... values) { bitField0_ |= 0x00000010; rank.addAll(values); return this; } @Override public JointDrillRankInfo copyFrom(final JointDrillRankInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; lastRefreshTime = other.lastRefreshTime; total = other.total; self.copyFrom(other.self); nextPackage.copyFrom(other.nextPackage); rank.copyFrom(other.rank); } return this; } @Override public JointDrillRankInfo mergeFrom(final JointDrillRankInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; if (other.hasLastRefreshTime()) { setLastRefreshTime(other.lastRefreshTime); } if (other.hasTotal()) { setTotal(other.total); } if (other.hasSelf()) { getMutableSelf().mergeFrom(other.self); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } if (other.hasRank()) { getMutableRank().addAll(other.rank); } return this; } @Override public JointDrillRankInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; lastRefreshTime = 0L; total = 0; self.clear(); nextPackage.clear(); rank.clear(); return this; } @Override public JointDrillRankInfo clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; self.clearQuick(); nextPackage.clear(); rank.clearQuick(); return this; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof JointDrillRankInfo)) { return false; } JointDrillRankInfo other = (JointDrillRankInfo) o; return bitField0_ == other.bitField0_ && (!hasLastRefreshTime() || lastRefreshTime == other.lastRefreshTime) && (!hasTotal() || total == other.total) && (!hasSelf() || self.equals(other.self)) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasRank() || rank.equals(other.rank)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); output.writeInt64NoTag(lastRefreshTime); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(total); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 18); output.writeMessageNoTag(self); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < rank.length(); i++) { output.writeRawByte((byte) 26); output.writeMessageNoTag(rank.get(i)); } } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeInt64SizeNoTag(lastRefreshTime); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(total); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(self); } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000010) != 0) { size += (1 * rank.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rank); } return size; } @Override @SuppressWarnings("fallthrough") public JointDrillRankInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 8: { // lastRefreshTime lastRefreshTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { break; } } case 32: { // total total = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 18) { break; } } case 18: { // self input.readMessage(self); 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: { // rank tag = input.readRepeatedMessage(rank, tag); bitField0_ |= 0x00000010; if (tag != 0) { break; } } case 0: { return this; } default: { if (!input.skipField(tag)) { return this; } tag = input.readTag(); break; } } } } @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { output.writeInt64(FieldNames.lastRefreshTime, lastRefreshTime); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.total, total); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.self, self); } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.rank, rank); } output.endObject(); } @Override public JointDrillRankInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { case -197072974: { if (input.isAtField(FieldNames.lastRefreshTime)) { if (!input.trySkipNullValue()) { lastRefreshTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); } break; } case 80997156: { if (input.isAtField(FieldNames.total)) { if (!input.trySkipNullValue()) { total = input.readUInt32(); bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); } break; } case 2573164: { if (input.isAtField(FieldNames.self)) { if (!input.trySkipNullValue()) { input.readMessage(self); 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 2539596: { if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(rank); bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); } break; } default: { input.skipUnknownField(); break; } } } input.endObject(); return this; } @Override public JointDrillRankInfo clone() { return new JointDrillRankInfo().copyFrom(this); } @Override public boolean isEmpty() { return ((bitField0_) == 0); } public static JointDrillRankInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { return ProtoMessage.mergeFrom(new JointDrillRankInfo(), data).checkInitialized(); } public static JointDrillRankInfo parseFrom(final ProtoSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankInfo(), input).checkInitialized(); } public static JointDrillRankInfo parseFrom(final JsonSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankInfo(), input).checkInitialized(); } /** * @return factory for creating JointDrillRankInfo messages */ public static MessageFactory getFactory() { return JointDrillRankInfoFactory.INSTANCE; } private enum JointDrillRankInfoFactory implements MessageFactory { INSTANCE; @Override public JointDrillRankInfo create() { return JointDrillRankInfo.newInstance(); } } /** * Contains name constants used for serializing JSON */ static class FieldNames { static final FieldName lastRefreshTime = FieldName.forField("LastRefreshTime"); static final FieldName total = FieldName.forField("Total"); static final FieldName self = FieldName.forField("Self"); static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName rank = FieldName.forField("Rank"); } } /** * Protobuf type {@code JointDrillRankChar} */ public static final class JointDrillRankChar extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** * optional uint32 Id = 1; */ private int id; /** * optional uint32 Level = 2; */ private int level; /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); private JointDrillRankChar() { } /** * @return a new empty instance of {@code JointDrillRankChar} */ public static JointDrillRankChar newInstance() { return new JointDrillRankChar(); } /** * optional uint32 Id = 1; * @return whether the id field is set */ public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** * optional uint32 Id = 1; * @return this */ public JointDrillRankChar clearId() { bitField0_ &= ~0x00000001; id = 0; return this; } /** * optional uint32 Id = 1; * @return the id */ public int getId() { return id; } /** * optional uint32 Id = 1; * @param value the id to set * @return this */ public JointDrillRankChar setId(final int value) { bitField0_ |= 0x00000001; id = value; return this; } /** * optional uint32 Level = 2; * @return whether the level field is set */ public boolean hasLevel() { return (bitField0_ & 0x00000002) != 0; } /** * optional uint32 Level = 2; * @return this */ public JointDrillRankChar clearLevel() { bitField0_ &= ~0x00000002; level = 0; return this; } /** * optional uint32 Level = 2; * @return the level */ public int getLevel() { return level; } /** * optional uint32 Level = 2; * @param value the level to set * @return this */ public JointDrillRankChar setLevel(final int value) { bitField0_ |= 0x00000002; level = value; return this; } /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { return (bitField0_ & 0x00000004) != 0; } /** * optional bytes NextPackage = 2047; * @return this */ public JointDrillRankChar clearNextPackage() { bitField0_ &= ~0x00000004; nextPackage.clear(); return this; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its * contents may be modified as long as the has state is not cleared. * * @return internal storage object for modifications */ public RepeatedByte getMutableNextPackage() { bitField0_ |= 0x00000004; return nextPackage; } /** * optional bytes NextPackage = 2047; * @param value the nextPackage to add * @return this */ public JointDrillRankChar addNextPackage(final byte value) { bitField0_ |= 0x00000004; nextPackage.add(value); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to add * @return this */ public JointDrillRankChar addAllNextPackage(final byte... values) { bitField0_ |= 0x00000004; nextPackage.addAll(values); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to set * @return this */ public JointDrillRankChar setNextPackage(final byte... values) { bitField0_ |= 0x00000004; nextPackage.copyFrom(values); return this; } @Override public JointDrillRankChar copyFrom(final JointDrillRankChar other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; id = other.id; level = other.level; nextPackage.copyFrom(other.nextPackage); } return this; } @Override public JointDrillRankChar mergeFrom(final JointDrillRankChar other) { if (other.isEmpty()) { return this; } cachedSize = -1; if (other.hasId()) { setId(other.id); } if (other.hasLevel()) { setLevel(other.level); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } return this; } @Override public JointDrillRankChar clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; id = 0; level = 0; nextPackage.clear(); return this; } @Override public JointDrillRankChar clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; nextPackage.clear(); return this; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof JointDrillRankChar)) { return false; } JointDrillRankChar other = (JointDrillRankChar) o; return bitField0_ == other.bitField0_ && (!hasId() || id == other.id) && (!hasLevel() || level == other.level) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000004) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } return size; } @Override @SuppressWarnings("fallthrough") public JointDrillRankChar mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 8: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { break; } } case 16: { // level level = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 16378) { break; } } case 16378: { // nextPackage input.readBytes(nextPackage); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; } } case 0: { return this; } default: { if (!input.skipField(tag)) { return this; } tag = input.readTag(); break; } } } } @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000004) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } output.endObject(); } @Override public JointDrillRankChar 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 73313124: { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); } break; } case -2082324045: { if (input.isAtField(FieldNames.nextPackage)) { if (!input.trySkipNullValue()) { input.readBytes(nextPackage); bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); } break; } default: { input.skipUnknownField(); break; } } } input.endObject(); return this; } @Override public JointDrillRankChar clone() { return new JointDrillRankChar().copyFrom(this); } @Override public boolean isEmpty() { return ((bitField0_) == 0); } public static JointDrillRankChar parseFrom(final byte[] data) throws InvalidProtocolBufferException { return ProtoMessage.mergeFrom(new JointDrillRankChar(), data).checkInitialized(); } public static JointDrillRankChar parseFrom(final ProtoSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankChar(), input).checkInitialized(); } public static JointDrillRankChar parseFrom(final JsonSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankChar(), input).checkInitialized(); } /** * @return factory for creating JointDrillRankChar messages */ public static MessageFactory getFactory() { return JointDrillRankCharFactory.INSTANCE; } private enum JointDrillRankCharFactory implements MessageFactory { INSTANCE; @Override public JointDrillRankChar create() { return JointDrillRankChar.newInstance(); } } /** * Contains name constants used for serializing JSON */ static class FieldNames { static final FieldName id = FieldName.forField("Id"); static final FieldName level = FieldName.forField("Level"); static final FieldName nextPackage = FieldName.forField("NextPackage"); } } /** * Protobuf type {@code JointDrillRankTeam} */ public static final class JointDrillRankTeam extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** * optional uint32 BuildScore = 2; */ private int buildScore; /** * optional uint32 Damage = 3; */ private int damage; /** * optional uint32 Time = 4; */ private int time; /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** * repeated .JointDrillRankChar Chars = 1; */ private final RepeatedMessage chars = RepeatedMessage.newEmptyInstance(JointDrillRankChar.getFactory()); private JointDrillRankTeam() { } /** * @return a new empty instance of {@code JointDrillRankTeam} */ public static JointDrillRankTeam newInstance() { return new JointDrillRankTeam(); } /** * optional uint32 BuildScore = 2; * @return whether the buildScore field is set */ public boolean hasBuildScore() { return (bitField0_ & 0x00000001) != 0; } /** * optional uint32 BuildScore = 2; * @return this */ public JointDrillRankTeam clearBuildScore() { bitField0_ &= ~0x00000001; buildScore = 0; return this; } /** * optional uint32 BuildScore = 2; * @return the buildScore */ public int getBuildScore() { return buildScore; } /** * optional uint32 BuildScore = 2; * @param value the buildScore to set * @return this */ public JointDrillRankTeam setBuildScore(final int value) { bitField0_ |= 0x00000001; buildScore = value; return this; } /** * optional uint32 Damage = 3; * @return whether the damage field is set */ public boolean hasDamage() { return (bitField0_ & 0x00000002) != 0; } /** * optional uint32 Damage = 3; * @return this */ public JointDrillRankTeam clearDamage() { bitField0_ &= ~0x00000002; damage = 0; return this; } /** * optional uint32 Damage = 3; * @return the damage */ public int getDamage() { return damage; } /** * optional uint32 Damage = 3; * @param value the damage to set * @return this */ public JointDrillRankTeam setDamage(final int value) { bitField0_ |= 0x00000002; damage = value; return this; } /** * optional uint32 Time = 4; * @return whether the time field is set */ public boolean hasTime() { return (bitField0_ & 0x00000004) != 0; } /** * optional uint32 Time = 4; * @return this */ public JointDrillRankTeam clearTime() { bitField0_ &= ~0x00000004; time = 0; return this; } /** * optional uint32 Time = 4; * @return the time */ public int getTime() { return time; } /** * optional uint32 Time = 4; * @param value the time to set * @return this */ public JointDrillRankTeam setTime(final int value) { bitField0_ |= 0x00000004; time = value; return this; } /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { return (bitField0_ & 0x00000008) != 0; } /** * optional bytes NextPackage = 2047; * @return this */ public JointDrillRankTeam clearNextPackage() { bitField0_ &= ~0x00000008; nextPackage.clear(); return this; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * @param value the nextPackage to add * @return this */ public JointDrillRankTeam addNextPackage(final byte value) { bitField0_ |= 0x00000008; nextPackage.add(value); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to add * @return this */ public JointDrillRankTeam addAllNextPackage(final byte... values) { bitField0_ |= 0x00000008; nextPackage.addAll(values); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to set * @return this */ public JointDrillRankTeam setNextPackage(final byte... values) { bitField0_ |= 0x00000008; nextPackage.copyFrom(values); return this; } /** * repeated .JointDrillRankChar Chars = 1; * @return whether the chars field is set */ public boolean hasChars() { return (bitField0_ & 0x00000010) != 0; } /** * repeated .JointDrillRankChar Chars = 1; * @return this */ public JointDrillRankTeam clearChars() { bitField0_ &= ~0x00000010; chars.clear(); return this; } /** * repeated .JointDrillRankChar Chars = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * * Use {@link #getMutableChars()} if you want to modify it. * * @return internal storage object for reading */ public RepeatedMessage getChars() { return chars; } /** * repeated .JointDrillRankChar Chars = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its * contents may be modified as long as the has state is not cleared. * * @return internal storage object for modifications */ public RepeatedMessage getMutableChars() { bitField0_ |= 0x00000010; return chars; } /** * repeated .JointDrillRankChar Chars = 1; * @param value the chars to add * @return this */ public JointDrillRankTeam addChars(final JointDrillRankChar value) { bitField0_ |= 0x00000010; chars.add(value); return this; } /** * repeated .JointDrillRankChar Chars = 1; * @param values the chars to add * @return this */ public JointDrillRankTeam addAllChars(final JointDrillRankChar... values) { bitField0_ |= 0x00000010; chars.addAll(values); return this; } @Override public JointDrillRankTeam copyFrom(final JointDrillRankTeam other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; buildScore = other.buildScore; damage = other.damage; time = other.time; nextPackage.copyFrom(other.nextPackage); chars.copyFrom(other.chars); } return this; } @Override public JointDrillRankTeam mergeFrom(final JointDrillRankTeam other) { if (other.isEmpty()) { return this; } cachedSize = -1; if (other.hasBuildScore()) { setBuildScore(other.buildScore); } if (other.hasDamage()) { setDamage(other.damage); } if (other.hasTime()) { setTime(other.time); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } if (other.hasChars()) { getMutableChars().addAll(other.chars); } return this; } @Override public JointDrillRankTeam clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; buildScore = 0; damage = 0; time = 0; nextPackage.clear(); chars.clear(); return this; } @Override public JointDrillRankTeam clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; nextPackage.clear(); chars.clearQuick(); return this; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof JointDrillRankTeam)) { return false; } JointDrillRankTeam other = (JointDrillRankTeam) o; return bitField0_ == other.bitField0_ && (!hasBuildScore() || buildScore == other.buildScore) && (!hasDamage() || damage == other.damage) && (!hasTime() || time == other.time) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasChars() || chars.equals(other.chars)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); output.writeUInt32NoTag(buildScore); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(damage); } 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 < chars.length(); i++) { output.writeRawByte((byte) 10); output.writeMessageNoTag(chars.get(i)); } } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(buildScore); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(damage); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(time); } if ((bitField0_ & 0x00000008) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000010) != 0) { size += (1 * chars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chars); } return size; } @Override @SuppressWarnings("fallthrough") public JointDrillRankTeam mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 16: { // buildScore buildScore = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 24) { break; } } case 24: { // damage damage = 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 != 10) { break; } } case 10: { // chars tag = input.readRepeatedMessage(chars, tag); bitField0_ |= 0x00000010; if (tag != 0) { break; } } case 0: { return this; } default: { if (!input.skipField(tag)) { return this; } tag = input.readTag(); break; } } } } @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { output.writeUInt32(FieldNames.buildScore, buildScore); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.damage, damage); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.time, time); } if ((bitField0_ & 0x00000008) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.chars, chars); } output.endObject(); } @Override public JointDrillRankTeam mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { case 1511471332: { if (input.isAtField(FieldNames.buildScore)) { if (!input.trySkipNullValue()) { buildScore = input.readUInt32(); bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); } break; } case 2039707535: { if (input.isAtField(FieldNames.damage)) { if (!input.trySkipNullValue()) { damage = 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 65071037: { if (input.isAtField(FieldNames.chars)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(chars); bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); } break; } default: { input.skipUnknownField(); break; } } } input.endObject(); return this; } @Override public JointDrillRankTeam clone() { return new JointDrillRankTeam().copyFrom(this); } @Override public boolean isEmpty() { return ((bitField0_) == 0); } public static JointDrillRankTeam parseFrom(final byte[] data) throws InvalidProtocolBufferException { return ProtoMessage.mergeFrom(new JointDrillRankTeam(), data).checkInitialized(); } public static JointDrillRankTeam parseFrom(final ProtoSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankTeam(), input).checkInitialized(); } public static JointDrillRankTeam parseFrom(final JsonSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankTeam(), input).checkInitialized(); } /** * @return factory for creating JointDrillRankTeam messages */ public static MessageFactory getFactory() { return JointDrillRankTeamFactory.INSTANCE; } private enum JointDrillRankTeamFactory implements MessageFactory { INSTANCE; @Override public JointDrillRankTeam create() { return JointDrillRankTeam.newInstance(); } } /** * Contains name constants used for serializing JSON */ static class FieldNames { static final FieldName buildScore = FieldName.forField("BuildScore"); static final FieldName damage = FieldName.forField("Damage"); static final FieldName time = FieldName.forField("Time"); static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName chars = FieldName.forField("Chars"); } } /** * Protobuf type {@code JointDrillRankData} */ public static final class JointDrillRankData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** * optional uint64 Id = 1; */ private long id; /** * optional uint32 WorldClass = 3; */ private int worldClass; /** * optional uint32 HeadIcon = 4; */ private int headIcon; /** * optional uint32 Score = 5; */ private int score; /** * optional uint32 Rank = 6; */ private int rank; /** * optional uint32 TitlePrefix = 7; */ private int titlePrefix; /** * optional uint32 TitleSuffix = 8; */ private int titleSuffix; /** * optional bytes NextPackage = 2047; */ private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); /** * optional string NickName = 2; */ private final Utf8String nickName = Utf8String.newEmptyInstance(); /** * repeated .HonorInfo Honors = 9; */ private final RepeatedMessage honors = RepeatedMessage.newEmptyInstance(Public.HonorInfo.getFactory()); /** * repeated .JointDrillRankTeam Teams = 10; */ private final RepeatedMessage teams = RepeatedMessage.newEmptyInstance(JointDrillRankTeam.getFactory()); private JointDrillRankData() { } /** * @return a new empty instance of {@code JointDrillRankData} */ public static JointDrillRankData newInstance() { return new JointDrillRankData(); } /** * optional uint64 Id = 1; * @return whether the id field is set */ public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** * optional uint64 Id = 1; * @return this */ public JointDrillRankData clearId() { bitField0_ &= ~0x00000001; id = 0L; return this; } /** * optional uint64 Id = 1; * @return the id */ public long getId() { return id; } /** * optional uint64 Id = 1; * @param value the id to set * @return this */ public JointDrillRankData setId(final long value) { bitField0_ |= 0x00000001; id = value; return this; } /** * optional uint32 WorldClass = 3; * @return whether the worldClass field is set */ public boolean hasWorldClass() { return (bitField0_ & 0x00000002) != 0; } /** * optional uint32 WorldClass = 3; * @return this */ public JointDrillRankData clearWorldClass() { bitField0_ &= ~0x00000002; worldClass = 0; return this; } /** * optional uint32 WorldClass = 3; * @return the worldClass */ public int getWorldClass() { return worldClass; } /** * optional uint32 WorldClass = 3; * @param value the worldClass to set * @return this */ public JointDrillRankData setWorldClass(final int value) { bitField0_ |= 0x00000002; worldClass = value; return this; } /** * optional uint32 HeadIcon = 4; * @return whether the headIcon field is set */ public boolean hasHeadIcon() { return (bitField0_ & 0x00000004) != 0; } /** * optional uint32 HeadIcon = 4; * @return this */ public JointDrillRankData clearHeadIcon() { bitField0_ &= ~0x00000004; headIcon = 0; return this; } /** * optional uint32 HeadIcon = 4; * @return the headIcon */ public int getHeadIcon() { return headIcon; } /** * optional uint32 HeadIcon = 4; * @param value the headIcon to set * @return this */ public JointDrillRankData setHeadIcon(final int value) { bitField0_ |= 0x00000004; headIcon = value; return this; } /** * optional uint32 Score = 5; * @return whether the score field is set */ public boolean hasScore() { return (bitField0_ & 0x00000008) != 0; } /** * optional uint32 Score = 5; * @return this */ public JointDrillRankData clearScore() { bitField0_ &= ~0x00000008; score = 0; return this; } /** * optional uint32 Score = 5; * @return the score */ public int getScore() { return score; } /** * optional uint32 Score = 5; * @param value the score to set * @return this */ public JointDrillRankData setScore(final int value) { bitField0_ |= 0x00000008; score = value; return this; } /** * optional uint32 Rank = 6; * @return whether the rank field is set */ public boolean hasRank() { return (bitField0_ & 0x00000010) != 0; } /** * optional uint32 Rank = 6; * @return this */ public JointDrillRankData clearRank() { bitField0_ &= ~0x00000010; rank = 0; return this; } /** * optional uint32 Rank = 6; * @return the rank */ public int getRank() { return rank; } /** * optional uint32 Rank = 6; * @param value the rank to set * @return this */ public JointDrillRankData setRank(final int value) { bitField0_ |= 0x00000010; rank = value; return this; } /** * optional uint32 TitlePrefix = 7; * @return whether the titlePrefix field is set */ public boolean hasTitlePrefix() { return (bitField0_ & 0x00000020) != 0; } /** * optional uint32 TitlePrefix = 7; * @return this */ public JointDrillRankData clearTitlePrefix() { bitField0_ &= ~0x00000020; titlePrefix = 0; return this; } /** * optional uint32 TitlePrefix = 7; * @return the titlePrefix */ public int getTitlePrefix() { return titlePrefix; } /** * optional uint32 TitlePrefix = 7; * @param value the titlePrefix to set * @return this */ public JointDrillRankData setTitlePrefix(final int value) { bitField0_ |= 0x00000020; titlePrefix = value; return this; } /** * optional uint32 TitleSuffix = 8; * @return whether the titleSuffix field is set */ public boolean hasTitleSuffix() { return (bitField0_ & 0x00000040) != 0; } /** * optional uint32 TitleSuffix = 8; * @return this */ public JointDrillRankData clearTitleSuffix() { bitField0_ &= ~0x00000040; titleSuffix = 0; return this; } /** * optional uint32 TitleSuffix = 8; * @return the titleSuffix */ public int getTitleSuffix() { return titleSuffix; } /** * optional uint32 TitleSuffix = 8; * @param value the titleSuffix to set * @return this */ public JointDrillRankData setTitleSuffix(final int value) { bitField0_ |= 0x00000040; titleSuffix = value; return this; } /** * optional bytes NextPackage = 2047; * @return whether the nextPackage field is set */ public boolean hasNextPackage() { return (bitField0_ & 0x00000080) != 0; } /** * optional bytes NextPackage = 2047; * @return this */ public JointDrillRankData clearNextPackage() { bitField0_ &= ~0x00000080; nextPackage.clear(); return this; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * * 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; } /** * optional bytes NextPackage = 2047; * @param value the nextPackage to add * @return this */ public JointDrillRankData addNextPackage(final byte value) { bitField0_ |= 0x00000080; nextPackage.add(value); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to add * @return this */ public JointDrillRankData addAllNextPackage(final byte... values) { bitField0_ |= 0x00000080; nextPackage.addAll(values); return this; } /** * optional bytes NextPackage = 2047; * @param values the nextPackage to set * @return this */ public JointDrillRankData setNextPackage(final byte... values) { bitField0_ |= 0x00000080; nextPackage.copyFrom(values); return this; } /** * optional string NickName = 2; * @return whether the nickName field is set */ public boolean hasNickName() { return (bitField0_ & 0x00000100) != 0; } /** * optional string NickName = 2; * @return this */ public JointDrillRankData clearNickName() { bitField0_ &= ~0x00000100; nickName.clear(); return this; } /** * optional string NickName = 2; * @return the nickName */ public String getNickName() { return nickName.getString(); } /** * optional string NickName = 2; * @return internal {@code Utf8String} representation of nickName for reading */ public Utf8String getNickNameBytes() { return this.nickName; } /** * optional string NickName = 2; * @return internal {@code Utf8String} representation of nickName for modifications */ public Utf8String getMutableNickNameBytes() { bitField0_ |= 0x00000100; return this.nickName; } /** * optional string NickName = 2; * @param value the nickName to set * @return this */ public JointDrillRankData setNickName(final CharSequence value) { bitField0_ |= 0x00000100; nickName.copyFrom(value); return this; } /** * optional string NickName = 2; * @param value the nickName to set * @return this */ public JointDrillRankData setNickName(final Utf8String value) { bitField0_ |= 0x00000100; nickName.copyFrom(value); return this; } /** * repeated .HonorInfo Honors = 9; * @return whether the honors field is set */ public boolean hasHonors() { return (bitField0_ & 0x00000200) != 0; } /** * repeated .HonorInfo Honors = 9; * @return this */ public JointDrillRankData clearHonors() { bitField0_ &= ~0x00000200; honors.clear(); return this; } /** * repeated .HonorInfo Honors = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * * Use {@link #getMutableHonors()} if you want to modify it. * * @return internal storage object for reading */ public RepeatedMessage getHonors() { return honors; } /** * repeated .HonorInfo Honors = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its * contents may be modified as long as the has state is not cleared. * * @return internal storage object for modifications */ public RepeatedMessage getMutableHonors() { bitField0_ |= 0x00000200; return honors; } /** * repeated .HonorInfo Honors = 9; * @param value the honors to add * @return this */ public JointDrillRankData addHonors(final Public.HonorInfo value) { bitField0_ |= 0x00000200; honors.add(value); return this; } /** * repeated .HonorInfo Honors = 9; * @param values the honors to add * @return this */ public JointDrillRankData addAllHonors(final Public.HonorInfo... values) { bitField0_ |= 0x00000200; honors.addAll(values); return this; } /** * repeated .JointDrillRankTeam Teams = 10; * @return whether the teams field is set */ public boolean hasTeams() { return (bitField0_ & 0x00000400) != 0; } /** * repeated .JointDrillRankTeam Teams = 10; * @return this */ public JointDrillRankData clearTeams() { bitField0_ &= ~0x00000400; teams.clear(); return this; } /** * repeated .JointDrillRankTeam Teams = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * * Use {@link #getMutableTeams()} if you want to modify it. * * @return internal storage object for reading */ public RepeatedMessage getTeams() { return teams; } /** * repeated .JointDrillRankTeam Teams = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its * contents may be modified as long as the has state is not cleared. * * @return internal storage object for modifications */ public RepeatedMessage getMutableTeams() { bitField0_ |= 0x00000400; return teams; } /** * repeated .JointDrillRankTeam Teams = 10; * @param value the teams to add * @return this */ public JointDrillRankData addTeams(final JointDrillRankTeam value) { bitField0_ |= 0x00000400; teams.add(value); return this; } /** * repeated .JointDrillRankTeam Teams = 10; * @param values the teams to add * @return this */ public JointDrillRankData addAllTeams(final JointDrillRankTeam... values) { bitField0_ |= 0x00000400; teams.addAll(values); return this; } @Override public JointDrillRankData copyFrom(final JointDrillRankData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; id = other.id; worldClass = other.worldClass; headIcon = other.headIcon; score = other.score; rank = other.rank; titlePrefix = other.titlePrefix; titleSuffix = other.titleSuffix; nextPackage.copyFrom(other.nextPackage); nickName.copyFrom(other.nickName); honors.copyFrom(other.honors); teams.copyFrom(other.teams); } return this; } @Override public JointDrillRankData mergeFrom(final JointDrillRankData other) { if (other.isEmpty()) { return this; } cachedSize = -1; if (other.hasId()) { setId(other.id); } if (other.hasWorldClass()) { setWorldClass(other.worldClass); } if (other.hasHeadIcon()) { setHeadIcon(other.headIcon); } if (other.hasScore()) { setScore(other.score); } if (other.hasRank()) { setRank(other.rank); } if (other.hasTitlePrefix()) { setTitlePrefix(other.titlePrefix); } if (other.hasTitleSuffix()) { setTitleSuffix(other.titleSuffix); } if (other.hasNextPackage()) { getMutableNextPackage().copyFrom(other.nextPackage); } if (other.hasNickName()) { getMutableNickNameBytes().copyFrom(other.nickName); } if (other.hasHonors()) { getMutableHonors().addAll(other.honors); } if (other.hasTeams()) { getMutableTeams().addAll(other.teams); } return this; } @Override public JointDrillRankData clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; id = 0L; worldClass = 0; headIcon = 0; score = 0; rank = 0; titlePrefix = 0; titleSuffix = 0; nextPackage.clear(); nickName.clear(); honors.clear(); teams.clear(); return this; } @Override public JointDrillRankData clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; nextPackage.clear(); nickName.clear(); honors.clearQuick(); teams.clearQuick(); return this; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof JointDrillRankData)) { return false; } JointDrillRankData other = (JointDrillRankData) o; return bitField0_ == other.bitField0_ && (!hasId() || id == other.id) && (!hasWorldClass() || worldClass == other.worldClass) && (!hasHeadIcon() || headIcon == other.headIcon) && (!hasScore() || score == other.score) && (!hasRank() || rank == other.rank) && (!hasTitlePrefix() || titlePrefix == other.titlePrefix) && (!hasTitleSuffix() || titleSuffix == other.titleSuffix) && (!hasNextPackage() || nextPackage.equals(other.nextPackage)) && (!hasNickName() || nickName.equals(other.nickName)) && (!hasHonors() || honors.equals(other.honors)) && (!hasTeams() || teams.equals(other.teams)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); output.writeUInt64NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(worldClass); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(headIcon); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(score); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 48); output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 56); output.writeUInt32NoTag(titlePrefix); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(titleSuffix); } if ((bitField0_ & 0x00000080) != 0) { output.writeRawLittleEndian16((short) 32762); output.writeBytesNoTag(nextPackage); } if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 18); output.writeStringNoTag(nickName); } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < honors.length(); i++) { output.writeRawByte((byte) 74); output.writeMessageNoTag(honors.get(i)); } } if ((bitField0_ & 0x00000400) != 0) { for (int i = 0; i < teams.length(); i++) { output.writeRawByte((byte) 82); output.writeMessageNoTag(teams.get(i)); } } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt64SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(worldClass); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(score); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(titlePrefix); } if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(titleSuffix); } if ((bitField0_ & 0x00000080) != 0) { size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); } if ((bitField0_ & 0x00000100) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(nickName); } if ((bitField0_ & 0x00000200) != 0) { size += (1 * honors.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(honors); } if ((bitField0_ & 0x00000400) != 0) { size += (1 * teams.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(teams); } return size; } @Override @SuppressWarnings("fallthrough") public JointDrillRankData mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 8: { // id id = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 24) { break; } } case 24: { // worldClass worldClass = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 32) { break; } } case 32: { // headIcon headIcon = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 40) { break; } } case 40: { // score score = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 48) { break; } } case 48: { // rank rank = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 56) { break; } } case 56: { // titlePrefix titlePrefix = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 64) { break; } } case 64: { // titleSuffix titleSuffix = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 16378) { break; } } case 16378: { // nextPackage input.readBytes(nextPackage); bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 18) { break; } } case 18: { // nickName input.readString(nickName); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 74) { break; } } case 74: { // honors tag = input.readRepeatedMessage(honors, tag); bitField0_ |= 0x00000200; if (tag != 82) { break; } } case 82: { // teams tag = input.readRepeatedMessage(teams, tag); bitField0_ |= 0x00000400; if (tag != 0) { break; } } case 0: { return this; } default: { if (!input.skipField(tag)) { return this; } tag = input.readTag(); break; } } } } @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { output.writeUInt64(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.worldClass, worldClass); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.headIcon, headIcon); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.score, score); } if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.titlePrefix, titlePrefix); } if ((bitField0_ & 0x00000040) != 0) { output.writeUInt32(FieldNames.titleSuffix, titleSuffix); } if ((bitField0_ & 0x00000080) != 0) { output.writeBytes(FieldNames.nextPackage, nextPackage); } if ((bitField0_ & 0x00000100) != 0) { output.writeString(FieldNames.nickName, nickName); } if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.honors, honors); } if ((bitField0_ & 0x00000400) != 0) { output.writeRepeatedMessage(FieldNames.teams, teams); } output.endObject(); } @Override public JointDrillRankData 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.readUInt64(); bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); } break; } case -1869617882: { if (input.isAtField(FieldNames.worldClass)) { if (!input.trySkipNullValue()) { worldClass = input.readUInt32(); bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); } break; } case -1051463015: { if (input.isAtField(FieldNames.headIcon)) { if (!input.trySkipNullValue()) { headIcon = input.readUInt32(); bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); } break; } case 79711858: { if (input.isAtField(FieldNames.score)) { if (!input.trySkipNullValue()) { score = input.readUInt32(); bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); } break; } case 2539596: { if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { rank = input.readUInt32(); bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); } break; } case 2096776938: { if (input.isAtField(FieldNames.titlePrefix)) { if (!input.trySkipNullValue()) { titlePrefix = input.readUInt32(); bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); } break; } case -2109502551: { if (input.isAtField(FieldNames.titleSuffix)) { if (!input.trySkipNullValue()) { titleSuffix = input.readUInt32(); 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 134381742: { if (input.isAtField(FieldNames.nickName)) { if (!input.trySkipNullValue()) { input.readString(nickName); bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); } break; } case -2127770263: { if (input.isAtField(FieldNames.honors)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(honors); bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); } break; } case 80681366: { if (input.isAtField(FieldNames.teams)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(teams); bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); } break; } default: { input.skipUnknownField(); break; } } } input.endObject(); return this; } @Override public JointDrillRankData clone() { return new JointDrillRankData().copyFrom(this); } @Override public boolean isEmpty() { return ((bitField0_) == 0); } public static JointDrillRankData parseFrom(final byte[] data) throws InvalidProtocolBufferException { return ProtoMessage.mergeFrom(new JointDrillRankData(), data).checkInitialized(); } public static JointDrillRankData parseFrom(final ProtoSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankData(), input).checkInitialized(); } public static JointDrillRankData parseFrom(final JsonSource input) throws IOException { return ProtoMessage.mergeFrom(new JointDrillRankData(), input).checkInitialized(); } /** * @return factory for creating JointDrillRankData messages */ public static MessageFactory getFactory() { return JointDrillRankDataFactory.INSTANCE; } private enum JointDrillRankDataFactory implements MessageFactory { INSTANCE; @Override public JointDrillRankData create() { return JointDrillRankData.newInstance(); } } /** * Contains name constants used for serializing JSON */ static class FieldNames { static final FieldName id = FieldName.forField("Id"); static final FieldName worldClass = FieldName.forField("WorldClass"); static final FieldName headIcon = FieldName.forField("HeadIcon"); static final FieldName score = FieldName.forField("Score"); static final FieldName rank = FieldName.forField("Rank"); static final FieldName titlePrefix = FieldName.forField("TitlePrefix"); static final FieldName titleSuffix = FieldName.forField("TitleSuffix"); static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nickName = FieldName.forField("NickName"); static final FieldName honors = FieldName.forField("Honors"); static final FieldName teams = FieldName.forField("Teams"); } } }