mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 10:33:34 +08:00
Add new protocol definitions
This commit is contained in:
+122
-122
@@ -18,28 +18,28 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
// @@protoc_insertion_point(interface_extends:SetPlayerSignatureRsp)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
java.lang.String getSignature();
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getSignatureBytes();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
java.lang.String getSignature();
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getSignatureBytes();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 4016
|
||||
* Obf: OJEMMPNBMPF
|
||||
* CmdId: 28588
|
||||
* Obf: GGJIINKCKBA
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SetPlayerSignatureRsp}
|
||||
@@ -87,7 +87,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 50: {
|
||||
case 66: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
signature_ = s;
|
||||
@@ -130,10 +130,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 = 6;
|
||||
public static final int RETCODE_FIELD_NUMBER = 14;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int SIGNATURE_FIELD_NUMBER = 8;
|
||||
private volatile java.lang.Object signature_;
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* <code>string signature = 8;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -150,7 +161,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* <code>string signature = 8;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -168,17 +179,6 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 14;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -194,7 +194,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
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, 6, signature_);
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, signature_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(14, retcode_);
|
||||
@@ -209,7 +209,7 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signature_);
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, signature_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
@@ -230,10 +230,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;
|
||||
}
|
||||
@@ -245,10 +245,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;
|
||||
@@ -346,8 +346,8 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 4016
|
||||
* Obf: OJEMMPNBMPF
|
||||
* CmdId: 28588
|
||||
* Obf: GGJIINKCKBA
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SetPlayerSignatureRsp}
|
||||
@@ -387,10 +387,10 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
signature_ = "";
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
signature_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -417,8 +417,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;
|
||||
}
|
||||
@@ -467,13 +467,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;
|
||||
@@ -503,82 +503,6 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object signature_ = "";
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
public java.lang.String getSignature() {
|
||||
java.lang.Object ref = signature_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
signature_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getSignatureBytes() {
|
||||
java.lang.Object ref = signature_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
signature_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @param value The signature to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSignature(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
signature_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSignature() {
|
||||
|
||||
signature_ = getDefaultInstance().getSignature();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 6;</code>
|
||||
* @param value The bytes for signature to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSignatureBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
signature_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 14;</code>
|
||||
@@ -609,6 +533,82 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object signature_ = "";
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @return The signature.
|
||||
*/
|
||||
public java.lang.String getSignature() {
|
||||
java.lang.Object ref = signature_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
signature_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @return The bytes for signature.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getSignatureBytes() {
|
||||
java.lang.Object ref = signature_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
signature_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @param value The signature to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSignature(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
signature_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSignature() {
|
||||
|
||||
signature_ = getDefaultInstance().getSignature();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string signature = 8;</code>
|
||||
* @param value The bytes for signature to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSignatureBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
signature_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -677,8 +677,8 @@ public final class SetPlayerSignatureRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\033SetPlayerSignatureRsp.proto\";\n\025SetPlay" +
|
||||
"erSignatureRsp\022\021\n\tsignature\030\006 \001(\t\022\017\n\007ret" +
|
||||
"code\030\016 \001(\005B\033\n\031emu.grasscutter.net.protob" +
|
||||
"erSignatureRsp\022\017\n\007retcode\030\016 \001(\005\022\021\n\tsigna" +
|
||||
"ture\030\010 \001(\tB\033\n\031emu.grasscutter.net.protob" +
|
||||
"\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -690,7 +690,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