mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 17:04:40 +08:00
Upgrade to REL3.7 (#2164)
* Remove hardcoded quest data * Remove deprecated fields * Try to fix packet * Apply fix for token exchange * Upgrade to REL3.7 * Add obfuscated protocol definitions * Add missing enum (other protos too maybe) * Re-add field setters and add note on removal
This commit is contained in:
+351
-351
@@ -18,40 +18,6 @@ public final class GadgetInteractReqOuterClass {
|
||||
// @@protoc_insertion_point(interface_extends:GadgetInteractReq)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return The enum numeric value on the wire for resinCostType.
|
||||
*/
|
||||
int getResinCostTypeValue();
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return The resinCostType.
|
||||
*/
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType();
|
||||
|
||||
/**
|
||||
* <code>bool is_use_condense_resin = 8;</code>
|
||||
* @return The isUseCondenseResin.
|
||||
*/
|
||||
boolean getIsUseCondenseResin();
|
||||
|
||||
/**
|
||||
* <code>.InterOpType op_type = 9;</code>
|
||||
* @return The enum numeric value on the wire for opType.
|
||||
*/
|
||||
int getOpTypeValue();
|
||||
/**
|
||||
* <code>.InterOpType op_type = 9;</code>
|
||||
* @return The opType.
|
||||
*/
|
||||
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType();
|
||||
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 12;</code>
|
||||
* @return The uiInteractId.
|
||||
*/
|
||||
int getUiInteractId();
|
||||
|
||||
/**
|
||||
* <code>uint32 gadget_id = 7;</code>
|
||||
* @return The gadgetId.
|
||||
@@ -59,15 +25,49 @@ public final class GadgetInteractReqOuterClass {
|
||||
int getGadgetId();
|
||||
|
||||
/**
|
||||
* <code>uint32 gadget_entity_id = 1;</code>
|
||||
* <code>uint32 ui_interact_id = 13;</code>
|
||||
* @return The uiInteractId.
|
||||
*/
|
||||
int getUiInteractId();
|
||||
|
||||
/**
|
||||
* <code>uint32 gadget_entity_id = 8;</code>
|
||||
* @return The gadgetEntityId.
|
||||
*/
|
||||
int getGadgetEntityId();
|
||||
|
||||
/**
|
||||
* <code>.InterOpType op_type = 14;</code>
|
||||
* @return The enum numeric value on the wire for opType.
|
||||
*/
|
||||
int getOpTypeValue();
|
||||
/**
|
||||
* <code>.InterOpType op_type = 14;</code>
|
||||
* @return The opType.
|
||||
*/
|
||||
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType();
|
||||
|
||||
/**
|
||||
* <code>bool is_use_condense_resin = 15;</code>
|
||||
* @return The isUseCondenseResin.
|
||||
*/
|
||||
boolean getIsUseCondenseResin();
|
||||
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return The enum numeric value on the wire for resinCostType.
|
||||
*/
|
||||
int getResinCostTypeValue();
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return The resinCostType.
|
||||
*/
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 890
|
||||
* Name: CEEALLJALGP
|
||||
* CmdId: 875
|
||||
* Obf: AGCEDAEAAEN
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GadgetInteractReq}
|
||||
@@ -82,8 +82,8 @@ public final class GadgetInteractReqOuterClass {
|
||||
super(builder);
|
||||
}
|
||||
private GadgetInteractReq() {
|
||||
resinCostType_ = 0;
|
||||
opType_ = 0;
|
||||
resinCostType_ = 0;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@@ -116,12 +116,7 @@ public final class GadgetInteractReqOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
|
||||
gadgetEntityId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
case 48: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
resinCostType_ = rawValue;
|
||||
@@ -134,18 +129,23 @@ public final class GadgetInteractReqOuterClass {
|
||||
}
|
||||
case 64: {
|
||||
|
||||
isUseCondenseResin_ = input.readBool();
|
||||
gadgetEntityId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
case 104: {
|
||||
|
||||
uiInteractId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
opType_ = rawValue;
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
case 120: {
|
||||
|
||||
uiInteractId_ = input.readUInt32();
|
||||
isUseCondenseResin_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -180,66 +180,6 @@ public final class GadgetInteractReqOuterClass {
|
||||
emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.class, emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.Builder.class);
|
||||
}
|
||||
|
||||
public static final int RESIN_COST_TYPE_FIELD_NUMBER = 5;
|
||||
private int resinCostType_;
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return The enum numeric value on the wire for resinCostType.
|
||||
*/
|
||||
@java.lang.Override public int getResinCostTypeValue() {
|
||||
return resinCostType_;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return The resinCostType.
|
||||
*/
|
||||
@java.lang.Override public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType result = emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.valueOf(resinCostType_);
|
||||
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int IS_USE_CONDENSE_RESIN_FIELD_NUMBER = 8;
|
||||
private boolean isUseCondenseResin_;
|
||||
/**
|
||||
* <code>bool is_use_condense_resin = 8;</code>
|
||||
* @return The isUseCondenseResin.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsUseCondenseResin() {
|
||||
return isUseCondenseResin_;
|
||||
}
|
||||
|
||||
public static final int OP_TYPE_FIELD_NUMBER = 9;
|
||||
private int opType_;
|
||||
/**
|
||||
* <code>.InterOpType op_type = 9;</code>
|
||||
* @return The enum numeric value on the wire for opType.
|
||||
*/
|
||||
@java.lang.Override public int getOpTypeValue() {
|
||||
return opType_;
|
||||
}
|
||||
/**
|
||||
* <code>.InterOpType op_type = 9;</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 = 12;
|
||||
private int uiInteractId_;
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 12;</code>
|
||||
* @return The uiInteractId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getUiInteractId() {
|
||||
return uiInteractId_;
|
||||
}
|
||||
|
||||
public static final int GADGET_ID_FIELD_NUMBER = 7;
|
||||
private int gadgetId_;
|
||||
/**
|
||||
@@ -251,10 +191,21 @@ public final class GadgetInteractReqOuterClass {
|
||||
return gadgetId_;
|
||||
}
|
||||
|
||||
public static final int GADGET_ENTITY_ID_FIELD_NUMBER = 1;
|
||||
public static final int UI_INTERACT_ID_FIELD_NUMBER = 13;
|
||||
private int uiInteractId_;
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 13;</code>
|
||||
* @return The uiInteractId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getUiInteractId() {
|
||||
return uiInteractId_;
|
||||
}
|
||||
|
||||
public static final int GADGET_ENTITY_ID_FIELD_NUMBER = 8;
|
||||
private int gadgetEntityId_;
|
||||
/**
|
||||
* <code>uint32 gadget_entity_id = 1;</code>
|
||||
* <code>uint32 gadget_entity_id = 8;</code>
|
||||
* @return The gadgetEntityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -262,6 +213,55 @@ public final class GadgetInteractReqOuterClass {
|
||||
return gadgetEntityId_;
|
||||
}
|
||||
|
||||
public static final int OP_TYPE_FIELD_NUMBER = 14;
|
||||
private int opType_;
|
||||
/**
|
||||
* <code>.InterOpType op_type = 14;</code>
|
||||
* @return The enum numeric value on the wire for opType.
|
||||
*/
|
||||
@java.lang.Override public int getOpTypeValue() {
|
||||
return opType_;
|
||||
}
|
||||
/**
|
||||
* <code>.InterOpType op_type = 14;</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 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 RESIN_COST_TYPE_FIELD_NUMBER = 6;
|
||||
private int resinCostType_;
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return The enum numeric value on the wire for resinCostType.
|
||||
*/
|
||||
@java.lang.Override public int getResinCostTypeValue() {
|
||||
return resinCostType_;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return The resinCostType.
|
||||
*/
|
||||
@java.lang.Override public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType result = emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.valueOf(resinCostType_);
|
||||
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -276,23 +276,23 @@ public final class GadgetInteractReqOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (gadgetEntityId_ != 0) {
|
||||
output.writeUInt32(1, gadgetEntityId_);
|
||||
}
|
||||
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
|
||||
output.writeEnum(5, resinCostType_);
|
||||
output.writeEnum(6, resinCostType_);
|
||||
}
|
||||
if (gadgetId_ != 0) {
|
||||
output.writeUInt32(7, gadgetId_);
|
||||
}
|
||||
if (isUseCondenseResin_ != false) {
|
||||
output.writeBool(8, isUseCondenseResin_);
|
||||
}
|
||||
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
|
||||
output.writeEnum(9, opType_);
|
||||
if (gadgetEntityId_ != 0) {
|
||||
output.writeUInt32(8, gadgetEntityId_);
|
||||
}
|
||||
if (uiInteractId_ != 0) {
|
||||
output.writeUInt32(12, uiInteractId_);
|
||||
output.writeUInt32(13, uiInteractId_);
|
||||
}
|
||||
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
|
||||
output.writeEnum(14, opType_);
|
||||
}
|
||||
if (isUseCondenseResin_ != false) {
|
||||
output.writeBool(15, isUseCondenseResin_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -303,29 +303,29 @@ public final class GadgetInteractReqOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (gadgetEntityId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(1, gadgetEntityId_);
|
||||
}
|
||||
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(5, resinCostType_);
|
||||
.computeEnumSize(6, resinCostType_);
|
||||
}
|
||||
if (gadgetId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(7, gadgetId_);
|
||||
}
|
||||
if (isUseCondenseResin_ != false) {
|
||||
if (gadgetEntityId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(8, isUseCondenseResin_);
|
||||
}
|
||||
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(9, opType_);
|
||||
.computeUInt32Size(8, gadgetEntityId_);
|
||||
}
|
||||
if (uiInteractId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(12, uiInteractId_);
|
||||
.computeUInt32Size(13, uiInteractId_);
|
||||
}
|
||||
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(14, opType_);
|
||||
}
|
||||
if (isUseCondenseResin_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(15, isUseCondenseResin_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -342,16 +342,16 @@ public final class GadgetInteractReqOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq other = (emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq) obj;
|
||||
|
||||
if (resinCostType_ != other.resinCostType_) return false;
|
||||
if (getIsUseCondenseResin()
|
||||
!= other.getIsUseCondenseResin()) return false;
|
||||
if (opType_ != other.opType_) return false;
|
||||
if (getUiInteractId()
|
||||
!= other.getUiInteractId()) return false;
|
||||
if (getGadgetId()
|
||||
!= other.getGadgetId()) return false;
|
||||
if (getUiInteractId()
|
||||
!= other.getUiInteractId()) return false;
|
||||
if (getGadgetEntityId()
|
||||
!= other.getGadgetEntityId()) return false;
|
||||
if (opType_ != other.opType_) return false;
|
||||
if (getIsUseCondenseResin()
|
||||
!= other.getIsUseCondenseResin()) return false;
|
||||
if (resinCostType_ != other.resinCostType_) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -363,19 +363,19 @@ public final class GadgetInteractReqOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + RESIN_COST_TYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + resinCostType_;
|
||||
hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGadgetId();
|
||||
hash = (37 * hash) + UI_INTERACT_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getUiInteractId();
|
||||
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) + 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) + UI_INTERACT_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getUiInteractId();
|
||||
hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGadgetId();
|
||||
hash = (37 * hash) + GADGET_ENTITY_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGadgetEntityId();
|
||||
hash = (37 * hash) + RESIN_COST_TYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + resinCostType_;
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -473,8 +473,8 @@ public final class GadgetInteractReqOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 890
|
||||
* Name: CEEALLJALGP
|
||||
* CmdId: 875
|
||||
* Obf: AGCEDAEAAEN
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GadgetInteractReq}
|
||||
@@ -514,18 +514,18 @@ public final class GadgetInteractReqOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
resinCostType_ = 0;
|
||||
|
||||
isUseCondenseResin_ = false;
|
||||
|
||||
opType_ = 0;
|
||||
gadgetId_ = 0;
|
||||
|
||||
uiInteractId_ = 0;
|
||||
|
||||
gadgetId_ = 0;
|
||||
|
||||
gadgetEntityId_ = 0;
|
||||
|
||||
opType_ = 0;
|
||||
|
||||
isUseCondenseResin_ = false;
|
||||
|
||||
resinCostType_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -552,12 +552,12 @@ public final class GadgetInteractReqOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq buildPartial() {
|
||||
emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq result = new emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq(this);
|
||||
result.resinCostType_ = resinCostType_;
|
||||
result.isUseCondenseResin_ = isUseCondenseResin_;
|
||||
result.opType_ = opType_;
|
||||
result.uiInteractId_ = uiInteractId_;
|
||||
result.gadgetId_ = gadgetId_;
|
||||
result.uiInteractId_ = uiInteractId_;
|
||||
result.gadgetEntityId_ = gadgetEntityId_;
|
||||
result.opType_ = opType_;
|
||||
result.isUseCondenseResin_ = isUseCondenseResin_;
|
||||
result.resinCostType_ = resinCostType_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -606,24 +606,24 @@ public final class GadgetInteractReqOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq other) {
|
||||
if (other == emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.getDefaultInstance()) return this;
|
||||
if (other.resinCostType_ != 0) {
|
||||
setResinCostTypeValue(other.getResinCostTypeValue());
|
||||
}
|
||||
if (other.getIsUseCondenseResin() != false) {
|
||||
setIsUseCondenseResin(other.getIsUseCondenseResin());
|
||||
}
|
||||
if (other.opType_ != 0) {
|
||||
setOpTypeValue(other.getOpTypeValue());
|
||||
if (other.getGadgetId() != 0) {
|
||||
setGadgetId(other.getGadgetId());
|
||||
}
|
||||
if (other.getUiInteractId() != 0) {
|
||||
setUiInteractId(other.getUiInteractId());
|
||||
}
|
||||
if (other.getGadgetId() != 0) {
|
||||
setGadgetId(other.getGadgetId());
|
||||
}
|
||||
if (other.getGadgetEntityId() != 0) {
|
||||
setGadgetEntityId(other.getGadgetEntityId());
|
||||
}
|
||||
if (other.opType_ != 0) {
|
||||
setOpTypeValue(other.getOpTypeValue());
|
||||
}
|
||||
if (other.getIsUseCondenseResin() != false) {
|
||||
setIsUseCondenseResin(other.getIsUseCondenseResin());
|
||||
}
|
||||
if (other.resinCostType_ != 0) {
|
||||
setResinCostTypeValue(other.getResinCostTypeValue());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -653,176 +653,6 @@ public final class GadgetInteractReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int resinCostType_ = 0;
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return The enum numeric value on the wire for resinCostType.
|
||||
*/
|
||||
@java.lang.Override public int getResinCostTypeValue() {
|
||||
return resinCostType_;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @param value The enum numeric value on the wire for resinCostType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setResinCostTypeValue(int value) {
|
||||
|
||||
resinCostType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return The resinCostType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType result = emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.valueOf(resinCostType_);
|
||||
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @param value The resinCostType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setResinCostType(emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
resinCostType_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearResinCostType() {
|
||||
|
||||
resinCostType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isUseCondenseResin_ ;
|
||||
/**
|
||||
* <code>bool is_use_condense_resin = 8;</code>
|
||||
* @return The isUseCondenseResin.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsUseCondenseResin() {
|
||||
return isUseCondenseResin_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_use_condense_resin = 8;</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 = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsUseCondenseResin() {
|
||||
|
||||
isUseCondenseResin_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int opType_ = 0;
|
||||
/**
|
||||
* <code>.InterOpType op_type = 9;</code>
|
||||
* @return The enum numeric value on the wire for opType.
|
||||
*/
|
||||
@java.lang.Override public int getOpTypeValue() {
|
||||
return opType_;
|
||||
}
|
||||
/**
|
||||
* <code>.InterOpType op_type = 9;</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 = 9;</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 = 9;</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 = 9;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearOpType() {
|
||||
|
||||
opType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int uiInteractId_ ;
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 12;</code>
|
||||
* @return The uiInteractId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getUiInteractId() {
|
||||
return uiInteractId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 12;</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 = 12;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearUiInteractId() {
|
||||
|
||||
uiInteractId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int gadgetId_ ;
|
||||
/**
|
||||
* <code>uint32 gadget_id = 7;</code>
|
||||
@@ -854,9 +684,40 @@ public final class GadgetInteractReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int uiInteractId_ ;
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 13;</code>
|
||||
* @return The uiInteractId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getUiInteractId() {
|
||||
return uiInteractId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 ui_interact_id = 13;</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 = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearUiInteractId() {
|
||||
|
||||
uiInteractId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int gadgetEntityId_ ;
|
||||
/**
|
||||
* <code>uint32 gadget_entity_id = 1;</code>
|
||||
* <code>uint32 gadget_entity_id = 8;</code>
|
||||
* @return The gadgetEntityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -864,7 +725,7 @@ public final class GadgetInteractReqOuterClass {
|
||||
return gadgetEntityId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gadget_entity_id = 1;</code>
|
||||
* <code>uint32 gadget_entity_id = 8;</code>
|
||||
* @param value The gadgetEntityId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -875,7 +736,7 @@ public final class GadgetInteractReqOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gadget_entity_id = 1;</code>
|
||||
* <code>uint32 gadget_entity_id = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearGadgetEntityId() {
|
||||
@@ -884,6 +745,145 @@ public final class GadgetInteractReqOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int opType_ = 0;
|
||||
/**
|
||||
* <code>.InterOpType op_type = 14;</code>
|
||||
* @return The enum numeric value on the wire for opType.
|
||||
*/
|
||||
@java.lang.Override public int getOpTypeValue() {
|
||||
return opType_;
|
||||
}
|
||||
/**
|
||||
* <code>.InterOpType op_type = 14;</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 = 14;</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 = 14;</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 = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearOpType() {
|
||||
|
||||
opType_ = 0;
|
||||
onChanged();
|
||||
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 resinCostType_ = 0;
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return The enum numeric value on the wire for resinCostType.
|
||||
*/
|
||||
@java.lang.Override public int getResinCostTypeValue() {
|
||||
return resinCostType_;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @param value The enum numeric value on the wire for resinCostType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setResinCostTypeValue(int value) {
|
||||
|
||||
resinCostType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return The resinCostType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType result = emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.valueOf(resinCostType_);
|
||||
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @param value The resinCostType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setResinCostType(emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
resinCostType_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.ResinCostType resin_cost_type = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearResinCostType() {
|
||||
|
||||
resinCostType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -953,11 +953,11 @@ public final class GadgetInteractReqOuterClass {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\027GadgetInteractReq.proto\032\021InterOpType.p" +
|
||||
"roto\032\023ResinCostType.proto\"\277\001\n\021GadgetInte" +
|
||||
"ractReq\022\'\n\017resin_cost_type\030\005 \001(\0162\016.Resin" +
|
||||
"CostType\022\035\n\025is_use_condense_resin\030\010 \001(\010\022" +
|
||||
"\035\n\007op_type\030\t \001(\0162\014.InterOpType\022\026\n\016ui_int" +
|
||||
"eract_id\030\014 \001(\r\022\021\n\tgadget_id\030\007 \001(\r\022\030\n\020gad" +
|
||||
"get_entity_id\030\001 \001(\rB\033\n\031emu.grasscutter.n" +
|
||||
"ractReq\022\021\n\tgadget_id\030\007 \001(\r\022\026\n\016ui_interac" +
|
||||
"t_id\030\r \001(\r\022\030\n\020gadget_entity_id\030\010 \001(\r\022\035\n\007" +
|
||||
"op_type\030\016 \001(\0162\014.InterOpType\022\035\n\025is_use_co" +
|
||||
"ndense_resin\030\017 \001(\010\022\'\n\017resin_cost_type\030\006 " +
|
||||
"\001(\0162\016.ResinCostTypeB\033\n\031emu.grasscutter.n" +
|
||||
"et.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -971,7 +971,7 @@ public final class GadgetInteractReqOuterClass {
|
||||
internal_static_GadgetInteractReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_GadgetInteractReq_descriptor,
|
||||
new java.lang.String[] { "ResinCostType", "IsUseCondenseResin", "OpType", "UiInteractId", "GadgetId", "GadgetEntityId", });
|
||||
new java.lang.String[] { "GadgetId", "UiInteractId", "GadgetEntityId", "OpType", "IsUseCondenseResin", "ResinCostType", });
|
||||
emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor();
|
||||
emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user