mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 12:29:53 +08:00
feat(5.0): Update protocol definitions
This commit is contained in:
+73
-83
@@ -19,23 +19,18 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 12;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>uint32 content_type = 10;</code>
|
||||
* <code>uint32 content_type = 12;</code>
|
||||
* @return The contentType.
|
||||
*/
|
||||
int getContentType();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 15;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 5514
|
||||
* Obf: FGGNCOHIPDL
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AddQuestContentProgressRsp}
|
||||
*/
|
||||
public static final class AddQuestContentProgressRsp extends
|
||||
@@ -80,12 +75,12 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 80: {
|
||||
case 96: {
|
||||
|
||||
contentType_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
case 120: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
@@ -122,21 +117,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp.class, emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 12;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 12;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int CONTENT_TYPE_FIELD_NUMBER = 10;
|
||||
public static final int CONTENT_TYPE_FIELD_NUMBER = 12;
|
||||
private int contentType_;
|
||||
/**
|
||||
* <code>uint32 content_type = 10;</code>
|
||||
* <code>uint32 content_type = 12;</code>
|
||||
* @return The contentType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -144,6 +128,17 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 15;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 15;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -159,10 +154,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (contentType_ != 0) {
|
||||
output.writeUInt32(10, contentType_);
|
||||
output.writeUInt32(12, contentType_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(12, retcode_);
|
||||
output.writeInt32(15, retcode_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -175,11 +170,11 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
size = 0;
|
||||
if (contentType_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(10, contentType_);
|
||||
.computeUInt32Size(12, contentType_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(12, retcode_);
|
||||
.computeInt32Size(15, retcode_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -196,10 +191,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp other = (emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp) obj;
|
||||
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (getContentType()
|
||||
!= other.getContentType()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -211,10 +206,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getContentType();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -311,11 +306,6 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 5514
|
||||
* Obf: FGGNCOHIPDL
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AddQuestContentProgressRsp}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
@@ -353,10 +343,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
retcode_ = 0;
|
||||
|
||||
contentType_ = 0;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -383,8 +373,8 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp result = new emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp(this);
|
||||
result.retcode_ = retcode_;
|
||||
result.contentType_ = contentType_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -433,12 +423,12 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp.getDefaultInstance()) return this;
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (other.getContentType() != 0) {
|
||||
setContentType(other.getContentType());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -468,40 +458,9 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 12;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 12;</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 = 12;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
|
||||
retcode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int contentType_ ;
|
||||
/**
|
||||
* <code>uint32 content_type = 10;</code>
|
||||
* <code>uint32 content_type = 12;</code>
|
||||
* @return The contentType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -509,7 +468,7 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return contentType_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 content_type = 10;</code>
|
||||
* <code>uint32 content_type = 12;</code>
|
||||
* @param value The contentType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -520,7 +479,7 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 content_type = 10;</code>
|
||||
* <code>uint32 content_type = 12;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearContentType() {
|
||||
@@ -529,6 +488,37 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 15;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 15;</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 = 15;</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) {
|
||||
@@ -597,8 +587,8 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n AddQuestContentProgressRsp.proto\"C\n\032Ad" +
|
||||
"dQuestContentProgressRsp\022\017\n\007retcode\030\014 \001(" +
|
||||
"\005\022\024\n\014content_type\030\n \001(\rB\033\n\031emu.grasscutt" +
|
||||
"dQuestContentProgressRsp\022\024\n\014content_type" +
|
||||
"\030\014 \001(\r\022\017\n\007retcode\030\017 \001(\005B\033\n\031emu.grasscutt" +
|
||||
"er.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -610,7 +600,7 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
internal_static_AddQuestContentProgressRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_AddQuestContentProgressRsp_descriptor,
|
||||
new java.lang.String[] { "Retcode", "ContentType", });
|
||||
new java.lang.String[] { "ContentType", "Retcode", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user