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:
Magix
2023-05-26 21:29:02 -07:00
committed by GitHub
Unverified
parent 19bf2dfc69
commit 71f6198361
1382 changed files with 227149 additions and 199653 deletions
@@ -19,44 +19,44 @@ public final class FurnitureMakeDataOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>fixed32 begin_time = 9;</code>
* @return The beginTime.
* <code>uint32 index = 11;</code>
* @return The index.
*/
int getBeginTime();
int getIndex();
/**
* <code>uint32 dur_time = 7;</code>
* @return The durTime.
*/
int getDurTime();
/**
* <code>fixed32 accelerate_time = 14;</code>
* <code>fixed32 accelerateTime = 9;</code>
* @return The accelerateTime.
*/
int getAccelerateTime();
/**
* <code>uint32 avatar_id = 11;</code>
* @return The avatarId.
*/
int getAvatarId();
/**
* <code>uint32 make_id = 5;</code>
* <code>uint32 make_id = 12;</code>
* @return The makeId.
*/
int getMakeId();
/**
* <code>uint32 index = 13;</code>
* @return The index.
* <code>fixed32 begin_time = 5;</code>
* @return The beginTime.
*/
int getIndex();
int getBeginTime();
/**
* <code>uint32 avatar_id = 4;</code>
* @return The avatarId.
*/
int getAvatarId();
/**
* <code>uint32 durTime = 8;</code>
* @return The durTime.
*/
int getDurTime();
}
/**
* <pre>
* Name: GADICHLBHOI
* Obf: GEJHMMOBDLD
* </pre>
*
* Protobuf type {@code FurnitureMakeData}
@@ -103,34 +103,34 @@ public final class FurnitureMakeDataOuterClass {
case 0:
done = true;
break;
case 40: {
case 32: {
makeId_ = input.readUInt32();
avatarId_ = input.readUInt32();
break;
}
case 56: {
case 45: {
beginTime_ = input.readFixed32();
break;
}
case 64: {
durTime_ = input.readUInt32();
break;
}
case 77: {
beginTime_ = input.readFixed32();
accelerateTime_ = input.readFixed32();
break;
}
case 88: {
avatarId_ = input.readUInt32();
break;
}
case 104: {
index_ = input.readUInt32();
break;
}
case 117: {
case 96: {
accelerateTime_ = input.readFixed32();
makeId_ = input.readUInt32();
break;
}
default: {
@@ -165,32 +165,21 @@ public final class FurnitureMakeDataOuterClass {
emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData.class, emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData.Builder.class);
}
public static final int BEGIN_TIME_FIELD_NUMBER = 9;
private int beginTime_;
public static final int INDEX_FIELD_NUMBER = 11;
private int index_;
/**
* <code>fixed32 begin_time = 9;</code>
* @return The beginTime.
* <code>uint32 index = 11;</code>
* @return The index.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
public int getIndex() {
return index_;
}
public static final int DUR_TIME_FIELD_NUMBER = 7;
private int durTime_;
/**
* <code>uint32 dur_time = 7;</code>
* @return The durTime.
*/
@java.lang.Override
public int getDurTime() {
return durTime_;
}
public static final int ACCELERATE_TIME_FIELD_NUMBER = 14;
public static final int ACCELERATETIME_FIELD_NUMBER = 9;
private int accelerateTime_;
/**
* <code>fixed32 accelerate_time = 14;</code>
* <code>fixed32 accelerateTime = 9;</code>
* @return The accelerateTime.
*/
@java.lang.Override
@@ -198,21 +187,10 @@ public final class FurnitureMakeDataOuterClass {
return accelerateTime_;
}
public static final int AVATAR_ID_FIELD_NUMBER = 11;
private int avatarId_;
/**
* <code>uint32 avatar_id = 11;</code>
* @return The avatarId.
*/
@java.lang.Override
public int getAvatarId() {
return avatarId_;
}
public static final int MAKE_ID_FIELD_NUMBER = 5;
public static final int MAKE_ID_FIELD_NUMBER = 12;
private int makeId_;
/**
* <code>uint32 make_id = 5;</code>
* <code>uint32 make_id = 12;</code>
* @return The makeId.
*/
@java.lang.Override
@@ -220,15 +198,37 @@ public final class FurnitureMakeDataOuterClass {
return makeId_;
}
public static final int INDEX_FIELD_NUMBER = 13;
private int index_;
public static final int BEGIN_TIME_FIELD_NUMBER = 5;
private int beginTime_;
/**
* <code>uint32 index = 13;</code>
* @return The index.
* <code>fixed32 begin_time = 5;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getIndex() {
return index_;
public int getBeginTime() {
return beginTime_;
}
public static final int AVATAR_ID_FIELD_NUMBER = 4;
private int avatarId_;
/**
* <code>uint32 avatar_id = 4;</code>
* @return The avatarId.
*/
@java.lang.Override
public int getAvatarId() {
return avatarId_;
}
public static final int DURTIME_FIELD_NUMBER = 8;
private int durTime_;
/**
* <code>uint32 durTime = 8;</code>
* @return The durTime.
*/
@java.lang.Override
public int getDurTime() {
return durTime_;
}
private byte memoizedIsInitialized = -1;
@@ -245,23 +245,23 @@ public final class FurnitureMakeDataOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (makeId_ != 0) {
output.writeUInt32(5, makeId_);
}
if (durTime_ != 0) {
output.writeUInt32(7, durTime_);
if (avatarId_ != 0) {
output.writeUInt32(4, avatarId_);
}
if (beginTime_ != 0) {
output.writeFixed32(9, beginTime_);
output.writeFixed32(5, beginTime_);
}
if (avatarId_ != 0) {
output.writeUInt32(11, avatarId_);
}
if (index_ != 0) {
output.writeUInt32(13, index_);
if (durTime_ != 0) {
output.writeUInt32(8, durTime_);
}
if (accelerateTime_ != 0) {
output.writeFixed32(14, accelerateTime_);
output.writeFixed32(9, accelerateTime_);
}
if (index_ != 0) {
output.writeUInt32(11, index_);
}
if (makeId_ != 0) {
output.writeUInt32(12, makeId_);
}
unknownFields.writeTo(output);
}
@@ -272,29 +272,29 @@ public final class FurnitureMakeDataOuterClass {
if (size != -1) return size;
size = 0;
if (makeId_ != 0) {
if (avatarId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, makeId_);
}
if (durTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, durTime_);
.computeUInt32Size(4, avatarId_);
}
if (beginTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(9, beginTime_);
.computeFixed32Size(5, beginTime_);
}
if (avatarId_ != 0) {
if (durTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, avatarId_);
}
if (index_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, index_);
.computeUInt32Size(8, durTime_);
}
if (accelerateTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(14, accelerateTime_);
.computeFixed32Size(9, accelerateTime_);
}
if (index_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, index_);
}
if (makeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, makeId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -311,18 +311,18 @@ public final class FurnitureMakeDataOuterClass {
}
emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData other = (emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData) obj;
if (getBeginTime()
!= other.getBeginTime()) return false;
if (getDurTime()
!= other.getDurTime()) return false;
if (getAccelerateTime()
!= other.getAccelerateTime()) return false;
if (getAvatarId()
!= other.getAvatarId()) return false;
if (getMakeId()
!= other.getMakeId()) return false;
if (getIndex()
!= other.getIndex()) return false;
if (getAccelerateTime()
!= other.getAccelerateTime()) return false;
if (getMakeId()
!= other.getMakeId()) return false;
if (getBeginTime()
!= other.getBeginTime()) return false;
if (getAvatarId()
!= other.getAvatarId()) return false;
if (getDurTime()
!= other.getDurTime()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -334,18 +334,18 @@ public final class FurnitureMakeDataOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER;
hash = (53 * hash) + getBeginTime();
hash = (37 * hash) + DUR_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDurTime();
hash = (37 * hash) + ACCELERATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getAccelerateTime();
hash = (37 * hash) + AVATAR_ID_FIELD_NUMBER;
hash = (53 * hash) + getAvatarId();
hash = (37 * hash) + MAKE_ID_FIELD_NUMBER;
hash = (53 * hash) + getMakeId();
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
hash = (37 * hash) + ACCELERATETIME_FIELD_NUMBER;
hash = (53 * hash) + getAccelerateTime();
hash = (37 * hash) + MAKE_ID_FIELD_NUMBER;
hash = (53 * hash) + getMakeId();
hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER;
hash = (53 * hash) + getBeginTime();
hash = (37 * hash) + AVATAR_ID_FIELD_NUMBER;
hash = (53 * hash) + getAvatarId();
hash = (37 * hash) + DURTIME_FIELD_NUMBER;
hash = (53 * hash) + getDurTime();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -443,7 +443,7 @@ public final class FurnitureMakeDataOuterClass {
}
/**
* <pre>
* Name: GADICHLBHOI
* Obf: GEJHMMOBDLD
* </pre>
*
* Protobuf type {@code FurnitureMakeData}
@@ -483,17 +483,17 @@ public final class FurnitureMakeDataOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
beginTime_ = 0;
durTime_ = 0;
index_ = 0;
accelerateTime_ = 0;
avatarId_ = 0;
makeId_ = 0;
index_ = 0;
beginTime_ = 0;
avatarId_ = 0;
durTime_ = 0;
return this;
}
@@ -521,12 +521,12 @@ public final class FurnitureMakeDataOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData buildPartial() {
emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData result = new emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData(this);
result.beginTime_ = beginTime_;
result.durTime_ = durTime_;
result.accelerateTime_ = accelerateTime_;
result.avatarId_ = avatarId_;
result.makeId_ = makeId_;
result.index_ = index_;
result.accelerateTime_ = accelerateTime_;
result.makeId_ = makeId_;
result.beginTime_ = beginTime_;
result.avatarId_ = avatarId_;
result.durTime_ = durTime_;
onBuilt();
return result;
}
@@ -575,23 +575,23 @@ public final class FurnitureMakeDataOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData other) {
if (other == emu.grasscutter.net.proto.FurnitureMakeDataOuterClass.FurnitureMakeData.getDefaultInstance()) return this;
if (other.getBeginTime() != 0) {
setBeginTime(other.getBeginTime());
}
if (other.getDurTime() != 0) {
setDurTime(other.getDurTime());
if (other.getIndex() != 0) {
setIndex(other.getIndex());
}
if (other.getAccelerateTime() != 0) {
setAccelerateTime(other.getAccelerateTime());
}
if (other.getAvatarId() != 0) {
setAvatarId(other.getAvatarId());
}
if (other.getMakeId() != 0) {
setMakeId(other.getMakeId());
}
if (other.getIndex() != 0) {
setIndex(other.getIndex());
if (other.getBeginTime() != 0) {
setBeginTime(other.getBeginTime());
}
if (other.getAvatarId() != 0) {
setAvatarId(other.getAvatarId());
}
if (other.getDurTime() != 0) {
setDurTime(other.getDurTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -622,164 +622,9 @@ public final class FurnitureMakeDataOuterClass {
return this;
}
private int beginTime_ ;
/**
* <code>fixed32 begin_time = 9;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
}
/**
* <code>fixed32 begin_time = 9;</code>
* @param value The beginTime to set.
* @return This builder for chaining.
*/
public Builder setBeginTime(int value) {
beginTime_ = value;
onChanged();
return this;
}
/**
* <code>fixed32 begin_time = 9;</code>
* @return This builder for chaining.
*/
public Builder clearBeginTime() {
beginTime_ = 0;
onChanged();
return this;
}
private int durTime_ ;
/**
* <code>uint32 dur_time = 7;</code>
* @return The durTime.
*/
@java.lang.Override
public int getDurTime() {
return durTime_;
}
/**
* <code>uint32 dur_time = 7;</code>
* @param value The durTime to set.
* @return This builder for chaining.
*/
public Builder setDurTime(int value) {
durTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 dur_time = 7;</code>
* @return This builder for chaining.
*/
public Builder clearDurTime() {
durTime_ = 0;
onChanged();
return this;
}
private int accelerateTime_ ;
/**
* <code>fixed32 accelerate_time = 14;</code>
* @return The accelerateTime.
*/
@java.lang.Override
public int getAccelerateTime() {
return accelerateTime_;
}
/**
* <code>fixed32 accelerate_time = 14;</code>
* @param value The accelerateTime to set.
* @return This builder for chaining.
*/
public Builder setAccelerateTime(int value) {
accelerateTime_ = value;
onChanged();
return this;
}
/**
* <code>fixed32 accelerate_time = 14;</code>
* @return This builder for chaining.
*/
public Builder clearAccelerateTime() {
accelerateTime_ = 0;
onChanged();
return this;
}
private int avatarId_ ;
/**
* <code>uint32 avatar_id = 11;</code>
* @return The avatarId.
*/
@java.lang.Override
public int getAvatarId() {
return avatarId_;
}
/**
* <code>uint32 avatar_id = 11;</code>
* @param value The avatarId to set.
* @return This builder for chaining.
*/
public Builder setAvatarId(int value) {
avatarId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 avatar_id = 11;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarId() {
avatarId_ = 0;
onChanged();
return this;
}
private int makeId_ ;
/**
* <code>uint32 make_id = 5;</code>
* @return The makeId.
*/
@java.lang.Override
public int getMakeId() {
return makeId_;
}
/**
* <code>uint32 make_id = 5;</code>
* @param value The makeId to set.
* @return This builder for chaining.
*/
public Builder setMakeId(int value) {
makeId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 make_id = 5;</code>
* @return This builder for chaining.
*/
public Builder clearMakeId() {
makeId_ = 0;
onChanged();
return this;
}
private int index_ ;
/**
* <code>uint32 index = 13;</code>
* <code>uint32 index = 11;</code>
* @return The index.
*/
@java.lang.Override
@@ -787,7 +632,7 @@ public final class FurnitureMakeDataOuterClass {
return index_;
}
/**
* <code>uint32 index = 13;</code>
* <code>uint32 index = 11;</code>
* @param value The index to set.
* @return This builder for chaining.
*/
@@ -798,7 +643,7 @@ public final class FurnitureMakeDataOuterClass {
return this;
}
/**
* <code>uint32 index = 13;</code>
* <code>uint32 index = 11;</code>
* @return This builder for chaining.
*/
public Builder clearIndex() {
@@ -807,6 +652,161 @@ public final class FurnitureMakeDataOuterClass {
onChanged();
return this;
}
private int accelerateTime_ ;
/**
* <code>fixed32 accelerateTime = 9;</code>
* @return The accelerateTime.
*/
@java.lang.Override
public int getAccelerateTime() {
return accelerateTime_;
}
/**
* <code>fixed32 accelerateTime = 9;</code>
* @param value The accelerateTime to set.
* @return This builder for chaining.
*/
public Builder setAccelerateTime(int value) {
accelerateTime_ = value;
onChanged();
return this;
}
/**
* <code>fixed32 accelerateTime = 9;</code>
* @return This builder for chaining.
*/
public Builder clearAccelerateTime() {
accelerateTime_ = 0;
onChanged();
return this;
}
private int makeId_ ;
/**
* <code>uint32 make_id = 12;</code>
* @return The makeId.
*/
@java.lang.Override
public int getMakeId() {
return makeId_;
}
/**
* <code>uint32 make_id = 12;</code>
* @param value The makeId to set.
* @return This builder for chaining.
*/
public Builder setMakeId(int value) {
makeId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 make_id = 12;</code>
* @return This builder for chaining.
*/
public Builder clearMakeId() {
makeId_ = 0;
onChanged();
return this;
}
private int beginTime_ ;
/**
* <code>fixed32 begin_time = 5;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
}
/**
* <code>fixed32 begin_time = 5;</code>
* @param value The beginTime to set.
* @return This builder for chaining.
*/
public Builder setBeginTime(int value) {
beginTime_ = value;
onChanged();
return this;
}
/**
* <code>fixed32 begin_time = 5;</code>
* @return This builder for chaining.
*/
public Builder clearBeginTime() {
beginTime_ = 0;
onChanged();
return this;
}
private int avatarId_ ;
/**
* <code>uint32 avatar_id = 4;</code>
* @return The avatarId.
*/
@java.lang.Override
public int getAvatarId() {
return avatarId_;
}
/**
* <code>uint32 avatar_id = 4;</code>
* @param value The avatarId to set.
* @return This builder for chaining.
*/
public Builder setAvatarId(int value) {
avatarId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 avatar_id = 4;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarId() {
avatarId_ = 0;
onChanged();
return this;
}
private int durTime_ ;
/**
* <code>uint32 durTime = 8;</code>
* @return The durTime.
*/
@java.lang.Override
public int getDurTime() {
return durTime_;
}
/**
* <code>uint32 durTime = 8;</code>
* @param value The durTime to set.
* @return This builder for chaining.
*/
public Builder setDurTime(int value) {
durTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 durTime = 8;</code>
* @return This builder for chaining.
*/
public Builder clearDurTime() {
durTime_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -874,11 +874,11 @@ public final class FurnitureMakeDataOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027FurnitureMakeData.proto\"\205\001\n\021FurnitureM" +
"akeData\022\022\n\nbegin_time\030\t \001(\007\022\020\n\010dur_time\030" +
"\007 \001(\r\022\027\n\017accelerate_time\030\016 \001(\007\022\021\n\tavatar" +
"_id\030\013 \001(\r\022\017\n\007make_id\030\005 \001(\r\022\r\n\005index\030\r \001(" +
"\rB\033\n\031emu.grasscutter.net.protob\006proto3"
"\n\027FurnitureMakeData.proto\"\203\001\n\021FurnitureM" +
"akeData\022\r\n\005index\030\013 \001(\r\022\026\n\016accelerateTime" +
"\030\t \001(\007\022\017\n\007make_id\030\014 \001(\r\022\022\n\nbegin_time\030\005 " +
"\001(\007\022\021\n\tavatar_id\030\004 \001(\r\022\017\n\007durTime\030\010 \001(\rB" +
"\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -889,7 +889,7 @@ public final class FurnitureMakeDataOuterClass {
internal_static_FurnitureMakeData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_FurnitureMakeData_descriptor,
new java.lang.String[] { "BeginTime", "DurTime", "AccelerateTime", "AvatarId", "MakeId", "Index", });
new java.lang.String[] { "Index", "AccelerateTime", "MakeId", "BeginTime", "AvatarId", "DurTime", });
}
// @@protoc_insertion_point(outer_class_scope)