mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 22:23:42 +08:00
Add new protocol definitions
This commit is contained in:
@@ -19,17 +19,17 @@ public final class AvatarPropNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* <code>uint64 avatar_guid = 4;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
long getAvatarGuid();
|
||||
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
int getPropMapCount();
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
boolean containsPropMap(
|
||||
int key);
|
||||
@@ -40,19 +40,19 @@ public final class AvatarPropNotifyOuterClass {
|
||||
java.util.Map<java.lang.Integer, java.lang.Long>
|
||||
getPropMap();
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
java.util.Map<java.lang.Integer, java.lang.Long>
|
||||
getPropMapMap();
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
long getPropMapOrDefault(
|
||||
int key,
|
||||
long defaultValue);
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
long getPropMapOrThrow(
|
||||
@@ -60,8 +60,8 @@ public final class AvatarPropNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1284
|
||||
* Obf: JEKDLLGKIMN
|
||||
* CmdId: 5355
|
||||
* Obf: KGKHNJBJKOJ
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarPropNotify}
|
||||
@@ -109,12 +109,12 @@ public final class AvatarPropNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
case 32: {
|
||||
|
||||
avatarGuid_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
case 66: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
propMap_ = com.google.protobuf.MapField.newMapField(
|
||||
PropMapDefaultEntryHolder.defaultEntry);
|
||||
@@ -156,7 +156,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 7:
|
||||
case 8:
|
||||
return internalGetPropMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -171,10 +171,10 @@ public final class AvatarPropNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.class, emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int AVATAR_GUID_FIELD_NUMBER = 1;
|
||||
public static final int AVATAR_GUID_FIELD_NUMBER = 4;
|
||||
private long avatarGuid_;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* <code>uint64 avatar_guid = 4;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -182,7 +182,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return avatarGuid_;
|
||||
}
|
||||
|
||||
public static final int PROP_MAP_FIELD_NUMBER = 7;
|
||||
public static final int PROP_MAP_FIELD_NUMBER = 8;
|
||||
private static final class PropMapDefaultEntryHolder {
|
||||
static final com.google.protobuf.MapEntry<
|
||||
java.lang.Integer, java.lang.Long> defaultEntry =
|
||||
@@ -209,7 +209,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
@@ -227,7 +227,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return getPropMapMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -235,7 +235,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -248,7 +248,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -278,14 +278,14 @@ public final class AvatarPropNotifyOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (avatarGuid_ != 0L) {
|
||||
output.writeUInt64(1, avatarGuid_);
|
||||
output.writeUInt64(4, avatarGuid_);
|
||||
}
|
||||
com.google.protobuf.GeneratedMessageV3
|
||||
.serializeIntegerMapTo(
|
||||
output,
|
||||
internalGetPropMap(),
|
||||
PropMapDefaultEntryHolder.defaultEntry,
|
||||
7);
|
||||
8);
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
size = 0;
|
||||
if (avatarGuid_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(1, avatarGuid_);
|
||||
.computeUInt64Size(4, avatarGuid_);
|
||||
}
|
||||
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> entry
|
||||
: internalGetPropMap().getMap().entrySet()) {
|
||||
@@ -307,7 +307,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(7, propMap__);
|
||||
.computeMessageSize(8, propMap__);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -443,8 +443,8 @@ public final class AvatarPropNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1284
|
||||
* Obf: JEKDLLGKIMN
|
||||
* CmdId: 5355
|
||||
* Obf: KGKHNJBJKOJ
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarPropNotify}
|
||||
@@ -462,7 +462,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 7:
|
||||
case 8:
|
||||
return internalGetPropMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -473,7 +473,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 7:
|
||||
case 8:
|
||||
return internalGetMutablePropMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -624,7 +624,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
|
||||
private long avatarGuid_ ;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* <code>uint64 avatar_guid = 4;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -632,7 +632,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return avatarGuid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* <code>uint64 avatar_guid = 4;</code>
|
||||
* @param value The avatarGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -643,7 +643,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* <code>uint64 avatar_guid = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearAvatarGuid() {
|
||||
@@ -680,7 +680,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
@@ -698,7 +698,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return getPropMapMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -706,7 +706,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -719,7 +719,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -740,7 +740,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
public Builder removePropMap(
|
||||
@@ -759,7 +759,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetMutablePropMap().getMutableMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
public Builder putPropMap(
|
||||
int key,
|
||||
@@ -771,7 +771,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 7;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
public Builder putAllPropMap(
|
||||
@@ -853,7 +853,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026AvatarPropNotify.proto\"\211\001\n\020AvatarPropN" +
|
||||
"otify\022\023\n\013avatar_guid\030\001 \001(\004\0220\n\010prop_map\030\007" +
|
||||
"otify\022\023\n\013avatar_guid\030\004 \001(\004\0220\n\010prop_map\030\010" +
|
||||
" \003(\0132\036.AvatarPropNotify.PropMapEntry\032.\n\014" +
|
||||
"PropMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003" +
|
||||
":\0028\001B\033\n\031emu.grasscutter.net.protob\006proto" +
|
||||
|
||||
Reference in New Issue
Block a user