mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 06:13:37 +08:00
Upgrade to REL3.7 (#2164)
* Remove hardcoded quest data * Remove deprecated fields * Try to fix packet * Apply fix for token exchange * Upgrade to REL3.7 * Add obfuscated protocol definitions * Add missing enum (other protos too maybe) * Re-add field setters and add note on removal
This commit is contained in:
+310
-310
@@ -19,33 +19,28 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 stage_id = 9;</code>
|
||||
* <code>uint32 level_id = 11;</code>
|
||||
* @return The levelId.
|
||||
*/
|
||||
int getLevelId();
|
||||
|
||||
/**
|
||||
* <code>uint32 difficulty = 6;</code>
|
||||
* @return The difficulty.
|
||||
*/
|
||||
int getDifficulty();
|
||||
|
||||
/**
|
||||
* <code>uint32 stage_id = 1;</code>
|
||||
* @return The stageId.
|
||||
*/
|
||||
int getStageId();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return A list containing the scoreList.
|
||||
* <code>bool is_new_record = 10;</code>
|
||||
* @return The isNewRecord.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getScoreListList();
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return The count of scoreList.
|
||||
*/
|
||||
int getScoreListCount();
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The scoreList at the given index.
|
||||
*/
|
||||
int getScoreList(int index);
|
||||
|
||||
/**
|
||||
* <code>uint32 level_id = 2;</code>
|
||||
* @return The levelId.
|
||||
*/
|
||||
int getLevelId();
|
||||
boolean getIsNewRecord();
|
||||
|
||||
/**
|
||||
* <code>uint32 round = 4;</code>
|
||||
@@ -54,20 +49,25 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
int getRound();
|
||||
|
||||
/**
|
||||
* <code>bool is_new_record = 15;</code>
|
||||
* @return The isNewRecord.
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return A list containing the scoreList.
|
||||
*/
|
||||
boolean getIsNewRecord();
|
||||
|
||||
java.util.List<java.lang.Integer> getScoreListList();
|
||||
/**
|
||||
* <code>uint32 difficulty = 1;</code>
|
||||
* @return The difficulty.
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return The count of scoreList.
|
||||
*/
|
||||
int getDifficulty();
|
||||
int getScoreListCount();
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The scoreList at the given index.
|
||||
*/
|
||||
int getScoreList(int index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Name: AHMJPHBBHKI
|
||||
* Obf: CAMOHBCDHAL
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code InstableSprayDungeonSettleInfo}
|
||||
@@ -118,12 +118,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
break;
|
||||
case 8: {
|
||||
|
||||
difficulty_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
levelId_ = input.readUInt32();
|
||||
stageId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
@@ -131,12 +126,12 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
round_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
case 48: {
|
||||
|
||||
stageId_ = input.readUInt32();
|
||||
difficulty_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
case 64: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
scoreList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
@@ -144,7 +139,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
scoreList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 114: {
|
||||
case 66: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
@@ -157,11 +152,16 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
case 80: {
|
||||
|
||||
isNewRecord_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
|
||||
levelId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -197,10 +197,32 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo.class, emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int STAGE_ID_FIELD_NUMBER = 9;
|
||||
public static final int LEVEL_ID_FIELD_NUMBER = 11;
|
||||
private int levelId_;
|
||||
/**
|
||||
* <code>uint32 level_id = 11;</code>
|
||||
* @return The levelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLevelId() {
|
||||
return levelId_;
|
||||
}
|
||||
|
||||
public static final int DIFFICULTY_FIELD_NUMBER = 6;
|
||||
private int difficulty_;
|
||||
/**
|
||||
* <code>uint32 difficulty = 6;</code>
|
||||
* @return The difficulty.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDifficulty() {
|
||||
return difficulty_;
|
||||
}
|
||||
|
||||
public static final int STAGE_ID_FIELD_NUMBER = 1;
|
||||
private int stageId_;
|
||||
/**
|
||||
* <code>uint32 stage_id = 9;</code>
|
||||
* <code>uint32 stage_id = 1;</code>
|
||||
* @return The stageId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -208,43 +230,15 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
return stageId_;
|
||||
}
|
||||
|
||||
public static final int SCORE_LIST_FIELD_NUMBER = 14;
|
||||
private com.google.protobuf.Internal.IntList scoreList_;
|
||||
public static final int IS_NEW_RECORD_FIELD_NUMBER = 10;
|
||||
private boolean isNewRecord_;
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return A list containing the scoreList.
|
||||
* <code>bool is_new_record = 10;</code>
|
||||
* @return The isNewRecord.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getScoreListList() {
|
||||
return scoreList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return The count of scoreList.
|
||||
*/
|
||||
public int getScoreListCount() {
|
||||
return scoreList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The scoreList at the given index.
|
||||
*/
|
||||
public int getScoreList(int index) {
|
||||
return scoreList_.getInt(index);
|
||||
}
|
||||
private int scoreListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int LEVEL_ID_FIELD_NUMBER = 2;
|
||||
private int levelId_;
|
||||
/**
|
||||
* <code>uint32 level_id = 2;</code>
|
||||
* @return The levelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLevelId() {
|
||||
return levelId_;
|
||||
public boolean getIsNewRecord() {
|
||||
return isNewRecord_;
|
||||
}
|
||||
|
||||
public static final int ROUND_FIELD_NUMBER = 4;
|
||||
@@ -258,27 +252,33 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
return round_;
|
||||
}
|
||||
|
||||
public static final int IS_NEW_RECORD_FIELD_NUMBER = 15;
|
||||
private boolean isNewRecord_;
|
||||
public static final int SCORE_LIST_FIELD_NUMBER = 8;
|
||||
private com.google.protobuf.Internal.IntList scoreList_;
|
||||
/**
|
||||
* <code>bool is_new_record = 15;</code>
|
||||
* @return The isNewRecord.
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return A list containing the scoreList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsNewRecord() {
|
||||
return isNewRecord_;
|
||||
public java.util.List<java.lang.Integer>
|
||||
getScoreListList() {
|
||||
return scoreList_;
|
||||
}
|
||||
|
||||
public static final int DIFFICULTY_FIELD_NUMBER = 1;
|
||||
private int difficulty_;
|
||||
/**
|
||||
* <code>uint32 difficulty = 1;</code>
|
||||
* @return The difficulty.
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return The count of scoreList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDifficulty() {
|
||||
return difficulty_;
|
||||
public int getScoreListCount() {
|
||||
return scoreList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The scoreList at the given index.
|
||||
*/
|
||||
public int getScoreList(int index) {
|
||||
return scoreList_.getInt(index);
|
||||
}
|
||||
private int scoreListMemoizedSerializedSize = -1;
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
@@ -295,27 +295,27 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (difficulty_ != 0) {
|
||||
output.writeUInt32(1, difficulty_);
|
||||
}
|
||||
if (levelId_ != 0) {
|
||||
output.writeUInt32(2, levelId_);
|
||||
if (stageId_ != 0) {
|
||||
output.writeUInt32(1, stageId_);
|
||||
}
|
||||
if (round_ != 0) {
|
||||
output.writeUInt32(4, round_);
|
||||
}
|
||||
if (stageId_ != 0) {
|
||||
output.writeUInt32(9, stageId_);
|
||||
if (difficulty_ != 0) {
|
||||
output.writeUInt32(6, difficulty_);
|
||||
}
|
||||
if (getScoreListList().size() > 0) {
|
||||
output.writeUInt32NoTag(114);
|
||||
output.writeUInt32NoTag(66);
|
||||
output.writeUInt32NoTag(scoreListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < scoreList_.size(); i++) {
|
||||
output.writeUInt32NoTag(scoreList_.getInt(i));
|
||||
}
|
||||
if (isNewRecord_ != false) {
|
||||
output.writeBool(15, isNewRecord_);
|
||||
output.writeBool(10, isNewRecord_);
|
||||
}
|
||||
if (levelId_ != 0) {
|
||||
output.writeUInt32(11, levelId_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -326,21 +326,17 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (difficulty_ != 0) {
|
||||
if (stageId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(1, difficulty_);
|
||||
}
|
||||
if (levelId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(2, levelId_);
|
||||
.computeUInt32Size(1, stageId_);
|
||||
}
|
||||
if (round_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(4, round_);
|
||||
}
|
||||
if (stageId_ != 0) {
|
||||
if (difficulty_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(9, stageId_);
|
||||
.computeUInt32Size(6, difficulty_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
@@ -358,7 +354,11 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
}
|
||||
if (isNewRecord_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(15, isNewRecord_);
|
||||
.computeBoolSize(10, isNewRecord_);
|
||||
}
|
||||
if (levelId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(11, levelId_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -375,18 +375,18 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo other = (emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo) obj;
|
||||
|
||||
if (getStageId()
|
||||
!= other.getStageId()) return false;
|
||||
if (!getScoreListList()
|
||||
.equals(other.getScoreListList())) return false;
|
||||
if (getLevelId()
|
||||
!= other.getLevelId()) return false;
|
||||
if (getRound()
|
||||
!= other.getRound()) return false;
|
||||
if (getIsNewRecord()
|
||||
!= other.getIsNewRecord()) return false;
|
||||
if (getDifficulty()
|
||||
!= other.getDifficulty()) return false;
|
||||
if (getStageId()
|
||||
!= other.getStageId()) return false;
|
||||
if (getIsNewRecord()
|
||||
!= other.getIsNewRecord()) return false;
|
||||
if (getRound()
|
||||
!= other.getRound()) return false;
|
||||
if (!getScoreListList()
|
||||
.equals(other.getScoreListList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -398,21 +398,21 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + LEVEL_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLevelId();
|
||||
hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDifficulty();
|
||||
hash = (37 * hash) + STAGE_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getStageId();
|
||||
hash = (37 * hash) + IS_NEW_RECORD_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getIsNewRecord());
|
||||
hash = (37 * hash) + ROUND_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRound();
|
||||
if (getScoreListCount() > 0) {
|
||||
hash = (37 * hash) + SCORE_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getScoreListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + LEVEL_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLevelId();
|
||||
hash = (37 * hash) + ROUND_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRound();
|
||||
hash = (37 * hash) + IS_NEW_RECORD_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getIsNewRecord());
|
||||
hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDifficulty();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -510,7 +510,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Name: AHMJPHBBHKI
|
||||
* Obf: CAMOHBCDHAL
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code InstableSprayDungeonSettleInfo}
|
||||
@@ -550,18 +550,18 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
stageId_ = 0;
|
||||
|
||||
scoreList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
levelId_ = 0;
|
||||
|
||||
round_ = 0;
|
||||
|
||||
isNewRecord_ = false;
|
||||
|
||||
difficulty_ = 0;
|
||||
|
||||
stageId_ = 0;
|
||||
|
||||
isNewRecord_ = false;
|
||||
|
||||
round_ = 0;
|
||||
|
||||
scoreList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -589,16 +589,16 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
public emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo buildPartial() {
|
||||
emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo result = new emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.levelId_ = levelId_;
|
||||
result.difficulty_ = difficulty_;
|
||||
result.stageId_ = stageId_;
|
||||
result.isNewRecord_ = isNewRecord_;
|
||||
result.round_ = round_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
scoreList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.scoreList_ = scoreList_;
|
||||
result.levelId_ = levelId_;
|
||||
result.round_ = round_;
|
||||
result.isNewRecord_ = isNewRecord_;
|
||||
result.difficulty_ = difficulty_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -647,9 +647,21 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo other) {
|
||||
if (other == emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo.getDefaultInstance()) return this;
|
||||
if (other.getLevelId() != 0) {
|
||||
setLevelId(other.getLevelId());
|
||||
}
|
||||
if (other.getDifficulty() != 0) {
|
||||
setDifficulty(other.getDifficulty());
|
||||
}
|
||||
if (other.getStageId() != 0) {
|
||||
setStageId(other.getStageId());
|
||||
}
|
||||
if (other.getIsNewRecord() != false) {
|
||||
setIsNewRecord(other.getIsNewRecord());
|
||||
}
|
||||
if (other.getRound() != 0) {
|
||||
setRound(other.getRound());
|
||||
}
|
||||
if (!other.scoreList_.isEmpty()) {
|
||||
if (scoreList_.isEmpty()) {
|
||||
scoreList_ = other.scoreList_;
|
||||
@@ -660,18 +672,6 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getLevelId() != 0) {
|
||||
setLevelId(other.getLevelId());
|
||||
}
|
||||
if (other.getRound() != 0) {
|
||||
setRound(other.getRound());
|
||||
}
|
||||
if (other.getIsNewRecord() != false) {
|
||||
setIsNewRecord(other.getIsNewRecord());
|
||||
}
|
||||
if (other.getDifficulty() != 0) {
|
||||
setDifficulty(other.getDifficulty());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -702,119 +702,9 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int stageId_ ;
|
||||
/**
|
||||
* <code>uint32 stage_id = 9;</code>
|
||||
* @return The stageId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getStageId() {
|
||||
return stageId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 stage_id = 9;</code>
|
||||
* @param value The stageId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStageId(int value) {
|
||||
|
||||
stageId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 stage_id = 9;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStageId() {
|
||||
|
||||
stageId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList scoreList_ = emptyIntList();
|
||||
private void ensureScoreListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
scoreList_ = mutableCopy(scoreList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return A list containing the scoreList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getScoreListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(scoreList_) : scoreList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return The count of scoreList.
|
||||
*/
|
||||
public int getScoreListCount() {
|
||||
return scoreList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The scoreList at the given index.
|
||||
*/
|
||||
public int getScoreList(int index) {
|
||||
return scoreList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The scoreList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setScoreList(
|
||||
int index, int value) {
|
||||
ensureScoreListIsMutable();
|
||||
scoreList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @param value The scoreList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addScoreList(int value) {
|
||||
ensureScoreListIsMutable();
|
||||
scoreList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @param values The scoreList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllScoreList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureScoreListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, scoreList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearScoreList() {
|
||||
scoreList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int levelId_ ;
|
||||
/**
|
||||
* <code>uint32 level_id = 2;</code>
|
||||
* <code>uint32 level_id = 11;</code>
|
||||
* @return The levelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -822,7 +712,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
return levelId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 level_id = 2;</code>
|
||||
* <code>uint32 level_id = 11;</code>
|
||||
* @param value The levelId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -833,7 +723,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 level_id = 2;</code>
|
||||
* <code>uint32 level_id = 11;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLevelId() {
|
||||
@@ -843,6 +733,99 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int difficulty_ ;
|
||||
/**
|
||||
* <code>uint32 difficulty = 6;</code>
|
||||
* @return The difficulty.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDifficulty() {
|
||||
return difficulty_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 difficulty = 6;</code>
|
||||
* @param value The difficulty to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDifficulty(int value) {
|
||||
|
||||
difficulty_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 difficulty = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDifficulty() {
|
||||
|
||||
difficulty_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int stageId_ ;
|
||||
/**
|
||||
* <code>uint32 stage_id = 1;</code>
|
||||
* @return The stageId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getStageId() {
|
||||
return stageId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 stage_id = 1;</code>
|
||||
* @param value The stageId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStageId(int value) {
|
||||
|
||||
stageId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 stage_id = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStageId() {
|
||||
|
||||
stageId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isNewRecord_ ;
|
||||
/**
|
||||
* <code>bool is_new_record = 10;</code>
|
||||
* @return The isNewRecord.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsNewRecord() {
|
||||
return isNewRecord_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_new_record = 10;</code>
|
||||
* @param value The isNewRecord to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsNewRecord(boolean value) {
|
||||
|
||||
isNewRecord_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_new_record = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsNewRecord() {
|
||||
|
||||
isNewRecord_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int round_ ;
|
||||
/**
|
||||
* <code>uint32 round = 4;</code>
|
||||
@@ -874,64 +857,81 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isNewRecord_ ;
|
||||
/**
|
||||
* <code>bool is_new_record = 15;</code>
|
||||
* @return The isNewRecord.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsNewRecord() {
|
||||
return isNewRecord_;
|
||||
private com.google.protobuf.Internal.IntList scoreList_ = emptyIntList();
|
||||
private void ensureScoreListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
scoreList_ = mutableCopy(scoreList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>bool is_new_record = 15;</code>
|
||||
* @param value The isNewRecord to set.
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return A list containing the scoreList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getScoreListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(scoreList_) : scoreList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return The count of scoreList.
|
||||
*/
|
||||
public int getScoreListCount() {
|
||||
return scoreList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The scoreList at the given index.
|
||||
*/
|
||||
public int getScoreList(int index) {
|
||||
return scoreList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The scoreList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsNewRecord(boolean value) {
|
||||
|
||||
isNewRecord_ = value;
|
||||
public Builder setScoreList(
|
||||
int index, int value) {
|
||||
ensureScoreListIsMutable();
|
||||
scoreList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_new_record = 15;</code>
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @param value The scoreList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsNewRecord() {
|
||||
|
||||
isNewRecord_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int difficulty_ ;
|
||||
/**
|
||||
* <code>uint32 difficulty = 1;</code>
|
||||
* @return The difficulty.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDifficulty() {
|
||||
return difficulty_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 difficulty = 1;</code>
|
||||
* @param value The difficulty to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDifficulty(int value) {
|
||||
|
||||
difficulty_ = value;
|
||||
public Builder addScoreList(int value) {
|
||||
ensureScoreListIsMutable();
|
||||
scoreList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 difficulty = 1;</code>
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @param values The scoreList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDifficulty() {
|
||||
|
||||
difficulty_ = 0;
|
||||
public Builder addAllScoreList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureScoreListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, scoreList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 score_list = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearScoreList() {
|
||||
scoreList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@@ -1003,10 +1003,10 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n$InstableSprayDungeonSettleInfo.proto\"\222" +
|
||||
"\001\n\036InstableSprayDungeonSettleInfo\022\020\n\010sta" +
|
||||
"ge_id\030\t \001(\r\022\022\n\nscore_list\030\016 \003(\r\022\020\n\010level" +
|
||||
"_id\030\002 \001(\r\022\r\n\005round\030\004 \001(\r\022\025\n\ris_new_recor" +
|
||||
"d\030\017 \001(\010\022\022\n\ndifficulty\030\001 \001(\rB\033\n\031emu.grass" +
|
||||
"\001\n\036InstableSprayDungeonSettleInfo\022\020\n\010lev" +
|
||||
"el_id\030\013 \001(\r\022\022\n\ndifficulty\030\006 \001(\r\022\020\n\010stage" +
|
||||
"_id\030\001 \001(\r\022\025\n\ris_new_record\030\n \001(\010\022\r\n\005roun" +
|
||||
"d\030\004 \001(\r\022\022\n\nscore_list\030\010 \003(\rB\033\n\031emu.grass" +
|
||||
"cutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -1018,7 +1018,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
|
||||
internal_static_InstableSprayDungeonSettleInfo_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_InstableSprayDungeonSettleInfo_descriptor,
|
||||
new java.lang.String[] { "StageId", "ScoreList", "LevelId", "Round", "IsNewRecord", "Difficulty", });
|
||||
new java.lang.String[] { "LevelId", "Difficulty", "StageId", "IsNewRecord", "Round", "ScoreList", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user