mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 07:39:50 +08:00
feat(5.0): Update protocol definitions
This commit is contained in:
+304
-244
@@ -19,11 +19,28 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return A list containing the tempAvatarGuidList.
|
||||
*/
|
||||
java.util.List<java.lang.Long> getTempAvatarGuidListList();
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return The count of tempAvatarGuidList.
|
||||
*/
|
||||
int getTempAvatarGuidListCount();
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The tempAvatarGuidList at the given index.
|
||||
*/
|
||||
long getTempAvatarGuidList(int index);
|
||||
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
int getAvatarTeamMapCount();
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
boolean containsAvatarTeamMap(
|
||||
int key);
|
||||
@@ -34,24 +51,30 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>
|
||||
getAvatarTeamMap();
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>
|
||||
getAvatarTeamMapMap();
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
|
||||
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault(
|
||||
int key,
|
||||
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue);
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
|
||||
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow(
|
||||
int key);
|
||||
|
||||
/**
|
||||
* <code>uint32 cur_avatar_team_id = 10;</code>
|
||||
* @return The curAvatarTeamId.
|
||||
*/
|
||||
int getCurAvatarTeamId();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 backup_avatar_team_order_list = 13;</code>
|
||||
* @return A list containing the backupAvatarTeamOrderList.
|
||||
@@ -68,30 +91,8 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
* @return The backupAvatarTeamOrderList at the given index.
|
||||
*/
|
||||
int getBackupAvatarTeamOrderList(int index);
|
||||
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return A list containing the tempAvatarGuidList.
|
||||
*/
|
||||
java.util.List<java.lang.Long> getTempAvatarGuidListList();
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return The count of tempAvatarGuidList.
|
||||
*/
|
||||
int getTempAvatarGuidListCount();
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The tempAvatarGuidList at the given index.
|
||||
*/
|
||||
long getTempAvatarGuidList(int index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 9854
|
||||
* Obf: HHLJIKIGMOG
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarTeamAllDataNotify}
|
||||
*/
|
||||
public static final class AvatarTeamAllDataNotify extends
|
||||
@@ -104,8 +105,8 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
super(builder);
|
||||
}
|
||||
private AvatarTeamAllDataNotify() {
|
||||
backupAvatarTeamOrderList_ = emptyIntList();
|
||||
tempAvatarGuidList_ = emptyLongList();
|
||||
backupAvatarTeamOrderList_ = emptyIntList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@@ -139,11 +140,32 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 18: {
|
||||
case 24: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
tempAvatarGuidList_ = newLongList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
tempAvatarGuidList_.addLong(input.readUInt64());
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
tempAvatarGuidList_ = newLongList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
tempAvatarGuidList_.addLong(input.readUInt64());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
avatarTeamMap_ = com.google.protobuf.MapField.newMapField(
|
||||
AvatarTeamMapDefaultEntryHolder.defaultEntry);
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
}
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>
|
||||
avatarTeamMap__ = input.readMessage(
|
||||
@@ -152,31 +174,15 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
avatarTeamMap__.getKey(), avatarTeamMap__.getValue());
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
|
||||
tempAvatarGuidList_ = newLongList();
|
||||
mutable_bitField0_ |= 0x00000004;
|
||||
}
|
||||
tempAvatarGuidList_.addLong(input.readUInt64());
|
||||
break;
|
||||
}
|
||||
case 66: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
tempAvatarGuidList_ = newLongList();
|
||||
mutable_bitField0_ |= 0x00000004;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
tempAvatarGuidList_.addLong(input.readUInt64());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
case 80: {
|
||||
|
||||
curAvatarTeamId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
|
||||
backupAvatarTeamOrderList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
mutable_bitField0_ |= 0x00000004;
|
||||
}
|
||||
backupAvatarTeamOrderList_.addInt(input.readUInt32());
|
||||
break;
|
||||
@@ -184,9 +190,9 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
case 106: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
backupAvatarTeamOrderList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
mutable_bitField0_ |= 0x00000004;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
backupAvatarTeamOrderList_.addInt(input.readUInt32());
|
||||
@@ -209,10 +215,10 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
if (((mutable_bitField0_ & 0x00000004) != 0)) {
|
||||
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
tempAvatarGuidList_.makeImmutable(); // C
|
||||
}
|
||||
if (((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
if (((mutable_bitField0_ & 0x00000004) != 0)) {
|
||||
backupAvatarTeamOrderList_.makeImmutable(); // C
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
@@ -229,7 +235,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 2:
|
||||
case 7:
|
||||
return internalGetAvatarTeamMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -244,7 +250,35 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify.class, emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int AVATAR_TEAM_MAP_FIELD_NUMBER = 2;
|
||||
public static final int TEMP_AVATAR_GUID_LIST_FIELD_NUMBER = 3;
|
||||
private com.google.protobuf.Internal.LongList tempAvatarGuidList_;
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return A list containing the tempAvatarGuidList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Long>
|
||||
getTempAvatarGuidListList() {
|
||||
return tempAvatarGuidList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return The count of tempAvatarGuidList.
|
||||
*/
|
||||
public int getTempAvatarGuidListCount() {
|
||||
return tempAvatarGuidList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The tempAvatarGuidList at the given index.
|
||||
*/
|
||||
public long getTempAvatarGuidList(int index) {
|
||||
return tempAvatarGuidList_.getLong(index);
|
||||
}
|
||||
private int tempAvatarGuidListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int AVATAR_TEAM_MAP_FIELD_NUMBER = 7;
|
||||
private static final class AvatarTeamMapDefaultEntryHolder {
|
||||
static final com.google.protobuf.MapEntry<
|
||||
java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> defaultEntry =
|
||||
@@ -271,7 +305,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return internalGetAvatarTeamMap().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
@@ -289,7 +323,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return getAvatarTeamMapMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -297,7 +331,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return internalGetAvatarTeamMap().getMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -310,7 +344,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -325,6 +359,17 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
public static final int CUR_AVATAR_TEAM_ID_FIELD_NUMBER = 10;
|
||||
private int curAvatarTeamId_;
|
||||
/**
|
||||
* <code>uint32 cur_avatar_team_id = 10;</code>
|
||||
* @return The curAvatarTeamId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getCurAvatarTeamId() {
|
||||
return curAvatarTeamId_;
|
||||
}
|
||||
|
||||
public static final int BACKUP_AVATAR_TEAM_ORDER_LIST_FIELD_NUMBER = 13;
|
||||
private com.google.protobuf.Internal.IntList backupAvatarTeamOrderList_;
|
||||
/**
|
||||
@@ -353,34 +398,6 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
}
|
||||
private int backupAvatarTeamOrderListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int TEMP_AVATAR_GUID_LIST_FIELD_NUMBER = 8;
|
||||
private com.google.protobuf.Internal.LongList tempAvatarGuidList_;
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return A list containing the tempAvatarGuidList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Long>
|
||||
getTempAvatarGuidListList() {
|
||||
return tempAvatarGuidList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return The count of tempAvatarGuidList.
|
||||
*/
|
||||
public int getTempAvatarGuidListCount() {
|
||||
return tempAvatarGuidList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The tempAvatarGuidList at the given index.
|
||||
*/
|
||||
public long getTempAvatarGuidList(int index) {
|
||||
return tempAvatarGuidList_.getLong(index);
|
||||
}
|
||||
private int tempAvatarGuidListMemoizedSerializedSize = -1;
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -396,18 +413,21 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (getTempAvatarGuidListList().size() > 0) {
|
||||
output.writeUInt32NoTag(26);
|
||||
output.writeUInt32NoTag(tempAvatarGuidListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < tempAvatarGuidList_.size(); i++) {
|
||||
output.writeUInt64NoTag(tempAvatarGuidList_.getLong(i));
|
||||
}
|
||||
com.google.protobuf.GeneratedMessageV3
|
||||
.serializeIntegerMapTo(
|
||||
output,
|
||||
internalGetAvatarTeamMap(),
|
||||
AvatarTeamMapDefaultEntryHolder.defaultEntry,
|
||||
2);
|
||||
if (getTempAvatarGuidListList().size() > 0) {
|
||||
output.writeUInt32NoTag(66);
|
||||
output.writeUInt32NoTag(tempAvatarGuidListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < tempAvatarGuidList_.size(); i++) {
|
||||
output.writeUInt64NoTag(tempAvatarGuidList_.getLong(i));
|
||||
7);
|
||||
if (curAvatarTeamId_ != 0) {
|
||||
output.writeUInt32(10, curAvatarTeamId_);
|
||||
}
|
||||
if (getBackupAvatarTeamOrderListList().size() > 0) {
|
||||
output.writeUInt32NoTag(106);
|
||||
@@ -425,16 +445,6 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> entry
|
||||
: internalGetAvatarTeamMap().getMap().entrySet()) {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>
|
||||
avatarTeamMap__ = AvatarTeamMapDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||
.setKey(entry.getKey())
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(2, avatarTeamMap__);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < tempAvatarGuidList_.size(); i++) {
|
||||
@@ -449,6 +459,20 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
}
|
||||
tempAvatarGuidListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> entry
|
||||
: internalGetAvatarTeamMap().getMap().entrySet()) {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>
|
||||
avatarTeamMap__ = AvatarTeamMapDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||
.setKey(entry.getKey())
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(7, avatarTeamMap__);
|
||||
}
|
||||
if (curAvatarTeamId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(10, curAvatarTeamId_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < backupAvatarTeamOrderList_.size(); i++) {
|
||||
@@ -478,12 +502,14 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify other = (emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify) obj;
|
||||
|
||||
if (!internalGetAvatarTeamMap().equals(
|
||||
other.internalGetAvatarTeamMap())) return false;
|
||||
if (!getBackupAvatarTeamOrderListList()
|
||||
.equals(other.getBackupAvatarTeamOrderListList())) return false;
|
||||
if (!getTempAvatarGuidListList()
|
||||
.equals(other.getTempAvatarGuidListList())) return false;
|
||||
if (!internalGetAvatarTeamMap().equals(
|
||||
other.internalGetAvatarTeamMap())) return false;
|
||||
if (getCurAvatarTeamId()
|
||||
!= other.getCurAvatarTeamId()) return false;
|
||||
if (!getBackupAvatarTeamOrderListList()
|
||||
.equals(other.getBackupAvatarTeamOrderListList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -495,18 +521,20 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (getTempAvatarGuidListCount() > 0) {
|
||||
hash = (37 * hash) + TEMP_AVATAR_GUID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTempAvatarGuidListList().hashCode();
|
||||
}
|
||||
if (!internalGetAvatarTeamMap().getMap().isEmpty()) {
|
||||
hash = (37 * hash) + AVATAR_TEAM_MAP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + internalGetAvatarTeamMap().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + CUR_AVATAR_TEAM_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCurAvatarTeamId();
|
||||
if (getBackupAvatarTeamOrderListCount() > 0) {
|
||||
hash = (37 * hash) + BACKUP_AVATAR_TEAM_ORDER_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBackupAvatarTeamOrderListList().hashCode();
|
||||
}
|
||||
if (getTempAvatarGuidListCount() > 0) {
|
||||
hash = (37 * hash) + TEMP_AVATAR_GUID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTempAvatarGuidListList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -603,11 +631,6 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 9854
|
||||
* Obf: HHLJIKIGMOG
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarTeamAllDataNotify}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
@@ -623,7 +646,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 2:
|
||||
case 7:
|
||||
return internalGetAvatarTeamMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -634,7 +657,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 2:
|
||||
case 7:
|
||||
return internalGetMutableAvatarTeamMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -667,10 +690,12 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
internalGetMutableAvatarTeamMap().clear();
|
||||
backupAvatarTeamOrderList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
tempAvatarGuidList_ = emptyLongList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
internalGetMutableAvatarTeamMap().clear();
|
||||
curAvatarTeamId_ = 0;
|
||||
|
||||
backupAvatarTeamOrderList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
return this;
|
||||
}
|
||||
@@ -699,18 +724,19 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
public emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify buildPartial() {
|
||||
emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify result = new emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.avatarTeamMap_ = internalGetAvatarTeamMap();
|
||||
result.avatarTeamMap_.makeImmutable();
|
||||
if (((bitField0_ & 0x00000002) != 0)) {
|
||||
backupAvatarTeamOrderList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
}
|
||||
result.backupAvatarTeamOrderList_ = backupAvatarTeamOrderList_;
|
||||
if (((bitField0_ & 0x00000004) != 0)) {
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
tempAvatarGuidList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.tempAvatarGuidList_ = tempAvatarGuidList_;
|
||||
result.avatarTeamMap_ = internalGetAvatarTeamMap();
|
||||
result.avatarTeamMap_.makeImmutable();
|
||||
result.curAvatarTeamId_ = curAvatarTeamId_;
|
||||
if (((bitField0_ & 0x00000004) != 0)) {
|
||||
backupAvatarTeamOrderList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
}
|
||||
result.backupAvatarTeamOrderList_ = backupAvatarTeamOrderList_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -759,28 +785,31 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify other) {
|
||||
if (other == emu.grasscutter.net.proto.AvatarTeamAllDataNotifyOuterClass.AvatarTeamAllDataNotify.getDefaultInstance()) return this;
|
||||
internalGetMutableAvatarTeamMap().mergeFrom(
|
||||
other.internalGetAvatarTeamMap());
|
||||
if (!other.backupAvatarTeamOrderList_.isEmpty()) {
|
||||
if (backupAvatarTeamOrderList_.isEmpty()) {
|
||||
backupAvatarTeamOrderList_ = other.backupAvatarTeamOrderList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
} else {
|
||||
ensureBackupAvatarTeamOrderListIsMutable();
|
||||
backupAvatarTeamOrderList_.addAll(other.backupAvatarTeamOrderList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (!other.tempAvatarGuidList_.isEmpty()) {
|
||||
if (tempAvatarGuidList_.isEmpty()) {
|
||||
tempAvatarGuidList_ = other.tempAvatarGuidList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
tempAvatarGuidList_.addAll(other.tempAvatarGuidList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
internalGetMutableAvatarTeamMap().mergeFrom(
|
||||
other.internalGetAvatarTeamMap());
|
||||
if (other.getCurAvatarTeamId() != 0) {
|
||||
setCurAvatarTeamId(other.getCurAvatarTeamId());
|
||||
}
|
||||
if (!other.backupAvatarTeamOrderList_.isEmpty()) {
|
||||
if (backupAvatarTeamOrderList_.isEmpty()) {
|
||||
backupAvatarTeamOrderList_ = other.backupAvatarTeamOrderList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
} else {
|
||||
ensureBackupAvatarTeamOrderListIsMutable();
|
||||
backupAvatarTeamOrderList_.addAll(other.backupAvatarTeamOrderList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -811,6 +840,85 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.Internal.LongList tempAvatarGuidList_ = emptyLongList();
|
||||
private void ensureTempAvatarGuidListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
tempAvatarGuidList_ = mutableCopy(tempAvatarGuidList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return A list containing the tempAvatarGuidList.
|
||||
*/
|
||||
public java.util.List<java.lang.Long>
|
||||
getTempAvatarGuidListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(tempAvatarGuidList_) : tempAvatarGuidList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return The count of tempAvatarGuidList.
|
||||
*/
|
||||
public int getTempAvatarGuidListCount() {
|
||||
return tempAvatarGuidList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The tempAvatarGuidList at the given index.
|
||||
*/
|
||||
public long getTempAvatarGuidList(int index) {
|
||||
return tempAvatarGuidList_.getLong(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The tempAvatarGuidList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTempAvatarGuidList(
|
||||
int index, long value) {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
tempAvatarGuidList_.setLong(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @param value The tempAvatarGuidList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addTempAvatarGuidList(long value) {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
tempAvatarGuidList_.addLong(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @param values The tempAvatarGuidList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllTempAvatarGuidList(
|
||||
java.lang.Iterable<? extends java.lang.Long> values) {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, tempAvatarGuidList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTempAvatarGuidList() {
|
||||
tempAvatarGuidList_ = emptyLongList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> avatarTeamMap_;
|
||||
private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>
|
||||
@@ -838,7 +946,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return internalGetAvatarTeamMap().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
@@ -856,7 +964,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return getAvatarTeamMapMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -864,7 +972,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return internalGetAvatarTeamMap().getMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -877,7 +985,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -898,7 +1006,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
|
||||
public Builder removeAvatarTeamMap(
|
||||
@@ -917,7 +1025,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return internalGetMutableAvatarTeamMap().getMutableMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
public Builder putAvatarTeamMap(
|
||||
int key,
|
||||
@@ -929,7 +1037,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 2;</code>
|
||||
* <code>map<uint32, .AvatarTeam> avatar_team_map = 7;</code>
|
||||
*/
|
||||
|
||||
public Builder putAllAvatarTeamMap(
|
||||
@@ -939,11 +1047,42 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int curAvatarTeamId_ ;
|
||||
/**
|
||||
* <code>uint32 cur_avatar_team_id = 10;</code>
|
||||
* @return The curAvatarTeamId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getCurAvatarTeamId() {
|
||||
return curAvatarTeamId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 cur_avatar_team_id = 10;</code>
|
||||
* @param value The curAvatarTeamId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCurAvatarTeamId(int value) {
|
||||
|
||||
curAvatarTeamId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 cur_avatar_team_id = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCurAvatarTeamId() {
|
||||
|
||||
curAvatarTeamId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList backupAvatarTeamOrderList_ = emptyIntList();
|
||||
private void ensureBackupAvatarTeamOrderListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000002) != 0)) {
|
||||
if (!((bitField0_ & 0x00000004) != 0)) {
|
||||
backupAvatarTeamOrderList_ = mutableCopy(backupAvatarTeamOrderList_);
|
||||
bitField0_ |= 0x00000002;
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
}
|
||||
/**
|
||||
@@ -952,7 +1091,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getBackupAvatarTeamOrderListList() {
|
||||
return ((bitField0_ & 0x00000002) != 0) ?
|
||||
return ((bitField0_ & 0x00000004) != 0) ?
|
||||
java.util.Collections.unmodifiableList(backupAvatarTeamOrderList_) : backupAvatarTeamOrderList_;
|
||||
}
|
||||
/**
|
||||
@@ -1013,85 +1152,6 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
*/
|
||||
public Builder clearBackupAvatarTeamOrderList() {
|
||||
backupAvatarTeamOrderList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.LongList tempAvatarGuidList_ = emptyLongList();
|
||||
private void ensureTempAvatarGuidListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000004) != 0)) {
|
||||
tempAvatarGuidList_ = mutableCopy(tempAvatarGuidList_);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return A list containing the tempAvatarGuidList.
|
||||
*/
|
||||
public java.util.List<java.lang.Long>
|
||||
getTempAvatarGuidListList() {
|
||||
return ((bitField0_ & 0x00000004) != 0) ?
|
||||
java.util.Collections.unmodifiableList(tempAvatarGuidList_) : tempAvatarGuidList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return The count of tempAvatarGuidList.
|
||||
*/
|
||||
public int getTempAvatarGuidListCount() {
|
||||
return tempAvatarGuidList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The tempAvatarGuidList at the given index.
|
||||
*/
|
||||
public long getTempAvatarGuidList(int index) {
|
||||
return tempAvatarGuidList_.getLong(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The tempAvatarGuidList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTempAvatarGuidList(
|
||||
int index, long value) {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
tempAvatarGuidList_.setLong(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @param value The tempAvatarGuidList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addTempAvatarGuidList(long value) {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
tempAvatarGuidList_.addLong(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @param values The tempAvatarGuidList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllTempAvatarGuidList(
|
||||
java.lang.Iterable<? extends java.lang.Long> values) {
|
||||
ensureTempAvatarGuidListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, tempAvatarGuidList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint64 temp_avatar_guid_list = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTempAvatarGuidList() {
|
||||
tempAvatarGuidList_ = emptyLongList();
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -1169,14 +1229,14 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\035AvatarTeamAllDataNotify.proto\032\020AvatarT" +
|
||||
"eam.proto\"\350\001\n\027AvatarTeamAllDataNotify\022D\n" +
|
||||
"\017avatar_team_map\030\002 \003(\0132+.AvatarTeamAllDa" +
|
||||
"taNotify.AvatarTeamMapEntry\022%\n\035backup_av" +
|
||||
"atar_team_order_list\030\r \003(\r\022\035\n\025temp_avata" +
|
||||
"r_guid_list\030\010 \003(\004\032A\n\022AvatarTeamMapEntry\022" +
|
||||
"\013\n\003key\030\001 \001(\r\022\032\n\005value\030\002 \001(\0132\013.AvatarTeam" +
|
||||
":\0028\001B\033\n\031emu.grasscutter.net.protob\006proto" +
|
||||
"3"
|
||||
"eam.proto\"\204\002\n\027AvatarTeamAllDataNotify\022\035\n" +
|
||||
"\025temp_avatar_guid_list\030\003 \003(\004\022D\n\017avatar_t" +
|
||||
"eam_map\030\007 \003(\0132+.AvatarTeamAllDataNotify." +
|
||||
"AvatarTeamMapEntry\022\032\n\022cur_avatar_team_id" +
|
||||
"\030\n \001(\r\022%\n\035backup_avatar_team_order_list\030" +
|
||||
"\r \003(\r\032A\n\022AvatarTeamMapEntry\022\013\n\003key\030\001 \001(\r" +
|
||||
"\022\032\n\005value\030\002 \001(\0132\013.AvatarTeam:\0028\001B\033\n\031emu." +
|
||||
"grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -1188,7 +1248,7 @@ public final class AvatarTeamAllDataNotifyOuterClass {
|
||||
internal_static_AvatarTeamAllDataNotify_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_AvatarTeamAllDataNotify_descriptor,
|
||||
new java.lang.String[] { "AvatarTeamMap", "BackupAvatarTeamOrderList", "TempAvatarGuidList", });
|
||||
new java.lang.String[] { "TempAvatarGuidList", "AvatarTeamMap", "CurAvatarTeamId", "BackupAvatarTeamOrderList", });
|
||||
internal_static_AvatarTeamAllDataNotify_AvatarTeamMapEntry_descriptor =
|
||||
internal_static_AvatarTeamAllDataNotify_descriptor.getNestedTypes().get(0);
|
||||
internal_static_AvatarTeamAllDataNotify_AvatarTeamMapEntry_fieldAccessorTable = new
|
||||
|
||||
Reference in New Issue
Block a user