Add new protocol definitions

This commit is contained in:
KingRainbow44
2023-08-14 18:57:07 -04:00
Unverified
parent 1bcb79840c
commit ceeaf3748a
3772 changed files with 448618 additions and 1108926 deletions
@@ -19,26 +19,26 @@ public final class PlayerMatchStopNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 host_uid = 12;</code>
* @return The hostUid.
*/
int getHostUid();
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return The enum numeric value on the wire for reason.
*/
int getReasonValue();
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return The reason.
*/
emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason getReason();
/**
* <code>uint32 host_uid = 6;</code>
* @return The hostUid.
*/
int getHostUid();
}
/**
* <pre>
* CmdId: 4189
* Obf: DHAEFJHDJNH
* CmdId: 5482
* Obf: EGKPJLFGEFN
* </pre>
*
* Protobuf type {@code PlayerMatchStopNotify}
@@ -86,17 +86,17 @@ public final class PlayerMatchStopNotifyOuterClass {
case 0:
done = true;
break;
case 72: {
case 48: {
hostUid_ = input.readUInt32();
break;
}
case 104: {
int rawValue = input.readEnum();
reason_ = rawValue;
break;
}
case 96: {
hostUid_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -129,28 +129,17 @@ public final class PlayerMatchStopNotifyOuterClass {
emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify.class, emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify.Builder.class);
}
public static final int HOST_UID_FIELD_NUMBER = 12;
private int hostUid_;
/**
* <code>uint32 host_uid = 12;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
public static final int REASON_FIELD_NUMBER = 9;
public static final int REASON_FIELD_NUMBER = 13;
private int reason_;
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return The reason.
*/
@java.lang.Override public emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason getReason() {
@@ -159,6 +148,17 @@ public final class PlayerMatchStopNotifyOuterClass {
return result == null ? emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.UNRECOGNIZED : result;
}
public static final int HOST_UID_FIELD_NUMBER = 6;
private int hostUid_;
/**
* <code>uint32 host_uid = 6;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -173,11 +173,11 @@ public final class PlayerMatchStopNotifyOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
output.writeEnum(9, reason_);
}
if (hostUid_ != 0) {
output.writeUInt32(12, hostUid_);
output.writeUInt32(6, hostUid_);
}
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
output.writeEnum(13, reason_);
}
unknownFields.writeTo(output);
}
@@ -188,13 +188,13 @@ public final class PlayerMatchStopNotifyOuterClass {
if (size != -1) return size;
size = 0;
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, reason_);
}
if (hostUid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, hostUid_);
.computeUInt32Size(6, hostUid_);
}
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, reason_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -211,9 +211,9 @@ public final class PlayerMatchStopNotifyOuterClass {
}
emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify other = (emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify) obj;
if (reason_ != other.reason_) return false;
if (getHostUid()
!= other.getHostUid()) return false;
if (reason_ != other.reason_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -225,10 +225,10 @@ public final class PlayerMatchStopNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HOST_UID_FIELD_NUMBER;
hash = (53 * hash) + getHostUid();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (37 * hash) + HOST_UID_FIELD_NUMBER;
hash = (53 * hash) + getHostUid();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -326,8 +326,8 @@ public final class PlayerMatchStopNotifyOuterClass {
}
/**
* <pre>
* CmdId: 4189
* Obf: DHAEFJHDJNH
* CmdId: 5482
* Obf: EGKPJLFGEFN
* </pre>
*
* Protobuf type {@code PlayerMatchStopNotify}
@@ -367,10 +367,10 @@ public final class PlayerMatchStopNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
hostUid_ = 0;
reason_ = 0;
hostUid_ = 0;
return this;
}
@@ -397,8 +397,8 @@ public final class PlayerMatchStopNotifyOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify buildPartial() {
emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify result = new emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify(this);
result.hostUid_ = hostUid_;
result.reason_ = reason_;
result.hostUid_ = hostUid_;
onBuilt();
return result;
}
@@ -447,12 +447,12 @@ public final class PlayerMatchStopNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify other) {
if (other == emu.grasscutter.net.proto.PlayerMatchStopNotifyOuterClass.PlayerMatchStopNotify.getDefaultInstance()) return this;
if (other.getHostUid() != 0) {
setHostUid(other.getHostUid());
}
if (other.reason_ != 0) {
setReasonValue(other.getReasonValue());
}
if (other.getHostUid() != 0) {
setHostUid(other.getHostUid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -482,47 +482,16 @@ public final class PlayerMatchStopNotifyOuterClass {
return this;
}
private int hostUid_ ;
/**
* <code>uint32 host_uid = 12;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
/**
* <code>uint32 host_uid = 12;</code>
* @param value The hostUid to set.
* @return This builder for chaining.
*/
public Builder setHostUid(int value) {
hostUid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 host_uid = 12;</code>
* @return This builder for chaining.
*/
public Builder clearHostUid() {
hostUid_ = 0;
onChanged();
return this;
}
private int reason_ = 0;
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @param value The enum numeric value on the wire for reason to set.
* @return This builder for chaining.
*/
@@ -533,7 +502,7 @@ public final class PlayerMatchStopNotifyOuterClass {
return this;
}
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return The reason.
*/
@java.lang.Override
@@ -543,7 +512,7 @@ public final class PlayerMatchStopNotifyOuterClass {
return result == null ? emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.UNRECOGNIZED : result;
}
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
@@ -557,7 +526,7 @@ public final class PlayerMatchStopNotifyOuterClass {
return this;
}
/**
* <code>.MatchReason reason = 9;</code>
* <code>.MatchReason reason = 13;</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
@@ -566,6 +535,37 @@ public final class PlayerMatchStopNotifyOuterClass {
onChanged();
return this;
}
private int hostUid_ ;
/**
* <code>uint32 host_uid = 6;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
/**
* <code>uint32 host_uid = 6;</code>
* @param value The hostUid to set.
* @return This builder for chaining.
*/
public Builder setHostUid(int value) {
hostUid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 host_uid = 6;</code>
* @return This builder for chaining.
*/
public Builder clearHostUid() {
hostUid_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -634,9 +634,9 @@ public final class PlayerMatchStopNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\033PlayerMatchStopNotify.proto\032\021MatchReas" +
"on.proto\"G\n\025PlayerMatchStopNotify\022\020\n\010hos" +
"t_uid\030\014 \001(\r\022\034\n\006reason\030\t \001(\0162\014.MatchReaso" +
"nB\033\n\031emu.grasscutter.net.protob\006proto3"
"on.proto\"G\n\025PlayerMatchStopNotify\022\034\n\006rea" +
"son\030\r \001(\0162\014.MatchReason\022\020\n\010host_uid\030\006 \001(" +
"\rB\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -648,7 +648,7 @@ public final class PlayerMatchStopNotifyOuterClass {
internal_static_PlayerMatchStopNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerMatchStopNotify_descriptor,
new java.lang.String[] { "HostUid", "Reason", });
new java.lang.String[] { "Reason", "HostUid", });
emu.grasscutter.net.proto.MatchReasonOuterClass.getDescriptor();
}