feat(5.0): Update protocol definitions

This commit is contained in:
KingRainbow44
2024-09-28 17:29:15 -04:00
Unverified
parent f9d46ace7f
commit 45a3cf0b8b
787 changed files with 146234 additions and 140048 deletions
@@ -19,13 +19,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 skill_id = 15;</code>
* @return The skillId.
*/
int getSkillId();
/**
* <code>uint32 max_charge_count = 4;</code>
* <code>uint32 max_charge_count = 6;</code>
* @return The maxChargeCount.
*/
int getMaxChargeCount();
@@ -35,11 +29,16 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
* @return The avatarGuid.
*/
long getAvatarGuid();
/**
* <code>uint32 skill_id = 15;</code>
* @return The skillId.
*/
int getSkillId();
}
/**
* <pre>
* CmdId: 22843
* Obf: MIPDHBPHHBA
* CmdId: 28497
* </pre>
*
* Protobuf type {@code AvatarSkillMaxChargeCountNotify}
@@ -86,7 +85,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
case 0:
done = true;
break;
case 32: {
case 48: {
maxChargeCount_ = input.readUInt32();
break;
@@ -133,21 +132,10 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify.class, emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify.Builder.class);
}
public static final int SKILL_ID_FIELD_NUMBER = 15;
private int skillId_;
/**
* <code>uint32 skill_id = 15;</code>
* @return The skillId.
*/
@java.lang.Override
public int getSkillId() {
return skillId_;
}
public static final int MAX_CHARGE_COUNT_FIELD_NUMBER = 4;
public static final int MAX_CHARGE_COUNT_FIELD_NUMBER = 6;
private int maxChargeCount_;
/**
* <code>uint32 max_charge_count = 4;</code>
* <code>uint32 max_charge_count = 6;</code>
* @return The maxChargeCount.
*/
@java.lang.Override
@@ -166,6 +154,17 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
return avatarGuid_;
}
public static final int SKILL_ID_FIELD_NUMBER = 15;
private int skillId_;
/**
* <code>uint32 skill_id = 15;</code>
* @return The skillId.
*/
@java.lang.Override
public int getSkillId() {
return skillId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -181,7 +180,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxChargeCount_ != 0) {
output.writeUInt32(4, maxChargeCount_);
output.writeUInt32(6, maxChargeCount_);
}
if (avatarGuid_ != 0L) {
output.writeUInt64(7, avatarGuid_);
@@ -200,7 +199,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
size = 0;
if (maxChargeCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, maxChargeCount_);
.computeUInt32Size(6, maxChargeCount_);
}
if (avatarGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
@@ -225,12 +224,12 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
}
emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify other = (emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify) obj;
if (getSkillId()
!= other.getSkillId()) return false;
if (getMaxChargeCount()
!= other.getMaxChargeCount()) return false;
if (getAvatarGuid()
!= other.getAvatarGuid()) return false;
if (getSkillId()
!= other.getSkillId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -242,13 +241,13 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SKILL_ID_FIELD_NUMBER;
hash = (53 * hash) + getSkillId();
hash = (37 * hash) + MAX_CHARGE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMaxChargeCount();
hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvatarGuid());
hash = (37 * hash) + SKILL_ID_FIELD_NUMBER;
hash = (53 * hash) + getSkillId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -346,8 +345,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
}
/**
* <pre>
* CmdId: 22843
* Obf: MIPDHBPHHBA
* CmdId: 28497
* </pre>
*
* Protobuf type {@code AvatarSkillMaxChargeCountNotify}
@@ -387,12 +385,12 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
skillId_ = 0;
maxChargeCount_ = 0;
avatarGuid_ = 0L;
skillId_ = 0;
return this;
}
@@ -419,9 +417,9 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify buildPartial() {
emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify result = new emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify(this);
result.skillId_ = skillId_;
result.maxChargeCount_ = maxChargeCount_;
result.avatarGuid_ = avatarGuid_;
result.skillId_ = skillId_;
onBuilt();
return result;
}
@@ -470,15 +468,15 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify other) {
if (other == emu.grasscutter.net.proto.AvatarSkillMaxChargeCountNotifyOuterClass.AvatarSkillMaxChargeCountNotify.getDefaultInstance()) return this;
if (other.getSkillId() != 0) {
setSkillId(other.getSkillId());
}
if (other.getMaxChargeCount() != 0) {
setMaxChargeCount(other.getMaxChargeCount());
}
if (other.getAvatarGuid() != 0L) {
setAvatarGuid(other.getAvatarGuid());
}
if (other.getSkillId() != 0) {
setSkillId(other.getSkillId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -508,40 +506,9 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
return this;
}
private int skillId_ ;
/**
* <code>uint32 skill_id = 15;</code>
* @return The skillId.
*/
@java.lang.Override
public int getSkillId() {
return skillId_;
}
/**
* <code>uint32 skill_id = 15;</code>
* @param value The skillId to set.
* @return This builder for chaining.
*/
public Builder setSkillId(int value) {
skillId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 skill_id = 15;</code>
* @return This builder for chaining.
*/
public Builder clearSkillId() {
skillId_ = 0;
onChanged();
return this;
}
private int maxChargeCount_ ;
/**
* <code>uint32 max_charge_count = 4;</code>
* <code>uint32 max_charge_count = 6;</code>
* @return The maxChargeCount.
*/
@java.lang.Override
@@ -549,7 +516,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
return maxChargeCount_;
}
/**
* <code>uint32 max_charge_count = 4;</code>
* <code>uint32 max_charge_count = 6;</code>
* @param value The maxChargeCount to set.
* @return This builder for chaining.
*/
@@ -560,7 +527,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
return this;
}
/**
* <code>uint32 max_charge_count = 4;</code>
* <code>uint32 max_charge_count = 6;</code>
* @return This builder for chaining.
*/
public Builder clearMaxChargeCount() {
@@ -600,6 +567,37 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
onChanged();
return this;
}
private int skillId_ ;
/**
* <code>uint32 skill_id = 15;</code>
* @return The skillId.
*/
@java.lang.Override
public int getSkillId() {
return skillId_;
}
/**
* <code>uint32 skill_id = 15;</code>
* @param value The skillId to set.
* @return This builder for chaining.
*/
public Builder setSkillId(int value) {
skillId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 skill_id = 15;</code>
* @return This builder for chaining.
*/
public Builder clearSkillId() {
skillId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -668,9 +666,9 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n%AvatarSkillMaxChargeCountNotify.proto\"" +
"b\n\037AvatarSkillMaxChargeCountNotify\022\020\n\010sk" +
"ill_id\030\017 \001(\r\022\030\n\020max_charge_count\030\004 \001(\r\022\023" +
"\n\013avatar_guid\030\007 \001(\004B\033\n\031emu.grasscutter.n" +
"b\n\037AvatarSkillMaxChargeCountNotify\022\030\n\020ma" +
"x_charge_count\030\006 \001(\r\022\023\n\013avatar_guid\030\007 \001(" +
"\004\022\020\n\010skill_id\030\017 \001(\rB\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -682,7 +680,7 @@ public final class AvatarSkillMaxChargeCountNotifyOuterClass {
internal_static_AvatarSkillMaxChargeCountNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarSkillMaxChargeCountNotify_descriptor,
new java.lang.String[] { "SkillId", "MaxChargeCount", "AvatarGuid", });
new java.lang.String[] { "MaxChargeCount", "AvatarGuid", "SkillId", });
}
// @@protoc_insertion_point(outer_class_scope)