Fix cooking packet definitions

thanks nick!
This commit is contained in:
KingRainbow44 2023-05-17 23:44:53 -04:00
commit 655a634ba3
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 142 additions and 264 deletions

View File

@ -18,17 +18,11 @@ public final class PlayerCookReqOuterClass {
com.google.protobuf.MessageOrBuilder { com.google.protobuf.MessageOrBuilder {
/** /**
* <code>uint32 cook_count = 13;</code>
* *
* * @return The cookCount.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @return The qteQuality.
*/ */
int getQteQuality(); int getCookCount();
/** /**
* <code>uint32 assist_avatar = 1;</code> * <code>uint32 assist_avatar = 1;</code>
@ -38,17 +32,11 @@ public final class PlayerCookReqOuterClass {
int getAssistAvatar(); int getAssistAvatar();
/** /**
* <code>uint32 qte_quality = 6;</code>
* *
* * @return The qteQuality.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @return The cookCount.
*/ */
int getCookCount(); int getQteQuality();
/** /**
* <code>uint32 recipe_id = 7;</code> * <code>uint32 recipe_id = 7;</code>
@ -115,7 +103,7 @@ public final class PlayerCookReqOuterClass {
} }
case 48: case 48:
{ {
cookCount_ = input.readUInt32(); qteQuality_ = input.readUInt32();
break; break;
} }
case 56: case 56:
@ -125,7 +113,7 @@ public final class PlayerCookReqOuterClass {
} }
case 104: case 104:
{ {
qteQuality_ = input.readUInt32(); cookCount_ = input.readUInt32();
break; break;
} }
default: default:
@ -162,22 +150,16 @@ public final class PlayerCookReqOuterClass {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class); emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class);
} }
public static final int QTE_QUALITY_FIELD_NUMBER = 13; public static final int COOK_COUNT_FIELD_NUMBER = 13;
private int qteQuality_; private int cookCount_;
/** /**
* <code>uint32 cook_count = 13;</code>
* *
* * @return The cookCount.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @return The qteQuality.
*/ */
@java.lang.Override @java.lang.Override
public int getQteQuality() { public int getCookCount() {
return qteQuality_; return cookCount_;
} }
public static final int ASSIST_AVATAR_FIELD_NUMBER = 1; public static final int ASSIST_AVATAR_FIELD_NUMBER = 1;
@ -192,22 +174,16 @@ public final class PlayerCookReqOuterClass {
return assistAvatar_; return assistAvatar_;
} }
public static final int COOK_COUNT_FIELD_NUMBER = 6; public static final int QTE_QUALITY_FIELD_NUMBER = 6;
private int cookCount_; private int qteQuality_;
/** /**
* <code>uint32 qte_quality = 6;</code>
* *
* * @return The qteQuality.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @return The cookCount.
*/ */
@java.lang.Override @java.lang.Override
public int getCookCount() { public int getQteQuality() {
return cookCount_; return qteQuality_;
} }
public static final int RECIPE_ID_FIELD_NUMBER = 7; public static final int RECIPE_ID_FIELD_NUMBER = 7;
@ -239,14 +215,14 @@ public final class PlayerCookReqOuterClass {
if (assistAvatar_ != 0) { if (assistAvatar_ != 0) {
output.writeUInt32(1, assistAvatar_); output.writeUInt32(1, assistAvatar_);
} }
if (cookCount_ != 0) { if (qteQuality_ != 0) {
output.writeUInt32(6, cookCount_); output.writeUInt32(6, qteQuality_);
} }
if (recipeId_ != 0) { if (recipeId_ != 0) {
output.writeUInt32(7, recipeId_); output.writeUInt32(7, recipeId_);
} }
if (qteQuality_ != 0) { if (cookCount_ != 0) {
output.writeUInt32(13, qteQuality_); output.writeUInt32(13, cookCount_);
} }
unknownFields.writeTo(output); unknownFields.writeTo(output);
} }
@ -260,14 +236,14 @@ public final class PlayerCookReqOuterClass {
if (assistAvatar_ != 0) { if (assistAvatar_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, assistAvatar_); size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, assistAvatar_);
} }
if (cookCount_ != 0) { if (qteQuality_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, cookCount_); size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, qteQuality_);
} }
if (recipeId_ != 0) { if (recipeId_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(7, recipeId_); size += com.google.protobuf.CodedOutputStream.computeUInt32Size(7, recipeId_);
} }
if (qteQuality_ != 0) { if (cookCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, qteQuality_); size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, cookCount_);
} }
size += unknownFields.getSerializedSize(); size += unknownFields.getSerializedSize();
memoizedSize = size; memoizedSize = size;
@ -285,9 +261,9 @@ public final class PlayerCookReqOuterClass {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other = emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other =
(emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) obj; (emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) obj;
if (getQteQuality() != other.getQteQuality()) return false;
if (getAssistAvatar() != other.getAssistAvatar()) return false;
if (getCookCount() != other.getCookCount()) return false; if (getCookCount() != other.getCookCount()) return false;
if (getAssistAvatar() != other.getAssistAvatar()) return false;
if (getQteQuality() != other.getQteQuality()) return false;
if (getRecipeId() != other.getRecipeId()) return false; if (getRecipeId() != other.getRecipeId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false; if (!unknownFields.equals(other.unknownFields)) return false;
return true; return true;
@ -300,12 +276,12 @@ public final class PlayerCookReqOuterClass {
} }
int hash = 41; int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode(); hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER;
hash = (53 * hash) + getAssistAvatar();
hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER; hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCookCount(); hash = (53 * hash) + getCookCount();
hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER;
hash = (53 * hash) + getAssistAvatar();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER; hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecipeId(); hash = (53 * hash) + getRecipeId();
hash = (29 * hash) + unknownFields.hashCode(); hash = (29 * hash) + unknownFields.hashCode();
@ -459,11 +435,11 @@ public final class PlayerCookReqOuterClass {
@java.lang.Override @java.lang.Override
public Builder clear() { public Builder clear() {
super.clear(); super.clear();
qteQuality_ = 0; cookCount_ = 0;
assistAvatar_ = 0; assistAvatar_ = 0;
cookCount_ = 0; qteQuality_ = 0;
recipeId_ = 0; recipeId_ = 0;
@ -495,9 +471,9 @@ public final class PlayerCookReqOuterClass {
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq buildPartial() { public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq buildPartial() {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result = emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result =
new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(this); new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(this);
result.qteQuality_ = qteQuality_;
result.assistAvatar_ = assistAvatar_;
result.cookCount_ = cookCount_; result.cookCount_ = cookCount_;
result.assistAvatar_ = assistAvatar_;
result.qteQuality_ = qteQuality_;
result.recipeId_ = recipeId_; result.recipeId_ = recipeId_;
onBuilt(); onBuilt();
return result; return result;
@ -553,14 +529,14 @@ public final class PlayerCookReqOuterClass {
if (other if (other
== emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance()) == emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance())
return this; return this;
if (other.getQteQuality() != 0) { if (other.getCookCount() != 0) {
setQteQuality(other.getQteQuality()); setCookCount(other.getCookCount());
} }
if (other.getAssistAvatar() != 0) { if (other.getAssistAvatar() != 0) {
setAssistAvatar(other.getAssistAvatar()); setAssistAvatar(other.getAssistAvatar());
} }
if (other.getCookCount() != 0) { if (other.getQteQuality() != 0) {
setCookCount(other.getCookCount()); setQteQuality(other.getQteQuality());
} }
if (other.getRecipeId() != 0) { if (other.getRecipeId() != 0) {
setRecipeId(other.getRecipeId()); setRecipeId(other.getRecipeId());
@ -596,54 +572,36 @@ public final class PlayerCookReqOuterClass {
return this; return this;
} }
private int qteQuality_; private int cookCount_;
/** /**
* <code>uint32 cook_count = 13;</code>
* *
* * @return The cookCount.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @return The qteQuality.
*/ */
@java.lang.Override @java.lang.Override
public int getQteQuality() { public int getCookCount() {
return qteQuality_; return cookCount_;
} }
/** /**
* <code>uint32 cook_count = 13;</code>
* *
* * @param value The cookCount to set.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @param value The qteQuality to set.
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder setQteQuality(int value) { public Builder setCookCount(int value) {
qteQuality_ = value; cookCount_ = value;
onChanged(); onChanged();
return this; return this;
} }
/** /**
* * <code>uint32 cook_count = 13;</code>
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
* *
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder clearQteQuality() { public Builder clearCookCount() {
qteQuality_ = 0; cookCount_ = 0;
onChanged(); onChanged();
return this; return this;
} }
@ -682,54 +640,36 @@ public final class PlayerCookReqOuterClass {
return this; return this;
} }
private int cookCount_; private int qteQuality_;
/** /**
* <code>uint32 qte_quality = 6;</code>
* *
* * @return The qteQuality.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @return The cookCount.
*/ */
@java.lang.Override @java.lang.Override
public int getCookCount() { public int getQteQuality() {
return cookCount_; return qteQuality_;
} }
/** /**
* <code>uint32 qte_quality = 6;</code>
* *
* * @param value The qteQuality to set.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @param value The cookCount to set.
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder setCookCount(int value) { public Builder setQteQuality(int value) {
cookCount_ = value; qteQuality_ = value;
onChanged(); onChanged();
return this; return this;
} }
/** /**
* * <code>uint32 qte_quality = 6;</code>
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
* *
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder clearCookCount() { public Builder clearQteQuality() {
cookCount_ = 0; qteQuality_ = 0;
onChanged(); onChanged();
return this; return this;
} }
@ -836,11 +776,10 @@ public final class PlayerCookReqOuterClass {
static { static {
java.lang.String[] descriptorData = { java.lang.String[] descriptorData = {
"\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\023" "\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\022"
+ "\n\013qte_quality\030\r \001(\r\022\025\n\rassist_avatar\030\001 \001" + "\n\ncook_count\030\r \001(\r\022\025\n\rassist_avatar\030\001 \001("
+ "(\r\022\022\n\ncook_count\030\006 \001(\r\022\021\n\trecipe_id\030\007 \001(" + "\r\022\023\n\013qte_quality\030\006 \001(\r\022\021\n\trecipe_id\030\007 \001("
+ "\rB!\n\031emu.grasscutter.net.protoZ\004/genb\006pr" + "\rB\033\n\031emu.grasscutter.net.protob\006proto3"
+ "oto3"
}; };
descriptor = descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@ -850,7 +789,7 @@ public final class PlayerCookReqOuterClass {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerCookReq_descriptor, internal_static_PlayerCookReq_descriptor,
new java.lang.String[] { new java.lang.String[] {
"QteQuality", "AssistAvatar", "CookCount", "RecipeId", "CookCount", "AssistAvatar", "QteQuality", "RecipeId",
}); });
} }

View File

@ -18,17 +18,11 @@ public final class PlayerCookRspOuterClass {
com.google.protobuf.MessageOrBuilder { com.google.protobuf.MessageOrBuilder {
/** /**
* <code>uint32 cook_count = 2;</code>
* *
* * @return The cookCount.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 2;</code>
*
* @return The qteQuality.
*/ */
int getQteQuality(); int getCookCount();
/** /**
* <code>int32 retcode = 12;</code> * <code>int32 retcode = 12;</code>
@ -38,17 +32,11 @@ public final class PlayerCookRspOuterClass {
int getRetcode(); int getRetcode();
/** /**
* <code>uint32 qte_quality = 14;</code>
* *
* * @return The qteQuality.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 14;</code>
*
* @return The cookCount.
*/ */
int getCookCount(); int getQteQuality();
/** <code>repeated .ItemParam item_list = 8;</code> */ /** <code>repeated .ItemParam item_list = 8;</code> */
java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemListList(); java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemListList();
@ -149,7 +137,7 @@ public final class PlayerCookRspOuterClass {
break; break;
case 16: case 16:
{ {
qteQuality_ = input.readUInt32(); cookCount_ = input.readUInt32();
break; break;
} }
case 66: case 66:
@ -191,7 +179,7 @@ public final class PlayerCookRspOuterClass {
} }
case 112: case 112:
{ {
cookCount_ = input.readUInt32(); qteQuality_ = input.readUInt32();
break; break;
} }
case 122: case 122:
@ -248,22 +236,16 @@ public final class PlayerCookRspOuterClass {
emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.Builder.class); emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.Builder.class);
} }
public static final int QTE_QUALITY_FIELD_NUMBER = 2; public static final int COOK_COUNT_FIELD_NUMBER = 2;
private int qteQuality_; private int cookCount_;
/** /**
* <code>uint32 cook_count = 2;</code>
* *
* * @return The cookCount.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 2;</code>
*
* @return The qteQuality.
*/ */
@java.lang.Override @java.lang.Override
public int getQteQuality() { public int getCookCount() {
return qteQuality_; return cookCount_;
} }
public static final int RETCODE_FIELD_NUMBER = 12; public static final int RETCODE_FIELD_NUMBER = 12;
@ -278,22 +260,16 @@ public final class PlayerCookRspOuterClass {
return retcode_; return retcode_;
} }
public static final int COOK_COUNT_FIELD_NUMBER = 14; public static final int QTE_QUALITY_FIELD_NUMBER = 14;
private int cookCount_; private int qteQuality_;
/** /**
* <code>uint32 qte_quality = 14;</code>
* *
* * @return The qteQuality.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 14;</code>
*
* @return The cookCount.
*/ */
@java.lang.Override @java.lang.Override
public int getCookCount() { public int getQteQuality() {
return cookCount_; return qteQuality_;
} }
public static final int ITEM_LIST_FIELD_NUMBER = 8; public static final int ITEM_LIST_FIELD_NUMBER = 8;
@ -403,8 +379,8 @@ public final class PlayerCookRspOuterClass {
@java.lang.Override @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (qteQuality_ != 0) { if (cookCount_ != 0) {
output.writeUInt32(2, qteQuality_); output.writeUInt32(2, cookCount_);
} }
for (int i = 0; i < itemList_.size(); i++) { for (int i = 0; i < itemList_.size(); i++) {
output.writeMessage(8, itemList_.get(i)); output.writeMessage(8, itemList_.get(i));
@ -415,8 +391,8 @@ public final class PlayerCookRspOuterClass {
if (retcode_ != 0) { if (retcode_ != 0) {
output.writeInt32(12, retcode_); output.writeInt32(12, retcode_);
} }
if (cookCount_ != 0) { if (qteQuality_ != 0) {
output.writeUInt32(14, cookCount_); output.writeUInt32(14, qteQuality_);
} }
for (int i = 0; i < extralItemList_.size(); i++) { for (int i = 0; i < extralItemList_.size(); i++) {
output.writeMessage(15, extralItemList_.get(i)); output.writeMessage(15, extralItemList_.get(i));
@ -430,8 +406,8 @@ public final class PlayerCookRspOuterClass {
if (size != -1) return size; if (size != -1) return size;
size = 0; size = 0;
if (qteQuality_ != 0) { if (cookCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, qteQuality_); size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, cookCount_);
} }
for (int i = 0; i < itemList_.size(); i++) { for (int i = 0; i < itemList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, itemList_.get(i)); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, itemList_.get(i));
@ -442,8 +418,8 @@ public final class PlayerCookRspOuterClass {
if (retcode_ != 0) { if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, retcode_); size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, retcode_);
} }
if (cookCount_ != 0) { if (qteQuality_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(14, cookCount_); size += com.google.protobuf.CodedOutputStream.computeUInt32Size(14, qteQuality_);
} }
for (int i = 0; i < extralItemList_.size(); i++) { for (int i = 0; i < extralItemList_.size(); i++) {
size += size +=
@ -465,9 +441,9 @@ public final class PlayerCookRspOuterClass {
emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp other = emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp other =
(emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp) obj; (emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp) obj;
if (getQteQuality() != other.getQteQuality()) return false;
if (getRetcode() != other.getRetcode()) return false;
if (getCookCount() != other.getCookCount()) return false; if (getCookCount() != other.getCookCount()) return false;
if (getRetcode() != other.getRetcode()) return false;
if (getQteQuality() != other.getQteQuality()) return false;
if (!getItemListList().equals(other.getItemListList())) return false; if (!getItemListList().equals(other.getItemListList())) return false;
if (!getExtralItemListList().equals(other.getExtralItemListList())) return false; if (!getExtralItemListList().equals(other.getExtralItemListList())) return false;
if (hasRecipeData() != other.hasRecipeData()) return false; if (hasRecipeData() != other.hasRecipeData()) return false;
@ -485,12 +461,12 @@ public final class PlayerCookRspOuterClass {
} }
int hash = 41; int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode(); hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER; hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCookCount(); hash = (53 * hash) + getCookCount();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
if (getItemListCount() > 0) { if (getItemListCount() > 0) {
hash = (37 * hash) + ITEM_LIST_FIELD_NUMBER; hash = (37 * hash) + ITEM_LIST_FIELD_NUMBER;
hash = (53 * hash) + getItemListList().hashCode(); hash = (53 * hash) + getItemListList().hashCode();
@ -657,11 +633,11 @@ public final class PlayerCookRspOuterClass {
@java.lang.Override @java.lang.Override
public Builder clear() { public Builder clear() {
super.clear(); super.clear();
qteQuality_ = 0; cookCount_ = 0;
retcode_ = 0; retcode_ = 0;
cookCount_ = 0; qteQuality_ = 0;
if (itemListBuilder_ == null) { if (itemListBuilder_ == null) {
itemList_ = java.util.Collections.emptyList(); itemList_ = java.util.Collections.emptyList();
@ -710,9 +686,9 @@ public final class PlayerCookRspOuterClass {
emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp result = emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp result =
new emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp(this); new emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp(this);
int from_bitField0_ = bitField0_; int from_bitField0_ = bitField0_;
result.qteQuality_ = qteQuality_;
result.retcode_ = retcode_;
result.cookCount_ = cookCount_; result.cookCount_ = cookCount_;
result.retcode_ = retcode_;
result.qteQuality_ = qteQuality_;
if (itemListBuilder_ == null) { if (itemListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) { if (((bitField0_ & 0x00000001) != 0)) {
itemList_ = java.util.Collections.unmodifiableList(itemList_); itemList_ = java.util.Collections.unmodifiableList(itemList_);
@ -790,14 +766,14 @@ public final class PlayerCookRspOuterClass {
if (other if (other
== emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.getDefaultInstance()) == emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.getDefaultInstance())
return this; return this;
if (other.getQteQuality() != 0) { if (other.getCookCount() != 0) {
setQteQuality(other.getQteQuality()); setCookCount(other.getCookCount());
} }
if (other.getRetcode() != 0) { if (other.getRetcode() != 0) {
setRetcode(other.getRetcode()); setRetcode(other.getRetcode());
} }
if (other.getCookCount() != 0) { if (other.getQteQuality() != 0) {
setCookCount(other.getCookCount()); setQteQuality(other.getQteQuality());
} }
if (itemListBuilder_ == null) { if (itemListBuilder_ == null) {
if (!other.itemList_.isEmpty()) { if (!other.itemList_.isEmpty()) {
@ -889,54 +865,36 @@ public final class PlayerCookRspOuterClass {
private int bitField0_; private int bitField0_;
private int qteQuality_; private int cookCount_;
/** /**
* <code>uint32 cook_count = 2;</code>
* *
* * @return The cookCount.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 2;</code>
*
* @return The qteQuality.
*/ */
@java.lang.Override @java.lang.Override
public int getQteQuality() { public int getCookCount() {
return qteQuality_; return cookCount_;
} }
/** /**
* <code>uint32 cook_count = 2;</code>
* *
* * @param value The cookCount to set.
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 2;</code>
*
* @param value The qteQuality to set.
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder setQteQuality(int value) { public Builder setCookCount(int value) {
qteQuality_ = value; cookCount_ = value;
onChanged(); onChanged();
return this; return this;
} }
/** /**
* * <code>uint32 cook_count = 2;</code>
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 2;</code>
* *
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder clearQteQuality() { public Builder clearCookCount() {
qteQuality_ = 0; cookCount_ = 0;
onChanged(); onChanged();
return this; return this;
} }
@ -975,54 +933,36 @@ public final class PlayerCookRspOuterClass {
return this; return this;
} }
private int cookCount_; private int qteQuality_;
/** /**
* <code>uint32 qte_quality = 14;</code>
* *
* * @return The qteQuality.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 14;</code>
*
* @return The cookCount.
*/ */
@java.lang.Override @java.lang.Override
public int getCookCount() { public int getQteQuality() {
return cookCount_; return qteQuality_;
} }
/** /**
* <code>uint32 qte_quality = 14;</code>
* *
* * @param value The qteQuality to set.
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 14;</code>
*
* @param value The cookCount to set.
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder setCookCount(int value) { public Builder setQteQuality(int value) {
cookCount_ = value; qteQuality_ = value;
onChanged(); onChanged();
return this; return this;
} }
/** /**
* * <code>uint32 qte_quality = 14;</code>
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 14;</code>
* *
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder clearCookCount() { public Builder clearQteQuality() {
cookCount_ = 0; qteQuality_ = 0;
onChanged(); onChanged();
return this; return this;
} }
@ -1669,13 +1609,12 @@ public final class PlayerCookRspOuterClass {
static { static {
java.lang.String[] descriptorData = { java.lang.String[] descriptorData = {
"\n\023PlayerCookRsp.proto\032\024CookRecipeData.pr" "\n\023PlayerCookRsp.proto\032\024CookRecipeData.pr"
+ "oto\032\017ItemParam.proto\"\264\001\n\rPlayerCookRsp\022\023" + "oto\032\017ItemParam.proto\"\264\001\n\rPlayerCookRsp\022\022"
+ "\n\013qte_quality\030\002 \001(\r\022\017\n\007retcode\030\014 \001(\005\022\022\n\n" + "\n\ncook_count\030\002 \001(\r\022\017\n\007retcode\030\014 \001(\005\022\023\n\013q"
+ "cook_count\030\016 \001(\r\022\035\n\titem_list\030\010 \003(\0132\n.It" + "te_quality\030\016 \001(\r\022\035\n\titem_list\030\010 \003(\0132\n.It"
+ "emParam\022$\n\020extral_item_list\030\017 \003(\0132\n.Item" + "emParam\022$\n\020extral_item_list\030\017 \003(\0132\n.Item"
+ "Param\022$\n\013recipe_data\030\t \001(\0132\017.CookRecipeD" + "Param\022$\n\013recipe_data\030\t \001(\0132\017.CookRecipeD"
+ "ataB!\n\031emu.grasscutter.net.protoZ\004/genb\006" + "ataB\033\n\031emu.grasscutter.net.protob\006proto3"
+ "proto3"
}; };
descriptor = descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@ -1689,7 +1628,7 @@ public final class PlayerCookRspOuterClass {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerCookRsp_descriptor, internal_static_PlayerCookRsp_descriptor,
new java.lang.String[] { new java.lang.String[] {
"QteQuality", "Retcode", "CookCount", "ItemList", "ExtralItemList", "RecipeData", "CookCount", "Retcode", "QteQuality", "ItemList", "ExtralItemList", "RecipeData",
}); });
emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(); emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor();
emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();