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,23 +19,34 @@ public final class ScenePlayOwnerCheckRspOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 play_id = 12;</code>
* <code>repeated uint32 param_list = 7;</code>
* @return A list containing the paramList.
*/
java.util.List<java.lang.Integer> getParamListList();
/**
* <code>repeated uint32 param_list = 7;</code>
* @return The count of paramList.
*/
int getParamListCount();
/**
* <code>repeated uint32 param_list = 7;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
int getParamList(int index);
/**
* <code>uint32 play_id = 13;</code>
* @return The playId.
*/
int getPlayId();
/**
* <code>bool is_skip_match = 2;</code>
* <code>bool is_skip_match = 5;</code>
* @return The isSkipMatch.
*/
boolean getIsSkipMatch();
/**
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>uint32 wrong_uid = 8;</code>
* @return The wrongUid.
@@ -43,26 +54,15 @@ public final class ScenePlayOwnerCheckRspOuterClass {
int getWrongUid();
/**
* <code>repeated uint32 param_list = 4;</code>
* @return A list containing the paramList.
* <code>int32 retcode = 6;</code>
* @return The retcode.
*/
java.util.List<java.lang.Integer> getParamListList();
/**
* <code>repeated uint32 param_list = 4;</code>
* @return The count of paramList.
*/
int getParamListCount();
/**
* <code>repeated uint32 param_list = 4;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
int getParamList(int index);
int getRetcode();
}
/**
* <pre>
* CmdId: 4352
* Obf: MNHNFNBFDMG
* CmdId: 2989
* Obf: AAJJMIGOGKD
* </pre>
*
* Protobuf type {@code ScenePlayOwnerCheckRsp}
@@ -111,12 +111,17 @@ public final class ScenePlayOwnerCheckRspOuterClass {
case 0:
done = true;
break;
case 16: {
case 40: {
isSkipMatch_ = input.readBool();
break;
}
case 32: {
case 48: {
retcode_ = input.readInt32();
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
paramList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
@@ -124,7 +129,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
paramList_.addInt(input.readUInt32());
break;
}
case 34: {
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
@@ -142,12 +147,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
wrongUid_ = input.readUInt32();
break;
}
case 80: {
retcode_ = input.readInt32();
break;
}
case 96: {
case 104: {
playId_ = input.readUInt32();
break;
@@ -187,10 +187,38 @@ public final class ScenePlayOwnerCheckRspOuterClass {
emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp.class, emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp.Builder.class);
}
public static final int PLAY_ID_FIELD_NUMBER = 12;
public static final int PARAM_LIST_FIELD_NUMBER = 7;
private com.google.protobuf.Internal.IntList paramList_;
/**
* <code>repeated uint32 param_list = 7;</code>
* @return A list containing the paramList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getParamListList() {
return paramList_;
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @return The count of paramList.
*/
public int getParamListCount() {
return paramList_.size();
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
public int getParamList(int index) {
return paramList_.getInt(index);
}
private int paramListMemoizedSerializedSize = -1;
public static final int PLAY_ID_FIELD_NUMBER = 13;
private int playId_;
/**
* <code>uint32 play_id = 12;</code>
* <code>uint32 play_id = 13;</code>
* @return The playId.
*/
@java.lang.Override
@@ -198,10 +226,10 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return playId_;
}
public static final int IS_SKIP_MATCH_FIELD_NUMBER = 2;
public static final int IS_SKIP_MATCH_FIELD_NUMBER = 5;
private boolean isSkipMatch_;
/**
* <code>bool is_skip_match = 2;</code>
* <code>bool is_skip_match = 5;</code>
* @return The isSkipMatch.
*/
@java.lang.Override
@@ -209,17 +237,6 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return isSkipMatch_;
}
public static final int RETCODE_FIELD_NUMBER = 10;
private int retcode_;
/**
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int WRONG_UID_FIELD_NUMBER = 8;
private int wrongUid_;
/**
@@ -231,33 +248,16 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return wrongUid_;
}
public static final int PARAM_LIST_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.IntList paramList_;
public static final int RETCODE_FIELD_NUMBER = 6;
private int retcode_;
/**
* <code>repeated uint32 param_list = 4;</code>
* @return A list containing the paramList.
* <code>int32 retcode = 6;</code>
* @return The retcode.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getParamListList() {
return paramList_;
public int getRetcode() {
return retcode_;
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @return The count of paramList.
*/
public int getParamListCount() {
return paramList_.size();
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
public int getParamList(int index) {
return paramList_.getInt(index);
}
private int paramListMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -275,10 +275,13 @@ public final class ScenePlayOwnerCheckRspOuterClass {
throws java.io.IOException {
getSerializedSize();
if (isSkipMatch_ != false) {
output.writeBool(2, isSkipMatch_);
output.writeBool(5, isSkipMatch_);
}
if (retcode_ != 0) {
output.writeInt32(6, retcode_);
}
if (getParamListList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(paramListMemoizedSerializedSize);
}
for (int i = 0; i < paramList_.size(); i++) {
@@ -287,11 +290,8 @@ public final class ScenePlayOwnerCheckRspOuterClass {
if (wrongUid_ != 0) {
output.writeUInt32(8, wrongUid_);
}
if (retcode_ != 0) {
output.writeInt32(10, retcode_);
}
if (playId_ != 0) {
output.writeUInt32(12, playId_);
output.writeUInt32(13, playId_);
}
unknownFields.writeTo(output);
}
@@ -304,7 +304,11 @@ public final class ScenePlayOwnerCheckRspOuterClass {
size = 0;
if (isSkipMatch_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isSkipMatch_);
.computeBoolSize(5, isSkipMatch_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, retcode_);
}
{
int dataSize = 0;
@@ -324,13 +328,9 @@ public final class ScenePlayOwnerCheckRspOuterClass {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, wrongUid_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, retcode_);
}
if (playId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, playId_);
.computeUInt32Size(13, playId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -347,16 +347,16 @@ public final class ScenePlayOwnerCheckRspOuterClass {
}
emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp other = (emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp) obj;
if (!getParamListList()
.equals(other.getParamListList())) return false;
if (getPlayId()
!= other.getPlayId()) return false;
if (getIsSkipMatch()
!= other.getIsSkipMatch()) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (getWrongUid()
!= other.getWrongUid()) return false;
if (!getParamListList()
.equals(other.getParamListList())) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -368,19 +368,19 @@ public final class ScenePlayOwnerCheckRspOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getParamListCount() > 0) {
hash = (37 * hash) + PARAM_LIST_FIELD_NUMBER;
hash = (53 * hash) + getParamListList().hashCode();
}
hash = (37 * hash) + PLAY_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlayId();
hash = (37 * hash) + IS_SKIP_MATCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsSkipMatch());
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + WRONG_UID_FIELD_NUMBER;
hash = (53 * hash) + getWrongUid();
if (getParamListCount() > 0) {
hash = (37 * hash) + PARAM_LIST_FIELD_NUMBER;
hash = (53 * hash) + getParamListList().hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -478,8 +478,8 @@ public final class ScenePlayOwnerCheckRspOuterClass {
}
/**
* <pre>
* CmdId: 4352
* Obf: MNHNFNBFDMG
* CmdId: 2989
* Obf: AAJJMIGOGKD
* </pre>
*
* Protobuf type {@code ScenePlayOwnerCheckRsp}
@@ -519,16 +519,16 @@ public final class ScenePlayOwnerCheckRspOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
paramList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
playId_ = 0;
isSkipMatch_ = false;
retcode_ = 0;
wrongUid_ = 0;
paramList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
retcode_ = 0;
return this;
}
@@ -556,15 +556,15 @@ public final class ScenePlayOwnerCheckRspOuterClass {
public emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp buildPartial() {
emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp result = new emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp(this);
int from_bitField0_ = bitField0_;
result.playId_ = playId_;
result.isSkipMatch_ = isSkipMatch_;
result.retcode_ = retcode_;
result.wrongUid_ = wrongUid_;
if (((bitField0_ & 0x00000001) != 0)) {
paramList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paramList_ = paramList_;
result.playId_ = playId_;
result.isSkipMatch_ = isSkipMatch_;
result.wrongUid_ = wrongUid_;
result.retcode_ = retcode_;
onBuilt();
return result;
}
@@ -613,18 +613,6 @@ public final class ScenePlayOwnerCheckRspOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp other) {
if (other == emu.grasscutter.net.proto.ScenePlayOwnerCheckRspOuterClass.ScenePlayOwnerCheckRsp.getDefaultInstance()) return this;
if (other.getPlayId() != 0) {
setPlayId(other.getPlayId());
}
if (other.getIsSkipMatch() != false) {
setIsSkipMatch(other.getIsSkipMatch());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (other.getWrongUid() != 0) {
setWrongUid(other.getWrongUid());
}
if (!other.paramList_.isEmpty()) {
if (paramList_.isEmpty()) {
paramList_ = other.paramList_;
@@ -635,6 +623,18 @@ public final class ScenePlayOwnerCheckRspOuterClass {
}
onChanged();
}
if (other.getPlayId() != 0) {
setPlayId(other.getPlayId());
}
if (other.getIsSkipMatch() != false) {
setIsSkipMatch(other.getIsSkipMatch());
}
if (other.getWrongUid() != 0) {
setWrongUid(other.getWrongUid());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -665,9 +665,88 @@ public final class ScenePlayOwnerCheckRspOuterClass {
}
private int bitField0_;
private com.google.protobuf.Internal.IntList paramList_ = emptyIntList();
private void ensureParamListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paramList_ = mutableCopy(paramList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @return A list containing the paramList.
*/
public java.util.List<java.lang.Integer>
getParamListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(paramList_) : paramList_;
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @return The count of paramList.
*/
public int getParamListCount() {
return paramList_.size();
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
public int getParamList(int index) {
return paramList_.getInt(index);
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @param index The index to set the value at.
* @param value The paramList to set.
* @return This builder for chaining.
*/
public Builder setParamList(
int index, int value) {
ensureParamListIsMutable();
paramList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @param value The paramList to add.
* @return This builder for chaining.
*/
public Builder addParamList(int value) {
ensureParamListIsMutable();
paramList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @param values The paramList to add.
* @return This builder for chaining.
*/
public Builder addAllParamList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureParamListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paramList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 param_list = 7;</code>
* @return This builder for chaining.
*/
public Builder clearParamList() {
paramList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int playId_ ;
/**
* <code>uint32 play_id = 12;</code>
* <code>uint32 play_id = 13;</code>
* @return The playId.
*/
@java.lang.Override
@@ -675,7 +754,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return playId_;
}
/**
* <code>uint32 play_id = 12;</code>
* <code>uint32 play_id = 13;</code>
* @param value The playId to set.
* @return This builder for chaining.
*/
@@ -686,7 +765,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return this;
}
/**
* <code>uint32 play_id = 12;</code>
* <code>uint32 play_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearPlayId() {
@@ -698,7 +777,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
private boolean isSkipMatch_ ;
/**
* <code>bool is_skip_match = 2;</code>
* <code>bool is_skip_match = 5;</code>
* @return The isSkipMatch.
*/
@java.lang.Override
@@ -706,7 +785,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return isSkipMatch_;
}
/**
* <code>bool is_skip_match = 2;</code>
* <code>bool is_skip_match = 5;</code>
* @param value The isSkipMatch to set.
* @return This builder for chaining.
*/
@@ -717,7 +796,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return this;
}
/**
* <code>bool is_skip_match = 2;</code>
* <code>bool is_skip_match = 5;</code>
* @return This builder for chaining.
*/
public Builder clearIsSkipMatch() {
@@ -727,37 +806,6 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 10;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 10;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private int wrongUid_ ;
/**
* <code>uint32 wrong_uid = 8;</code>
@@ -789,81 +837,33 @@ public final class ScenePlayOwnerCheckRspOuterClass {
return this;
}
private com.google.protobuf.Internal.IntList paramList_ = emptyIntList();
private void ensureParamListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paramList_ = mutableCopy(paramList_);
bitField0_ |= 0x00000001;
}
}
private int retcode_ ;
/**
* <code>repeated uint32 param_list = 4;</code>
* @return A list containing the paramList.
* <code>int32 retcode = 6;</code>
* @return The retcode.
*/
public java.util.List<java.lang.Integer>
getParamListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(paramList_) : paramList_;
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @return The count of paramList.
*/
public int getParamListCount() {
return paramList_.size();
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
public int getParamList(int index) {
return paramList_.getInt(index);
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @param index The index to set the value at.
* @param value The paramList to set.
* <code>int32 retcode = 6;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setParamList(
int index, int value) {
ensureParamListIsMutable();
paramList_.setInt(index, value);
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @param value The paramList to add.
* <code>int32 retcode = 6;</code>
* @return This builder for chaining.
*/
public Builder addParamList(int value) {
ensureParamListIsMutable();
paramList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @param values The paramList to add.
* @return This builder for chaining.
*/
public Builder addAllParamList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureParamListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paramList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 param_list = 4;</code>
* @return This builder for chaining.
*/
public Builder clearParamList() {
paramList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
@@ -935,9 +935,9 @@ public final class ScenePlayOwnerCheckRspOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\034ScenePlayOwnerCheckRsp.proto\"x\n\026SceneP" +
"layOwnerCheckRsp\022\017\n\007play_id\030\014 \001(\r\022\025\n\ris_" +
"skip_match\030\002 \001(\010\022\017\n\007retcode\030\n \001(\005\022\021\n\twro" +
"ng_uid\030\010 \001(\r\022\022\n\nparam_list\030\004 \003(\rB\033\n\031emu." +
"layOwnerCheckRsp\022\022\n\nparam_list\030\007 \003(\r\022\017\n\007" +
"play_id\030\r \001(\r\022\025\n\ris_skip_match\030\005 \001(\010\022\021\n\t" +
"wrong_uid\030\010 \001(\r\022\017\n\007retcode\030\006 \001(\005B\033\n\031emu." +
"grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -949,7 +949,7 @@ public final class ScenePlayOwnerCheckRspOuterClass {
internal_static_ScenePlayOwnerCheckRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ScenePlayOwnerCheckRsp_descriptor,
new java.lang.String[] { "PlayId", "IsSkipMatch", "Retcode", "WrongUid", "ParamList", });
new java.lang.String[] { "ParamList", "PlayId", "IsSkipMatch", "WrongUid", "Retcode", });
}
// @@protoc_insertion_point(outer_class_scope)