Add support for v3.5.0 (#2090)

* Fix Dvalin battle

See https://github.com/Anime-Game-Servers/Grasscutter-Quests/pull/25.

This is entirely untested and there's a 99% chance it's broken, I'm just submitting it as a draft PR so that I don't forget about its existence.

Co-Authored-By: mjolsic <21289772+mjolsic@users.noreply.github.com>

* Update protos

* 3.4 protos

* Fix

Now builds successfully, don't have the time to check if I should have specified true instead of false for withChildQuests, or if this functions as intended.

* Change from false to true

Per what smileoflove has been told on Discord

* 3.5

* Remove the Dvalin crap from this PR

Git is so confusing

* Update version

* Apply README changes from `origin/development`

* Remove unnecessary debugging information

---------

Co-authored-by: mjolsic <21289772+mjolsic@users.noreply.github.com>
Co-authored-by: KingRainbow44 <kobedo11@gmail.com>
This commit is contained in:
Colleiflower
2023-03-31 19:13:32 +00:00
committed by GitHub
Unverified
parent 922f7bca51
commit 516e5975e1
1383 changed files with 167226 additions and 586936 deletions
@@ -19,58 +19,63 @@ public final class SetWidgetSlotRspOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>uint32 material_id = 12;</code>
* @return The materialId.
*/
int getMaterialId();
/**
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return A list containing the tagList.
*/
java.util.List<emu.grasscutter.net.proto.WidgetSlotTagOuterClass.WidgetSlotTag> getTagListList();
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return The count of tagList.
*/
int getTagListCount();
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the element to return.
* @return The tagList at the given index.
*/
emu.grasscutter.net.proto.WidgetSlotTagOuterClass.WidgetSlotTag getTagList(int index);
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return A list containing the enum numeric values on the wire for tagList.
*/
java.util.List<java.lang.Integer>
getTagListValueList();
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of tagList at the given index.
*/
int getTagListValue(int index);
/**
* <code>int32 retcode = 5;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>uint32 materialId = 12;</code>
* @return The materialId.
*/
int getMaterialId();
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return The enum numeric value on the wire for op.
*/
int getOpValue();
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return The op.
*/
emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp getOp();
/**
* <code>int32 retcode = 7;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
* Name: MHKKIGIOHPP
* CmdId: 4270
* </pre>
*
* Protobuf type {@code SetWidgetSlotRsp}
*/
public static final class SetWidgetSlotRsp extends
@@ -118,12 +123,23 @@ public final class SetWidgetSlotRspOuterClass {
case 0:
done = true;
break;
case 40: {
case 16: {
int rawValue = input.readEnum();
op_ = rawValue;
break;
}
case 56: {
retcode_ = input.readInt32();
break;
}
case 56: {
case 96: {
materialId_ = input.readUInt32();
break;
}
case 120: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tagList_ = new java.util.ArrayList<java.lang.Integer>();
@@ -132,7 +148,7 @@ public final class SetWidgetSlotRspOuterClass {
tagList_.add(rawValue);
break;
}
case 58: {
case 122: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
@@ -146,17 +162,6 @@ public final class SetWidgetSlotRspOuterClass {
input.popLimit(oldLimit);
break;
}
case 72: {
int rawValue = input.readEnum();
op_ = rawValue;
break;
}
case 96: {
materialId_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -192,138 +197,18 @@ public final class SetWidgetSlotRspOuterClass {
emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp.class, emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp.Builder.class);
}
public static final int MATERIAL_ID_FIELD_NUMBER = 12;
private int materialId_;
/**
* Protobuf enum {@code SetWidgetSlotRsp.KDEJOBDFODP}
* <code>uint32 material_id = 12;</code>
* @return The materialId.
*/
public enum KDEJOBDFODP
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>NONE = 0;</code>
*/
NONE(0, 0),
/**
* <code>PEPPOHPHJOJ = 4284;</code>
*/
PEPPOHPHJOJ(1, 4284),
/**
* <code>NNBKOLMPOEA = 1;</code>
*/
NNBKOLMPOEA(3, 1),
UNRECOGNIZED(-1, -1),
;
/**
* <code>DCDNILFDFLB = 0;</code>
*/
public static final KDEJOBDFODP DCDNILFDFLB = NONE;
/**
* <code>NONE = 0;</code>
*/
public static final int NONE_VALUE = 0;
/**
* <code>PEPPOHPHJOJ = 4284;</code>
*/
public static final int PEPPOHPHJOJ_VALUE = 4284;
/**
* <code>DCDNILFDFLB = 0;</code>
*/
public static final int DCDNILFDFLB_VALUE = 0;
/**
* <code>NNBKOLMPOEA = 1;</code>
*/
public static final int NNBKOLMPOEA_VALUE = 1;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static KDEJOBDFODP valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static KDEJOBDFODP forNumber(int value) {
switch (value) {
case 0: return NONE;
case 4284: return PEPPOHPHJOJ;
case 1: return NNBKOLMPOEA;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<KDEJOBDFODP>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
KDEJOBDFODP> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<KDEJOBDFODP>() {
public KDEJOBDFODP findValueByNumber(int number) {
return KDEJOBDFODP.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (index == -1) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp.getDescriptor().getEnumTypes().get(0);
}
private static final KDEJOBDFODP[] VALUES = getStaticValuesArray();
private static KDEJOBDFODP[] getStaticValuesArray() {
return new KDEJOBDFODP[] {
NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
};
}
public static KDEJOBDFODP valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private KDEJOBDFODP(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:SetWidgetSlotRsp.KDEJOBDFODP)
@java.lang.Override
public int getMaterialId() {
return materialId_;
}
public static final int TAGLIST_FIELD_NUMBER = 7;
public static final int TAG_LIST_FIELD_NUMBER = 15;
private java.util.List<java.lang.Integer> tagList_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, emu.grasscutter.net.proto.WidgetSlotTagOuterClass.WidgetSlotTag> tagList_converter_ =
@@ -336,7 +221,7 @@ public final class SetWidgetSlotRspOuterClass {
}
};
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return A list containing the tagList.
*/
@java.lang.Override
@@ -345,7 +230,7 @@ public final class SetWidgetSlotRspOuterClass {
java.lang.Integer, emu.grasscutter.net.proto.WidgetSlotTagOuterClass.WidgetSlotTag>(tagList_, tagList_converter_);
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return The count of tagList.
*/
@java.lang.Override
@@ -353,7 +238,7 @@ public final class SetWidgetSlotRspOuterClass {
return tagList_.size();
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the element to return.
* @return The tagList at the given index.
*/
@@ -362,7 +247,7 @@ public final class SetWidgetSlotRspOuterClass {
return tagList_converter_.convert(tagList_.get(index));
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return A list containing the enum numeric values on the wire for tagList.
*/
@java.lang.Override
@@ -371,7 +256,7 @@ public final class SetWidgetSlotRspOuterClass {
return tagList_;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of tagList at the given index.
*/
@@ -381,39 +266,17 @@ public final class SetWidgetSlotRspOuterClass {
}
private int tagListMemoizedSerializedSize;
public static final int RETCODE_FIELD_NUMBER = 5;
private int retcode_;
/**
* <code>int32 retcode = 5;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int MATERIALID_FIELD_NUMBER = 12;
private int materialId_;
/**
* <code>uint32 materialId = 12;</code>
* @return The materialId.
*/
@java.lang.Override
public int getMaterialId() {
return materialId_;
}
public static final int OP_FIELD_NUMBER = 9;
public static final int OP_FIELD_NUMBER = 2;
private int op_;
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return The enum numeric value on the wire for op.
*/
@java.lang.Override public int getOpValue() {
return op_;
}
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return The op.
*/
@java.lang.Override public emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp getOp() {
@@ -422,6 +285,17 @@ public final class SetWidgetSlotRspOuterClass {
return result == null ? emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp.UNRECOGNIZED : result;
}
public static final int RETCODE_FIELD_NUMBER = 7;
private int retcode_;
/**
* <code>int32 retcode = 7;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -437,22 +311,22 @@ public final class SetWidgetSlotRspOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (op_ != emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH.getNumber()) {
output.writeEnum(2, op_);
}
if (retcode_ != 0) {
output.writeInt32(5, retcode_);
output.writeInt32(7, retcode_);
}
if (materialId_ != 0) {
output.writeUInt32(12, materialId_);
}
if (getTagListList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(tagListMemoizedSerializedSize);
}
for (int i = 0; i < tagList_.size(); i++) {
output.writeEnumNoTag(tagList_.get(i));
}
if (op_ != emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH.getNumber()) {
output.writeEnum(9, op_);
}
if (materialId_ != 0) {
output.writeUInt32(12, materialId_);
}
unknownFields.writeTo(output);
}
@@ -462,9 +336,17 @@ public final class SetWidgetSlotRspOuterClass {
if (size != -1) return size;
size = 0;
if (op_ != emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, op_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, retcode_);
.computeInt32Size(7, retcode_);
}
if (materialId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, materialId_);
}
{
int dataSize = 0;
@@ -478,14 +360,6 @@ public final class SetWidgetSlotRspOuterClass {
.computeUInt32SizeNoTag(dataSize);
}tagListMemoizedSerializedSize = dataSize;
}
if (op_ != emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, op_);
}
if (materialId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, materialId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -501,12 +375,12 @@ public final class SetWidgetSlotRspOuterClass {
}
emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp other = (emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp) obj;
if (!tagList_.equals(other.tagList_)) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (getMaterialId()
!= other.getMaterialId()) return false;
if (!tagList_.equals(other.tagList_)) return false;
if (op_ != other.op_) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -518,16 +392,16 @@ public final class SetWidgetSlotRspOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MATERIAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getMaterialId();
if (getTagListCount() > 0) {
hash = (37 * hash) + TAGLIST_FIELD_NUMBER;
hash = (37 * hash) + TAG_LIST_FIELD_NUMBER;
hash = (53 * hash) + tagList_.hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + MATERIALID_FIELD_NUMBER;
hash = (53 * hash) + getMaterialId();
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -624,6 +498,11 @@ public final class SetWidgetSlotRspOuterClass {
return builder;
}
/**
* <pre>
* Name: MHKKIGIOHPP
* CmdId: 4270
* </pre>
*
* Protobuf type {@code SetWidgetSlotRsp}
*/
public static final class Builder extends
@@ -661,14 +540,14 @@ public final class SetWidgetSlotRspOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
tagList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
retcode_ = 0;
materialId_ = 0;
tagList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
op_ = 0;
retcode_ = 0;
return this;
}
@@ -696,14 +575,14 @@ public final class SetWidgetSlotRspOuterClass {
public emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp buildPartial() {
emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp result = new emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp(this);
int from_bitField0_ = bitField0_;
result.materialId_ = materialId_;
if (((bitField0_ & 0x00000001) != 0)) {
tagList_ = java.util.Collections.unmodifiableList(tagList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tagList_ = tagList_;
result.retcode_ = retcode_;
result.materialId_ = materialId_;
result.op_ = op_;
result.retcode_ = retcode_;
onBuilt();
return result;
}
@@ -752,6 +631,9 @@ public final class SetWidgetSlotRspOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp other) {
if (other == emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass.SetWidgetSlotRsp.getDefaultInstance()) return this;
if (other.getMaterialId() != 0) {
setMaterialId(other.getMaterialId());
}
if (!other.tagList_.isEmpty()) {
if (tagList_.isEmpty()) {
tagList_ = other.tagList_;
@@ -762,15 +644,12 @@ public final class SetWidgetSlotRspOuterClass {
}
onChanged();
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (other.getMaterialId() != 0) {
setMaterialId(other.getMaterialId());
}
if (other.op_ != 0) {
setOpValue(other.getOpValue());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -801,6 +680,37 @@ public final class SetWidgetSlotRspOuterClass {
}
private int bitField0_;
private int materialId_ ;
/**
* <code>uint32 material_id = 12;</code>
* @return The materialId.
*/
@java.lang.Override
public int getMaterialId() {
return materialId_;
}
/**
* <code>uint32 material_id = 12;</code>
* @param value The materialId to set.
* @return This builder for chaining.
*/
public Builder setMaterialId(int value) {
materialId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 material_id = 12;</code>
* @return This builder for chaining.
*/
public Builder clearMaterialId() {
materialId_ = 0;
onChanged();
return this;
}
private java.util.List<java.lang.Integer> tagList_ =
java.util.Collections.emptyList();
private void ensureTagListIsMutable() {
@@ -810,7 +720,7 @@ public final class SetWidgetSlotRspOuterClass {
}
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return A list containing the tagList.
*/
public java.util.List<emu.grasscutter.net.proto.WidgetSlotTagOuterClass.WidgetSlotTag> getTagListList() {
@@ -818,14 +728,14 @@ public final class SetWidgetSlotRspOuterClass {
java.lang.Integer, emu.grasscutter.net.proto.WidgetSlotTagOuterClass.WidgetSlotTag>(tagList_, tagList_converter_);
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return The count of tagList.
*/
public int getTagListCount() {
return tagList_.size();
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the element to return.
* @return The tagList at the given index.
*/
@@ -833,7 +743,7 @@ public final class SetWidgetSlotRspOuterClass {
return tagList_converter_.convert(tagList_.get(index));
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index to set the value at.
* @param value The tagList to set.
* @return This builder for chaining.
@@ -849,7 +759,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param value The tagList to add.
* @return This builder for chaining.
*/
@@ -863,7 +773,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param values The tagList to add.
* @return This builder for chaining.
*/
@@ -877,7 +787,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return This builder for chaining.
*/
public Builder clearTagList() {
@@ -887,7 +797,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @return A list containing the enum numeric values on the wire for tagList.
*/
public java.util.List<java.lang.Integer>
@@ -895,7 +805,7 @@ public final class SetWidgetSlotRspOuterClass {
return java.util.Collections.unmodifiableList(tagList_);
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of tagList at the given index.
*/
@@ -903,7 +813,7 @@ public final class SetWidgetSlotRspOuterClass {
return tagList_.get(index);
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of tagList at the given index.
* @return This builder for chaining.
@@ -916,7 +826,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param value The enum numeric value on the wire for tagList to add.
* @return This builder for chaining.
*/
@@ -927,7 +837,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>repeated .WidgetSlotTag tagList = 7;</code>
* <code>repeated .WidgetSlotTag tag_list = 15;</code>
* @param values The enum numeric values on the wire for tagList to add.
* @return This builder for chaining.
*/
@@ -941,78 +851,16 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 5;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 5;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 5;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private int materialId_ ;
/**
* <code>uint32 materialId = 12;</code>
* @return The materialId.
*/
@java.lang.Override
public int getMaterialId() {
return materialId_;
}
/**
* <code>uint32 materialId = 12;</code>
* @param value The materialId to set.
* @return This builder for chaining.
*/
public Builder setMaterialId(int value) {
materialId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 materialId = 12;</code>
* @return This builder for chaining.
*/
public Builder clearMaterialId() {
materialId_ = 0;
onChanged();
return this;
}
private int op_ = 0;
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return The enum numeric value on the wire for op.
*/
@java.lang.Override public int getOpValue() {
return op_;
}
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @param value The enum numeric value on the wire for op to set.
* @return This builder for chaining.
*/
@@ -1023,7 +871,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return The op.
*/
@java.lang.Override
@@ -1033,7 +881,7 @@ public final class SetWidgetSlotRspOuterClass {
return result == null ? emu.grasscutter.net.proto.WidgetSlotOpOuterClass.WidgetSlotOp.UNRECOGNIZED : result;
}
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @param value The op to set.
* @return This builder for chaining.
*/
@@ -1047,7 +895,7 @@ public final class SetWidgetSlotRspOuterClass {
return this;
}
/**
* <code>.WidgetSlotOp op = 9;</code>
* <code>.WidgetSlotOp op = 2;</code>
* @return This builder for chaining.
*/
public Builder clearOp() {
@@ -1056,6 +904,37 @@ public final class SetWidgetSlotRspOuterClass {
onChanged();
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 7;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 7;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 7;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1124,12 +1003,10 @@ public final class SetWidgetSlotRspOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\026SetWidgetSlotRsp.proto\032\022WidgetSlotOp.p" +
"roto\032\023WidgetSlotTag.proto\"\304\001\n\020SetWidgetS" +
"lotRsp\022\037\n\007tagList\030\007 \003(\0162\016.WidgetSlotTag\022" +
"\017\n\007retcode\030\005 \001(\005\022\022\n\nmaterialId\030\014 \001(\r\022\031\n\002" +
"op\030\t \001(\0162\r.WidgetSlotOp\"O\n\013KDEJOBDFODP\022\010" +
"\n\004NONE\020\000\022\020\n\013PEPPOHPHJOJ\020\274!\022\017\n\013DCDNILFDFL" +
"B\020\000\022\017\n\013NNBKOLMPOEA\020\001\032\002\020\001B\033\n\031emu.grasscut" +
"roto\032\023WidgetSlotTag.proto\"u\n\020SetWidgetSl" +
"otRsp\022\023\n\013material_id\030\014 \001(\r\022 \n\010tag_list\030\017" +
" \003(\0162\016.WidgetSlotTag\022\031\n\002op\030\002 \001(\0162\r.Widge" +
"tSlotOp\022\017\n\007retcode\030\007 \001(\005B\033\n\031emu.grasscut" +
"ter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -1143,7 +1020,7 @@ public final class SetWidgetSlotRspOuterClass {
internal_static_SetWidgetSlotRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_SetWidgetSlotRsp_descriptor,
new java.lang.String[] { "TagList", "Retcode", "MaterialId", "Op", });
new java.lang.String[] { "MaterialId", "TagList", "Op", "Retcode", });
emu.grasscutter.net.proto.WidgetSlotOpOuterClass.getDescriptor();
emu.grasscutter.net.proto.WidgetSlotTagOuterClass.getDescriptor();
}