Fix existing protocol classes

Using `gc-quest-fix`
This commit is contained in:
KingRainbow44
2023-04-01 19:53:46 -04:00
Unverified
parent daa51e53b7
commit 29956421f0
13 changed files with 3659 additions and 3409 deletions
@@ -18,46 +18,47 @@ public final class MusicGameSettleRspOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint64 ugc_guid = 9;</code>
* <code>int32 retcode = 11;</code>
*
* @return The ugcGuid.
* @return The retcode.
*/
long getUgcGuid();
int getRetcode();
/**
* <code>bool is_unlock_next_level = 5;</code>
*
* @return The isUnlockNextLevel.
*/
boolean getIsUnlockNextLevel();
/**
* <code>uint32 music_basic_id = 14;</code>
* <code>uint32 music_basic_id = 5;</code>
*
* @return The musicBasicId.
*/
int getMusicBasicId();
/**
* <code>bool is_new_record = 7;</code>
* <code>bool is_new_record = 6;</code>
*
* @return The isNewRecord.
*/
boolean getIsNewRecord();
/**
* <code>int32 retcode = 15;</code>
* <code>bool is_unlock_next_level = 2;</code>
*
* @return The retcode.
* @return The isUnlockNextLevel.
*/
int getRetcode();
boolean getIsUnlockNextLevel();
/**
* <code>uint64 ugc_guid = 10;</code>
*
* @return The ugcGuid.
*/
long getUgcGuid();
}
/**
*
*
* <pre>
* Name: ANDLNOABFII
* CmdId: 8542
* CmdId: 8673 (3.2)
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code MusicGameSettleRsp}
@@ -103,27 +104,27 @@ public final class MusicGameSettleRspOuterClass {
case 0:
done = true;
break;
case 40:
case 16:
{
isUnlockNextLevel_ = input.readBool();
break;
}
case 56:
{
isNewRecord_ = input.readBool();
break;
}
case 72:
{
ugcGuid_ = input.readUInt64();
break;
}
case 112:
case 40:
{
musicBasicId_ = input.readUInt32();
break;
}
case 120:
case 48:
{
isNewRecord_ = input.readBool();
break;
}
case 80:
{
ugcGuid_ = input.readUInt64();
break;
}
case 88:
{
retcode_ = input.readInt32();
break;
@@ -163,34 +164,22 @@ public final class MusicGameSettleRspOuterClass {
.class);
}
public static final int UGC_GUID_FIELD_NUMBER = 9;
private long ugcGuid_;
public static final int RETCODE_FIELD_NUMBER = 11;
private int retcode_;
/**
* <code>uint64 ugc_guid = 9;</code>
* <code>int32 retcode = 11;</code>
*
* @return The ugcGuid.
* @return The retcode.
*/
@java.lang.Override
public long getUgcGuid() {
return ugcGuid_;
public int getRetcode() {
return retcode_;
}
public static final int IS_UNLOCK_NEXT_LEVEL_FIELD_NUMBER = 5;
private boolean isUnlockNextLevel_;
/**
* <code>bool is_unlock_next_level = 5;</code>
*
* @return The isUnlockNextLevel.
*/
@java.lang.Override
public boolean getIsUnlockNextLevel() {
return isUnlockNextLevel_;
}
public static final int MUSIC_BASIC_ID_FIELD_NUMBER = 14;
public static final int MUSIC_BASIC_ID_FIELD_NUMBER = 5;
private int musicBasicId_;
/**
* <code>uint32 music_basic_id = 14;</code>
* <code>uint32 music_basic_id = 5;</code>
*
* @return The musicBasicId.
*/
@@ -199,10 +188,10 @@ public final class MusicGameSettleRspOuterClass {
return musicBasicId_;
}
public static final int IS_NEW_RECORD_FIELD_NUMBER = 7;
public static final int IS_NEW_RECORD_FIELD_NUMBER = 6;
private boolean isNewRecord_;
/**
* <code>bool is_new_record = 7;</code>
* <code>bool is_new_record = 6;</code>
*
* @return The isNewRecord.
*/
@@ -211,16 +200,28 @@ public final class MusicGameSettleRspOuterClass {
return isNewRecord_;
}
public static final int RETCODE_FIELD_NUMBER = 15;
private int retcode_;
public static final int IS_UNLOCK_NEXT_LEVEL_FIELD_NUMBER = 2;
private boolean isUnlockNextLevel_;
/**
* <code>int32 retcode = 15;</code>
* <code>bool is_unlock_next_level = 2;</code>
*
* @return The retcode.
* @return The isUnlockNextLevel.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
public boolean getIsUnlockNextLevel() {
return isUnlockNextLevel_;
}
public static final int UGC_GUID_FIELD_NUMBER = 10;
private long ugcGuid_;
/**
* <code>uint64 ugc_guid = 10;</code>
*
* @return The ugcGuid.
*/
@java.lang.Override
public long getUgcGuid() {
return ugcGuid_;
}
private byte memoizedIsInitialized = -1;
@@ -238,19 +239,19 @@ public final class MusicGameSettleRspOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (isUnlockNextLevel_ != false) {
output.writeBool(5, isUnlockNextLevel_);
}
if (isNewRecord_ != false) {
output.writeBool(7, isNewRecord_);
}
if (ugcGuid_ != 0L) {
output.writeUInt64(9, ugcGuid_);
output.writeBool(2, isUnlockNextLevel_);
}
if (musicBasicId_ != 0) {
output.writeUInt32(14, musicBasicId_);
output.writeUInt32(5, musicBasicId_);
}
if (isNewRecord_ != false) {
output.writeBool(6, isNewRecord_);
}
if (ugcGuid_ != 0L) {
output.writeUInt64(10, ugcGuid_);
}
if (retcode_ != 0) {
output.writeInt32(15, retcode_);
output.writeInt32(11, retcode_);
}
unknownFields.writeTo(output);
}
@@ -262,19 +263,19 @@ public final class MusicGameSettleRspOuterClass {
size = 0;
if (isUnlockNextLevel_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isUnlockNextLevel_);
}
if (isNewRecord_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, isNewRecord_);
}
if (ugcGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeUInt64Size(9, ugcGuid_);
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isUnlockNextLevel_);
}
if (musicBasicId_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(14, musicBasicId_);
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, musicBasicId_);
}
if (isNewRecord_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isNewRecord_);
}
if (ugcGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeUInt64Size(10, ugcGuid_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, retcode_);
size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, retcode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -293,11 +294,11 @@ public final class MusicGameSettleRspOuterClass {
emu.grasscutter.net.proto.MusicGameSettleRspOuterClass.MusicGameSettleRsp other =
(emu.grasscutter.net.proto.MusicGameSettleRspOuterClass.MusicGameSettleRsp) obj;
if (getUgcGuid() != other.getUgcGuid()) return false;
if (getIsUnlockNextLevel() != other.getIsUnlockNextLevel()) return false;
if (getRetcode() != other.getRetcode()) return false;
if (getMusicBasicId() != other.getMusicBasicId()) return false;
if (getIsNewRecord() != other.getIsNewRecord()) return false;
if (getRetcode() != other.getRetcode()) return false;
if (getIsUnlockNextLevel() != other.getIsUnlockNextLevel()) return false;
if (getUgcGuid() != other.getUgcGuid()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -309,16 +310,16 @@ public final class MusicGameSettleRspOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + UGC_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUgcGuid());
hash = (37 * hash) + IS_UNLOCK_NEXT_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUnlockNextLevel());
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + MUSIC_BASIC_ID_FIELD_NUMBER;
hash = (53 * hash) + getMusicBasicId();
hash = (37 * hash) + IS_NEW_RECORD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsNewRecord());
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + IS_UNLOCK_NEXT_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUnlockNextLevel());
hash = (37 * hash) + UGC_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUgcGuid());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -431,8 +432,9 @@ public final class MusicGameSettleRspOuterClass {
*
*
* <pre>
* Name: ANDLNOABFII
* CmdId: 8542
* CmdId: 8673 (3.2)
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code MusicGameSettleRsp}
@@ -476,15 +478,15 @@ public final class MusicGameSettleRspOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
ugcGuid_ = 0L;
isUnlockNextLevel_ = false;
retcode_ = 0;
musicBasicId_ = 0;
isNewRecord_ = false;
retcode_ = 0;
isUnlockNextLevel_ = false;
ugcGuid_ = 0L;
return this;
}
@@ -517,11 +519,11 @@ public final class MusicGameSettleRspOuterClass {
buildPartial() {
emu.grasscutter.net.proto.MusicGameSettleRspOuterClass.MusicGameSettleRsp result =
new emu.grasscutter.net.proto.MusicGameSettleRspOuterClass.MusicGameSettleRsp(this);
result.ugcGuid_ = ugcGuid_;
result.isUnlockNextLevel_ = isUnlockNextLevel_;
result.retcode_ = retcode_;
result.musicBasicId_ = musicBasicId_;
result.isNewRecord_ = isNewRecord_;
result.retcode_ = retcode_;
result.isUnlockNextLevel_ = isUnlockNextLevel_;
result.ugcGuid_ = ugcGuid_;
onBuilt();
return result;
}
@@ -578,11 +580,8 @@ public final class MusicGameSettleRspOuterClass {
if (other
== emu.grasscutter.net.proto.MusicGameSettleRspOuterClass.MusicGameSettleRsp
.getDefaultInstance()) return this;
if (other.getUgcGuid() != 0L) {
setUgcGuid(other.getUgcGuid());
}
if (other.getIsUnlockNextLevel() != false) {
setIsUnlockNextLevel(other.getIsUnlockNextLevel());
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (other.getMusicBasicId() != 0) {
setMusicBasicId(other.getMusicBasicId());
@@ -590,8 +589,11 @@ public final class MusicGameSettleRspOuterClass {
if (other.getIsNewRecord() != false) {
setIsNewRecord(other.getIsNewRecord());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
if (other.getIsUnlockNextLevel() != false) {
setIsUnlockNextLevel(other.getIsUnlockNextLevel());
}
if (other.getUgcGuid() != 0L) {
setUgcGuid(other.getUgcGuid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -625,77 +627,43 @@ public final class MusicGameSettleRspOuterClass {
return this;
}
private long ugcGuid_;
private int retcode_;
/**
* <code>uint64 ugc_guid = 9;</code>
* <code>int32 retcode = 11;</code>
*
* @return The ugcGuid.
* @return The retcode.
*/
@java.lang.Override
public long getUgcGuid() {
return ugcGuid_;
public int getRetcode() {
return retcode_;
}
/**
* <code>uint64 ugc_guid = 9;</code>
* <code>int32 retcode = 11;</code>
*
* @param value The ugcGuid to set.
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setUgcGuid(long value) {
public Builder setRetcode(int value) {
ugcGuid_ = value;
retcode_ = value;
onChanged();
return this;
}
/**
* <code>uint64 ugc_guid = 9;</code>
* <code>int32 retcode = 11;</code>
*
* @return This builder for chaining.
*/
public Builder clearUgcGuid() {
public Builder clearRetcode() {
ugcGuid_ = 0L;
onChanged();
return this;
}
private boolean isUnlockNextLevel_;
/**
* <code>bool is_unlock_next_level = 5;</code>
*
* @return The isUnlockNextLevel.
*/
@java.lang.Override
public boolean getIsUnlockNextLevel() {
return isUnlockNextLevel_;
}
/**
* <code>bool is_unlock_next_level = 5;</code>
*
* @param value The isUnlockNextLevel to set.
* @return This builder for chaining.
*/
public Builder setIsUnlockNextLevel(boolean value) {
isUnlockNextLevel_ = value;
onChanged();
return this;
}
/**
* <code>bool is_unlock_next_level = 5;</code>
*
* @return This builder for chaining.
*/
public Builder clearIsUnlockNextLevel() {
isUnlockNextLevel_ = false;
retcode_ = 0;
onChanged();
return this;
}
private int musicBasicId_;
/**
* <code>uint32 music_basic_id = 14;</code>
* <code>uint32 music_basic_id = 5;</code>
*
* @return The musicBasicId.
*/
@@ -704,7 +672,7 @@ public final class MusicGameSettleRspOuterClass {
return musicBasicId_;
}
/**
* <code>uint32 music_basic_id = 14;</code>
* <code>uint32 music_basic_id = 5;</code>
*
* @param value The musicBasicId to set.
* @return This builder for chaining.
@@ -716,7 +684,7 @@ public final class MusicGameSettleRspOuterClass {
return this;
}
/**
* <code>uint32 music_basic_id = 14;</code>
* <code>uint32 music_basic_id = 5;</code>
*
* @return This builder for chaining.
*/
@@ -729,7 +697,7 @@ public final class MusicGameSettleRspOuterClass {
private boolean isNewRecord_;
/**
* <code>bool is_new_record = 7;</code>
* <code>bool is_new_record = 6;</code>
*
* @return The isNewRecord.
*/
@@ -738,7 +706,7 @@ public final class MusicGameSettleRspOuterClass {
return isNewRecord_;
}
/**
* <code>bool is_new_record = 7;</code>
* <code>bool is_new_record = 6;</code>
*
* @param value The isNewRecord to set.
* @return This builder for chaining.
@@ -750,7 +718,7 @@ public final class MusicGameSettleRspOuterClass {
return this;
}
/**
* <code>bool is_new_record = 7;</code>
* <code>bool is_new_record = 6;</code>
*
* @return This builder for chaining.
*/
@@ -761,36 +729,70 @@ public final class MusicGameSettleRspOuterClass {
return this;
}
private int retcode_;
private boolean isUnlockNextLevel_;
/**
* <code>int32 retcode = 15;</code>
* <code>bool is_unlock_next_level = 2;</code>
*
* @return The retcode.
* @return The isUnlockNextLevel.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
public boolean getIsUnlockNextLevel() {
return isUnlockNextLevel_;
}
/**
* <code>int32 retcode = 15;</code>
* <code>bool is_unlock_next_level = 2;</code>
*
* @param value The retcode to set.
* @param value The isUnlockNextLevel to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
public Builder setIsUnlockNextLevel(boolean value) {
retcode_ = value;
isUnlockNextLevel_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 15;</code>
* <code>bool is_unlock_next_level = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearRetcode() {
public Builder clearIsUnlockNextLevel() {
retcode_ = 0;
isUnlockNextLevel_ = false;
onChanged();
return this;
}
private long ugcGuid_;
/**
* <code>uint64 ugc_guid = 10;</code>
*
* @return The ugcGuid.
*/
@java.lang.Override
public long getUgcGuid() {
return ugcGuid_;
}
/**
* <code>uint64 ugc_guid = 10;</code>
*
* @param value The ugcGuid to set.
* @return This builder for chaining.
*/
public Builder setUgcGuid(long value) {
ugcGuid_ = value;
onChanged();
return this;
}
/**
* <code>uint64 ugc_guid = 10;</code>
*
* @return This builder for chaining.
*/
public Builder clearUgcGuid() {
ugcGuid_ = 0L;
onChanged();
return this;
}
@@ -865,10 +867,10 @@ public final class MusicGameSettleRspOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\030MusicGameSettleRsp.proto\"\204\001\n\022MusicGame"
+ "SettleRsp\022\020\n\010ugc_guid\030\t \001(\004\022\034\n\024is_unlock"
+ "_next_level\030\005 \001(\010\022\026\n\016music_basic_id\030\016 \001("
+ "\r\022\025\n\ris_new_record\030\007 \001(\010\022\017\n\007retcode\030\017 \001("
+ "\005B\033\n\031emu.grasscutter.net.protob\006proto3"
+ "SettleRsp\022\017\n\007retcode\030\013 \001(\005\022\026\n\016music_basi"
+ "c_id\030\005 \001(\r\022\025\n\ris_new_record\030\006 \001(\010\022\034\n\024is_"
+ "unlock_next_level\030\002 \001(\010\022\020\n\010ugc_guid\030\n \001("
+ "\004B\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -878,7 +880,7 @@ public final class MusicGameSettleRspOuterClass {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MusicGameSettleRsp_descriptor,
new java.lang.String[] {
"UgcGuid", "IsUnlockNextLevel", "MusicBasicId", "IsNewRecord", "Retcode",
"Retcode", "MusicBasicId", "IsNewRecord", "IsUnlockNextLevel", "UgcGuid",
});
}