mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 06:13:37 +08:00
Add new protocol definitions
This commit is contained in:
@@ -19,21 +19,21 @@ public final class EnterFishingRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 3;</code>
|
||||
* @return The fishPoolId.
|
||||
*/
|
||||
int getFishPoolId();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 2;</code>
|
||||
* @return The fishPoolId.
|
||||
*/
|
||||
int getFishPoolId();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 5808
|
||||
* Obf: JNAKALJCBCJ
|
||||
* CmdId: 22129
|
||||
* Obf: EMGCLLHPDOF
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code EnterFishingRsp}
|
||||
@@ -80,12 +80,12 @@ public final class EnterFishingRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 24: {
|
||||
case 16: {
|
||||
|
||||
fishPoolId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
case 112: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
@@ -122,21 +122,10 @@ public final class EnterFishingRspOuterClass {
|
||||
emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp.class, emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int FISH_POOL_ID_FIELD_NUMBER = 3;
|
||||
private int fishPoolId_;
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 3;</code>
|
||||
* @return The fishPoolId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getFishPoolId() {
|
||||
return fishPoolId_;
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 10;
|
||||
public static final int RETCODE_FIELD_NUMBER = 14;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -144,6 +133,17 @@ public final class EnterFishingRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int FISH_POOL_ID_FIELD_NUMBER = 2;
|
||||
private int fishPoolId_;
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 2;</code>
|
||||
* @return The fishPoolId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getFishPoolId() {
|
||||
return fishPoolId_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -159,10 +159,10 @@ public final class EnterFishingRspOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (fishPoolId_ != 0) {
|
||||
output.writeUInt32(3, fishPoolId_);
|
||||
output.writeUInt32(2, fishPoolId_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(10, retcode_);
|
||||
output.writeInt32(14, retcode_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -175,11 +175,11 @@ public final class EnterFishingRspOuterClass {
|
||||
size = 0;
|
||||
if (fishPoolId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(3, fishPoolId_);
|
||||
.computeUInt32Size(2, fishPoolId_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(10, retcode_);
|
||||
.computeInt32Size(14, retcode_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -196,10 +196,10 @@ public final class EnterFishingRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp other = (emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp) obj;
|
||||
|
||||
if (getFishPoolId()
|
||||
!= other.getFishPoolId()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (getFishPoolId()
|
||||
!= other.getFishPoolId()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -211,10 +211,10 @@ public final class EnterFishingRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + FISH_POOL_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getFishPoolId();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (37 * hash) + FISH_POOL_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getFishPoolId();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -312,8 +312,8 @@ public final class EnterFishingRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 5808
|
||||
* Obf: JNAKALJCBCJ
|
||||
* CmdId: 22129
|
||||
* Obf: EMGCLLHPDOF
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code EnterFishingRsp}
|
||||
@@ -353,10 +353,10 @@ public final class EnterFishingRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
fishPoolId_ = 0;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
fishPoolId_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -383,8 +383,8 @@ public final class EnterFishingRspOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp result = new emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp(this);
|
||||
result.fishPoolId_ = fishPoolId_;
|
||||
result.retcode_ = retcode_;
|
||||
result.fishPoolId_ = fishPoolId_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -433,12 +433,12 @@ public final class EnterFishingRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.EnterFishingRspOuterClass.EnterFishingRsp.getDefaultInstance()) return this;
|
||||
if (other.getFishPoolId() != 0) {
|
||||
setFishPoolId(other.getFishPoolId());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (other.getFishPoolId() != 0) {
|
||||
setFishPoolId(other.getFishPoolId());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -468,40 +468,9 @@ public final class EnterFishingRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int fishPoolId_ ;
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 3;</code>
|
||||
* @return The fishPoolId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getFishPoolId() {
|
||||
return fishPoolId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 3;</code>
|
||||
* @param value The fishPoolId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFishPoolId(int value) {
|
||||
|
||||
fishPoolId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFishPoolId() {
|
||||
|
||||
fishPoolId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -509,7 +478,7 @@ public final class EnterFishingRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -520,7 +489,7 @@ public final class EnterFishingRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
@@ -529,6 +498,37 @@ public final class EnterFishingRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int fishPoolId_ ;
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 2;</code>
|
||||
* @return The fishPoolId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getFishPoolId() {
|
||||
return fishPoolId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 2;</code>
|
||||
* @param value The fishPoolId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFishPoolId(int value) {
|
||||
|
||||
fishPoolId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 fish_pool_id = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFishPoolId() {
|
||||
|
||||
fishPoolId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -597,8 +597,8 @@ public final class EnterFishingRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\025EnterFishingRsp.proto\"8\n\017EnterFishingR" +
|
||||
"sp\022\024\n\014fish_pool_id\030\003 \001(\r\022\017\n\007retcode\030\n \001(" +
|
||||
"\005B\033\n\031emu.grasscutter.net.protob\006proto3"
|
||||
"sp\022\017\n\007retcode\030\016 \001(\005\022\024\n\014fish_pool_id\030\002 \001(" +
|
||||
"\rB\033\n\031emu.grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -609,7 +609,7 @@ public final class EnterFishingRspOuterClass {
|
||||
internal_static_EnterFishingRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_EnterFishingRsp_descriptor,
|
||||
new java.lang.String[] { "FishPoolId", "Retcode", });
|
||||
new java.lang.String[] { "Retcode", "FishPoolId", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user