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,49 +19,49 @@ public final class DestroyMaterialRspOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>repeated uint32 item_id_list = 4;</code>
* @return A list containing the itemIdList.
*/
java.util.List<java.lang.Integer> getItemIdListList();
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @return The count of itemIdList.
*/
int getItemIdListCount();
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @param index The index of the element to return.
* @return The itemIdList at the given index.
*/
int getItemIdList(int index);
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return A list containing the itemCountList.
*/
java.util.List<java.lang.Integer> getItemCountListList();
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return The count of itemCountList.
*/
int getItemCountListCount();
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @param index The index of the element to return.
* @return The itemCountList at the given index.
*/
int getItemCountList(int index);
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
* CmdId: 670
* Obf: IGGKOFLKOID
* CmdId: 7572
* Obf: KIEBPLBPCAE
* </pre>
*
* Protobuf type {@code DestroyMaterialRsp}
@@ -111,7 +111,7 @@ public final class DestroyMaterialRspOuterClass {
case 0:
done = true;
break;
case 40: {
case 16: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
itemCountList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
@@ -119,7 +119,7 @@ public final class DestroyMaterialRspOuterClass {
itemCountList_.addInt(input.readUInt32());
break;
}
case 42: {
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
@@ -132,7 +132,7 @@ public final class DestroyMaterialRspOuterClass {
input.popLimit(limit);
break;
}
case 48: {
case 32: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
itemIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
@@ -140,7 +140,7 @@ public final class DestroyMaterialRspOuterClass {
itemIdList_.addInt(input.readUInt32());
break;
}
case 50: {
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
@@ -153,7 +153,7 @@ public final class DestroyMaterialRspOuterClass {
input.popLimit(limit);
break;
}
case 112: {
case 80: {
retcode_ = input.readInt32();
break;
@@ -196,10 +196,21 @@ public final class DestroyMaterialRspOuterClass {
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.class, emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.Builder.class);
}
public static final int ITEM_ID_LIST_FIELD_NUMBER = 6;
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 ITEM_ID_LIST_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.IntList itemIdList_;
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @return A list containing the itemIdList.
*/
@java.lang.Override
@@ -208,14 +219,14 @@ public final class DestroyMaterialRspOuterClass {
return itemIdList_;
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @return The count of itemIdList.
*/
public int getItemIdListCount() {
return itemIdList_.size();
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @param index The index of the element to return.
* @return The itemIdList at the given index.
*/
@@ -224,10 +235,10 @@ public final class DestroyMaterialRspOuterClass {
}
private int itemIdListMemoizedSerializedSize = -1;
public static final int ITEM_COUNT_LIST_FIELD_NUMBER = 5;
public static final int ITEM_COUNT_LIST_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.IntList itemCountList_;
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return A list containing the itemCountList.
*/
@java.lang.Override
@@ -236,14 +247,14 @@ public final class DestroyMaterialRspOuterClass {
return itemCountList_;
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return The count of itemCountList.
*/
public int getItemCountListCount() {
return itemCountList_.size();
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @param index The index of the element to return.
* @return The itemCountList at the given index.
*/
@@ -252,17 +263,6 @@ public final class DestroyMaterialRspOuterClass {
}
private int itemCountListMemoizedSerializedSize = -1;
public static final int RETCODE_FIELD_NUMBER = 14;
private int retcode_;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -279,21 +279,21 @@ public final class DestroyMaterialRspOuterClass {
throws java.io.IOException {
getSerializedSize();
if (getItemCountListList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(itemCountListMemoizedSerializedSize);
}
for (int i = 0; i < itemCountList_.size(); i++) {
output.writeUInt32NoTag(itemCountList_.getInt(i));
}
if (getItemIdListList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(itemIdListMemoizedSerializedSize);
}
for (int i = 0; i < itemIdList_.size(); i++) {
output.writeUInt32NoTag(itemIdList_.getInt(i));
}
if (retcode_ != 0) {
output.writeInt32(14, retcode_);
output.writeInt32(10, retcode_);
}
unknownFields.writeTo(output);
}
@@ -334,7 +334,7 @@ public final class DestroyMaterialRspOuterClass {
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, retcode_);
.computeInt32Size(10, retcode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -351,12 +351,12 @@ public final class DestroyMaterialRspOuterClass {
}
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp other = (emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp) obj;
if (getRetcode()
!= other.getRetcode()) return false;
if (!getItemIdListList()
.equals(other.getItemIdListList())) return false;
if (!getItemCountListList()
.equals(other.getItemCountListList())) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -368,6 +368,8 @@ public final class DestroyMaterialRspOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
if (getItemIdListCount() > 0) {
hash = (37 * hash) + ITEM_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getItemIdListList().hashCode();
@@ -376,8 +378,6 @@ public final class DestroyMaterialRspOuterClass {
hash = (37 * hash) + ITEM_COUNT_LIST_FIELD_NUMBER;
hash = (53 * hash) + getItemCountListList().hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -475,8 +475,8 @@ public final class DestroyMaterialRspOuterClass {
}
/**
* <pre>
* CmdId: 670
* Obf: IGGKOFLKOID
* CmdId: 7572
* Obf: KIEBPLBPCAE
* </pre>
*
* Protobuf type {@code DestroyMaterialRsp}
@@ -516,12 +516,12 @@ public final class DestroyMaterialRspOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
retcode_ = 0;
itemIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
itemCountList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
retcode_ = 0;
return this;
}
@@ -549,6 +549,7 @@ public final class DestroyMaterialRspOuterClass {
public emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp buildPartial() {
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp result = new emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp(this);
int from_bitField0_ = bitField0_;
result.retcode_ = retcode_;
if (((bitField0_ & 0x00000001) != 0)) {
itemIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
@@ -559,7 +560,6 @@ public final class DestroyMaterialRspOuterClass {
bitField0_ = (bitField0_ & ~0x00000002);
}
result.itemCountList_ = itemCountList_;
result.retcode_ = retcode_;
onBuilt();
return result;
}
@@ -608,6 +608,9 @@ public final class DestroyMaterialRspOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp other) {
if (other == emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.getDefaultInstance()) return this;
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (!other.itemIdList_.isEmpty()) {
if (itemIdList_.isEmpty()) {
itemIdList_ = other.itemIdList_;
@@ -628,9 +631,6 @@ public final class DestroyMaterialRspOuterClass {
}
onChanged();
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -661,6 +661,37 @@ public final class DestroyMaterialRspOuterClass {
}
private int bitField0_;
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 com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList();
private void ensureItemIdListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
@@ -669,7 +700,7 @@ public final class DestroyMaterialRspOuterClass {
}
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @return A list containing the itemIdList.
*/
public java.util.List<java.lang.Integer>
@@ -678,14 +709,14 @@ public final class DestroyMaterialRspOuterClass {
java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_;
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @return The count of itemIdList.
*/
public int getItemIdListCount() {
return itemIdList_.size();
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @param index The index of the element to return.
* @return The itemIdList at the given index.
*/
@@ -693,7 +724,7 @@ public final class DestroyMaterialRspOuterClass {
return itemIdList_.getInt(index);
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @param index The index to set the value at.
* @param value The itemIdList to set.
* @return This builder for chaining.
@@ -706,7 +737,7 @@ public final class DestroyMaterialRspOuterClass {
return this;
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @param value The itemIdList to add.
* @return This builder for chaining.
*/
@@ -717,7 +748,7 @@ public final class DestroyMaterialRspOuterClass {
return this;
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @param values The itemIdList to add.
* @return This builder for chaining.
*/
@@ -730,7 +761,7 @@ public final class DestroyMaterialRspOuterClass {
return this;
}
/**
* <code>repeated uint32 item_id_list = 6;</code>
* <code>repeated uint32 item_id_list = 4;</code>
* @return This builder for chaining.
*/
public Builder clearItemIdList() {
@@ -748,7 +779,7 @@ public final class DestroyMaterialRspOuterClass {
}
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return A list containing the itemCountList.
*/
public java.util.List<java.lang.Integer>
@@ -757,14 +788,14 @@ public final class DestroyMaterialRspOuterClass {
java.util.Collections.unmodifiableList(itemCountList_) : itemCountList_;
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return The count of itemCountList.
*/
public int getItemCountListCount() {
return itemCountList_.size();
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @param index The index of the element to return.
* @return The itemCountList at the given index.
*/
@@ -772,7 +803,7 @@ public final class DestroyMaterialRspOuterClass {
return itemCountList_.getInt(index);
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @param index The index to set the value at.
* @param value The itemCountList to set.
* @return This builder for chaining.
@@ -785,7 +816,7 @@ public final class DestroyMaterialRspOuterClass {
return this;
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @param value The itemCountList to add.
* @return This builder for chaining.
*/
@@ -796,7 +827,7 @@ public final class DestroyMaterialRspOuterClass {
return this;
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @param values The itemCountList to add.
* @return This builder for chaining.
*/
@@ -809,7 +840,7 @@ public final class DestroyMaterialRspOuterClass {
return this;
}
/**
* <code>repeated uint32 item_count_list = 5;</code>
* <code>repeated uint32 item_count_list = 2;</code>
* @return This builder for chaining.
*/
public Builder clearItemCountList() {
@@ -818,37 +849,6 @@ public final class DestroyMaterialRspOuterClass {
onChanged();
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 14;</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 = 14;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -917,8 +917,8 @@ public final class DestroyMaterialRspOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\030DestroyMaterialRsp.proto\"T\n\022DestroyMat" +
"erialRsp\022\024\n\014item_id_list\030\006 \003(\r\022\027\n\017item_c" +
"ount_list\030\005 \003(\r\022\017\n\007retcode\030\016 \001(\005B\033\n\031emu." +
"erialRsp\022\017\n\007retcode\030\n \001(\005\022\024\n\014item_id_lis" +
"t\030\004 \003(\r\022\027\n\017item_count_list\030\002 \003(\rB\033\n\031emu." +
"grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -930,7 +930,7 @@ public final class DestroyMaterialRspOuterClass {
internal_static_DestroyMaterialRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_DestroyMaterialRsp_descriptor,
new java.lang.String[] { "ItemIdList", "ItemCountList", "Retcode", });
new java.lang.String[] { "Retcode", "ItemIdList", "ItemCountList", });
}
// @@protoc_insertion_point(outer_class_scope)