Update gc to 3.3 (#1981)

* replace the deprecated api

* update proto

* delete music game

* fixed codes

* fix costume switch

* fix mail bug

* Bump version number.

* Re-add max boss chest number

Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com>
This commit is contained in:
Simplxs
2022-12-24 05:12:02 +08:00
committed by GitHub
Unverified
parent 8b83dbf58c
commit 92fbaa8670
1142 changed files with 474411 additions and 169883 deletions
@@ -19,57 +19,61 @@ public final class GadgetInteractReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 gadget_id = 8;</code>
* <code>uint32 gadget_id = 1;</code>
* @return The gadgetId.
*/
int getGadgetId();
/**
* <code>bool is_use_condense_resin = 15;</code>
* @return The isUseCondenseResin.
*/
boolean getIsUseCondenseResin();
/**
* <code>.InterOpType op_type = 5;</code>
* @return The enum numeric value on the wire for opType.
*/
int getOpTypeValue();
/**
* <code>.InterOpType op_type = 5;</code>
* @return The opType.
*/
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType();
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return The enum numeric value on the wire for resinCostType.
*/
int getResinCostTypeValue();
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return The resinCostType.
*/
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType();
/**
* <code>uint32 Unk2700_DCPBGMKCHGJ = 2;</code>
* @return The unk2700DCPBGMKCHGJ.
*/
int getUnk2700DCPBGMKCHGJ();
/**
* <code>uint32 gadget_entity_id = 4;</code>
* <code>uint32 gadget_entity_id = 8;</code>
* @return The gadgetEntityId.
*/
int getGadgetEntityId();
/**
* <code>.InterOpType op_type = 2;</code>
* @return The enum numeric value on the wire for opType.
*/
int getOpTypeValue();
/**
* <code>.InterOpType op_type = 2;</code>
* @return The opType.
*/
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType();
/**
* <code>uint32 ui_interact_id = 11;</code>
* @return The uiInteractId.
*/
int getUiInteractId();
/**
* <code>bool is_use_condense_resin = 6;</code>
* @return The isUseCondenseResin.
*/
boolean getIsUseCondenseResin();
}
/**
* <pre>
* CmdId: 872
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 879;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code GadgetInteractReq}
@@ -84,8 +88,8 @@ public final class GadgetInteractReqOuterClass {
super(builder);
}
private GadgetInteractReq() {
opType_ = 0;
resinCostType_ = 0;
opType_ = 0;
}
@java.lang.Override
@@ -119,37 +123,37 @@ public final class GadgetInteractReqOuterClass {
done = true;
break;
case 8: {
int rawValue = input.readEnum();
resinCostType_ = rawValue;
gadgetId_ = input.readUInt32();
break;
}
case 16: {
unk2700DCPBGMKCHGJ_ = input.readUInt32();
break;
}
case 32: {
gadgetEntityId_ = input.readUInt32();
break;
}
case 40: {
int rawValue = input.readEnum();
opType_ = rawValue;
break;
}
case 64: {
gadgetId_ = input.readUInt32();
break;
}
case 120: {
case 48: {
isUseCondenseResin_ = input.readBool();
break;
}
case 64: {
gadgetEntityId_ = input.readUInt32();
break;
}
case 88: {
uiInteractId_ = input.readUInt32();
break;
}
case 104: {
int rawValue = input.readEnum();
resinCostType_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -182,10 +186,10 @@ public final class GadgetInteractReqOuterClass {
emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.class, emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.Builder.class);
}
public static final int GADGET_ID_FIELD_NUMBER = 8;
public static final int GADGET_ID_FIELD_NUMBER = 1;
private int gadgetId_;
/**
* <code>uint32 gadget_id = 8;</code>
* <code>uint32 gadget_id = 1;</code>
* @return The gadgetId.
*/
@java.lang.Override
@@ -193,47 +197,17 @@ public final class GadgetInteractReqOuterClass {
return gadgetId_;
}
public static final int IS_USE_CONDENSE_RESIN_FIELD_NUMBER = 15;
private boolean isUseCondenseResin_;
/**
* <code>bool is_use_condense_resin = 15;</code>
* @return The isUseCondenseResin.
*/
@java.lang.Override
public boolean getIsUseCondenseResin() {
return isUseCondenseResin_;
}
public static final int OP_TYPE_FIELD_NUMBER = 5;
private int opType_;
/**
* <code>.InterOpType op_type = 5;</code>
* @return The enum numeric value on the wire for opType.
*/
@java.lang.Override public int getOpTypeValue() {
return opType_;
}
/**
* <code>.InterOpType op_type = 5;</code>
* @return The opType.
*/
@java.lang.Override public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_);
return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result;
}
public static final int RESIN_COST_TYPE_FIELD_NUMBER = 1;
public static final int RESIN_COST_TYPE_FIELD_NUMBER = 13;
private int resinCostType_;
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return The enum numeric value on the wire for resinCostType.
*/
@java.lang.Override public int getResinCostTypeValue() {
return resinCostType_;
}
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return The resinCostType.
*/
@java.lang.Override public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() {
@@ -242,21 +216,10 @@ public final class GadgetInteractReqOuterClass {
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
}
public static final int UNK2700_DCPBGMKCHGJ_FIELD_NUMBER = 2;
private int unk2700DCPBGMKCHGJ_;
/**
* <code>uint32 Unk2700_DCPBGMKCHGJ = 2;</code>
* @return The unk2700DCPBGMKCHGJ.
*/
@java.lang.Override
public int getUnk2700DCPBGMKCHGJ() {
return unk2700DCPBGMKCHGJ_;
}
public static final int GADGET_ENTITY_ID_FIELD_NUMBER = 4;
public static final int GADGET_ENTITY_ID_FIELD_NUMBER = 8;
private int gadgetEntityId_;
/**
* <code>uint32 gadget_entity_id = 4;</code>
* <code>uint32 gadget_entity_id = 8;</code>
* @return The gadgetEntityId.
*/
@java.lang.Override
@@ -264,6 +227,47 @@ public final class GadgetInteractReqOuterClass {
return gadgetEntityId_;
}
public static final int OP_TYPE_FIELD_NUMBER = 2;
private int opType_;
/**
* <code>.InterOpType op_type = 2;</code>
* @return The enum numeric value on the wire for opType.
*/
@java.lang.Override public int getOpTypeValue() {
return opType_;
}
/**
* <code>.InterOpType op_type = 2;</code>
* @return The opType.
*/
@java.lang.Override public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_);
return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result;
}
public static final int UI_INTERACT_ID_FIELD_NUMBER = 11;
private int uiInteractId_;
/**
* <code>uint32 ui_interact_id = 11;</code>
* @return The uiInteractId.
*/
@java.lang.Override
public int getUiInteractId() {
return uiInteractId_;
}
public static final int IS_USE_CONDENSE_RESIN_FIELD_NUMBER = 6;
private boolean isUseCondenseResin_;
/**
* <code>bool is_use_condense_resin = 6;</code>
* @return The isUseCondenseResin.
*/
@java.lang.Override
public boolean getIsUseCondenseResin() {
return isUseCondenseResin_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -278,23 +282,23 @@ public final class GadgetInteractReqOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
output.writeEnum(1, resinCostType_);
}
if (unk2700DCPBGMKCHGJ_ != 0) {
output.writeUInt32(2, unk2700DCPBGMKCHGJ_);
}
if (gadgetEntityId_ != 0) {
output.writeUInt32(4, gadgetEntityId_);
if (gadgetId_ != 0) {
output.writeUInt32(1, gadgetId_);
}
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
output.writeEnum(5, opType_);
}
if (gadgetId_ != 0) {
output.writeUInt32(8, gadgetId_);
output.writeEnum(2, opType_);
}
if (isUseCondenseResin_ != false) {
output.writeBool(15, isUseCondenseResin_);
output.writeBool(6, isUseCondenseResin_);
}
if (gadgetEntityId_ != 0) {
output.writeUInt32(8, gadgetEntityId_);
}
if (uiInteractId_ != 0) {
output.writeUInt32(11, uiInteractId_);
}
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
output.writeEnum(13, resinCostType_);
}
unknownFields.writeTo(output);
}
@@ -305,29 +309,29 @@ public final class GadgetInteractReqOuterClass {
if (size != -1) return size;
size = 0;
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
if (gadgetId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, resinCostType_);
}
if (unk2700DCPBGMKCHGJ_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, unk2700DCPBGMKCHGJ_);
}
if (gadgetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, gadgetEntityId_);
.computeUInt32Size(1, gadgetId_);
}
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, opType_);
}
if (gadgetId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, gadgetId_);
.computeEnumSize(2, opType_);
}
if (isUseCondenseResin_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isUseCondenseResin_);
.computeBoolSize(6, isUseCondenseResin_);
}
if (gadgetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, gadgetEntityId_);
}
if (uiInteractId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, uiInteractId_);
}
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, resinCostType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -346,14 +350,14 @@ public final class GadgetInteractReqOuterClass {
if (getGadgetId()
!= other.getGadgetId()) return false;
if (getIsUseCondenseResin()
!= other.getIsUseCondenseResin()) return false;
if (opType_ != other.opType_) return false;
if (resinCostType_ != other.resinCostType_) return false;
if (getUnk2700DCPBGMKCHGJ()
!= other.getUnk2700DCPBGMKCHGJ()) return false;
if (getGadgetEntityId()
!= other.getGadgetEntityId()) return false;
if (opType_ != other.opType_) return false;
if (getUiInteractId()
!= other.getUiInteractId()) return false;
if (getIsUseCondenseResin()
!= other.getIsUseCondenseResin()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -367,17 +371,17 @@ public final class GadgetInteractReqOuterClass {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
hash = (53 * hash) + getGadgetId();
hash = (37 * hash) + RESIN_COST_TYPE_FIELD_NUMBER;
hash = (53 * hash) + resinCostType_;
hash = (37 * hash) + GADGET_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getGadgetEntityId();
hash = (37 * hash) + OP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + opType_;
hash = (37 * hash) + UI_INTERACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getUiInteractId();
hash = (37 * hash) + IS_USE_CONDENSE_RESIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsUseCondenseResin());
hash = (37 * hash) + OP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + opType_;
hash = (37 * hash) + RESIN_COST_TYPE_FIELD_NUMBER;
hash = (53 * hash) + resinCostType_;
hash = (37 * hash) + UNK2700_DCPBGMKCHGJ_FIELD_NUMBER;
hash = (53 * hash) + getUnk2700DCPBGMKCHGJ();
hash = (37 * hash) + GADGET_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getGadgetEntityId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -475,10 +479,14 @@ public final class GadgetInteractReqOuterClass {
}
/**
* <pre>
* CmdId: 872
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 879;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code GadgetInteractReq}
@@ -520,15 +528,15 @@ public final class GadgetInteractReqOuterClass {
super.clear();
gadgetId_ = 0;
isUseCondenseResin_ = false;
resinCostType_ = 0;
gadgetEntityId_ = 0;
opType_ = 0;
resinCostType_ = 0;
uiInteractId_ = 0;
unk2700DCPBGMKCHGJ_ = 0;
gadgetEntityId_ = 0;
isUseCondenseResin_ = false;
return this;
}
@@ -557,11 +565,11 @@ public final class GadgetInteractReqOuterClass {
public emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq buildPartial() {
emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq result = new emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq(this);
result.gadgetId_ = gadgetId_;
result.isUseCondenseResin_ = isUseCondenseResin_;
result.opType_ = opType_;
result.resinCostType_ = resinCostType_;
result.unk2700DCPBGMKCHGJ_ = unk2700DCPBGMKCHGJ_;
result.gadgetEntityId_ = gadgetEntityId_;
result.opType_ = opType_;
result.uiInteractId_ = uiInteractId_;
result.isUseCondenseResin_ = isUseCondenseResin_;
onBuilt();
return result;
}
@@ -613,20 +621,20 @@ public final class GadgetInteractReqOuterClass {
if (other.getGadgetId() != 0) {
setGadgetId(other.getGadgetId());
}
if (other.getIsUseCondenseResin() != false) {
setIsUseCondenseResin(other.getIsUseCondenseResin());
if (other.resinCostType_ != 0) {
setResinCostTypeValue(other.getResinCostTypeValue());
}
if (other.getGadgetEntityId() != 0) {
setGadgetEntityId(other.getGadgetEntityId());
}
if (other.opType_ != 0) {
setOpTypeValue(other.getOpTypeValue());
}
if (other.resinCostType_ != 0) {
setResinCostTypeValue(other.getResinCostTypeValue());
if (other.getUiInteractId() != 0) {
setUiInteractId(other.getUiInteractId());
}
if (other.getUnk2700DCPBGMKCHGJ() != 0) {
setUnk2700DCPBGMKCHGJ(other.getUnk2700DCPBGMKCHGJ());
}
if (other.getGadgetEntityId() != 0) {
setGadgetEntityId(other.getGadgetEntityId());
if (other.getIsUseCondenseResin() != false) {
setIsUseCondenseResin(other.getIsUseCondenseResin());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -659,7 +667,7 @@ public final class GadgetInteractReqOuterClass {
private int gadgetId_ ;
/**
* <code>uint32 gadget_id = 8;</code>
* <code>uint32 gadget_id = 1;</code>
* @return The gadgetId.
*/
@java.lang.Override
@@ -667,7 +675,7 @@ public final class GadgetInteractReqOuterClass {
return gadgetId_;
}
/**
* <code>uint32 gadget_id = 8;</code>
* <code>uint32 gadget_id = 1;</code>
* @param value The gadgetId to set.
* @return This builder for chaining.
*/
@@ -678,7 +686,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>uint32 gadget_id = 8;</code>
* <code>uint32 gadget_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearGadgetId() {
@@ -688,101 +696,16 @@ public final class GadgetInteractReqOuterClass {
return this;
}
private boolean isUseCondenseResin_ ;
/**
* <code>bool is_use_condense_resin = 15;</code>
* @return The isUseCondenseResin.
*/
@java.lang.Override
public boolean getIsUseCondenseResin() {
return isUseCondenseResin_;
}
/**
* <code>bool is_use_condense_resin = 15;</code>
* @param value The isUseCondenseResin to set.
* @return This builder for chaining.
*/
public Builder setIsUseCondenseResin(boolean value) {
isUseCondenseResin_ = value;
onChanged();
return this;
}
/**
* <code>bool is_use_condense_resin = 15;</code>
* @return This builder for chaining.
*/
public Builder clearIsUseCondenseResin() {
isUseCondenseResin_ = false;
onChanged();
return this;
}
private int opType_ = 0;
/**
* <code>.InterOpType op_type = 5;</code>
* @return The enum numeric value on the wire for opType.
*/
@java.lang.Override public int getOpTypeValue() {
return opType_;
}
/**
* <code>.InterOpType op_type = 5;</code>
* @param value The enum numeric value on the wire for opType to set.
* @return This builder for chaining.
*/
public Builder setOpTypeValue(int value) {
opType_ = value;
onChanged();
return this;
}
/**
* <code>.InterOpType op_type = 5;</code>
* @return The opType.
*/
@java.lang.Override
public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_);
return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result;
}
/**
* <code>.InterOpType op_type = 5;</code>
* @param value The opType to set.
* @return This builder for chaining.
*/
public Builder setOpType(emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType value) {
if (value == null) {
throw new NullPointerException();
}
opType_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.InterOpType op_type = 5;</code>
* @return This builder for chaining.
*/
public Builder clearOpType() {
opType_ = 0;
onChanged();
return this;
}
private int resinCostType_ = 0;
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return The enum numeric value on the wire for resinCostType.
*/
@java.lang.Override public int getResinCostTypeValue() {
return resinCostType_;
}
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @param value The enum numeric value on the wire for resinCostType to set.
* @return This builder for chaining.
*/
@@ -793,7 +716,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return The resinCostType.
*/
@java.lang.Override
@@ -803,7 +726,7 @@ public final class GadgetInteractReqOuterClass {
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
}
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @param value The resinCostType to set.
* @return This builder for chaining.
*/
@@ -817,7 +740,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>.ResinCostType resin_cost_type = 1;</code>
* <code>.ResinCostType resin_cost_type = 13;</code>
* @return This builder for chaining.
*/
public Builder clearResinCostType() {
@@ -827,40 +750,9 @@ public final class GadgetInteractReqOuterClass {
return this;
}
private int unk2700DCPBGMKCHGJ_ ;
/**
* <code>uint32 Unk2700_DCPBGMKCHGJ = 2;</code>
* @return The unk2700DCPBGMKCHGJ.
*/
@java.lang.Override
public int getUnk2700DCPBGMKCHGJ() {
return unk2700DCPBGMKCHGJ_;
}
/**
* <code>uint32 Unk2700_DCPBGMKCHGJ = 2;</code>
* @param value The unk2700DCPBGMKCHGJ to set.
* @return This builder for chaining.
*/
public Builder setUnk2700DCPBGMKCHGJ(int value) {
unk2700DCPBGMKCHGJ_ = value;
onChanged();
return this;
}
/**
* <code>uint32 Unk2700_DCPBGMKCHGJ = 2;</code>
* @return This builder for chaining.
*/
public Builder clearUnk2700DCPBGMKCHGJ() {
unk2700DCPBGMKCHGJ_ = 0;
onChanged();
return this;
}
private int gadgetEntityId_ ;
/**
* <code>uint32 gadget_entity_id = 4;</code>
* <code>uint32 gadget_entity_id = 8;</code>
* @return The gadgetEntityId.
*/
@java.lang.Override
@@ -868,7 +760,7 @@ public final class GadgetInteractReqOuterClass {
return gadgetEntityId_;
}
/**
* <code>uint32 gadget_entity_id = 4;</code>
* <code>uint32 gadget_entity_id = 8;</code>
* @param value The gadgetEntityId to set.
* @return This builder for chaining.
*/
@@ -879,7 +771,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>uint32 gadget_entity_id = 4;</code>
* <code>uint32 gadget_entity_id = 8;</code>
* @return This builder for chaining.
*/
public Builder clearGadgetEntityId() {
@@ -888,6 +780,122 @@ public final class GadgetInteractReqOuterClass {
onChanged();
return this;
}
private int opType_ = 0;
/**
* <code>.InterOpType op_type = 2;</code>
* @return The enum numeric value on the wire for opType.
*/
@java.lang.Override public int getOpTypeValue() {
return opType_;
}
/**
* <code>.InterOpType op_type = 2;</code>
* @param value The enum numeric value on the wire for opType to set.
* @return This builder for chaining.
*/
public Builder setOpTypeValue(int value) {
opType_ = value;
onChanged();
return this;
}
/**
* <code>.InterOpType op_type = 2;</code>
* @return The opType.
*/
@java.lang.Override
public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_);
return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result;
}
/**
* <code>.InterOpType op_type = 2;</code>
* @param value The opType to set.
* @return This builder for chaining.
*/
public Builder setOpType(emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType value) {
if (value == null) {
throw new NullPointerException();
}
opType_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.InterOpType op_type = 2;</code>
* @return This builder for chaining.
*/
public Builder clearOpType() {
opType_ = 0;
onChanged();
return this;
}
private int uiInteractId_ ;
/**
* <code>uint32 ui_interact_id = 11;</code>
* @return The uiInteractId.
*/
@java.lang.Override
public int getUiInteractId() {
return uiInteractId_;
}
/**
* <code>uint32 ui_interact_id = 11;</code>
* @param value The uiInteractId to set.
* @return This builder for chaining.
*/
public Builder setUiInteractId(int value) {
uiInteractId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 ui_interact_id = 11;</code>
* @return This builder for chaining.
*/
public Builder clearUiInteractId() {
uiInteractId_ = 0;
onChanged();
return this;
}
private boolean isUseCondenseResin_ ;
/**
* <code>bool is_use_condense_resin = 6;</code>
* @return The isUseCondenseResin.
*/
@java.lang.Override
public boolean getIsUseCondenseResin() {
return isUseCondenseResin_;
}
/**
* <code>bool is_use_condense_resin = 6;</code>
* @param value The isUseCondenseResin to set.
* @return This builder for chaining.
*/
public Builder setIsUseCondenseResin(boolean value) {
isUseCondenseResin_ = value;
onChanged();
return this;
}
/**
* <code>bool is_use_condense_resin = 6;</code>
* @return This builder for chaining.
*/
public Builder clearIsUseCondenseResin() {
isUseCondenseResin_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -956,13 +964,13 @@ public final class GadgetInteractReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\027GadgetInteractReq.proto\032\021InterOpType.p" +
"roto\032\023ResinCostType.proto\"\304\001\n\021GadgetInte" +
"ractReq\022\021\n\tgadget_id\030\010 \001(\r\022\035\n\025is_use_con" +
"dense_resin\030\017 \001(\010\022\035\n\007op_type\030\005 \001(\0162\014.Int" +
"erOpType\022\'\n\017resin_cost_type\030\001 \001(\0162\016.Resi" +
"nCostType\022\033\n\023Unk2700_DCPBGMKCHGJ\030\002 \001(\r\022\030" +
"\n\020gadget_entity_id\030\004 \001(\rB\033\n\031emu.grasscut" +
"ter.net.protob\006proto3"
"roto\032\023ResinCostType.proto\"\277\001\n\021GadgetInte" +
"ractReq\022\021\n\tgadget_id\030\001 \001(\r\022\'\n\017resin_cost" +
"_type\030\r \001(\0162\016.ResinCostType\022\030\n\020gadget_en" +
"tity_id\030\010 \001(\r\022\035\n\007op_type\030\002 \001(\0162\014.InterOp" +
"Type\022\026\n\016ui_interact_id\030\013 \001(\r\022\035\n\025is_use_c" +
"ondense_resin\030\006 \001(\010B\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -975,7 +983,7 @@ public final class GadgetInteractReqOuterClass {
internal_static_GadgetInteractReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GadgetInteractReq_descriptor,
new java.lang.String[] { "GadgetId", "IsUseCondenseResin", "OpType", "ResinCostType", "Unk2700DCPBGMKCHGJ", "GadgetEntityId", });
new java.lang.String[] { "GadgetId", "ResinCostType", "GadgetEntityId", "OpType", "UiInteractId", "IsUseCondenseResin", });
emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor();
emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor();
}