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,55 +19,55 @@ public final class GadgetInteractReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 gadget_id = 7;</code>
* @return The gadgetId.
*/
int getGadgetId();
/**
* <code>uint32 ui_interact_id = 13;</code>
* @return The uiInteractId.
*/
int getUiInteractId();
/**
* <code>uint32 gadget_entity_id = 8;</code>
* <code>uint32 gadget_entity_id = 11;</code>
* @return The gadgetEntityId.
*/
int getGadgetEntityId();
/**
* <code>.InterOpType op_type = 14;</code>
* @return The enum numeric value on the wire for opType.
* <code>uint32 ui_interact_id = 7;</code>
* @return The uiInteractId.
*/
int getOpTypeValue();
/**
* <code>.InterOpType op_type = 14;</code>
* @return The opType.
*/
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType();
int getUiInteractId();
/**
* <code>bool is_use_condense_resin = 15;</code>
* <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>.ResinCostType resin_cost_type = 6;</code>
* @return The enum numeric value on the wire for resinCostType.
* <code>.InterOpType op_type = 13;</code>
* @return The enum numeric value on the wire for opType.
*/
int getResinCostTypeValue();
int getOpTypeValue();
/**
* <code>.ResinCostType resin_cost_type = 6;</code>
* @return The resinCostType.
* <code>.InterOpType op_type = 13;</code>
* @return The opType.
*/
emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType();
emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType();
/**
* <code>uint32 gadget_id = 6;</code>
* @return The gadgetId.
*/
int getGadgetId();
}
/**
* <pre>
* CmdId: 875
* Obf: AGCEDAEAAEN
* CmdId: 9254
* Obf: ALDNKENDMAD
* </pre>
*
* Protobuf type {@code GadgetInteractReq}
@@ -82,8 +82,8 @@ public final class GadgetInteractReqOuterClass {
super(builder);
}
private GadgetInteractReq() {
opType_ = 0;
resinCostType_ = 0;
opType_ = 0;
}
@java.lang.Override
@@ -116,38 +116,38 @@ public final class GadgetInteractReqOuterClass {
case 0:
done = true;
break;
case 48: {
case 40: {
int rawValue = input.readEnum();
resinCostType_ = rawValue;
break;
}
case 56: {
case 48: {
gadgetId_ = input.readUInt32();
break;
}
case 56: {
uiInteractId_ = input.readUInt32();
break;
}
case 64: {
isUseCondenseResin_ = input.readBool();
break;
}
case 88: {
gadgetEntityId_ = input.readUInt32();
break;
}
case 104: {
uiInteractId_ = input.readUInt32();
break;
}
case 112: {
int rawValue = input.readEnum();
opType_ = rawValue;
break;
}
case 120: {
isUseCondenseResin_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -180,32 +180,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 = 7;
private int gadgetId_;
/**
* <code>uint32 gadget_id = 7;</code>
* @return The gadgetId.
*/
@java.lang.Override
public int getGadgetId() {
return gadgetId_;
}
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;
public static final int GADGET_ENTITY_ID_FIELD_NUMBER = 11;
private int gadgetEntityId_;
/**
* <code>uint32 gadget_entity_id = 8;</code>
* <code>uint32 gadget_entity_id = 11;</code>
* @return The gadgetEntityId.
*/
@java.lang.Override
@@ -213,17 +191,58 @@ public final class GadgetInteractReqOuterClass {
return gadgetEntityId_;
}
public static final int OP_TYPE_FIELD_NUMBER = 14;
public static final int UI_INTERACT_ID_FIELD_NUMBER = 7;
private int uiInteractId_;
/**
* <code>uint32 ui_interact_id = 7;</code>
* @return The uiInteractId.
*/
@java.lang.Override
public int getUiInteractId() {
return uiInteractId_;
}
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 = 13;
private int opType_;
/**
* <code>.InterOpType op_type = 14;</code>
* <code>.InterOpType op_type = 13;</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>
* <code>.InterOpType op_type = 13;</code>
* @return The opType.
*/
@java.lang.Override public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() {
@@ -232,34 +251,15 @@ public final class GadgetInteractReqOuterClass {
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_;
public static final int GADGET_ID_FIELD_NUMBER = 6;
private int gadgetId_;
/**
* <code>bool is_use_condense_resin = 15;</code>
* @return The isUseCondenseResin.
* <code>uint32 gadget_id = 6;</code>
* @return The gadgetId.
*/
@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;
public int getGadgetId() {
return gadgetId_;
}
private byte memoizedIsInitialized = -1;
@@ -277,22 +277,22 @@ public final class GadgetInteractReqOuterClass {
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(6, resinCostType_);
output.writeEnum(5, resinCostType_);
}
if (gadgetId_ != 0) {
output.writeUInt32(7, gadgetId_);
}
if (gadgetEntityId_ != 0) {
output.writeUInt32(8, gadgetEntityId_);
output.writeUInt32(6, gadgetId_);
}
if (uiInteractId_ != 0) {
output.writeUInt32(13, uiInteractId_);
}
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
output.writeEnum(14, opType_);
output.writeUInt32(7, uiInteractId_);
}
if (isUseCondenseResin_ != false) {
output.writeBool(15, isUseCondenseResin_);
output.writeBool(8, isUseCondenseResin_);
}
if (gadgetEntityId_ != 0) {
output.writeUInt32(11, gadgetEntityId_);
}
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
output.writeEnum(13, opType_);
}
unknownFields.writeTo(output);
}
@@ -305,27 +305,27 @@ public final class GadgetInteractReqOuterClass {
size = 0;
if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.RESIN_COST_TYPE_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, resinCostType_);
.computeEnumSize(5, resinCostType_);
}
if (gadgetId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, gadgetId_);
}
if (gadgetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, gadgetEntityId_);
.computeUInt32Size(6, gadgetId_);
}
if (uiInteractId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, uiInteractId_);
}
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, opType_);
.computeUInt32Size(7, uiInteractId_);
}
if (isUseCondenseResin_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isUseCondenseResin_);
.computeBoolSize(8, isUseCondenseResin_);
}
if (gadgetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, gadgetEntityId_);
}
if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.INTER_OP_TYPE_FINISH.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, opType_);
}
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 (getGadgetId()
!= other.getGadgetId()) return false;
if (getUiInteractId()
!= other.getUiInteractId()) return false;
if (getGadgetEntityId()
!= other.getGadgetEntityId()) return false;
if (opType_ != other.opType_) return false;
if (getUiInteractId()
!= other.getUiInteractId()) return false;
if (resinCostType_ != other.resinCostType_) return false;
if (getIsUseCondenseResin()
!= other.getIsUseCondenseResin()) return false;
if (resinCostType_ != other.resinCostType_) return false;
if (opType_ != other.opType_) return false;
if (getGadgetId()
!= other.getGadgetId()) 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) + 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) + UI_INTERACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getUiInteractId();
hash = (37 * hash) + RESIN_COST_TYPE_FIELD_NUMBER;
hash = (53 * hash) + resinCostType_;
hash = (37 * hash) + IS_USE_CONDENSE_RESIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsUseCondenseResin());
hash = (37 * hash) + RESIN_COST_TYPE_FIELD_NUMBER;
hash = (53 * hash) + resinCostType_;
hash = (37 * hash) + OP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + opType_;
hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
hash = (53 * hash) + getGadgetId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -473,8 +473,8 @@ public final class GadgetInteractReqOuterClass {
}
/**
* <pre>
* CmdId: 875
* Obf: AGCEDAEAAEN
* CmdId: 9254
* Obf: ALDNKENDMAD
* </pre>
*
* Protobuf type {@code GadgetInteractReq}
@@ -514,17 +514,17 @@ public final class GadgetInteractReqOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
gadgetId_ = 0;
gadgetEntityId_ = 0;
uiInteractId_ = 0;
gadgetEntityId_ = 0;
opType_ = 0;
resinCostType_ = 0;
isUseCondenseResin_ = false;
resinCostType_ = 0;
opType_ = 0;
gadgetId_ = 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.gadgetId_ = gadgetId_;
result.uiInteractId_ = uiInteractId_;
result.gadgetEntityId_ = gadgetEntityId_;
result.opType_ = opType_;
result.isUseCondenseResin_ = isUseCondenseResin_;
result.uiInteractId_ = uiInteractId_;
result.resinCostType_ = resinCostType_;
result.isUseCondenseResin_ = isUseCondenseResin_;
result.opType_ = opType_;
result.gadgetId_ = gadgetId_;
onBuilt();
return result;
}
@@ -606,23 +606,23 @@ 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.getGadgetId() != 0) {
setGadgetId(other.getGadgetId());
if (other.getGadgetEntityId() != 0) {
setGadgetEntityId(other.getGadgetEntityId());
}
if (other.getUiInteractId() != 0) {
setUiInteractId(other.getUiInteractId());
}
if (other.getGadgetEntityId() != 0) {
setGadgetEntityId(other.getGadgetEntityId());
}
if (other.opType_ != 0) {
setOpTypeValue(other.getOpTypeValue());
if (other.resinCostType_ != 0) {
setResinCostTypeValue(other.getResinCostTypeValue());
}
if (other.getIsUseCondenseResin() != false) {
setIsUseCondenseResin(other.getIsUseCondenseResin());
}
if (other.resinCostType_ != 0) {
setResinCostTypeValue(other.getResinCostTypeValue());
if (other.opType_ != 0) {
setOpTypeValue(other.getOpTypeValue());
}
if (other.getGadgetId() != 0) {
setGadgetId(other.getGadgetId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -653,71 +653,9 @@ public final class GadgetInteractReqOuterClass {
return this;
}
private int gadgetId_ ;
/**
* <code>uint32 gadget_id = 7;</code>
* @return The gadgetId.
*/
@java.lang.Override
public int getGadgetId() {
return gadgetId_;
}
/**
* <code>uint32 gadget_id = 7;</code>
* @param value The gadgetId to set.
* @return This builder for chaining.
*/
public Builder setGadgetId(int value) {
gadgetId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 gadget_id = 7;</code>
* @return This builder for chaining.
*/
public Builder clearGadgetId() {
gadgetId_ = 0;
onChanged();
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 = 8;</code>
* <code>uint32 gadget_entity_id = 11;</code>
* @return The gadgetEntityId.
*/
@java.lang.Override
@@ -725,7 +663,7 @@ public final class GadgetInteractReqOuterClass {
return gadgetEntityId_;
}
/**
* <code>uint32 gadget_entity_id = 8;</code>
* <code>uint32 gadget_entity_id = 11;</code>
* @param value The gadgetEntityId to set.
* @return This builder for chaining.
*/
@@ -736,7 +674,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>uint32 gadget_entity_id = 8;</code>
* <code>uint32 gadget_entity_id = 11;</code>
* @return This builder for chaining.
*/
public Builder clearGadgetEntityId() {
@@ -746,101 +684,47 @@ public final class GadgetInteractReqOuterClass {
return this;
}
private int opType_ = 0;
private int uiInteractId_ ;
/**
* <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.
* <code>uint32 ui_interact_id = 7;</code>
* @return The uiInteractId.
*/
@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 int getUiInteractId() {
return uiInteractId_;
}
/**
* <code>.InterOpType op_type = 14;</code>
* @param value The opType to set.
* <code>uint32 ui_interact_id = 7;</code>
* @param value The uiInteractId to set.
* @return This builder for chaining.
*/
public Builder setOpType(emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType value) {
if (value == null) {
throw new NullPointerException();
}
public Builder setUiInteractId(int value) {
opType_ = value.getNumber();
uiInteractId_ = value;
onChanged();
return this;
}
/**
* <code>.InterOpType op_type = 14;</code>
* <code>uint32 ui_interact_id = 7;</code>
* @return This builder for chaining.
*/
public Builder clearOpType() {
public Builder clearUiInteractId() {
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;
uiInteractId_ = 0;
onChanged();
return this;
}
private int resinCostType_ = 0;
/**
* <code>.ResinCostType resin_cost_type = 6;</code>
* <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 = 6;</code>
* <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.
*/
@@ -851,7 +735,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>.ResinCostType resin_cost_type = 6;</code>
* <code>.ResinCostType resin_cost_type = 5;</code>
* @return The resinCostType.
*/
@java.lang.Override
@@ -861,7 +745,7 @@ public final class GadgetInteractReqOuterClass {
return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result;
}
/**
* <code>.ResinCostType resin_cost_type = 6;</code>
* <code>.ResinCostType resin_cost_type = 5;</code>
* @param value The resinCostType to set.
* @return This builder for chaining.
*/
@@ -875,7 +759,7 @@ public final class GadgetInteractReqOuterClass {
return this;
}
/**
* <code>.ResinCostType resin_cost_type = 6;</code>
* <code>.ResinCostType resin_cost_type = 5;</code>
* @return This builder for chaining.
*/
public Builder clearResinCostType() {
@@ -884,6 +768,122 @@ public final class GadgetInteractReqOuterClass {
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 = 13;</code>
* @return The enum numeric value on the wire for opType.
*/
@java.lang.Override public int getOpTypeValue() {
return opType_;
}
/**
* <code>.InterOpType op_type = 13;</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 = 13;</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 = 13;</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 = 13;</code>
* @return This builder for chaining.
*/
public Builder clearOpType() {
opType_ = 0;
onChanged();
return this;
}
private int gadgetId_ ;
/**
* <code>uint32 gadget_id = 6;</code>
* @return The gadgetId.
*/
@java.lang.Override
public int getGadgetId() {
return gadgetId_;
}
/**
* <code>uint32 gadget_id = 6;</code>
* @param value The gadgetId to set.
* @return This builder for chaining.
*/
public Builder setGadgetId(int value) {
gadgetId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 gadget_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearGadgetId() {
gadgetId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -951,29 +951,29 @@ public final class GadgetInteractReqOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027GadgetInteractReq.proto\032\021InterOpType.p" +
"roto\032\023ResinCostType.proto\"\277\001\n\021GadgetInte" +
"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" +
"\n\027GadgetInteractReq.proto\032\023ResinCostType" +
".proto\032\021InterOpType.proto\"\277\001\n\021GadgetInte" +
"ractReq\022\030\n\020gadget_entity_id\030\013 \001(\r\022\026\n\016ui_" +
"interact_id\030\007 \001(\r\022\'\n\017resin_cost_type\030\005 \001" +
"(\0162\016.ResinCostType\022\035\n\025is_use_condense_re" +
"sin\030\010 \001(\010\022\035\n\007op_type\030\r \001(\0162\014.InterOpType" +
"\022\021\n\tgadget_id\030\006 \001(\rB\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor(),
emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor(),
emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor(),
});
internal_static_GadgetInteractReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GadgetInteractReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GadgetInteractReq_descriptor,
new java.lang.String[] { "GadgetId", "UiInteractId", "GadgetEntityId", "OpType", "IsUseCondenseResin", "ResinCostType", });
emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor();
new java.lang.String[] { "GadgetEntityId", "UiInteractId", "ResinCostType", "IsUseCondenseResin", "OpType", "GadgetId", });
emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor();
emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)