mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 20:49:57 +08:00
Update gc to 3.3 (#1981)
* replace the deprecated api * update proto * delete music game * fixed codes * fix costume switch * fix mail bug * Bump version number. * Re-add max boss chest number Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
8b83dbf58c
commit
92fbaa8670
+99
-93
@@ -19,29 +19,32 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>int32 retcode = 6;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>string signature = 12;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
java.lang.String getSignature();
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getSignatureBytes();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 4005
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 4042;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SetPlayerSignatureRsp}
|
||||
@@ -89,17 +92,17 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
case 48: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
signature_ = s;
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -132,10 +135,21 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.class, emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int SIGNATURE_FIELD_NUMBER = 1;
|
||||
public static final int RETCODE_FIELD_NUMBER = 6;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 6;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int SIGNATURE_FIELD_NUMBER = 12;
|
||||
private volatile java.lang.Object signature_;
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -152,7 +166,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -170,17 +184,6 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 4;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -195,11 +198,11 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signature_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(4, retcode_);
|
||||
output.writeInt32(6, retcode_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, signature_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -210,12 +213,12 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signature_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(4, retcode_);
|
||||
.computeInt32Size(6, retcode_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, signature_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -232,10 +235,10 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp other = (emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp) obj;
|
||||
|
||||
if (!getSignature()
|
||||
.equals(other.getSignature())) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!getSignature()
|
||||
.equals(other.getSignature())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -247,10 +250,10 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getSignature().hashCode();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getSignature().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -348,10 +351,13 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 4005
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 4042;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SetPlayerSignatureRsp}
|
||||
@@ -391,10 +397,10 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
signature_ = "";
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
signature_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -421,8 +427,8 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp result = new emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp(this);
|
||||
result.signature_ = signature_;
|
||||
result.retcode_ = retcode_;
|
||||
result.signature_ = signature_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -471,13 +477,13 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.getDefaultInstance()) return this;
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (!other.getSignature().isEmpty()) {
|
||||
signature_ = other.signature_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -507,9 +513,40 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 6;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 6;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setRetcode(int value) {
|
||||
|
||||
retcode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
|
||||
retcode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object signature_ = "";
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
public java.lang.String getSignature() {
|
||||
@@ -525,7 +562,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
@@ -542,7 +579,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @param value The signature to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -557,7 +594,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSignature() {
|
||||
@@ -567,7 +604,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 1;</code>
|
||||
* <code>string signature = 12;</code>
|
||||
* @param value The bytes for signature to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -582,37 +619,6 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setRetcode(int value) {
|
||||
|
||||
retcode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
|
||||
retcode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -681,8 +687,8 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\033SetPlayerSignatureRsp.proto\";\n\025SetPlay" +
|
||||
"erSignatureRsp\022\021\n\tsignature\030\001 \001(\t\022\017\n\007ret" +
|
||||
"code\030\004 \001(\005B\033\n\031emu.grasscutter.net.protob" +
|
||||
"erSignatureRsp\022\017\n\007retcode\030\006 \001(\005\022\021\n\tsigna" +
|
||||
"ture\030\014 \001(\tB\033\n\031emu.grasscutter.net.protob" +
|
||||
"\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -694,7 +700,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
internal_static_SetPlayerSignatureRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_SetPlayerSignatureRsp_descriptor,
|
||||
new java.lang.String[] { "Signature", "Retcode", });
|
||||
new java.lang.String[] { "Retcode", "Signature", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user