mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 12:53:34 +08:00
Add new protocol definitions
This commit is contained in:
+76
-76
@@ -19,21 +19,21 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 level = 7;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
int getLevel();
|
||||
|
||||
/**
|
||||
* <code>uint32 exp = 8;</code>
|
||||
* <code>uint32 exp = 4;</code>
|
||||
* @return The exp.
|
||||
*/
|
||||
int getExp();
|
||||
|
||||
/**
|
||||
* <code>uint32 level = 2;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
int getLevel();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 7788
|
||||
* Obf: GGBEJKGHEKJ
|
||||
* CmdId: 26194
|
||||
* Obf: LNLJCNHOFGD
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GCGGrowthLevelNotify}
|
||||
@@ -80,12 +80,12 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 56: {
|
||||
case 16: {
|
||||
|
||||
level_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
case 32: {
|
||||
|
||||
exp_ = input.readUInt32();
|
||||
break;
|
||||
@@ -122,21 +122,10 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify.class, emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEVEL_FIELD_NUMBER = 7;
|
||||
private int level_;
|
||||
/**
|
||||
* <code>uint32 level = 7;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLevel() {
|
||||
return level_;
|
||||
}
|
||||
|
||||
public static final int EXP_FIELD_NUMBER = 8;
|
||||
public static final int EXP_FIELD_NUMBER = 4;
|
||||
private int exp_;
|
||||
/**
|
||||
* <code>uint32 exp = 8;</code>
|
||||
* <code>uint32 exp = 4;</code>
|
||||
* @return The exp.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -144,6 +133,17 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
return exp_;
|
||||
}
|
||||
|
||||
public static final int LEVEL_FIELD_NUMBER = 2;
|
||||
private int level_;
|
||||
/**
|
||||
* <code>uint32 level = 2;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLevel() {
|
||||
return level_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -159,10 +159,10 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (level_ != 0) {
|
||||
output.writeUInt32(7, level_);
|
||||
output.writeUInt32(2, level_);
|
||||
}
|
||||
if (exp_ != 0) {
|
||||
output.writeUInt32(8, exp_);
|
||||
output.writeUInt32(4, exp_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -175,11 +175,11 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
size = 0;
|
||||
if (level_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(7, level_);
|
||||
.computeUInt32Size(2, level_);
|
||||
}
|
||||
if (exp_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(8, exp_);
|
||||
.computeUInt32Size(4, exp_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -196,10 +196,10 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify other = (emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify) obj;
|
||||
|
||||
if (getLevel()
|
||||
!= other.getLevel()) return false;
|
||||
if (getExp()
|
||||
!= other.getExp()) return false;
|
||||
if (getLevel()
|
||||
!= other.getLevel()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -211,10 +211,10 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLevel();
|
||||
hash = (37 * hash) + EXP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getExp();
|
||||
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLevel();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -312,8 +312,8 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 7788
|
||||
* Obf: GGBEJKGHEKJ
|
||||
* CmdId: 26194
|
||||
* Obf: LNLJCNHOFGD
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GCGGrowthLevelNotify}
|
||||
@@ -353,10 +353,10 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
level_ = 0;
|
||||
|
||||
exp_ = 0;
|
||||
|
||||
level_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -383,8 +383,8 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify buildPartial() {
|
||||
emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify result = new emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify(this);
|
||||
result.level_ = level_;
|
||||
result.exp_ = exp_;
|
||||
result.level_ = level_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -433,12 +433,12 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify other) {
|
||||
if (other == emu.grasscutter.net.proto.GCGGrowthLevelNotifyOuterClass.GCGGrowthLevelNotify.getDefaultInstance()) return this;
|
||||
if (other.getLevel() != 0) {
|
||||
setLevel(other.getLevel());
|
||||
}
|
||||
if (other.getExp() != 0) {
|
||||
setExp(other.getExp());
|
||||
}
|
||||
if (other.getLevel() != 0) {
|
||||
setLevel(other.getLevel());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -468,40 +468,9 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int level_ ;
|
||||
/**
|
||||
* <code>uint32 level = 7;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLevel() {
|
||||
return level_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 level = 7;</code>
|
||||
* @param value The level to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLevel(int value) {
|
||||
|
||||
level_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 level = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLevel() {
|
||||
|
||||
level_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int exp_ ;
|
||||
/**
|
||||
* <code>uint32 exp = 8;</code>
|
||||
* <code>uint32 exp = 4;</code>
|
||||
* @return The exp.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -509,7 +478,7 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
return exp_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 exp = 8;</code>
|
||||
* <code>uint32 exp = 4;</code>
|
||||
* @param value The exp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -520,7 +489,7 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 exp = 8;</code>
|
||||
* <code>uint32 exp = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearExp() {
|
||||
@@ -529,6 +498,37 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int level_ ;
|
||||
/**
|
||||
* <code>uint32 level = 2;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLevel() {
|
||||
return level_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 level = 2;</code>
|
||||
* @param value The level to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLevel(int value) {
|
||||
|
||||
level_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 level = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLevel() {
|
||||
|
||||
level_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -597,7 +597,7 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032GCGGrowthLevelNotify.proto\"2\n\024GCGGrowt" +
|
||||
"hLevelNotify\022\r\n\005level\030\007 \001(\r\022\013\n\003exp\030\010 \001(\r" +
|
||||
"hLevelNotify\022\013\n\003exp\030\004 \001(\r\022\r\n\005level\030\002 \001(\r" +
|
||||
"B\033\n\031emu.grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -609,7 +609,7 @@ public final class GCGGrowthLevelNotifyOuterClass {
|
||||
internal_static_GCGGrowthLevelNotify_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_GCGGrowthLevelNotify_descriptor,
|
||||
new java.lang.String[] { "Level", "Exp", });
|
||||
new java.lang.String[] { "Exp", "Level", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user