mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 18:19:55 +08:00
feat(5.0): Update protocol definitions
This commit is contained in:
+84
-86
@@ -19,32 +19,31 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 2;</code>
|
||||
* @return The curAvatarGuid.
|
||||
*/
|
||||
long getCurAvatarGuid();
|
||||
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return A list containing the avatarGuidList.
|
||||
*/
|
||||
java.util.List<java.lang.Long> getAvatarGuidListList();
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return The count of avatarGuidList.
|
||||
*/
|
||||
int getAvatarGuidListCount();
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The avatarGuidList at the given index.
|
||||
*/
|
||||
long getAvatarGuidList(int index);
|
||||
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 4;</code>
|
||||
* @return The curAvatarGuid.
|
||||
*/
|
||||
long getCurAvatarGuid();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 29260
|
||||
* Obf: GIEGGDAJFBE
|
||||
* CmdId: 28747
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code ChangeMpTeamAvatarReq}
|
||||
@@ -93,12 +92,12 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 16: {
|
||||
case 32: {
|
||||
|
||||
curAvatarGuid_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
case 88: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
avatarGuidList_ = newLongList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
@@ -106,7 +105,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
avatarGuidList_.addLong(input.readUInt64());
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
case 90: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
@@ -154,21 +153,10 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.class, emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CUR_AVATAR_GUID_FIELD_NUMBER = 2;
|
||||
private long curAvatarGuid_;
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 2;</code>
|
||||
* @return The curAvatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getCurAvatarGuid() {
|
||||
return curAvatarGuid_;
|
||||
}
|
||||
|
||||
public static final int AVATAR_GUID_LIST_FIELD_NUMBER = 12;
|
||||
public static final int AVATAR_GUID_LIST_FIELD_NUMBER = 11;
|
||||
private com.google.protobuf.Internal.LongList avatarGuidList_;
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return A list containing the avatarGuidList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -177,14 +165,14 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
return avatarGuidList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return The count of avatarGuidList.
|
||||
*/
|
||||
public int getAvatarGuidListCount() {
|
||||
return avatarGuidList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The avatarGuidList at the given index.
|
||||
*/
|
||||
@@ -193,6 +181,17 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
private int avatarGuidListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int CUR_AVATAR_GUID_FIELD_NUMBER = 4;
|
||||
private long curAvatarGuid_;
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 4;</code>
|
||||
* @return The curAvatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getCurAvatarGuid() {
|
||||
return curAvatarGuid_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -209,10 +208,10 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (curAvatarGuid_ != 0L) {
|
||||
output.writeUInt64(2, curAvatarGuid_);
|
||||
output.writeUInt64(4, curAvatarGuid_);
|
||||
}
|
||||
if (getAvatarGuidListList().size() > 0) {
|
||||
output.writeUInt32NoTag(98);
|
||||
output.writeUInt32NoTag(90);
|
||||
output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < avatarGuidList_.size(); i++) {
|
||||
@@ -229,7 +228,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
size = 0;
|
||||
if (curAvatarGuid_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(2, curAvatarGuid_);
|
||||
.computeUInt64Size(4, curAvatarGuid_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
@@ -260,10 +259,10 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq other = (emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq) obj;
|
||||
|
||||
if (getCurAvatarGuid()
|
||||
!= other.getCurAvatarGuid()) return false;
|
||||
if (!getAvatarGuidListList()
|
||||
.equals(other.getAvatarGuidListList())) return false;
|
||||
if (getCurAvatarGuid()
|
||||
!= other.getCurAvatarGuid()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -275,13 +274,13 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + CUR_AVATAR_GUID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getCurAvatarGuid());
|
||||
if (getAvatarGuidListCount() > 0) {
|
||||
hash = (37 * hash) + AVATAR_GUID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getAvatarGuidListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + CUR_AVATAR_GUID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getCurAvatarGuid());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -379,8 +378,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 29260
|
||||
* Obf: GIEGGDAJFBE
|
||||
* CmdId: 28747
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code ChangeMpTeamAvatarReq}
|
||||
@@ -420,10 +418,10 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
curAvatarGuid_ = 0L;
|
||||
|
||||
avatarGuidList_ = emptyLongList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
curAvatarGuid_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -451,12 +449,12 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
public emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq buildPartial() {
|
||||
emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq result = new emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.curAvatarGuid_ = curAvatarGuid_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
avatarGuidList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.avatarGuidList_ = avatarGuidList_;
|
||||
result.curAvatarGuid_ = curAvatarGuid_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -505,9 +503,6 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq other) {
|
||||
if (other == emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.getDefaultInstance()) return this;
|
||||
if (other.getCurAvatarGuid() != 0L) {
|
||||
setCurAvatarGuid(other.getCurAvatarGuid());
|
||||
}
|
||||
if (!other.avatarGuidList_.isEmpty()) {
|
||||
if (avatarGuidList_.isEmpty()) {
|
||||
avatarGuidList_ = other.avatarGuidList_;
|
||||
@@ -518,6 +513,9 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getCurAvatarGuid() != 0L) {
|
||||
setCurAvatarGuid(other.getCurAvatarGuid());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -548,37 +546,6 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private long curAvatarGuid_ ;
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 2;</code>
|
||||
* @return The curAvatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getCurAvatarGuid() {
|
||||
return curAvatarGuid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 2;</code>
|
||||
* @param value The curAvatarGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCurAvatarGuid(long value) {
|
||||
|
||||
curAvatarGuid_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCurAvatarGuid() {
|
||||
|
||||
curAvatarGuid_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList();
|
||||
private void ensureAvatarGuidListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
@@ -587,7 +554,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return A list containing the avatarGuidList.
|
||||
*/
|
||||
public java.util.List<java.lang.Long>
|
||||
@@ -596,14 +563,14 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return The count of avatarGuidList.
|
||||
*/
|
||||
public int getAvatarGuidListCount() {
|
||||
return avatarGuidList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The avatarGuidList at the given index.
|
||||
*/
|
||||
@@ -611,7 +578,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
return avatarGuidList_.getLong(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The avatarGuidList to set.
|
||||
* @return This builder for chaining.
|
||||
@@ -624,7 +591,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @param value The avatarGuidList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -635,7 +602,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @param values The avatarGuidList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -648,7 +615,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 avatar_guid_list = 12;</code>
|
||||
* <code>repeated uint64 avatar_guid_list = 11;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearAvatarGuidList() {
|
||||
@@ -657,6 +624,37 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long curAvatarGuid_ ;
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 4;</code>
|
||||
* @return The curAvatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getCurAvatarGuid() {
|
||||
return curAvatarGuid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 4;</code>
|
||||
* @param value The curAvatarGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCurAvatarGuid(long value) {
|
||||
|
||||
curAvatarGuid_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 cur_avatar_guid = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCurAvatarGuid() {
|
||||
|
||||
curAvatarGuid_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -725,8 +723,8 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\033ChangeMpTeamAvatarReq.proto\"J\n\025ChangeM" +
|
||||
"pTeamAvatarReq\022\027\n\017cur_avatar_guid\030\002 \001(\004\022" +
|
||||
"\030\n\020avatar_guid_list\030\014 \003(\004B\033\n\031emu.grasscu" +
|
||||
"pTeamAvatarReq\022\030\n\020avatar_guid_list\030\013 \003(\004" +
|
||||
"\022\027\n\017cur_avatar_guid\030\004 \001(\004B\033\n\031emu.grasscu" +
|
||||
"tter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -738,7 +736,7 @@ public final class ChangeMpTeamAvatarReqOuterClass {
|
||||
internal_static_ChangeMpTeamAvatarReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_ChangeMpTeamAvatarReq_descriptor,
|
||||
new java.lang.String[] { "CurAvatarGuid", "AvatarGuidList", });
|
||||
new java.lang.String[] { "AvatarGuidList", "CurAvatarGuid", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user