mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 05:23:36 +08:00
Add new protocol definitions
This commit is contained in:
@@ -19,30 +19,30 @@ public final class AvatarAddNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bool is_in_team = 9;</code>
|
||||
* <code>bool is_in_team = 12;</code>
|
||||
* @return The isInTeam.
|
||||
*/
|
||||
boolean getIsInTeam();
|
||||
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
* @return Whether the avatar field is set.
|
||||
*/
|
||||
boolean hasAvatar();
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
* @return The avatar.
|
||||
*/
|
||||
emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatar();
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1758
|
||||
* Obf: FPOFHEKPNPK
|
||||
* CmdId: 7458
|
||||
* Obf: MLOIBCFBPKN
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarAddNotify}
|
||||
@@ -89,7 +89,12 @@ public final class AvatarAddNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 26: {
|
||||
case 96: {
|
||||
|
||||
isInTeam_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 114: {
|
||||
emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder subBuilder = null;
|
||||
if (avatar_ != null) {
|
||||
subBuilder = avatar_.toBuilder();
|
||||
@@ -102,11 +107,6 @@ public final class AvatarAddNotifyOuterClass {
|
||||
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
|
||||
isInTeam_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -139,10 +139,10 @@ public final class AvatarAddNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.class, emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int IS_IN_TEAM_FIELD_NUMBER = 9;
|
||||
public static final int IS_IN_TEAM_FIELD_NUMBER = 12;
|
||||
private boolean isInTeam_;
|
||||
/**
|
||||
* <code>bool is_in_team = 9;</code>
|
||||
* <code>bool is_in_team = 12;</code>
|
||||
* @return The isInTeam.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -150,10 +150,10 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return isInTeam_;
|
||||
}
|
||||
|
||||
public static final int AVATAR_FIELD_NUMBER = 3;
|
||||
public static final int AVATAR_FIELD_NUMBER = 14;
|
||||
private emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo avatar_;
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
* @return Whether the avatar field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -161,7 +161,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return avatar_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
* @return The avatar.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -169,7 +169,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return avatar_ == null ? emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatar_;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder() {
|
||||
@@ -190,11 +190,11 @@ public final class AvatarAddNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (avatar_ != null) {
|
||||
output.writeMessage(3, getAvatar());
|
||||
}
|
||||
if (isInTeam_ != false) {
|
||||
output.writeBool(9, isInTeam_);
|
||||
output.writeBool(12, isInTeam_);
|
||||
}
|
||||
if (avatar_ != null) {
|
||||
output.writeMessage(14, getAvatar());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -205,13 +205,13 @@ public final class AvatarAddNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (avatar_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(3, getAvatar());
|
||||
}
|
||||
if (isInTeam_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(9, isInTeam_);
|
||||
.computeBoolSize(12, isInTeam_);
|
||||
}
|
||||
if (avatar_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(14, getAvatar());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -350,8 +350,8 @@ public final class AvatarAddNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1758
|
||||
* Obf: FPOFHEKPNPK
|
||||
* CmdId: 7458
|
||||
* Obf: MLOIBCFBPKN
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarAddNotify}
|
||||
@@ -516,7 +516,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
|
||||
private boolean isInTeam_ ;
|
||||
/**
|
||||
* <code>bool is_in_team = 9;</code>
|
||||
* <code>bool is_in_team = 12;</code>
|
||||
* @return The isInTeam.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -524,7 +524,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return isInTeam_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_in_team = 9;</code>
|
||||
* <code>bool is_in_team = 12;</code>
|
||||
* @param value The isInTeam to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -535,7 +535,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_in_team = 9;</code>
|
||||
* <code>bool is_in_team = 12;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsInTeam() {
|
||||
@@ -549,14 +549,14 @@ public final class AvatarAddNotifyOuterClass {
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> avatarBuilder_;
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
* @return Whether the avatar field is set.
|
||||
*/
|
||||
public boolean hasAvatar() {
|
||||
return avatarBuilder_ != null || avatar_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
* @return The avatar.
|
||||
*/
|
||||
public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatar() {
|
||||
@@ -567,7 +567,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
public Builder setAvatar(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) {
|
||||
if (avatarBuilder_ == null) {
|
||||
@@ -583,7 +583,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
public Builder setAvatar(
|
||||
emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder builderForValue) {
|
||||
@@ -597,7 +597,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
public Builder mergeAvatar(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) {
|
||||
if (avatarBuilder_ == null) {
|
||||
@@ -615,7 +615,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
public Builder clearAvatar() {
|
||||
if (avatarBuilder_ == null) {
|
||||
@@ -629,7 +629,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarBuilder() {
|
||||
|
||||
@@ -637,7 +637,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
return getAvatarFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder() {
|
||||
if (avatarBuilder_ != null) {
|
||||
@@ -648,7 +648,7 @@ public final class AvatarAddNotifyOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.AvatarInfo avatar = 3;</code>
|
||||
* <code>.AvatarInfo avatar = 14;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder>
|
||||
@@ -731,8 +731,8 @@ public final class AvatarAddNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\025AvatarAddNotify.proto\032\020AvatarInfo.prot" +
|
||||
"o\"B\n\017AvatarAddNotify\022\022\n\nis_in_team\030\t \001(\010" +
|
||||
"\022\033\n\006avatar\030\003 \001(\0132\013.AvatarInfoB\033\n\031emu.gra" +
|
||||
"o\"B\n\017AvatarAddNotify\022\022\n\nis_in_team\030\014 \001(\010" +
|
||||
"\022\033\n\006avatar\030\016 \001(\0132\013.AvatarInfoB\033\n\031emu.gra" +
|
||||
"sscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
|
||||
Reference in New Issue
Block a user