mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 15:40:42 +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:
@@ -19,30 +19,30 @@ public final class PlayerChatReqOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 channel_id = 3;</code>
|
||||
* @return The channelId.
|
||||
*/
|
||||
int getChannelId();
|
||||
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
* @return Whether the chatInfo field is set.
|
||||
*/
|
||||
boolean hasChatInfo();
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
* @return The chatInfo.
|
||||
*/
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo();
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>uint32 channel_id = 7;</code>
|
||||
* @return The channelId.
|
||||
*/
|
||||
int getChannelId();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 3065
|
||||
* Name: EBEELCKAIEG
|
||||
* CmdId: 3359
|
||||
* Obf: DBOADNLHMAK
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code PlayerChatReq}
|
||||
@@ -89,12 +89,12 @@ public final class PlayerChatReqOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 24: {
|
||||
case 56: {
|
||||
|
||||
channelId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
case 106: {
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder subBuilder = null;
|
||||
if (chatInfo_ != null) {
|
||||
subBuilder = chatInfo_.toBuilder();
|
||||
@@ -139,21 +139,10 @@ public final class PlayerChatReqOuterClass {
|
||||
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.class, emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CHANNEL_ID_FIELD_NUMBER = 3;
|
||||
private int channelId_;
|
||||
/**
|
||||
* <code>uint32 channel_id = 3;</code>
|
||||
* @return The channelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getChannelId() {
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
public static final int CHAT_INFO_FIELD_NUMBER = 7;
|
||||
public static final int CHAT_INFO_FIELD_NUMBER = 13;
|
||||
private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_;
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
* @return Whether the chatInfo field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -161,7 +150,7 @@ public final class PlayerChatReqOuterClass {
|
||||
return chatInfo_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
* @return The chatInfo.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -169,13 +158,24 @@ public final class PlayerChatReqOuterClass {
|
||||
return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() {
|
||||
return getChatInfo();
|
||||
}
|
||||
|
||||
public static final int CHANNEL_ID_FIELD_NUMBER = 7;
|
||||
private int channelId_;
|
||||
/**
|
||||
* <code>uint32 channel_id = 7;</code>
|
||||
* @return The channelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getChannelId() {
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -191,10 +191,10 @@ public final class PlayerChatReqOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (channelId_ != 0) {
|
||||
output.writeUInt32(3, channelId_);
|
||||
output.writeUInt32(7, channelId_);
|
||||
}
|
||||
if (chatInfo_ != null) {
|
||||
output.writeMessage(7, getChatInfo());
|
||||
output.writeMessage(13, getChatInfo());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -207,11 +207,11 @@ public final class PlayerChatReqOuterClass {
|
||||
size = 0;
|
||||
if (channelId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(3, channelId_);
|
||||
.computeUInt32Size(7, channelId_);
|
||||
}
|
||||
if (chatInfo_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(7, getChatInfo());
|
||||
.computeMessageSize(13, getChatInfo());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -228,13 +228,13 @@ public final class PlayerChatReqOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq other = (emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq) obj;
|
||||
|
||||
if (getChannelId()
|
||||
!= other.getChannelId()) return false;
|
||||
if (hasChatInfo() != other.hasChatInfo()) return false;
|
||||
if (hasChatInfo()) {
|
||||
if (!getChatInfo()
|
||||
.equals(other.getChatInfo())) return false;
|
||||
}
|
||||
if (getChannelId()
|
||||
!= other.getChannelId()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -246,12 +246,12 @@ public final class PlayerChatReqOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getChannelId();
|
||||
if (hasChatInfo()) {
|
||||
hash = (37 * hash) + CHAT_INFO_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getChatInfo().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getChannelId();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -349,8 +349,8 @@ public final class PlayerChatReqOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 3065
|
||||
* Name: EBEELCKAIEG
|
||||
* CmdId: 3359
|
||||
* Obf: DBOADNLHMAK
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code PlayerChatReq}
|
||||
@@ -390,14 +390,14 @@ public final class PlayerChatReqOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
channelId_ = 0;
|
||||
|
||||
if (chatInfoBuilder_ == null) {
|
||||
chatInfo_ = null;
|
||||
} else {
|
||||
chatInfo_ = null;
|
||||
chatInfoBuilder_ = null;
|
||||
}
|
||||
channelId_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -424,12 +424,12 @@ public final class PlayerChatReqOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq buildPartial() {
|
||||
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq result = new emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq(this);
|
||||
result.channelId_ = channelId_;
|
||||
if (chatInfoBuilder_ == null) {
|
||||
result.chatInfo_ = chatInfo_;
|
||||
} else {
|
||||
result.chatInfo_ = chatInfoBuilder_.build();
|
||||
}
|
||||
result.channelId_ = channelId_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -478,12 +478,12 @@ public final class PlayerChatReqOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq other) {
|
||||
if (other == emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.getDefaultInstance()) return this;
|
||||
if (other.getChannelId() != 0) {
|
||||
setChannelId(other.getChannelId());
|
||||
}
|
||||
if (other.hasChatInfo()) {
|
||||
mergeChatInfo(other.getChatInfo());
|
||||
}
|
||||
if (other.getChannelId() != 0) {
|
||||
setChannelId(other.getChannelId());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -513,49 +513,18 @@ public final class PlayerChatReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int channelId_ ;
|
||||
/**
|
||||
* <code>uint32 channel_id = 3;</code>
|
||||
* @return The channelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getChannelId() {
|
||||
return channelId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 channel_id = 3;</code>
|
||||
* @param value The channelId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setChannelId(int value) {
|
||||
|
||||
channelId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 channel_id = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearChannelId() {
|
||||
|
||||
channelId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_;
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
* @return Whether the chatInfo field is set.
|
||||
*/
|
||||
public boolean hasChatInfo() {
|
||||
return chatInfoBuilder_ != null || chatInfo_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
* @return The chatInfo.
|
||||
*/
|
||||
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() {
|
||||
@@ -566,7 +535,7 @@ public final class PlayerChatReqOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
public Builder setChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) {
|
||||
if (chatInfoBuilder_ == null) {
|
||||
@@ -582,7 +551,7 @@ public final class PlayerChatReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
public Builder setChatInfo(
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) {
|
||||
@@ -596,7 +565,7 @@ public final class PlayerChatReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
public Builder mergeChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) {
|
||||
if (chatInfoBuilder_ == null) {
|
||||
@@ -614,7 +583,7 @@ public final class PlayerChatReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
public Builder clearChatInfo() {
|
||||
if (chatInfoBuilder_ == null) {
|
||||
@@ -628,7 +597,7 @@ public final class PlayerChatReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() {
|
||||
|
||||
@@ -636,7 +605,7 @@ public final class PlayerChatReqOuterClass {
|
||||
return getChatInfoFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() {
|
||||
if (chatInfoBuilder_ != null) {
|
||||
@@ -647,7 +616,7 @@ public final class PlayerChatReqOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.ChatInfo chat_info = 7;</code>
|
||||
* <code>.ChatInfo chat_info = 13;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>
|
||||
@@ -662,6 +631,37 @@ public final class PlayerChatReqOuterClass {
|
||||
}
|
||||
return chatInfoBuilder_;
|
||||
}
|
||||
|
||||
private int channelId_ ;
|
||||
/**
|
||||
* <code>uint32 channel_id = 7;</code>
|
||||
* @return The channelId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getChannelId() {
|
||||
return channelId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 channel_id = 7;</code>
|
||||
* @param value The channelId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setChannelId(int value) {
|
||||
|
||||
channelId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 channel_id = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearChannelId() {
|
||||
|
||||
channelId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -730,8 +730,8 @@ public final class PlayerChatReqOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\023PlayerChatReq.proto\032\016ChatInfo.proto\"A\n" +
|
||||
"\rPlayerChatReq\022\022\n\nchannel_id\030\003 \001(\r\022\034\n\tch" +
|
||||
"at_info\030\007 \001(\0132\t.ChatInfoB\033\n\031emu.grasscut" +
|
||||
"\rPlayerChatReq\022\034\n\tchat_info\030\r \001(\0132\t.Chat" +
|
||||
"Info\022\022\n\nchannel_id\030\007 \001(\rB\033\n\031emu.grasscut" +
|
||||
"ter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -744,7 +744,7 @@ public final class PlayerChatReqOuterClass {
|
||||
internal_static_PlayerChatReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_PlayerChatReq_descriptor,
|
||||
new java.lang.String[] { "ChannelId", "ChatInfo", });
|
||||
new java.lang.String[] { "ChatInfo", "ChannelId", });
|
||||
emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user