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,43 +19,43 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated uint32 uid_list = 11;</code>
* @return A list containing the uidList.
* <code>.MatchReason reason = 13;</code>
* @return The enum numeric value on the wire for reason.
*/
java.util.List<java.lang.Integer> getUidListList();
int getReasonValue();
/**
* <code>repeated uint32 uid_list = 11;</code>
* @return The count of uidList.
* <code>.MatchReason reason = 13;</code>
* @return The reason.
*/
int getUidListCount();
/**
* <code>repeated uint32 uid_list = 11;</code>
* @param index The index of the element to return.
* @return The uidList at the given index.
*/
int getUidList(int index);
emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason getReason();
/**
* <code>uint32 match_id = 12;</code>
* <code>uint32 match_id = 4;</code>
* @return The matchId.
*/
int getMatchId();
/**
* <code>.MatchReason reason = 10;</code>
* @return The enum numeric value on the wire for reason.
* <code>repeated uint32 uid_list = 7;</code>
* @return A list containing the uidList.
*/
int getReasonValue();
java.util.List<java.lang.Integer> getUidListList();
/**
* <code>.MatchReason reason = 10;</code>
* @return The reason.
* <code>repeated uint32 uid_list = 7;</code>
* @return The count of uidList.
*/
emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason getReason();
int getUidListCount();
/**
* <code>repeated uint32 uid_list = 7;</code>
* @param index The index of the element to return.
* @return The uidList at the given index.
*/
int getUidList(int index);
}
/**
* <pre>
* CmdId: 4163
* Obf: BKBJGKENNBI
* CmdId: 28090
* Obf: KLDALAILPLA
* </pre>
*
* Protobuf type {@code PlayerGCGMatchDismissNotify}
@@ -70,8 +70,8 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
super(builder);
}
private PlayerGCGMatchDismissNotify() {
uidList_ = emptyIntList();
reason_ = 0;
uidList_ = emptyIntList();
}
@java.lang.Override
@@ -105,13 +105,12 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
case 0:
done = true;
break;
case 80: {
int rawValue = input.readEnum();
case 32: {
reason_ = rawValue;
matchId_ = input.readUInt32();
break;
}
case 88: {
case 56: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
uidList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
@@ -119,7 +118,7 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
uidList_.addInt(input.readUInt32());
break;
}
case 90: {
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
@@ -132,9 +131,10 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
input.popLimit(limit);
break;
}
case 96: {
case 104: {
int rawValue = input.readEnum();
matchId_ = input.readUInt32();
reason_ = rawValue;
break;
}
default: {
@@ -172,10 +172,40 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify.class, emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify.Builder.class);
}
public static final int UID_LIST_FIELD_NUMBER = 11;
public static final int REASON_FIELD_NUMBER = 13;
private int reason_;
/**
* <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 = 13;</code>
* @return The reason.
*/
@java.lang.Override public emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason getReason() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason result = emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.valueOf(reason_);
return result == null ? emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.UNRECOGNIZED : result;
}
public static final int MATCH_ID_FIELD_NUMBER = 4;
private int matchId_;
/**
* <code>uint32 match_id = 4;</code>
* @return The matchId.
*/
@java.lang.Override
public int getMatchId() {
return matchId_;
}
public static final int UID_LIST_FIELD_NUMBER = 7;
private com.google.protobuf.Internal.IntList uidList_;
/**
* <code>repeated uint32 uid_list = 11;</code>
* <code>repeated uint32 uid_list = 7;</code>
* @return A list containing the uidList.
*/
@java.lang.Override
@@ -184,14 +214,14 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
return uidList_;
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* <code>repeated uint32 uid_list = 7;</code>
* @return The count of uidList.
*/
public int getUidListCount() {
return uidList_.size();
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* <code>repeated uint32 uid_list = 7;</code>
* @param index The index of the element to return.
* @return The uidList at the given index.
*/
@@ -200,36 +230,6 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
private int uidListMemoizedSerializedSize = -1;
public static final int MATCH_ID_FIELD_NUMBER = 12;
private int matchId_;
/**
* <code>uint32 match_id = 12;</code>
* @return The matchId.
*/
@java.lang.Override
public int getMatchId() {
return matchId_;
}
public static final int REASON_FIELD_NUMBER = 10;
private int reason_;
/**
* <code>.MatchReason reason = 10;</code>
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
* <code>.MatchReason reason = 10;</code>
* @return The reason.
*/
@java.lang.Override public emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason getReason() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason result = emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.valueOf(reason_);
return result == null ? emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -245,18 +245,18 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
output.writeEnum(10, reason_);
if (matchId_ != 0) {
output.writeUInt32(4, matchId_);
}
if (getUidListList().size() > 0) {
output.writeUInt32NoTag(90);
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(uidListMemoizedSerializedSize);
}
for (int i = 0; i < uidList_.size(); i++) {
output.writeUInt32NoTag(uidList_.getInt(i));
}
if (matchId_ != 0) {
output.writeUInt32(12, matchId_);
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
output.writeEnum(13, reason_);
}
unknownFields.writeTo(output);
}
@@ -267,9 +267,9 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
if (size != -1) return size;
size = 0;
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
if (matchId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, reason_);
.computeUInt32Size(4, matchId_);
}
{
int dataSize = 0;
@@ -285,9 +285,9 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
uidListMemoizedSerializedSize = dataSize;
}
if (matchId_ != 0) {
if (reason_ != emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.MATCH_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, matchId_);
.computeEnumSize(13, reason_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -304,11 +304,11 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify other = (emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify) obj;
if (!getUidListList()
.equals(other.getUidListList())) return false;
if (reason_ != other.reason_) return false;
if (getMatchId()
!= other.getMatchId()) return false;
if (reason_ != other.reason_) return false;
if (!getUidListList()
.equals(other.getUidListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -320,14 +320,14 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (37 * hash) + MATCH_ID_FIELD_NUMBER;
hash = (53 * hash) + getMatchId();
if (getUidListCount() > 0) {
hash = (37 * hash) + UID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getUidListList().hashCode();
}
hash = (37 * hash) + MATCH_ID_FIELD_NUMBER;
hash = (53 * hash) + getMatchId();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -425,8 +425,8 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
/**
* <pre>
* CmdId: 4163
* Obf: BKBJGKENNBI
* CmdId: 28090
* Obf: KLDALAILPLA
* </pre>
*
* Protobuf type {@code PlayerGCGMatchDismissNotify}
@@ -466,12 +466,12 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
uidList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
matchId_ = 0;
reason_ = 0;
matchId_ = 0;
uidList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -499,13 +499,13 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
public emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify buildPartial() {
emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify result = new emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify(this);
int from_bitField0_ = bitField0_;
result.reason_ = reason_;
result.matchId_ = matchId_;
if (((bitField0_ & 0x00000001) != 0)) {
uidList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.uidList_ = uidList_;
result.matchId_ = matchId_;
result.reason_ = reason_;
onBuilt();
return result;
}
@@ -554,6 +554,12 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify other) {
if (other == emu.grasscutter.net.proto.PlayerGCGMatchDismissNotifyOuterClass.PlayerGCGMatchDismissNotify.getDefaultInstance()) return this;
if (other.reason_ != 0) {
setReasonValue(other.getReasonValue());
}
if (other.getMatchId() != 0) {
setMatchId(other.getMatchId());
}
if (!other.uidList_.isEmpty()) {
if (uidList_.isEmpty()) {
uidList_ = other.uidList_;
@@ -564,12 +570,6 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
onChanged();
}
if (other.getMatchId() != 0) {
setMatchId(other.getMatchId());
}
if (other.reason_ != 0) {
setReasonValue(other.getReasonValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -600,126 +600,16 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
}
private int bitField0_;
private com.google.protobuf.Internal.IntList uidList_ = emptyIntList();
private void ensureUidListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
uidList_ = mutableCopy(uidList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @return A list containing the uidList.
*/
public java.util.List<java.lang.Integer>
getUidListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(uidList_) : uidList_;
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @return The count of uidList.
*/
public int getUidListCount() {
return uidList_.size();
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @param index The index of the element to return.
* @return The uidList at the given index.
*/
public int getUidList(int index) {
return uidList_.getInt(index);
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @param index The index to set the value at.
* @param value The uidList to set.
* @return This builder for chaining.
*/
public Builder setUidList(
int index, int value) {
ensureUidListIsMutable();
uidList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @param value The uidList to add.
* @return This builder for chaining.
*/
public Builder addUidList(int value) {
ensureUidListIsMutable();
uidList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @param values The uidList to add.
* @return This builder for chaining.
*/
public Builder addAllUidList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureUidListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uidList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 uid_list = 11;</code>
* @return This builder for chaining.
*/
public Builder clearUidList() {
uidList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int matchId_ ;
/**
* <code>uint32 match_id = 12;</code>
* @return The matchId.
*/
@java.lang.Override
public int getMatchId() {
return matchId_;
}
/**
* <code>uint32 match_id = 12;</code>
* @param value The matchId to set.
* @return This builder for chaining.
*/
public Builder setMatchId(int value) {
matchId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 match_id = 12;</code>
* @return This builder for chaining.
*/
public Builder clearMatchId() {
matchId_ = 0;
onChanged();
return this;
}
private int reason_ = 0;
/**
* <code>.MatchReason reason = 10;</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 = 10;</code>
* <code>.MatchReason reason = 13;</code>
* @param value The enum numeric value on the wire for reason to set.
* @return This builder for chaining.
*/
@@ -730,7 +620,7 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
return this;
}
/**
* <code>.MatchReason reason = 10;</code>
* <code>.MatchReason reason = 13;</code>
* @return The reason.
*/
@java.lang.Override
@@ -740,7 +630,7 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
return result == null ? emu.grasscutter.net.proto.MatchReasonOuterClass.MatchReason.UNRECOGNIZED : result;
}
/**
* <code>.MatchReason reason = 10;</code>
* <code>.MatchReason reason = 13;</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
@@ -754,7 +644,7 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
return this;
}
/**
* <code>.MatchReason reason = 10;</code>
* <code>.MatchReason reason = 13;</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
@@ -763,6 +653,116 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
onChanged();
return this;
}
private int matchId_ ;
/**
* <code>uint32 match_id = 4;</code>
* @return The matchId.
*/
@java.lang.Override
public int getMatchId() {
return matchId_;
}
/**
* <code>uint32 match_id = 4;</code>
* @param value The matchId to set.
* @return This builder for chaining.
*/
public Builder setMatchId(int value) {
matchId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 match_id = 4;</code>
* @return This builder for chaining.
*/
public Builder clearMatchId() {
matchId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList uidList_ = emptyIntList();
private void ensureUidListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
uidList_ = mutableCopy(uidList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @return A list containing the uidList.
*/
public java.util.List<java.lang.Integer>
getUidListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(uidList_) : uidList_;
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @return The count of uidList.
*/
public int getUidListCount() {
return uidList_.size();
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @param index The index of the element to return.
* @return The uidList at the given index.
*/
public int getUidList(int index) {
return uidList_.getInt(index);
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @param index The index to set the value at.
* @param value The uidList to set.
* @return This builder for chaining.
*/
public Builder setUidList(
int index, int value) {
ensureUidListIsMutable();
uidList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @param value The uidList to add.
* @return This builder for chaining.
*/
public Builder addUidList(int value) {
ensureUidListIsMutable();
uidList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @param values The uidList to add.
* @return This builder for chaining.
*/
public Builder addAllUidList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureUidListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uidList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 uid_list = 7;</code>
* @return This builder for chaining.
*/
public Builder clearUidList() {
uidList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -832,8 +832,8 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
java.lang.String[] descriptorData = {
"\n!PlayerGCGMatchDismissNotify.proto\032\021Mat" +
"chReason.proto\"_\n\033PlayerGCGMatchDismissN" +
"otify\022\020\n\010uid_list\030\013 \003(\r\022\020\n\010match_id\030\014 \001(" +
"\r\022\034\n\006reason\030\n \001(\0162\014.MatchReasonB\033\n\031emu.g" +
"otify\022\034\n\006reason\030\r \001(\0162\014.MatchReason\022\020\n\010m" +
"atch_id\030\004 \001(\r\022\020\n\010uid_list\030\007 \003(\rB\033\n\031emu.g" +
"rasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -846,7 +846,7 @@ public final class PlayerGCGMatchDismissNotifyOuterClass {
internal_static_PlayerGCGMatchDismissNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerGCGMatchDismissNotify_descriptor,
new java.lang.String[] { "UidList", "MatchId", "Reason", });
new java.lang.String[] { "Reason", "MatchId", "UidList", });
emu.grasscutter.net.proto.MatchReasonOuterClass.getDescriptor();
}