Add new protocol definitions

This commit is contained in:
KingRainbow44
2023-08-14 18:57:07 -04:00
Unverified
parent 1bcb79840c
commit ceeaf3748a
3772 changed files with 448618 additions and 1108926 deletions
@@ -19,47 +19,47 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <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>bool is_new_record = 10;</code>
* <code>bool is_new_record = 15;</code>
* @return The isNewRecord.
*/
boolean getIsNewRecord();
/**
* <code>uint32 round = 4;</code>
* <code>uint32 difficulty = 8;</code>
* @return The difficulty.
*/
int getDifficulty();
/**
* <code>uint32 stage_id = 5;</code>
* @return The stageId.
*/
int getStageId();
/**
* <code>uint32 round = 13;</code>
* @return The round.
*/
int getRound();
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>uint32 level_id = 4;</code>
* @return The levelId.
*/
int getLevelId();
/**
* <code>repeated uint32 score_list = 7;</code>
* @return A list containing the scoreList.
*/
java.util.List<java.lang.Integer> getScoreListList();
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @return The count of scoreList.
*/
int getScoreListCount();
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @param index The index of the element to return.
* @return The scoreList at the given index.
*/
@@ -67,7 +67,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
}
/**
* <pre>
* Obf: CAMOHBCDHAL
* Obf: GALINJEGEGO
* </pre>
*
* Protobuf type {@code InstableSprayDungeonSettleInfo}
@@ -116,22 +116,17 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
case 0:
done = true;
break;
case 8: {
case 32: {
levelId_ = input.readUInt32();
break;
}
case 40: {
stageId_ = input.readUInt32();
break;
}
case 32: {
round_ = input.readUInt32();
break;
}
case 48: {
difficulty_ = input.readUInt32();
break;
}
case 64: {
case 56: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
scoreList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
@@ -139,7 +134,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
scoreList_.addInt(input.readUInt32());
break;
}
case 66: {
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
@@ -152,14 +147,19 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
input.popLimit(limit);
break;
}
case 80: {
case 64: {
isNewRecord_ = input.readBool();
difficulty_ = input.readUInt32();
break;
}
case 88: {
case 104: {
levelId_ = input.readUInt32();
round_ = input.readUInt32();
break;
}
case 120: {
isNewRecord_ = input.readBool();
break;
}
default: {
@@ -197,43 +197,10 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo.class, emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo.Builder.class);
}
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 = 1;</code>
* @return The stageId.
*/
@java.lang.Override
public int getStageId() {
return stageId_;
}
public static final int IS_NEW_RECORD_FIELD_NUMBER = 10;
public static final int IS_NEW_RECORD_FIELD_NUMBER = 15;
private boolean isNewRecord_;
/**
* <code>bool is_new_record = 10;</code>
* <code>bool is_new_record = 15;</code>
* @return The isNewRecord.
*/
@java.lang.Override
@@ -241,10 +208,32 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return isNewRecord_;
}
public static final int ROUND_FIELD_NUMBER = 4;
public static final int DIFFICULTY_FIELD_NUMBER = 8;
private int difficulty_;
/**
* <code>uint32 difficulty = 8;</code>
* @return The difficulty.
*/
@java.lang.Override
public int getDifficulty() {
return difficulty_;
}
public static final int STAGE_ID_FIELD_NUMBER = 5;
private int stageId_;
/**
* <code>uint32 stage_id = 5;</code>
* @return The stageId.
*/
@java.lang.Override
public int getStageId() {
return stageId_;
}
public static final int ROUND_FIELD_NUMBER = 13;
private int round_;
/**
* <code>uint32 round = 4;</code>
* <code>uint32 round = 13;</code>
* @return The round.
*/
@java.lang.Override
@@ -252,10 +241,21 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return round_;
}
public static final int SCORE_LIST_FIELD_NUMBER = 8;
public static final int LEVEL_ID_FIELD_NUMBER = 4;
private int levelId_;
/**
* <code>uint32 level_id = 4;</code>
* @return The levelId.
*/
@java.lang.Override
public int getLevelId() {
return levelId_;
}
public static final int SCORE_LIST_FIELD_NUMBER = 7;
private com.google.protobuf.Internal.IntList scoreList_;
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @return A list containing the scoreList.
*/
@java.lang.Override
@@ -264,14 +264,14 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return scoreList_;
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @return The count of scoreList.
*/
public int getScoreListCount() {
return scoreList_.size();
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @param index The index of the element to return.
* @return The scoreList at the given index.
*/
@@ -295,27 +295,27 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (levelId_ != 0) {
output.writeUInt32(4, levelId_);
}
if (stageId_ != 0) {
output.writeUInt32(1, stageId_);
}
if (round_ != 0) {
output.writeUInt32(4, round_);
}
if (difficulty_ != 0) {
output.writeUInt32(6, difficulty_);
output.writeUInt32(5, stageId_);
}
if (getScoreListList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(scoreListMemoizedSerializedSize);
}
for (int i = 0; i < scoreList_.size(); i++) {
output.writeUInt32NoTag(scoreList_.getInt(i));
}
if (isNewRecord_ != false) {
output.writeBool(10, isNewRecord_);
if (difficulty_ != 0) {
output.writeUInt32(8, difficulty_);
}
if (levelId_ != 0) {
output.writeUInt32(11, levelId_);
if (round_ != 0) {
output.writeUInt32(13, round_);
}
if (isNewRecord_ != false) {
output.writeBool(15, isNewRecord_);
}
unknownFields.writeTo(output);
}
@@ -326,17 +326,13 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
if (size != -1) return size;
size = 0;
if (levelId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, levelId_);
}
if (stageId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, stageId_);
}
if (round_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, round_);
}
if (difficulty_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, difficulty_);
.computeUInt32Size(5, stageId_);
}
{
int dataSize = 0;
@@ -352,13 +348,17 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
}
scoreListMemoizedSerializedSize = dataSize;
}
if (difficulty_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, difficulty_);
}
if (round_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, round_);
}
if (isNewRecord_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isNewRecord_);
}
if (levelId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, levelId_);
.computeBoolSize(15, isNewRecord_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -375,16 +375,16 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
}
emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo other = (emu.grasscutter.net.proto.InstableSprayDungeonSettleInfoOuterClass.InstableSprayDungeonSettleInfo) obj;
if (getLevelId()
!= other.getLevelId()) 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 (getLevelId()
!= other.getLevelId()) return false;
if (!getScoreListList()
.equals(other.getScoreListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -398,17 +398,17 @@ 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) + 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 = (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();
hash = (37 * hash) + LEVEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getLevelId();
if (getScoreListCount() > 0) {
hash = (37 * hash) + SCORE_LIST_FIELD_NUMBER;
hash = (53 * hash) + getScoreListList().hashCode();
@@ -510,7 +510,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
}
/**
* <pre>
* Obf: CAMOHBCDHAL
* Obf: GALINJEGEGO
* </pre>
*
* Protobuf type {@code InstableSprayDungeonSettleInfo}
@@ -550,16 +550,16 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
levelId_ = 0;
isNewRecord_ = false;
difficulty_ = 0;
stageId_ = 0;
isNewRecord_ = false;
round_ = 0;
levelId_ = 0;
scoreList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
@@ -589,11 +589,11 @@ 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.isNewRecord_ = isNewRecord_;
result.difficulty_ = difficulty_;
result.stageId_ = stageId_;
result.isNewRecord_ = isNewRecord_;
result.round_ = round_;
result.levelId_ = levelId_;
if (((bitField0_ & 0x00000001) != 0)) {
scoreList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
@@ -647,8 +647,8 @@ 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.getIsNewRecord() != false) {
setIsNewRecord(other.getIsNewRecord());
}
if (other.getDifficulty() != 0) {
setDifficulty(other.getDifficulty());
@@ -656,12 +656,12 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
if (other.getStageId() != 0) {
setStageId(other.getStageId());
}
if (other.getIsNewRecord() != false) {
setIsNewRecord(other.getIsNewRecord());
}
if (other.getRound() != 0) {
setRound(other.getRound());
}
if (other.getLevelId() != 0) {
setLevelId(other.getLevelId());
}
if (!other.scoreList_.isEmpty()) {
if (scoreList_.isEmpty()) {
scoreList_ = other.scoreList_;
@@ -702,40 +702,40 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
}
private int bitField0_;
private int levelId_ ;
private boolean isNewRecord_ ;
/**
* <code>uint32 level_id = 11;</code>
* @return The levelId.
* <code>bool is_new_record = 15;</code>
* @return The isNewRecord.
*/
@java.lang.Override
public int getLevelId() {
return levelId_;
public boolean getIsNewRecord() {
return isNewRecord_;
}
/**
* <code>uint32 level_id = 11;</code>
* @param value The levelId to set.
* <code>bool is_new_record = 15;</code>
* @param value The isNewRecord to set.
* @return This builder for chaining.
*/
public Builder setLevelId(int value) {
public Builder setIsNewRecord(boolean value) {
levelId_ = value;
isNewRecord_ = value;
onChanged();
return this;
}
/**
* <code>uint32 level_id = 11;</code>
* <code>bool is_new_record = 15;</code>
* @return This builder for chaining.
*/
public Builder clearLevelId() {
public Builder clearIsNewRecord() {
levelId_ = 0;
isNewRecord_ = false;
onChanged();
return this;
}
private int difficulty_ ;
/**
* <code>uint32 difficulty = 6;</code>
* <code>uint32 difficulty = 8;</code>
* @return The difficulty.
*/
@java.lang.Override
@@ -743,7 +743,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return difficulty_;
}
/**
* <code>uint32 difficulty = 6;</code>
* <code>uint32 difficulty = 8;</code>
* @param value The difficulty to set.
* @return This builder for chaining.
*/
@@ -754,7 +754,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
/**
* <code>uint32 difficulty = 6;</code>
* <code>uint32 difficulty = 8;</code>
* @return This builder for chaining.
*/
public Builder clearDifficulty() {
@@ -766,7 +766,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
private int stageId_ ;
/**
* <code>uint32 stage_id = 1;</code>
* <code>uint32 stage_id = 5;</code>
* @return The stageId.
*/
@java.lang.Override
@@ -774,7 +774,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return stageId_;
}
/**
* <code>uint32 stage_id = 1;</code>
* <code>uint32 stage_id = 5;</code>
* @param value The stageId to set.
* @return This builder for chaining.
*/
@@ -785,7 +785,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
/**
* <code>uint32 stage_id = 1;</code>
* <code>uint32 stage_id = 5;</code>
* @return This builder for chaining.
*/
public Builder clearStageId() {
@@ -795,40 +795,9 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
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>
* <code>uint32 round = 13;</code>
* @return The round.
*/
@java.lang.Override
@@ -836,7 +805,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return round_;
}
/**
* <code>uint32 round = 4;</code>
* <code>uint32 round = 13;</code>
* @param value The round to set.
* @return This builder for chaining.
*/
@@ -847,7 +816,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
/**
* <code>uint32 round = 4;</code>
* <code>uint32 round = 13;</code>
* @return This builder for chaining.
*/
public Builder clearRound() {
@@ -857,6 +826,37 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
private int levelId_ ;
/**
* <code>uint32 level_id = 4;</code>
* @return The levelId.
*/
@java.lang.Override
public int getLevelId() {
return levelId_;
}
/**
* <code>uint32 level_id = 4;</code>
* @param value The levelId to set.
* @return This builder for chaining.
*/
public Builder setLevelId(int value) {
levelId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 level_id = 4;</code>
* @return This builder for chaining.
*/
public Builder clearLevelId() {
levelId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList scoreList_ = emptyIntList();
private void ensureScoreListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
@@ -865,7 +865,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
}
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @return A list containing the scoreList.
*/
public java.util.List<java.lang.Integer>
@@ -874,14 +874,14 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
java.util.Collections.unmodifiableList(scoreList_) : scoreList_;
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @return The count of scoreList.
*/
public int getScoreListCount() {
return scoreList_.size();
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @param index The index of the element to return.
* @return The scoreList at the given index.
*/
@@ -889,7 +889,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return scoreList_.getInt(index);
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @param index The index to set the value at.
* @param value The scoreList to set.
* @return This builder for chaining.
@@ -902,7 +902,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @param value The scoreList to add.
* @return This builder for chaining.
*/
@@ -913,7 +913,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @param values The scoreList to add.
* @return This builder for chaining.
*/
@@ -926,7 +926,7 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
return this;
}
/**
* <code>repeated uint32 score_list = 8;</code>
* <code>repeated uint32 score_list = 7;</code>
* @return This builder for chaining.
*/
public Builder clearScoreList() {
@@ -1003,10 +1003,10 @@ public final class InstableSprayDungeonSettleInfoOuterClass {
static {
java.lang.String[] descriptorData = {
"\n$InstableSprayDungeonSettleInfo.proto\"\222" +
"\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" +
"\001\n\036InstableSprayDungeonSettleInfo\022\025\n\ris_" +
"new_record\030\017 \001(\010\022\022\n\ndifficulty\030\010 \001(\r\022\020\n\010" +
"stage_id\030\005 \001(\r\022\r\n\005round\030\r \001(\r\022\020\n\010level_i" +
"d\030\004 \001(\r\022\022\n\nscore_list\030\007 \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[] { "LevelId", "Difficulty", "StageId", "IsNewRecord", "Round", "ScoreList", });
new java.lang.String[] { "IsNewRecord", "Difficulty", "StageId", "Round", "LevelId", "ScoreList", });
}
// @@protoc_insertion_point(outer_class_scope)