From 76c45ba3a7cb259c0f41fd1aa83ae7c91006d503 Mon Sep 17 00:00:00 2001 From: Nazrin Date: Mon, 19 Aug 2024 09:24:52 -0700 Subject: [PATCH] Packet Pack: Cooking (#142) * Packet Pack: Cooking --- .../proto/CompoundDataNotifyOuterClass.java | 1051 ----------- .../proto/CompoundQueueDataOuterClass.java | 748 -------- .../net/proto/CookDataNotifyOuterClass.java | 928 ---------- .../proto/CookRecipeDataNotifyOuterClass.java | 686 ------- .../net/proto/CookRecipeDataOuterClass.java | 606 ------ .../proto/GetCompoundDataReqOuterClass.java | 480 ----- .../proto/GetCompoundDataRspOuterClass.java | 1122 ----------- .../PlayerCompoundMaterialReqOuterClass.java | 621 ------- .../PlayerCompoundMaterialRspOuterClass.java | 755 -------- .../proto/PlayerCookArgsReqOuterClass.java | 621 ------- .../proto/PlayerCookArgsRspOuterClass.java | 623 ------- .../net/proto/PlayerCookReqOuterClass.java | 761 -------- .../net/proto/PlayerCookRspOuterClass.java | 1648 ----------------- .../TakeCompoundOutputReqOuterClass.java | 621 ------- .../TakeCompoundOutputRspOuterClass.java | 926 --------- .../cooking/CookingCompoundManager.java | 27 +- .../game/managers/cooking/CookingManager.java | 29 +- .../recv/HandlerGetCompoundDataReq.java | 12 +- .../HandlerPlayerCompoundMaterialReq.java | 12 +- .../packet/recv/HandlerPlayerCookArgsReq.java | 12 +- .../packet/recv/HandlerPlayerCookReq.java | 12 +- .../recv/HandlerTakeCompoundOutputReq.java | 12 +- .../packet/send/PacketCompoundDataNotify.java | 19 +- .../packet/send/PacketCookDataNotify.java | 21 +- .../send/PacketCookRecipeDataNotify.java | 33 +- .../packet/send/PacketGetCompoundDataRsp.java | 20 +- .../send/PacketPlayerCompoundMaterialRsp.java | 27 +- .../packet/send/PacketPlayerCookArgsRsp.java | 15 +- .../packet/send/PacketPlayerCookRsp.java | 54 +- .../send/PacketTakeCompoundOutputRsp.java | 20 +- 30 files changed, 129 insertions(+), 12393 deletions(-) delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/CompoundQueueDataOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/CookDataNotifyOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataNotifyOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataReqOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataRspOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialReqOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialRspOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsReqOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsRspOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/PlayerCookReqOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/PlayerCookRspOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputReqOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputRspOuterClass.java diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java deleted file mode 100644 index c94488cc..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java +++ /dev/null @@ -1,1051 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CompoundDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class CompoundDataNotifyOuterClass { - private CompoundDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CompoundDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:CompoundDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint32 unlock_compound_list = 1; - * @return A list containing the unlockCompoundList. - */ - java.util.List getUnlockCompoundListList(); - /** - * repeated uint32 unlock_compound_list = 1; - * @return The count of unlockCompoundList. - */ - int getUnlockCompoundListCount(); - /** - * repeated uint32 unlock_compound_list = 1; - * @param index The index of the element to return. - * @return The unlockCompoundList at the given index. - */ - int getUnlockCompoundList(int index); - - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - java.util.List - getCompoundQueDataListList(); - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueDataList(int index); - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - int getCompoundQueDataListCount(); - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - java.util.List - getCompoundQueDataListOrBuilderList(); - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataListOrBuilder( - int index); - } - /** - *
-   * CmdId: 146
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * 
- * - * Protobuf type {@code CompoundDataNotify} - */ - public static final class CompoundDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CompoundDataNotify) - CompoundDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompoundDataNotify.newBuilder() to construct. - private CompoundDataNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompoundDataNotify() { - unlockCompoundList_ = emptyIntList(); - compoundQueDataList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CompoundDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompoundDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - unlockCompoundList_.addInt(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - unlockCompoundList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - unlockCompoundList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - compoundQueDataList_.add( - input.readMessage(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = java.util.Collections.unmodifiableList(compoundQueDataList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.internal_static_CompoundDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.internal_static_CompoundDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.class, emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.Builder.class); - } - - public static final int UNLOCK_COMPOUND_LIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList unlockCompoundList_; - /** - * repeated uint32 unlock_compound_list = 1; - * @return A list containing the unlockCompoundList. - */ - @java.lang.Override - public java.util.List - getUnlockCompoundListList() { - return unlockCompoundList_; - } - /** - * repeated uint32 unlock_compound_list = 1; - * @return The count of unlockCompoundList. - */ - public int getUnlockCompoundListCount() { - return unlockCompoundList_.size(); - } - /** - * repeated uint32 unlock_compound_list = 1; - * @param index The index of the element to return. - * @return The unlockCompoundList at the given index. - */ - public int getUnlockCompoundList(int index) { - return unlockCompoundList_.getInt(index); - } - private int unlockCompoundListMemoizedSerializedSize = -1; - - public static final int COMPOUND_QUE_DATA_LIST_FIELD_NUMBER = 9; - private java.util.List compoundQueDataList_; - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - @java.lang.Override - public java.util.List getCompoundQueDataListList() { - return compoundQueDataList_; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - @java.lang.Override - public java.util.List - getCompoundQueDataListOrBuilderList() { - return compoundQueDataList_; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - @java.lang.Override - public int getCompoundQueDataListCount() { - return compoundQueDataList_.size(); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueDataList(int index) { - return compoundQueDataList_.get(index); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataListOrBuilder( - int index) { - return compoundQueDataList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getUnlockCompoundListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(unlockCompoundListMemoizedSerializedSize); - } - for (int i = 0; i < unlockCompoundList_.size(); i++) { - output.writeUInt32NoTag(unlockCompoundList_.getInt(i)); - } - for (int i = 0; i < compoundQueDataList_.size(); i++) { - output.writeMessage(9, compoundQueDataList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < unlockCompoundList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(unlockCompoundList_.getInt(i)); - } - size += dataSize; - if (!getUnlockCompoundListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - unlockCompoundListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < compoundQueDataList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, compoundQueDataList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify other = (emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify) obj; - - if (!getUnlockCompoundListList() - .equals(other.getUnlockCompoundListList())) return false; - if (!getCompoundQueDataListList() - .equals(other.getCompoundQueDataListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUnlockCompoundListCount() > 0) { - hash = (37 * hash) + UNLOCK_COMPOUND_LIST_FIELD_NUMBER; - hash = (53 * hash) + getUnlockCompoundListList().hashCode(); - } - if (getCompoundQueDataListCount() > 0) { - hash = (37 * hash) + COMPOUND_QUE_DATA_LIST_FIELD_NUMBER; - hash = (53 * hash) + getCompoundQueDataListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 146
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * 
- * - * Protobuf type {@code CompoundDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CompoundDataNotify) - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.internal_static_CompoundDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.internal_static_CompoundDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.class, emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCompoundQueDataListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - unlockCompoundList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (compoundQueDataListBuilder_ == null) { - compoundQueDataList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - compoundQueDataListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.internal_static_CompoundDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify build() { - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify buildPartial() { - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify result = new emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unlockCompoundList_ = unlockCompoundList_; - if (compoundQueDataListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = java.util.Collections.unmodifiableList(compoundQueDataList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.compoundQueDataList_ = compoundQueDataList_; - } else { - result.compoundQueDataList_ = compoundQueDataListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify other) { - if (other == emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify.getDefaultInstance()) return this; - if (!other.unlockCompoundList_.isEmpty()) { - if (unlockCompoundList_.isEmpty()) { - unlockCompoundList_ = other.unlockCompoundList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnlockCompoundListIsMutable(); - unlockCompoundList_.addAll(other.unlockCompoundList_); - } - onChanged(); - } - if (compoundQueDataListBuilder_ == null) { - if (!other.compoundQueDataList_.isEmpty()) { - if (compoundQueDataList_.isEmpty()) { - compoundQueDataList_ = other.compoundQueDataList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.addAll(other.compoundQueDataList_); - } - onChanged(); - } - } else { - if (!other.compoundQueDataList_.isEmpty()) { - if (compoundQueDataListBuilder_.isEmpty()) { - compoundQueDataListBuilder_.dispose(); - compoundQueDataListBuilder_ = null; - compoundQueDataList_ = other.compoundQueDataList_; - bitField0_ = (bitField0_ & ~0x00000002); - compoundQueDataListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCompoundQueDataListFieldBuilder() : null; - } else { - compoundQueDataListBuilder_.addAllMessages(other.compoundQueDataList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList unlockCompoundList_ = emptyIntList(); - private void ensureUnlockCompoundListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_ = mutableCopy(unlockCompoundList_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint32 unlock_compound_list = 1; - * @return A list containing the unlockCompoundList. - */ - public java.util.List - getUnlockCompoundListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(unlockCompoundList_) : unlockCompoundList_; - } - /** - * repeated uint32 unlock_compound_list = 1; - * @return The count of unlockCompoundList. - */ - public int getUnlockCompoundListCount() { - return unlockCompoundList_.size(); - } - /** - * repeated uint32 unlock_compound_list = 1; - * @param index The index of the element to return. - * @return The unlockCompoundList at the given index. - */ - public int getUnlockCompoundList(int index) { - return unlockCompoundList_.getInt(index); - } - /** - * repeated uint32 unlock_compound_list = 1; - * @param index The index to set the value at. - * @param value The unlockCompoundList to set. - * @return This builder for chaining. - */ - public Builder setUnlockCompoundList( - int index, int value) { - ensureUnlockCompoundListIsMutable(); - unlockCompoundList_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated uint32 unlock_compound_list = 1; - * @param value The unlockCompoundList to add. - * @return This builder for chaining. - */ - public Builder addUnlockCompoundList(int value) { - ensureUnlockCompoundListIsMutable(); - unlockCompoundList_.addInt(value); - onChanged(); - return this; - } - /** - * repeated uint32 unlock_compound_list = 1; - * @param values The unlockCompoundList to add. - * @return This builder for chaining. - */ - public Builder addAllUnlockCompoundList( - java.lang.Iterable values) { - ensureUnlockCompoundListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unlockCompoundList_); - onChanged(); - return this; - } - /** - * repeated uint32 unlock_compound_list = 1; - * @return This builder for chaining. - */ - public Builder clearUnlockCompoundList() { - unlockCompoundList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List compoundQueDataList_ = - java.util.Collections.emptyList(); - private void ensureCompoundQueDataListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = new java.util.ArrayList(compoundQueDataList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> compoundQueDataListBuilder_; - - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public java.util.List getCompoundQueDataListList() { - if (compoundQueDataListBuilder_ == null) { - return java.util.Collections.unmodifiableList(compoundQueDataList_); - } else { - return compoundQueDataListBuilder_.getMessageList(); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public int getCompoundQueDataListCount() { - if (compoundQueDataListBuilder_ == null) { - return compoundQueDataList_.size(); - } else { - return compoundQueDataListBuilder_.getCount(); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueDataList(int index) { - if (compoundQueDataListBuilder_ == null) { - return compoundQueDataList_.get(index); - } else { - return compoundQueDataListBuilder_.getMessage(index); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder setCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.set(index, value); - onChanged(); - } else { - compoundQueDataListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder setCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.set(index, builderForValue.build()); - onChanged(); - } else { - compoundQueDataListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder addCompoundQueDataList(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(value); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder addCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(index, value); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder addCompoundQueDataList( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(builderForValue.build()); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder addCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(index, builderForValue.build()); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder addAllCompoundQueDataList( - java.lang.Iterable values) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, compoundQueDataList_); - onChanged(); - } else { - compoundQueDataListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder clearCompoundQueDataList() { - if (compoundQueDataListBuilder_ == null) { - compoundQueDataList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - compoundQueDataListBuilder_.clear(); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public Builder removeCompoundQueDataList(int index) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.remove(index); - onChanged(); - } else { - compoundQueDataListBuilder_.remove(index); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder getCompoundQueDataListBuilder( - int index) { - return getCompoundQueDataListFieldBuilder().getBuilder(index); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataListOrBuilder( - int index) { - if (compoundQueDataListBuilder_ == null) { - return compoundQueDataList_.get(index); } else { - return compoundQueDataListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public java.util.List - getCompoundQueDataListOrBuilderList() { - if (compoundQueDataListBuilder_ != null) { - return compoundQueDataListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(compoundQueDataList_); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder addCompoundQueDataListBuilder() { - return getCompoundQueDataListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance()); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder addCompoundQueDataListBuilder( - int index) { - return getCompoundQueDataListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance()); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 9; - */ - public java.util.List - getCompoundQueDataListBuilderList() { - return getCompoundQueDataListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> - getCompoundQueDataListFieldBuilder() { - if (compoundQueDataListBuilder_ == null) { - compoundQueDataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder>( - compoundQueDataList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - compoundQueDataList_ = null; - } - return compoundQueDataListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CompoundDataNotify) - } - - // @@protoc_insertion_point(class_scope:CompoundDataNotify) - private static final emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify(); - } - - public static emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompoundDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompoundDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CompoundDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CompoundDataNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030CompoundDataNotify.proto\032\027CompoundQueu" + - "eData.proto\"f\n\022CompoundDataNotify\022\034\n\024unl" + - "ock_compound_list\030\001 \003(\r\0222\n\026compound_que_" + - "data_list\030\t \003(\0132\022.CompoundQueueDataB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(), - }); - internal_static_CompoundDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CompoundDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CompoundDataNotify_descriptor, - new java.lang.String[] { "UnlockCompoundList", "CompoundQueDataList", }); - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CompoundQueueDataOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CompoundQueueDataOuterClass.java deleted file mode 100644 index e70226d6..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/CompoundQueueDataOuterClass.java +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CompoundQueueData.proto - -package emu.grasscutter.net.proto; - -public final class CompoundQueueDataOuterClass { - private CompoundQueueDataOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CompoundQueueDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:CompoundQueueData) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 output_count = 1; - * @return The outputCount. - */ - int getOutputCount(); - - /** - * uint32 compound_id = 4; - * @return The compoundId. - */ - int getCompoundId(); - - /** - * uint32 output_time = 14; - * @return The outputTime. - */ - int getOutputTime(); - - /** - * uint32 wait_count = 8; - * @return The waitCount. - */ - int getWaitCount(); - } - /** - * Protobuf type {@code CompoundQueueData} - */ - public static final class CompoundQueueData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CompoundQueueData) - CompoundQueueDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompoundQueueData.newBuilder() to construct. - private CompoundQueueData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompoundQueueData() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CompoundQueueData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompoundQueueData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - outputCount_ = input.readUInt32(); - break; - } - case 32: { - - compoundId_ = input.readUInt32(); - break; - } - case 64: { - - waitCount_ = input.readUInt32(); - break; - } - case 112: { - - outputTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.class, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder.class); - } - - public static final int OUTPUT_COUNT_FIELD_NUMBER = 1; - private int outputCount_; - /** - * uint32 output_count = 1; - * @return The outputCount. - */ - @java.lang.Override - public int getOutputCount() { - return outputCount_; - } - - public static final int COMPOUND_ID_FIELD_NUMBER = 4; - private int compoundId_; - /** - * uint32 compound_id = 4; - * @return The compoundId. - */ - @java.lang.Override - public int getCompoundId() { - return compoundId_; - } - - public static final int OUTPUT_TIME_FIELD_NUMBER = 14; - private int outputTime_; - /** - * uint32 output_time = 14; - * @return The outputTime. - */ - @java.lang.Override - public int getOutputTime() { - return outputTime_; - } - - public static final int WAIT_COUNT_FIELD_NUMBER = 8; - private int waitCount_; - /** - * uint32 wait_count = 8; - * @return The waitCount. - */ - @java.lang.Override - public int getWaitCount() { - return waitCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (outputCount_ != 0) { - output.writeUInt32(1, outputCount_); - } - if (compoundId_ != 0) { - output.writeUInt32(4, compoundId_); - } - if (waitCount_ != 0) { - output.writeUInt32(8, waitCount_); - } - if (outputTime_ != 0) { - output.writeUInt32(14, outputTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, outputCount_); - } - if (compoundId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, compoundId_); - } - if (waitCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, waitCount_); - } - if (outputTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, outputTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData other = (emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData) obj; - - if (getOutputCount() - != other.getOutputCount()) return false; - if (getCompoundId() - != other.getCompoundId()) return false; - if (getOutputTime() - != other.getOutputTime()) return false; - if (getWaitCount() - != other.getWaitCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OUTPUT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getOutputCount(); - hash = (37 * hash) + COMPOUND_ID_FIELD_NUMBER; - hash = (53 * hash) + getCompoundId(); - hash = (37 * hash) + OUTPUT_TIME_FIELD_NUMBER; - hash = (53 * hash) + getOutputTime(); - hash = (37 * hash) + WAIT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getWaitCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CompoundQueueData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CompoundQueueData) - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.class, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - outputCount_ = 0; - - compoundId_ = 0; - - outputTime_ = 0; - - waitCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData build() { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData buildPartial() { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData result = new emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData(this); - result.outputCount_ = outputCount_; - result.compoundId_ = compoundId_; - result.outputTime_ = outputTime_; - result.waitCount_ = waitCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData) { - return mergeFrom((emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData other) { - if (other == emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance()) return this; - if (other.getOutputCount() != 0) { - setOutputCount(other.getOutputCount()); - } - if (other.getCompoundId() != 0) { - setCompoundId(other.getCompoundId()); - } - if (other.getOutputTime() != 0) { - setOutputTime(other.getOutputTime()); - } - if (other.getWaitCount() != 0) { - setWaitCount(other.getWaitCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int outputCount_ ; - /** - * uint32 output_count = 1; - * @return The outputCount. - */ - @java.lang.Override - public int getOutputCount() { - return outputCount_; - } - /** - * uint32 output_count = 1; - * @param value The outputCount to set. - * @return This builder for chaining. - */ - public Builder setOutputCount(int value) { - - outputCount_ = value; - onChanged(); - return this; - } - /** - * uint32 output_count = 1; - * @return This builder for chaining. - */ - public Builder clearOutputCount() { - - outputCount_ = 0; - onChanged(); - return this; - } - - private int compoundId_ ; - /** - * uint32 compound_id = 4; - * @return The compoundId. - */ - @java.lang.Override - public int getCompoundId() { - return compoundId_; - } - /** - * uint32 compound_id = 4; - * @param value The compoundId to set. - * @return This builder for chaining. - */ - public Builder setCompoundId(int value) { - - compoundId_ = value; - onChanged(); - return this; - } - /** - * uint32 compound_id = 4; - * @return This builder for chaining. - */ - public Builder clearCompoundId() { - - compoundId_ = 0; - onChanged(); - return this; - } - - private int outputTime_ ; - /** - * uint32 output_time = 14; - * @return The outputTime. - */ - @java.lang.Override - public int getOutputTime() { - return outputTime_; - } - /** - * uint32 output_time = 14; - * @param value The outputTime to set. - * @return This builder for chaining. - */ - public Builder setOutputTime(int value) { - - outputTime_ = value; - onChanged(); - return this; - } - /** - * uint32 output_time = 14; - * @return This builder for chaining. - */ - public Builder clearOutputTime() { - - outputTime_ = 0; - onChanged(); - return this; - } - - private int waitCount_ ; - /** - * uint32 wait_count = 8; - * @return The waitCount. - */ - @java.lang.Override - public int getWaitCount() { - return waitCount_; - } - /** - * uint32 wait_count = 8; - * @param value The waitCount to set. - * @return This builder for chaining. - */ - public Builder setWaitCount(int value) { - - waitCount_ = value; - onChanged(); - return this; - } - /** - * uint32 wait_count = 8; - * @return This builder for chaining. - */ - public Builder clearWaitCount() { - - waitCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CompoundQueueData) - } - - // @@protoc_insertion_point(class_scope:CompoundQueueData) - private static final emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData(); - } - - public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompoundQueueData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompoundQueueData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CompoundQueueData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CompoundQueueData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027CompoundQueueData.proto\"g\n\021CompoundQue" + - "ueData\022\024\n\014output_count\030\001 \001(\r\022\023\n\013compound" + - "_id\030\004 \001(\r\022\023\n\013output_time\030\016 \001(\r\022\022\n\nwait_c" + - "ount\030\010 \001(\rB\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CompoundQueueData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CompoundQueueData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CompoundQueueData_descriptor, - new java.lang.String[] { "OutputCount", "CompoundId", "OutputTime", "WaitCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CookDataNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CookDataNotifyOuterClass.java deleted file mode 100644 index e4d331a8..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/CookDataNotifyOuterClass.java +++ /dev/null @@ -1,928 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CookDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class CookDataNotifyOuterClass { - private CookDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CookDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:CookDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - java.util.List - getRecipeDataListList(); - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeDataList(int index); - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - int getRecipeDataListCount(); - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - java.util.List - getRecipeDataListOrBuilderList(); - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataListOrBuilder( - int index); - - /** - * uint32 grade = 11; - * @return The grade. - */ - int getGrade(); - } - /** - *
-   * CmdId: 195
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code CookDataNotify} - */ - public static final class CookDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CookDataNotify) - CookDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use CookDataNotify.newBuilder() to construct. - private CookDataNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CookDataNotify() { - recipeDataList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CookDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CookDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipeDataList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipeDataList_.add( - input.readMessage(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.parser(), extensionRegistry)); - break; - } - case 88: { - - grade_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - recipeDataList_ = java.util.Collections.unmodifiableList(recipeDataList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.class, emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.Builder.class); - } - - public static final int RECIPE_DATA_LIST_FIELD_NUMBER = 2; - private java.util.List recipeDataList_; - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - @java.lang.Override - public java.util.List getRecipeDataListList() { - return recipeDataList_; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - @java.lang.Override - public java.util.List - getRecipeDataListOrBuilderList() { - return recipeDataList_; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - @java.lang.Override - public int getRecipeDataListCount() { - return recipeDataList_.size(); - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeDataList(int index) { - return recipeDataList_.get(index); - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataListOrBuilder( - int index) { - return recipeDataList_.get(index); - } - - public static final int GRADE_FIELD_NUMBER = 11; - private int grade_; - /** - * uint32 grade = 11; - * @return The grade. - */ - @java.lang.Override - public int getGrade() { - return grade_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < recipeDataList_.size(); i++) { - output.writeMessage(2, recipeDataList_.get(i)); - } - if (grade_ != 0) { - output.writeUInt32(11, grade_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < recipeDataList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, recipeDataList_.get(i)); - } - if (grade_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, grade_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify other = (emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify) obj; - - if (!getRecipeDataListList() - .equals(other.getRecipeDataListList())) return false; - if (getGrade() - != other.getGrade()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRecipeDataListCount() > 0) { - hash = (37 * hash) + RECIPE_DATA_LIST_FIELD_NUMBER; - hash = (53 * hash) + getRecipeDataListList().hashCode(); - } - hash = (37 * hash) + GRADE_FIELD_NUMBER; - hash = (53 * hash) + getGrade(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 195
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code CookDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CookDataNotify) - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.class, emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRecipeDataListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (recipeDataListBuilder_ == null) { - recipeDataList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - recipeDataListBuilder_.clear(); - } - grade_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify build() { - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify buildPartial() { - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify result = new emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify(this); - int from_bitField0_ = bitField0_; - if (recipeDataListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - recipeDataList_ = java.util.Collections.unmodifiableList(recipeDataList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipeDataList_ = recipeDataList_; - } else { - result.recipeDataList_ = recipeDataListBuilder_.build(); - } - result.grade_ = grade_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify other) { - if (other == emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.getDefaultInstance()) return this; - if (recipeDataListBuilder_ == null) { - if (!other.recipeDataList_.isEmpty()) { - if (recipeDataList_.isEmpty()) { - recipeDataList_ = other.recipeDataList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipeDataListIsMutable(); - recipeDataList_.addAll(other.recipeDataList_); - } - onChanged(); - } - } else { - if (!other.recipeDataList_.isEmpty()) { - if (recipeDataListBuilder_.isEmpty()) { - recipeDataListBuilder_.dispose(); - recipeDataListBuilder_ = null; - recipeDataList_ = other.recipeDataList_; - bitField0_ = (bitField0_ & ~0x00000001); - recipeDataListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRecipeDataListFieldBuilder() : null; - } else { - recipeDataListBuilder_.addAllMessages(other.recipeDataList_); - } - } - } - if (other.getGrade() != 0) { - setGrade(other.getGrade()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List recipeDataList_ = - java.util.Collections.emptyList(); - private void ensureRecipeDataListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipeDataList_ = new java.util.ArrayList(recipeDataList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> recipeDataListBuilder_; - - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public java.util.List getRecipeDataListList() { - if (recipeDataListBuilder_ == null) { - return java.util.Collections.unmodifiableList(recipeDataList_); - } else { - return recipeDataListBuilder_.getMessageList(); - } - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public int getRecipeDataListCount() { - if (recipeDataListBuilder_ == null) { - return recipeDataList_.size(); - } else { - return recipeDataListBuilder_.getCount(); - } - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeDataList(int index) { - if (recipeDataListBuilder_ == null) { - return recipeDataList_.get(index); - } else { - return recipeDataListBuilder_.getMessage(index); - } - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder setRecipeDataList( - int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipeDataListIsMutable(); - recipeDataList_.set(index, value); - onChanged(); - } else { - recipeDataListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder setRecipeDataList( - int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) { - if (recipeDataListBuilder_ == null) { - ensureRecipeDataListIsMutable(); - recipeDataList_.set(index, builderForValue.build()); - onChanged(); - } else { - recipeDataListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder addRecipeDataList(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipeDataListIsMutable(); - recipeDataList_.add(value); - onChanged(); - } else { - recipeDataListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder addRecipeDataList( - int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipeDataListIsMutable(); - recipeDataList_.add(index, value); - onChanged(); - } else { - recipeDataListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder addRecipeDataList( - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) { - if (recipeDataListBuilder_ == null) { - ensureRecipeDataListIsMutable(); - recipeDataList_.add(builderForValue.build()); - onChanged(); - } else { - recipeDataListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder addRecipeDataList( - int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) { - if (recipeDataListBuilder_ == null) { - ensureRecipeDataListIsMutable(); - recipeDataList_.add(index, builderForValue.build()); - onChanged(); - } else { - recipeDataListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder addAllRecipeDataList( - java.lang.Iterable values) { - if (recipeDataListBuilder_ == null) { - ensureRecipeDataListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipeDataList_); - onChanged(); - } else { - recipeDataListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder clearRecipeDataList() { - if (recipeDataListBuilder_ == null) { - recipeDataList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - recipeDataListBuilder_.clear(); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public Builder removeRecipeDataList(int index) { - if (recipeDataListBuilder_ == null) { - ensureRecipeDataListIsMutable(); - recipeDataList_.remove(index); - onChanged(); - } else { - recipeDataListBuilder_.remove(index); - } - return this; - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder getRecipeDataListBuilder( - int index) { - return getRecipeDataListFieldBuilder().getBuilder(index); - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataListOrBuilder( - int index) { - if (recipeDataListBuilder_ == null) { - return recipeDataList_.get(index); } else { - return recipeDataListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public java.util.List - getRecipeDataListOrBuilderList() { - if (recipeDataListBuilder_ != null) { - return recipeDataListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(recipeDataList_); - } - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder addRecipeDataListBuilder() { - return getRecipeDataListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance()); - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder addRecipeDataListBuilder( - int index) { - return getRecipeDataListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance()); - } - /** - * repeated .CookRecipeData recipe_data_list = 2; - */ - public java.util.List - getRecipeDataListBuilderList() { - return getRecipeDataListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> - getRecipeDataListFieldBuilder() { - if (recipeDataListBuilder_ == null) { - recipeDataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>( - recipeDataList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - recipeDataList_ = null; - } - return recipeDataListBuilder_; - } - - private int grade_ ; - /** - * uint32 grade = 11; - * @return The grade. - */ - @java.lang.Override - public int getGrade() { - return grade_; - } - /** - * uint32 grade = 11; - * @param value The grade to set. - * @return This builder for chaining. - */ - public Builder setGrade(int value) { - - grade_ = value; - onChanged(); - return this; - } - /** - * uint32 grade = 11; - * @return This builder for chaining. - */ - public Builder clearGrade() { - - grade_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CookDataNotify) - } - - // @@protoc_insertion_point(class_scope:CookDataNotify) - private static final emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify(); - } - - public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CookDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CookDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CookDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CookDataNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CookDataNotify.proto\032\024CookRecipeData.p" + - "roto\"J\n\016CookDataNotify\022)\n\020recipe_data_li" + - "st\030\002 \003(\0132\017.CookRecipeData\022\r\n\005grade\030\013 \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(), - }); - internal_static_CookDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CookDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CookDataNotify_descriptor, - new java.lang.String[] { "RecipeDataList", "Grade", }); - emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataNotifyOuterClass.java deleted file mode 100644 index 53410fc7..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataNotifyOuterClass.java +++ /dev/null @@ -1,686 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CookRecipeDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class CookRecipeDataNotifyOuterClass { - private CookRecipeDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CookRecipeDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:CookRecipeDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * .CookRecipeData recipe_data = 4; - * @return Whether the recipeData field is set. - */ - boolean hasRecipeData(); - /** - * .CookRecipeData recipe_data = 4; - * @return The recipeData. - */ - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData(); - /** - * .CookRecipeData recipe_data = 4; - */ - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder(); - } - /** - *
-   * CmdId: 106
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code CookRecipeDataNotify} - */ - public static final class CookRecipeDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CookRecipeDataNotify) - CookRecipeDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use CookRecipeDataNotify.newBuilder() to construct. - private CookRecipeDataNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CookRecipeDataNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CookRecipeDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CookRecipeDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder subBuilder = null; - if (recipeData_ != null) { - subBuilder = recipeData_.toBuilder(); - } - recipeData_ = input.readMessage(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipeData_); - recipeData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.class, emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.Builder.class); - } - - public static final int RECIPE_DATA_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData recipeData_; - /** - * .CookRecipeData recipe_data = 4; - * @return Whether the recipeData field is set. - */ - @java.lang.Override - public boolean hasRecipeData() { - return recipeData_ != null; - } - /** - * .CookRecipeData recipe_data = 4; - * @return The recipeData. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData() { - return recipeData_ == null ? emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_; - } - /** - * .CookRecipeData recipe_data = 4; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder() { - return getRecipeData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (recipeData_ != null) { - output.writeMessage(4, getRecipeData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (recipeData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getRecipeData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify other = (emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify) obj; - - if (hasRecipeData() != other.hasRecipeData()) return false; - if (hasRecipeData()) { - if (!getRecipeData() - .equals(other.getRecipeData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRecipeData()) { - hash = (37 * hash) + RECIPE_DATA_FIELD_NUMBER; - hash = (53 * hash) + getRecipeData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 106
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code CookRecipeDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CookRecipeDataNotify) - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.class, emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (recipeDataBuilder_ == null) { - recipeData_ = null; - } else { - recipeData_ = null; - recipeDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify build() { - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify buildPartial() { - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify result = new emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify(this); - if (recipeDataBuilder_ == null) { - result.recipeData_ = recipeData_; - } else { - result.recipeData_ = recipeDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify other) { - if (other == emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.getDefaultInstance()) return this; - if (other.hasRecipeData()) { - mergeRecipeData(other.getRecipeData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData recipeData_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> recipeDataBuilder_; - /** - * .CookRecipeData recipe_data = 4; - * @return Whether the recipeData field is set. - */ - public boolean hasRecipeData() { - return recipeDataBuilder_ != null || recipeData_ != null; - } - /** - * .CookRecipeData recipe_data = 4; - * @return The recipeData. - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData() { - if (recipeDataBuilder_ == null) { - return recipeData_ == null ? emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_; - } else { - return recipeDataBuilder_.getMessage(); - } - } - /** - * .CookRecipeData recipe_data = 4; - */ - public Builder setRecipeData(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - recipeData_ = value; - onChanged(); - } else { - recipeDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .CookRecipeData recipe_data = 4; - */ - public Builder setRecipeData( - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) { - if (recipeDataBuilder_ == null) { - recipeData_ = builderForValue.build(); - onChanged(); - } else { - recipeDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .CookRecipeData recipe_data = 4; - */ - public Builder mergeRecipeData(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataBuilder_ == null) { - if (recipeData_ != null) { - recipeData_ = - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.newBuilder(recipeData_).mergeFrom(value).buildPartial(); - } else { - recipeData_ = value; - } - onChanged(); - } else { - recipeDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .CookRecipeData recipe_data = 4; - */ - public Builder clearRecipeData() { - if (recipeDataBuilder_ == null) { - recipeData_ = null; - onChanged(); - } else { - recipeData_ = null; - recipeDataBuilder_ = null; - } - - return this; - } - /** - * .CookRecipeData recipe_data = 4; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder getRecipeDataBuilder() { - - onChanged(); - return getRecipeDataFieldBuilder().getBuilder(); - } - /** - * .CookRecipeData recipe_data = 4; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder() { - if (recipeDataBuilder_ != null) { - return recipeDataBuilder_.getMessageOrBuilder(); - } else { - return recipeData_ == null ? - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_; - } - } - /** - * .CookRecipeData recipe_data = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> - getRecipeDataFieldBuilder() { - if (recipeDataBuilder_ == null) { - recipeDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>( - getRecipeData(), - getParentForChildren(), - isClean()); - recipeData_ = null; - } - return recipeDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CookRecipeDataNotify) - } - - // @@protoc_insertion_point(class_scope:CookRecipeDataNotify) - private static final emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify(); - } - - public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CookRecipeDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CookRecipeDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CookRecipeDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CookRecipeDataNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032CookRecipeDataNotify.proto\032\024CookRecipe" + - "Data.proto\"<\n\024CookRecipeDataNotify\022$\n\013re" + - "cipe_data\030\004 \001(\0132\017.CookRecipeDataB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(), - }); - internal_static_CookRecipeDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CookRecipeDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CookRecipeDataNotify_descriptor, - new java.lang.String[] { "RecipeData", }); - emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataOuterClass.java deleted file mode 100644 index 0139f58a..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/CookRecipeDataOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CookRecipeData.proto - -package emu.grasscutter.net.proto; - -public final class CookRecipeDataOuterClass { - private CookRecipeDataOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CookRecipeDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:CookRecipeData) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 proficiency = 13; - * @return The proficiency. - */ - int getProficiency(); - - /** - * uint32 recipe_id = 9; - * @return The recipeId. - */ - int getRecipeId(); - } - /** - * Protobuf type {@code CookRecipeData} - */ - public static final class CookRecipeData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CookRecipeData) - CookRecipeDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use CookRecipeData.newBuilder() to construct. - private CookRecipeData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CookRecipeData() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CookRecipeData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CookRecipeData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 72: { - - recipeId_ = input.readUInt32(); - break; - } - case 104: { - - proficiency_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.class, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder.class); - } - - public static final int PROFICIENCY_FIELD_NUMBER = 13; - private int proficiency_; - /** - * uint32 proficiency = 13; - * @return The proficiency. - */ - @java.lang.Override - public int getProficiency() { - return proficiency_; - } - - public static final int RECIPE_ID_FIELD_NUMBER = 9; - private int recipeId_; - /** - * uint32 recipe_id = 9; - * @return The recipeId. - */ - @java.lang.Override - public int getRecipeId() { - return recipeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (recipeId_ != 0) { - output.writeUInt32(9, recipeId_); - } - if (proficiency_ != 0) { - output.writeUInt32(13, proficiency_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (recipeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, recipeId_); - } - if (proficiency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, proficiency_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData other = (emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData) obj; - - if (getProficiency() - != other.getProficiency()) return false; - if (getRecipeId() - != other.getRecipeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROFICIENCY_FIELD_NUMBER; - hash = (53 * hash) + getProficiency(); - hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER; - hash = (53 * hash) + getRecipeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CookRecipeData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CookRecipeData) - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.class, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proficiency_ = 0; - - recipeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData build() { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData buildPartial() { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData result = new emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData(this); - result.proficiency_ = proficiency_; - result.recipeId_ = recipeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData) { - return mergeFrom((emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData other) { - if (other == emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance()) return this; - if (other.getProficiency() != 0) { - setProficiency(other.getProficiency()); - } - if (other.getRecipeId() != 0) { - setRecipeId(other.getRecipeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int proficiency_ ; - /** - * uint32 proficiency = 13; - * @return The proficiency. - */ - @java.lang.Override - public int getProficiency() { - return proficiency_; - } - /** - * uint32 proficiency = 13; - * @param value The proficiency to set. - * @return This builder for chaining. - */ - public Builder setProficiency(int value) { - - proficiency_ = value; - onChanged(); - return this; - } - /** - * uint32 proficiency = 13; - * @return This builder for chaining. - */ - public Builder clearProficiency() { - - proficiency_ = 0; - onChanged(); - return this; - } - - private int recipeId_ ; - /** - * uint32 recipe_id = 9; - * @return The recipeId. - */ - @java.lang.Override - public int getRecipeId() { - return recipeId_; - } - /** - * uint32 recipe_id = 9; - * @param value The recipeId to set. - * @return This builder for chaining. - */ - public Builder setRecipeId(int value) { - - recipeId_ = value; - onChanged(); - return this; - } - /** - * uint32 recipe_id = 9; - * @return This builder for chaining. - */ - public Builder clearRecipeId() { - - recipeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CookRecipeData) - } - - // @@protoc_insertion_point(class_scope:CookRecipeData) - private static final emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData(); - } - - public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CookRecipeData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CookRecipeData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CookRecipeData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CookRecipeData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CookRecipeData.proto\"8\n\016CookRecipeData" + - "\022\023\n\013proficiency\030\r \001(\r\022\021\n\trecipe_id\030\t \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CookRecipeData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CookRecipeData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CookRecipeData_descriptor, - new java.lang.String[] { "Proficiency", "RecipeId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataReqOuterClass.java deleted file mode 100644 index 3911f644..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataReqOuterClass.java +++ /dev/null @@ -1,480 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetCompoundDataReq.proto - -package emu.grasscutter.net.proto; - -public final class GetCompoundDataReqOuterClass { - private GetCompoundDataReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetCompoundDataReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetCompoundDataReq) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * CmdId: 141
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code GetCompoundDataReq} - */ - public static final class GetCompoundDataReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetCompoundDataReq) - GetCompoundDataReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetCompoundDataReq.newBuilder() to construct. - private GetCompoundDataReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetCompoundDataReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetCompoundDataReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetCompoundDataReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.class, emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq other = (emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 141
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code GetCompoundDataReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GetCompoundDataReq) - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.class, emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq build() { - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq buildPartial() { - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq result = new emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq) { - return mergeFrom((emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq other) { - if (other == emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetCompoundDataReq) - } - - // @@protoc_insertion_point(class_scope:GetCompoundDataReq) - private static final emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq(); - } - - public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCompoundDataReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCompoundDataReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetCompoundDataReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetCompoundDataReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030GetCompoundDataReq.proto\"\024\n\022GetCompoun" + - "dDataReqB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetCompoundDataReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetCompoundDataReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetCompoundDataReq_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataRspOuterClass.java deleted file mode 100644 index 4032d836..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataRspOuterClass.java +++ /dev/null @@ -1,1122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetCompoundDataRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetCompoundDataRspOuterClass { - private GetCompoundDataRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetCompoundDataRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetCompoundDataRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 retcode = 3; - * @return The retcode. - */ - int getRetcode(); - - /** - * repeated uint32 unlock_compound_list = 11; - * @return A list containing the unlockCompoundList. - */ - java.util.List getUnlockCompoundListList(); - /** - * repeated uint32 unlock_compound_list = 11; - * @return The count of unlockCompoundList. - */ - int getUnlockCompoundListCount(); - /** - * repeated uint32 unlock_compound_list = 11; - * @param index The index of the element to return. - * @return The unlockCompoundList at the given index. - */ - int getUnlockCompoundList(int index); - - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - java.util.List - getCompoundQueDataListList(); - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueDataList(int index); - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - int getCompoundQueDataListCount(); - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - java.util.List - getCompoundQueDataListOrBuilderList(); - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataListOrBuilder( - int index); - } - /** - *
-   * CmdId: 149
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * 
- * - * Protobuf type {@code GetCompoundDataRsp} - */ - public static final class GetCompoundDataRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetCompoundDataRsp) - GetCompoundDataRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetCompoundDataRsp.newBuilder() to construct. - private GetCompoundDataRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetCompoundDataRsp() { - unlockCompoundList_ = emptyIntList(); - compoundQueDataList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetCompoundDataRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetCompoundDataRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - retcode_ = input.readInt32(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - compoundQueDataList_.add( - input.readMessage(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.parser(), extensionRegistry)); - break; - } - case 88: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - unlockCompoundList_.addInt(input.readUInt32()); - break; - } - case 90: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - unlockCompoundList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - unlockCompoundList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = java.util.Collections.unmodifiableList(compoundQueDataList_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.internal_static_GetCompoundDataRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.internal_static_GetCompoundDataRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.class, emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 3; - private int retcode_; - /** - * int32 retcode = 3; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int UNLOCK_COMPOUND_LIST_FIELD_NUMBER = 11; - private com.google.protobuf.Internal.IntList unlockCompoundList_; - /** - * repeated uint32 unlock_compound_list = 11; - * @return A list containing the unlockCompoundList. - */ - @java.lang.Override - public java.util.List - getUnlockCompoundListList() { - return unlockCompoundList_; - } - /** - * repeated uint32 unlock_compound_list = 11; - * @return The count of unlockCompoundList. - */ - public int getUnlockCompoundListCount() { - return unlockCompoundList_.size(); - } - /** - * repeated uint32 unlock_compound_list = 11; - * @param index The index of the element to return. - * @return The unlockCompoundList at the given index. - */ - public int getUnlockCompoundList(int index) { - return unlockCompoundList_.getInt(index); - } - private int unlockCompoundListMemoizedSerializedSize = -1; - - public static final int COMPOUND_QUE_DATA_LIST_FIELD_NUMBER = 7; - private java.util.List compoundQueDataList_; - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - @java.lang.Override - public java.util.List getCompoundQueDataListList() { - return compoundQueDataList_; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - @java.lang.Override - public java.util.List - getCompoundQueDataListOrBuilderList() { - return compoundQueDataList_; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - @java.lang.Override - public int getCompoundQueDataListCount() { - return compoundQueDataList_.size(); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueDataList(int index) { - return compoundQueDataList_.get(index); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataListOrBuilder( - int index) { - return compoundQueDataList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(3, retcode_); - } - for (int i = 0; i < compoundQueDataList_.size(); i++) { - output.writeMessage(7, compoundQueDataList_.get(i)); - } - if (getUnlockCompoundListList().size() > 0) { - output.writeUInt32NoTag(90); - output.writeUInt32NoTag(unlockCompoundListMemoizedSerializedSize); - } - for (int i = 0; i < unlockCompoundList_.size(); i++) { - output.writeUInt32NoTag(unlockCompoundList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, retcode_); - } - for (int i = 0; i < compoundQueDataList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, compoundQueDataList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < unlockCompoundList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(unlockCompoundList_.getInt(i)); - } - size += dataSize; - if (!getUnlockCompoundListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - unlockCompoundListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp other = (emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getUnlockCompoundListList() - .equals(other.getUnlockCompoundListList())) return false; - if (!getCompoundQueDataListList() - .equals(other.getCompoundQueDataListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getUnlockCompoundListCount() > 0) { - hash = (37 * hash) + UNLOCK_COMPOUND_LIST_FIELD_NUMBER; - hash = (53 * hash) + getUnlockCompoundListList().hashCode(); - } - if (getCompoundQueDataListCount() > 0) { - hash = (37 * hash) + COMPOUND_QUE_DATA_LIST_FIELD_NUMBER; - hash = (53 * hash) + getCompoundQueDataListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 149
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * 
- * - * Protobuf type {@code GetCompoundDataRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GetCompoundDataRsp) - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.internal_static_GetCompoundDataRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.internal_static_GetCompoundDataRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.class, emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCompoundQueDataListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - unlockCompoundList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (compoundQueDataListBuilder_ == null) { - compoundQueDataList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - compoundQueDataListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.internal_static_GetCompoundDataRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp build() { - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp buildPartial() { - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp result = new emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (((bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unlockCompoundList_ = unlockCompoundList_; - if (compoundQueDataListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = java.util.Collections.unmodifiableList(compoundQueDataList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.compoundQueDataList_ = compoundQueDataList_; - } else { - result.compoundQueDataList_ = compoundQueDataListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp other) { - if (other == emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.unlockCompoundList_.isEmpty()) { - if (unlockCompoundList_.isEmpty()) { - unlockCompoundList_ = other.unlockCompoundList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnlockCompoundListIsMutable(); - unlockCompoundList_.addAll(other.unlockCompoundList_); - } - onChanged(); - } - if (compoundQueDataListBuilder_ == null) { - if (!other.compoundQueDataList_.isEmpty()) { - if (compoundQueDataList_.isEmpty()) { - compoundQueDataList_ = other.compoundQueDataList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.addAll(other.compoundQueDataList_); - } - onChanged(); - } - } else { - if (!other.compoundQueDataList_.isEmpty()) { - if (compoundQueDataListBuilder_.isEmpty()) { - compoundQueDataListBuilder_.dispose(); - compoundQueDataListBuilder_ = null; - compoundQueDataList_ = other.compoundQueDataList_; - bitField0_ = (bitField0_ & ~0x00000002); - compoundQueDataListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCompoundQueDataListFieldBuilder() : null; - } else { - compoundQueDataListBuilder_.addAllMessages(other.compoundQueDataList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * int32 retcode = 3; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * int32 retcode = 3; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * int32 retcode = 3; - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList unlockCompoundList_ = emptyIntList(); - private void ensureUnlockCompoundListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unlockCompoundList_ = mutableCopy(unlockCompoundList_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint32 unlock_compound_list = 11; - * @return A list containing the unlockCompoundList. - */ - public java.util.List - getUnlockCompoundListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(unlockCompoundList_) : unlockCompoundList_; - } - /** - * repeated uint32 unlock_compound_list = 11; - * @return The count of unlockCompoundList. - */ - public int getUnlockCompoundListCount() { - return unlockCompoundList_.size(); - } - /** - * repeated uint32 unlock_compound_list = 11; - * @param index The index of the element to return. - * @return The unlockCompoundList at the given index. - */ - public int getUnlockCompoundList(int index) { - return unlockCompoundList_.getInt(index); - } - /** - * repeated uint32 unlock_compound_list = 11; - * @param index The index to set the value at. - * @param value The unlockCompoundList to set. - * @return This builder for chaining. - */ - public Builder setUnlockCompoundList( - int index, int value) { - ensureUnlockCompoundListIsMutable(); - unlockCompoundList_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated uint32 unlock_compound_list = 11; - * @param value The unlockCompoundList to add. - * @return This builder for chaining. - */ - public Builder addUnlockCompoundList(int value) { - ensureUnlockCompoundListIsMutable(); - unlockCompoundList_.addInt(value); - onChanged(); - return this; - } - /** - * repeated uint32 unlock_compound_list = 11; - * @param values The unlockCompoundList to add. - * @return This builder for chaining. - */ - public Builder addAllUnlockCompoundList( - java.lang.Iterable values) { - ensureUnlockCompoundListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unlockCompoundList_); - onChanged(); - return this; - } - /** - * repeated uint32 unlock_compound_list = 11; - * @return This builder for chaining. - */ - public Builder clearUnlockCompoundList() { - unlockCompoundList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List compoundQueDataList_ = - java.util.Collections.emptyList(); - private void ensureCompoundQueDataListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - compoundQueDataList_ = new java.util.ArrayList(compoundQueDataList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> compoundQueDataListBuilder_; - - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public java.util.List getCompoundQueDataListList() { - if (compoundQueDataListBuilder_ == null) { - return java.util.Collections.unmodifiableList(compoundQueDataList_); - } else { - return compoundQueDataListBuilder_.getMessageList(); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public int getCompoundQueDataListCount() { - if (compoundQueDataListBuilder_ == null) { - return compoundQueDataList_.size(); - } else { - return compoundQueDataListBuilder_.getCount(); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueDataList(int index) { - if (compoundQueDataListBuilder_ == null) { - return compoundQueDataList_.get(index); - } else { - return compoundQueDataListBuilder_.getMessage(index); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder setCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.set(index, value); - onChanged(); - } else { - compoundQueDataListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder setCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.set(index, builderForValue.build()); - onChanged(); - } else { - compoundQueDataListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder addCompoundQueDataList(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(value); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder addCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(index, value); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder addCompoundQueDataList( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(builderForValue.build()); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder addCompoundQueDataList( - int index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.add(index, builderForValue.build()); - onChanged(); - } else { - compoundQueDataListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder addAllCompoundQueDataList( - java.lang.Iterable values) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, compoundQueDataList_); - onChanged(); - } else { - compoundQueDataListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder clearCompoundQueDataList() { - if (compoundQueDataListBuilder_ == null) { - compoundQueDataList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - compoundQueDataListBuilder_.clear(); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public Builder removeCompoundQueDataList(int index) { - if (compoundQueDataListBuilder_ == null) { - ensureCompoundQueDataListIsMutable(); - compoundQueDataList_.remove(index); - onChanged(); - } else { - compoundQueDataListBuilder_.remove(index); - } - return this; - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder getCompoundQueDataListBuilder( - int index) { - return getCompoundQueDataListFieldBuilder().getBuilder(index); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataListOrBuilder( - int index) { - if (compoundQueDataListBuilder_ == null) { - return compoundQueDataList_.get(index); } else { - return compoundQueDataListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public java.util.List - getCompoundQueDataListOrBuilderList() { - if (compoundQueDataListBuilder_ != null) { - return compoundQueDataListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(compoundQueDataList_); - } - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder addCompoundQueDataListBuilder() { - return getCompoundQueDataListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance()); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder addCompoundQueDataListBuilder( - int index) { - return getCompoundQueDataListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance()); - } - /** - * repeated .CompoundQueueData compound_que_data_list = 7; - */ - public java.util.List - getCompoundQueDataListBuilderList() { - return getCompoundQueDataListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> - getCompoundQueDataListFieldBuilder() { - if (compoundQueDataListBuilder_ == null) { - compoundQueDataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder>( - compoundQueDataList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - compoundQueDataList_ = null; - } - return compoundQueDataListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetCompoundDataRsp) - } - - // @@protoc_insertion_point(class_scope:GetCompoundDataRsp) - private static final emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp(); - } - - public static emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCompoundDataRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCompoundDataRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetCompoundDataRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetCompoundDataRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030GetCompoundDataRsp.proto\032\027CompoundQueu" + - "eData.proto\"w\n\022GetCompoundDataRsp\022\017\n\007ret" + - "code\030\003 \001(\005\022\034\n\024unlock_compound_list\030\013 \003(\r" + - "\0222\n\026compound_que_data_list\030\007 \003(\0132\022.Compo" + - "undQueueDataB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(), - }); - internal_static_GetCompoundDataRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetCompoundDataRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetCompoundDataRsp_descriptor, - new java.lang.String[] { "Retcode", "UnlockCompoundList", "CompoundQueDataList", }); - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialReqOuterClass.java deleted file mode 100644 index a368591a..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialReqOuterClass.java +++ /dev/null @@ -1,621 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerCompoundMaterialReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerCompoundMaterialReqOuterClass { - private PlayerCompoundMaterialReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerCompoundMaterialReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerCompoundMaterialReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 count = 11; - * @return The count. - */ - int getCount(); - - /** - * uint32 compound_id = 3; - * @return The compoundId. - */ - int getCompoundId(); - } - /** - *
-   * CmdId: 150
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code PlayerCompoundMaterialReq} - */ - public static final class PlayerCompoundMaterialReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerCompoundMaterialReq) - PlayerCompoundMaterialReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerCompoundMaterialReq.newBuilder() to construct. - private PlayerCompoundMaterialReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlayerCompoundMaterialReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerCompoundMaterialReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerCompoundMaterialReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - compoundId_ = input.readUInt32(); - break; - } - case 88: { - - count_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.class, emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.Builder.class); - } - - public static final int COUNT_FIELD_NUMBER = 11; - private int count_; - /** - * uint32 count = 11; - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - public static final int COMPOUND_ID_FIELD_NUMBER = 3; - private int compoundId_; - /** - * uint32 compound_id = 3; - * @return The compoundId. - */ - @java.lang.Override - public int getCompoundId() { - return compoundId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (compoundId_ != 0) { - output.writeUInt32(3, compoundId_); - } - if (count_ != 0) { - output.writeUInt32(11, count_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compoundId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, compoundId_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq other = (emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq) obj; - - if (getCount() - != other.getCount()) return false; - if (getCompoundId() - != other.getCompoundId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + COMPOUND_ID_FIELD_NUMBER; - hash = (53 * hash) + getCompoundId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 150
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code PlayerCompoundMaterialReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerCompoundMaterialReq) - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.class, emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - count_ = 0; - - compoundId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq build() { - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq buildPartial() { - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq result = new emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq(this); - result.count_ = count_; - result.compoundId_ = compoundId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq other) { - if (other == emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.getDefaultInstance()) return this; - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getCompoundId() != 0) { - setCompoundId(other.getCompoundId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int count_ ; - /** - * uint32 count = 11; - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * uint32 count = 11; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * uint32 count = 11; - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private int compoundId_ ; - /** - * uint32 compound_id = 3; - * @return The compoundId. - */ - @java.lang.Override - public int getCompoundId() { - return compoundId_; - } - /** - * uint32 compound_id = 3; - * @param value The compoundId to set. - * @return This builder for chaining. - */ - public Builder setCompoundId(int value) { - - compoundId_ = value; - onChanged(); - return this; - } - /** - * uint32 compound_id = 3; - * @return This builder for chaining. - */ - public Builder clearCompoundId() { - - compoundId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerCompoundMaterialReq) - } - - // @@protoc_insertion_point(class_scope:PlayerCompoundMaterialReq) - private static final emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq(); - } - - public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerCompoundMaterialReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerCompoundMaterialReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerCompoundMaterialReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerCompoundMaterialReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037PlayerCompoundMaterialReq.proto\"?\n\031Pla" + - "yerCompoundMaterialReq\022\r\n\005count\030\013 \001(\r\022\023\n" + - "\013compound_id\030\003 \001(\rB\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerCompoundMaterialReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerCompoundMaterialReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerCompoundMaterialReq_descriptor, - new java.lang.String[] { "Count", "CompoundId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialRspOuterClass.java deleted file mode 100644 index feb81a3e..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialRspOuterClass.java +++ /dev/null @@ -1,755 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerCompoundMaterialRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerCompoundMaterialRspOuterClass { - private PlayerCompoundMaterialRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerCompoundMaterialRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerCompoundMaterialRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * .CompoundQueueData compound_que_data = 5; - * @return Whether the compoundQueData field is set. - */ - boolean hasCompoundQueData(); - /** - * .CompoundQueueData compound_que_data = 5; - * @return The compoundQueData. - */ - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueData(); - /** - * .CompoundQueueData compound_que_data = 5; - */ - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataOrBuilder(); - - /** - * int32 retcode = 12; - * @return The retcode. - */ - int getRetcode(); - } - /** - *
-   * CmdId: 143
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * 
- * - * Protobuf type {@code PlayerCompoundMaterialRsp} - */ - public static final class PlayerCompoundMaterialRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerCompoundMaterialRsp) - PlayerCompoundMaterialRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerCompoundMaterialRsp.newBuilder() to construct. - private PlayerCompoundMaterialRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlayerCompoundMaterialRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerCompoundMaterialRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerCompoundMaterialRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 42: { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder subBuilder = null; - if (compoundQueData_ != null) { - subBuilder = compoundQueData_.toBuilder(); - } - compoundQueData_ = input.readMessage(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compoundQueData_); - compoundQueData_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - retcode_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.class, emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.Builder.class); - } - - public static final int COMPOUND_QUE_DATA_FIELD_NUMBER = 5; - private emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData compoundQueData_; - /** - * .CompoundQueueData compound_que_data = 5; - * @return Whether the compoundQueData field is set. - */ - @java.lang.Override - public boolean hasCompoundQueData() { - return compoundQueData_ != null; - } - /** - * .CompoundQueueData compound_que_data = 5; - * @return The compoundQueData. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueData() { - return compoundQueData_ == null ? emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance() : compoundQueData_; - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataOrBuilder() { - return getCompoundQueData(); - } - - public static final int RETCODE_FIELD_NUMBER = 12; - private int retcode_; - /** - * int32 retcode = 12; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (compoundQueData_ != null) { - output.writeMessage(5, getCompoundQueData()); - } - if (retcode_ != 0) { - output.writeInt32(12, retcode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compoundQueData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompoundQueData()); - } - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, retcode_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp other = (emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp) obj; - - if (hasCompoundQueData() != other.hasCompoundQueData()) return false; - if (hasCompoundQueData()) { - if (!getCompoundQueData() - .equals(other.getCompoundQueData())) return false; - } - if (getRetcode() - != other.getRetcode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCompoundQueData()) { - hash = (37 * hash) + COMPOUND_QUE_DATA_FIELD_NUMBER; - hash = (53 * hash) + getCompoundQueData().hashCode(); - } - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 143
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * 
- * - * Protobuf type {@code PlayerCompoundMaterialRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerCompoundMaterialRsp) - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.class, emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (compoundQueDataBuilder_ == null) { - compoundQueData_ = null; - } else { - compoundQueData_ = null; - compoundQueDataBuilder_ = null; - } - retcode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp build() { - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp buildPartial() { - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp result = new emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp(this); - if (compoundQueDataBuilder_ == null) { - result.compoundQueData_ = compoundQueData_; - } else { - result.compoundQueData_ = compoundQueDataBuilder_.build(); - } - result.retcode_ = retcode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp other) { - if (other == emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.getDefaultInstance()) return this; - if (other.hasCompoundQueData()) { - mergeCompoundQueData(other.getCompoundQueData()); - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData compoundQueData_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> compoundQueDataBuilder_; - /** - * .CompoundQueueData compound_que_data = 5; - * @return Whether the compoundQueData field is set. - */ - public boolean hasCompoundQueData() { - return compoundQueDataBuilder_ != null || compoundQueData_ != null; - } - /** - * .CompoundQueueData compound_que_data = 5; - * @return The compoundQueData. - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueData() { - if (compoundQueDataBuilder_ == null) { - return compoundQueData_ == null ? emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance() : compoundQueData_; - } else { - return compoundQueDataBuilder_.getMessage(); - } - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - public Builder setCompoundQueData(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compoundQueData_ = value; - onChanged(); - } else { - compoundQueDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - public Builder setCompoundQueData( - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) { - if (compoundQueDataBuilder_ == null) { - compoundQueData_ = builderForValue.build(); - onChanged(); - } else { - compoundQueDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - public Builder mergeCompoundQueData(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) { - if (compoundQueDataBuilder_ == null) { - if (compoundQueData_ != null) { - compoundQueData_ = - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.newBuilder(compoundQueData_).mergeFrom(value).buildPartial(); - } else { - compoundQueData_ = value; - } - onChanged(); - } else { - compoundQueDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - public Builder clearCompoundQueData() { - if (compoundQueDataBuilder_ == null) { - compoundQueData_ = null; - onChanged(); - } else { - compoundQueData_ = null; - compoundQueDataBuilder_ = null; - } - - return this; - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder getCompoundQueDataBuilder() { - - onChanged(); - return getCompoundQueDataFieldBuilder().getBuilder(); - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataOrBuilder() { - if (compoundQueDataBuilder_ != null) { - return compoundQueDataBuilder_.getMessageOrBuilder(); - } else { - return compoundQueData_ == null ? - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance() : compoundQueData_; - } - } - /** - * .CompoundQueueData compound_que_data = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> - getCompoundQueDataFieldBuilder() { - if (compoundQueDataBuilder_ == null) { - compoundQueDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder>( - getCompoundQueData(), - getParentForChildren(), - isClean()); - compoundQueData_ = null; - } - return compoundQueDataBuilder_; - } - - private int retcode_ ; - /** - * int32 retcode = 12; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * int32 retcode = 12; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * int32 retcode = 12; - * @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) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerCompoundMaterialRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerCompoundMaterialRsp) - private static final emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp(); - } - - public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerCompoundMaterialRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerCompoundMaterialRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerCompoundMaterialRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037PlayerCompoundMaterialRsp.proto\032\027Compo" + - "undQueueData.proto\"[\n\031PlayerCompoundMate" + - "rialRsp\022-\n\021compound_que_data\030\005 \001(\0132\022.Com" + - "poundQueueData\022\017\n\007retcode\030\014 \001(\005B\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(), - }); - internal_static_PlayerCompoundMaterialRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerCompoundMaterialRsp_descriptor, - new java.lang.String[] { "CompoundQueData", "Retcode", }); - emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsReqOuterClass.java deleted file mode 100644 index b4a43329..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsReqOuterClass.java +++ /dev/null @@ -1,621 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerCookArgsReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerCookArgsReqOuterClass { - private PlayerCookArgsReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerCookArgsReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerCookArgsReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 assist_avatar = 10; - * @return The assistAvatar. - */ - int getAssistAvatar(); - - /** - * uint32 recipe_id = 11; - * @return The recipeId. - */ - int getRecipeId(); - } - /** - *
-   * CmdId: 166
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code PlayerCookArgsReq} - */ - public static final class PlayerCookArgsReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerCookArgsReq) - PlayerCookArgsReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerCookArgsReq.newBuilder() to construct. - private PlayerCookArgsReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlayerCookArgsReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerCookArgsReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerCookArgsReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 80: { - - assistAvatar_ = input.readUInt32(); - break; - } - case 88: { - - recipeId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.class, emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.Builder.class); - } - - public static final int ASSIST_AVATAR_FIELD_NUMBER = 10; - private int assistAvatar_; - /** - * uint32 assist_avatar = 10; - * @return The assistAvatar. - */ - @java.lang.Override - public int getAssistAvatar() { - return assistAvatar_; - } - - public static final int RECIPE_ID_FIELD_NUMBER = 11; - private int recipeId_; - /** - * uint32 recipe_id = 11; - * @return The recipeId. - */ - @java.lang.Override - public int getRecipeId() { - return recipeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (assistAvatar_ != 0) { - output.writeUInt32(10, assistAvatar_); - } - if (recipeId_ != 0) { - output.writeUInt32(11, recipeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (assistAvatar_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, assistAvatar_); - } - if (recipeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, recipeId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq other = (emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq) obj; - - if (getAssistAvatar() - != other.getAssistAvatar()) return false; - if (getRecipeId() - != other.getRecipeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAssistAvatar(); - hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER; - hash = (53 * hash) + getRecipeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 166
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code PlayerCookArgsReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerCookArgsReq) - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.class, emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - assistAvatar_ = 0; - - recipeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq build() { - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq buildPartial() { - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq result = new emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq(this); - result.assistAvatar_ = assistAvatar_; - result.recipeId_ = recipeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq other) { - if (other == emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.getDefaultInstance()) return this; - if (other.getAssistAvatar() != 0) { - setAssistAvatar(other.getAssistAvatar()); - } - if (other.getRecipeId() != 0) { - setRecipeId(other.getRecipeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int assistAvatar_ ; - /** - * uint32 assist_avatar = 10; - * @return The assistAvatar. - */ - @java.lang.Override - public int getAssistAvatar() { - return assistAvatar_; - } - /** - * uint32 assist_avatar = 10; - * @param value The assistAvatar to set. - * @return This builder for chaining. - */ - public Builder setAssistAvatar(int value) { - - assistAvatar_ = value; - onChanged(); - return this; - } - /** - * uint32 assist_avatar = 10; - * @return This builder for chaining. - */ - public Builder clearAssistAvatar() { - - assistAvatar_ = 0; - onChanged(); - return this; - } - - private int recipeId_ ; - /** - * uint32 recipe_id = 11; - * @return The recipeId. - */ - @java.lang.Override - public int getRecipeId() { - return recipeId_; - } - /** - * uint32 recipe_id = 11; - * @param value The recipeId to set. - * @return This builder for chaining. - */ - public Builder setRecipeId(int value) { - - recipeId_ = value; - onChanged(); - return this; - } - /** - * uint32 recipe_id = 11; - * @return This builder for chaining. - */ - public Builder clearRecipeId() { - - recipeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerCookArgsReq) - } - - // @@protoc_insertion_point(class_scope:PlayerCookArgsReq) - private static final emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq(); - } - - public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerCookArgsReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerCookArgsReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerCookArgsReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerCookArgsReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PlayerCookArgsReq.proto\"=\n\021PlayerCookA" + - "rgsReq\022\025\n\rassist_avatar\030\n \001(\r\022\021\n\trecipe_" + - "id\030\013 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerCookArgsReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerCookArgsReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerCookArgsReq_descriptor, - new java.lang.String[] { "AssistAvatar", "RecipeId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsRspOuterClass.java deleted file mode 100644 index 70fc715b..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookArgsRspOuterClass.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerCookArgsRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerCookArgsRspOuterClass { - private PlayerCookArgsRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerCookArgsRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerCookArgsRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 retcode = 4; - * @return The retcode. - */ - int getRetcode(); - - /** - * float qte_range_ratio = 12; - * @return The qteRangeRatio. - */ - float getQteRangeRatio(); - } - /** - *
-   * CmdId: 168
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code PlayerCookArgsRsp} - */ - public static final class PlayerCookArgsRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerCookArgsRsp) - PlayerCookArgsRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerCookArgsRsp.newBuilder() to construct. - private PlayerCookArgsRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlayerCookArgsRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerCookArgsRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerCookArgsRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 32: { - - retcode_ = input.readInt32(); - break; - } - case 101: { - - qteRangeRatio_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.class, emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 4; - private int retcode_; - /** - * int32 retcode = 4; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int QTE_RANGE_RATIO_FIELD_NUMBER = 12; - private float qteRangeRatio_; - /** - * float qte_range_ratio = 12; - * @return The qteRangeRatio. - */ - @java.lang.Override - public float getQteRangeRatio() { - return qteRangeRatio_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(4, retcode_); - } - if (qteRangeRatio_ != 0F) { - output.writeFloat(12, qteRangeRatio_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, retcode_); - } - if (qteRangeRatio_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(12, qteRangeRatio_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp other = (emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (java.lang.Float.floatToIntBits(getQteRangeRatio()) - != java.lang.Float.floatToIntBits( - other.getQteRangeRatio())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + QTE_RANGE_RATIO_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getQteRangeRatio()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 168
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code PlayerCookArgsRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerCookArgsRsp) - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.class, emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - qteRangeRatio_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp build() { - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp buildPartial() { - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp result = new emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp(this); - result.retcode_ = retcode_; - result.qteRangeRatio_ = qteRangeRatio_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp other) { - if (other == emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getQteRangeRatio() != 0F) { - setQteRangeRatio(other.getQteRangeRatio()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * int32 retcode = 4; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * int32 retcode = 4; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * int32 retcode = 4; - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private float qteRangeRatio_ ; - /** - * float qte_range_ratio = 12; - * @return The qteRangeRatio. - */ - @java.lang.Override - public float getQteRangeRatio() { - return qteRangeRatio_; - } - /** - * float qte_range_ratio = 12; - * @param value The qteRangeRatio to set. - * @return This builder for chaining. - */ - public Builder setQteRangeRatio(float value) { - - qteRangeRatio_ = value; - onChanged(); - return this; - } - /** - * float qte_range_ratio = 12; - * @return This builder for chaining. - */ - public Builder clearQteRangeRatio() { - - qteRangeRatio_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerCookArgsRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerCookArgsRsp) - private static final emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp(); - } - - public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerCookArgsRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerCookArgsRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerCookArgsRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerCookArgsRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PlayerCookArgsRsp.proto\"=\n\021PlayerCookA" + - "rgsRsp\022\017\n\007retcode\030\004 \001(\005\022\027\n\017qte_range_rat" + - "io\030\014 \001(\002B\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerCookArgsRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerCookArgsRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerCookArgsRsp_descriptor, - new java.lang.String[] { "Retcode", "QteRangeRatio", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookReqOuterClass.java deleted file mode 100644 index 0f7f2b8f..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookReqOuterClass.java +++ /dev/null @@ -1,761 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerCookReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerCookReqOuterClass { - private PlayerCookReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerCookReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerCookReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 cook_count = 1; - * @return The cookCount. - */ - int getCookCount(); - - /** - * uint32 qte_quality = 12; - * @return The qteQuality. - */ - int getQteQuality(); - - /** - * uint32 recipe_id = 8; - * @return The recipeId. - */ - int getRecipeId(); - - /** - * uint32 assist_avatar = 14; - * @return The assistAvatar. - */ - int getAssistAvatar(); - } - /** - *
-   * CmdId: 194
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code PlayerCookReq} - */ - public static final class PlayerCookReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerCookReq) - PlayerCookReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerCookReq.newBuilder() to construct. - private PlayerCookReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlayerCookReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerCookReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerCookReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - cookCount_ = input.readUInt32(); - break; - } - case 64: { - - recipeId_ = input.readUInt32(); - break; - } - case 96: { - - qteQuality_ = input.readUInt32(); - break; - } - case 112: { - - assistAvatar_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.class, emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class); - } - - public static final int COOK_COUNT_FIELD_NUMBER = 1; - private int cookCount_; - /** - * uint32 cook_count = 1; - * @return The cookCount. - */ - @java.lang.Override - public int getCookCount() { - return cookCount_; - } - - public static final int QTE_QUALITY_FIELD_NUMBER = 12; - private int qteQuality_; - /** - * uint32 qte_quality = 12; - * @return The qteQuality. - */ - @java.lang.Override - public int getQteQuality() { - return qteQuality_; - } - - public static final int RECIPE_ID_FIELD_NUMBER = 8; - private int recipeId_; - /** - * uint32 recipe_id = 8; - * @return The recipeId. - */ - @java.lang.Override - public int getRecipeId() { - return recipeId_; - } - - public static final int ASSIST_AVATAR_FIELD_NUMBER = 14; - private int assistAvatar_; - /** - * uint32 assist_avatar = 14; - * @return The assistAvatar. - */ - @java.lang.Override - public int getAssistAvatar() { - return assistAvatar_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (cookCount_ != 0) { - output.writeUInt32(1, cookCount_); - } - if (recipeId_ != 0) { - output.writeUInt32(8, recipeId_); - } - if (qteQuality_ != 0) { - output.writeUInt32(12, qteQuality_); - } - if (assistAvatar_ != 0) { - output.writeUInt32(14, assistAvatar_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cookCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, cookCount_); - } - if (recipeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, recipeId_); - } - if (qteQuality_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, qteQuality_); - } - if (assistAvatar_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, assistAvatar_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other = (emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) obj; - - if (getCookCount() - != other.getCookCount()) return false; - if (getQteQuality() - != other.getQteQuality()) return false; - if (getRecipeId() - != other.getRecipeId()) return false; - if (getAssistAvatar() - != other.getAssistAvatar()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCookCount(); - hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER; - hash = (53 * hash) + getQteQuality(); - hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER; - hash = (53 * hash) + getRecipeId(); - hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAssistAvatar(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 194
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code PlayerCookReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerCookReq) - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.class, emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cookCount_ = 0; - - qteQuality_ = 0; - - recipeId_ = 0; - - assistAvatar_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq build() { - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq buildPartial() { - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result = new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(this); - result.cookCount_ = cookCount_; - result.qteQuality_ = qteQuality_; - result.recipeId_ = recipeId_; - result.assistAvatar_ = assistAvatar_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other) { - if (other == emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance()) return this; - if (other.getCookCount() != 0) { - setCookCount(other.getCookCount()); - } - if (other.getQteQuality() != 0) { - setQteQuality(other.getQteQuality()); - } - if (other.getRecipeId() != 0) { - setRecipeId(other.getRecipeId()); - } - if (other.getAssistAvatar() != 0) { - setAssistAvatar(other.getAssistAvatar()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int cookCount_ ; - /** - * uint32 cook_count = 1; - * @return The cookCount. - */ - @java.lang.Override - public int getCookCount() { - return cookCount_; - } - /** - * uint32 cook_count = 1; - * @param value The cookCount to set. - * @return This builder for chaining. - */ - public Builder setCookCount(int value) { - - cookCount_ = value; - onChanged(); - return this; - } - /** - * uint32 cook_count = 1; - * @return This builder for chaining. - */ - public Builder clearCookCount() { - - cookCount_ = 0; - onChanged(); - return this; - } - - private int qteQuality_ ; - /** - * uint32 qte_quality = 12; - * @return The qteQuality. - */ - @java.lang.Override - public int getQteQuality() { - return qteQuality_; - } - /** - * uint32 qte_quality = 12; - * @param value The qteQuality to set. - * @return This builder for chaining. - */ - public Builder setQteQuality(int value) { - - qteQuality_ = value; - onChanged(); - return this; - } - /** - * uint32 qte_quality = 12; - * @return This builder for chaining. - */ - public Builder clearQteQuality() { - - qteQuality_ = 0; - onChanged(); - return this; - } - - private int recipeId_ ; - /** - * uint32 recipe_id = 8; - * @return The recipeId. - */ - @java.lang.Override - public int getRecipeId() { - return recipeId_; - } - /** - * uint32 recipe_id = 8; - * @param value The recipeId to set. - * @return This builder for chaining. - */ - public Builder setRecipeId(int value) { - - recipeId_ = value; - onChanged(); - return this; - } - /** - * uint32 recipe_id = 8; - * @return This builder for chaining. - */ - public Builder clearRecipeId() { - - recipeId_ = 0; - onChanged(); - return this; - } - - private int assistAvatar_ ; - /** - * uint32 assist_avatar = 14; - * @return The assistAvatar. - */ - @java.lang.Override - public int getAssistAvatar() { - return assistAvatar_; - } - /** - * uint32 assist_avatar = 14; - * @param value The assistAvatar to set. - * @return This builder for chaining. - */ - public Builder setAssistAvatar(int value) { - - assistAvatar_ = value; - onChanged(); - return this; - } - /** - * uint32 assist_avatar = 14; - * @return This builder for chaining. - */ - public Builder clearAssistAvatar() { - - assistAvatar_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerCookReq) - } - - // @@protoc_insertion_point(class_scope:PlayerCookReq) - private static final emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(); - } - - public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerCookReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerCookReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerCookReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerCookReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\022" + - "\n\ncook_count\030\001 \001(\r\022\023\n\013qte_quality\030\014 \001(\r\022" + - "\021\n\trecipe_id\030\010 \001(\r\022\025\n\rassist_avatar\030\016 \001(" + - "\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerCookReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerCookReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerCookReq_descriptor, - new java.lang.String[] { "CookCount", "QteQuality", "RecipeId", "AssistAvatar", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookRspOuterClass.java deleted file mode 100644 index 14981b0f..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/PlayerCookRspOuterClass.java +++ /dev/null @@ -1,1648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerCookRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerCookRspOuterClass { - private PlayerCookRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerCookRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerCookRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ItemParam extral_item_list = 15; - */ - java.util.List - getExtralItemListList(); - /** - * repeated .ItemParam extral_item_list = 15; - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getExtralItemList(int index); - /** - * repeated .ItemParam extral_item_list = 15; - */ - int getExtralItemListCount(); - /** - * repeated .ItemParam extral_item_list = 15; - */ - java.util.List - getExtralItemListOrBuilderList(); - /** - * repeated .ItemParam extral_item_list = 15; - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getExtralItemListOrBuilder( - int index); - - /** - * uint32 cook_count = 12; - * @return The cookCount. - */ - int getCookCount(); - - /** - * repeated .ItemParam item_list = 11; - */ - java.util.List - getItemListList(); - /** - * repeated .ItemParam item_list = 11; - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index); - /** - * repeated .ItemParam item_list = 11; - */ - int getItemListCount(); - /** - * repeated .ItemParam item_list = 11; - */ - java.util.List - getItemListOrBuilderList(); - /** - * repeated .ItemParam item_list = 11; - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder( - int index); - - /** - * int32 retcode = 3; - * @return The retcode. - */ - int getRetcode(); - - /** - * uint32 qte_quality = 5; - * @return The qteQuality. - */ - int getQteQuality(); - - /** - * .CookRecipeData recipe_data = 7; - * @return Whether the recipeData field is set. - */ - boolean hasRecipeData(); - /** - * .CookRecipeData recipe_data = 7; - * @return The recipeData. - */ - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData(); - /** - * .CookRecipeData recipe_data = 7; - */ - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder(); - } - /** - *
-   * CmdId: 188
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code PlayerCookRsp} - */ - public static final class PlayerCookRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerCookRsp) - PlayerCookRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerCookRsp.newBuilder() to construct. - private PlayerCookRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlayerCookRsp() { - extralItemList_ = java.util.Collections.emptyList(); - itemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerCookRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerCookRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - retcode_ = input.readInt32(); - break; - } - case 40: { - - qteQuality_ = input.readUInt32(); - break; - } - case 58: { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder subBuilder = null; - if (recipeData_ != null) { - subBuilder = recipeData_.toBuilder(); - } - recipeData_ = input.readMessage(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipeData_); - recipeData_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - itemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - case 96: { - - cookCount_ = input.readUInt32(); - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - extralItemList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - extralItemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - extralItemList_ = java.util.Collections.unmodifiableList(extralItemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookRspOuterClass.internal_static_PlayerCookRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookRspOuterClass.internal_static_PlayerCookRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.class, emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.Builder.class); - } - - public static final int EXTRAL_ITEM_LIST_FIELD_NUMBER = 15; - private java.util.List extralItemList_; - /** - * repeated .ItemParam extral_item_list = 15; - */ - @java.lang.Override - public java.util.List getExtralItemListList() { - return extralItemList_; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - @java.lang.Override - public java.util.List - getExtralItemListOrBuilderList() { - return extralItemList_; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - @java.lang.Override - public int getExtralItemListCount() { - return extralItemList_.size(); - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getExtralItemList(int index) { - return extralItemList_.get(index); - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getExtralItemListOrBuilder( - int index) { - return extralItemList_.get(index); - } - - public static final int COOK_COUNT_FIELD_NUMBER = 12; - private int cookCount_; - /** - * uint32 cook_count = 12; - * @return The cookCount. - */ - @java.lang.Override - public int getCookCount() { - return cookCount_; - } - - public static final int ITEM_LIST_FIELD_NUMBER = 11; - private java.util.List itemList_; - /** - * repeated .ItemParam item_list = 11; - */ - @java.lang.Override - public java.util.List getItemListList() { - return itemList_; - } - /** - * repeated .ItemParam item_list = 11; - */ - @java.lang.Override - public java.util.List - getItemListOrBuilderList() { - return itemList_; - } - /** - * repeated .ItemParam item_list = 11; - */ - @java.lang.Override - public int getItemListCount() { - return itemList_.size(); - } - /** - * repeated .ItemParam item_list = 11; - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) { - return itemList_.get(index); - } - /** - * repeated .ItemParam item_list = 11; - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder( - int index) { - return itemList_.get(index); - } - - public static final int RETCODE_FIELD_NUMBER = 3; - private int retcode_; - /** - * int32 retcode = 3; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int QTE_QUALITY_FIELD_NUMBER = 5; - private int qteQuality_; - /** - * uint32 qte_quality = 5; - * @return The qteQuality. - */ - @java.lang.Override - public int getQteQuality() { - return qteQuality_; - } - - public static final int RECIPE_DATA_FIELD_NUMBER = 7; - private emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData recipeData_; - /** - * .CookRecipeData recipe_data = 7; - * @return Whether the recipeData field is set. - */ - @java.lang.Override - public boolean hasRecipeData() { - return recipeData_ != null; - } - /** - * .CookRecipeData recipe_data = 7; - * @return The recipeData. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData() { - return recipeData_ == null ? emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_; - } - /** - * .CookRecipeData recipe_data = 7; - */ - @java.lang.Override - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder() { - return getRecipeData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(3, retcode_); - } - if (qteQuality_ != 0) { - output.writeUInt32(5, qteQuality_); - } - if (recipeData_ != null) { - output.writeMessage(7, getRecipeData()); - } - for (int i = 0; i < itemList_.size(); i++) { - output.writeMessage(11, itemList_.get(i)); - } - if (cookCount_ != 0) { - output.writeUInt32(12, cookCount_); - } - for (int i = 0; i < extralItemList_.size(); i++) { - output.writeMessage(15, extralItemList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, retcode_); - } - if (qteQuality_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, qteQuality_); - } - if (recipeData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getRecipeData()); - } - for (int i = 0; i < itemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, itemList_.get(i)); - } - if (cookCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, cookCount_); - } - for (int i = 0; i < extralItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, extralItemList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp other = (emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp) obj; - - if (!getExtralItemListList() - .equals(other.getExtralItemListList())) return false; - if (getCookCount() - != other.getCookCount()) return false; - if (!getItemListList() - .equals(other.getItemListList())) return false; - if (getRetcode() - != other.getRetcode()) return false; - if (getQteQuality() - != other.getQteQuality()) return false; - if (hasRecipeData() != other.hasRecipeData()) return false; - if (hasRecipeData()) { - if (!getRecipeData() - .equals(other.getRecipeData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExtralItemListCount() > 0) { - hash = (37 * hash) + EXTRAL_ITEM_LIST_FIELD_NUMBER; - hash = (53 * hash) + getExtralItemListList().hashCode(); - } - hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCookCount(); - if (getItemListCount() > 0) { - hash = (37 * hash) + ITEM_LIST_FIELD_NUMBER; - hash = (53 * hash) + getItemListList().hashCode(); - } - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER; - hash = (53 * hash) + getQteQuality(); - if (hasRecipeData()) { - hash = (37 * hash) + RECIPE_DATA_FIELD_NUMBER; - hash = (53 * hash) + getRecipeData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 188
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code PlayerCookRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PlayerCookRsp) - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerCookRspOuterClass.internal_static_PlayerCookRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerCookRspOuterClass.internal_static_PlayerCookRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.class, emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExtralItemListFieldBuilder(); - getItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (extralItemListBuilder_ == null) { - extralItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - extralItemListBuilder_.clear(); - } - cookCount_ = 0; - - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - itemListBuilder_.clear(); - } - retcode_ = 0; - - qteQuality_ = 0; - - if (recipeDataBuilder_ == null) { - recipeData_ = null; - } else { - recipeData_ = null; - recipeDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerCookRspOuterClass.internal_static_PlayerCookRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp build() { - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp buildPartial() { - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp result = new emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp(this); - int from_bitField0_ = bitField0_; - if (extralItemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - extralItemList_ = java.util.Collections.unmodifiableList(extralItemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.extralItemList_ = extralItemList_; - } else { - result.extralItemList_ = extralItemListBuilder_.build(); - } - result.cookCount_ = cookCount_; - if (itemListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.itemList_ = itemList_; - } else { - result.itemList_ = itemListBuilder_.build(); - } - result.retcode_ = retcode_; - result.qteQuality_ = qteQuality_; - if (recipeDataBuilder_ == null) { - result.recipeData_ = recipeData_; - } else { - result.recipeData_ = recipeDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp other) { - if (other == emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp.getDefaultInstance()) return this; - if (extralItemListBuilder_ == null) { - if (!other.extralItemList_.isEmpty()) { - if (extralItemList_.isEmpty()) { - extralItemList_ = other.extralItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExtralItemListIsMutable(); - extralItemList_.addAll(other.extralItemList_); - } - onChanged(); - } - } else { - if (!other.extralItemList_.isEmpty()) { - if (extralItemListBuilder_.isEmpty()) { - extralItemListBuilder_.dispose(); - extralItemListBuilder_ = null; - extralItemList_ = other.extralItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - extralItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExtralItemListFieldBuilder() : null; - } else { - extralItemListBuilder_.addAllMessages(other.extralItemList_); - } - } - } - if (other.getCookCount() != 0) { - setCookCount(other.getCookCount()); - } - if (itemListBuilder_ == null) { - if (!other.itemList_.isEmpty()) { - if (itemList_.isEmpty()) { - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureItemListIsMutable(); - itemList_.addAll(other.itemList_); - } - onChanged(); - } - } else { - if (!other.itemList_.isEmpty()) { - if (itemListBuilder_.isEmpty()) { - itemListBuilder_.dispose(); - itemListBuilder_ = null; - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000002); - itemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemListFieldBuilder() : null; - } else { - itemListBuilder_.addAllMessages(other.itemList_); - } - } - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getQteQuality() != 0) { - setQteQuality(other.getQteQuality()); - } - if (other.hasRecipeData()) { - mergeRecipeData(other.getRecipeData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List extralItemList_ = - java.util.Collections.emptyList(); - private void ensureExtralItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - extralItemList_ = new java.util.ArrayList(extralItemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> extralItemListBuilder_; - - /** - * repeated .ItemParam extral_item_list = 15; - */ - public java.util.List getExtralItemListList() { - if (extralItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(extralItemList_); - } else { - return extralItemListBuilder_.getMessageList(); - } - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public int getExtralItemListCount() { - if (extralItemListBuilder_ == null) { - return extralItemList_.size(); - } else { - return extralItemListBuilder_.getCount(); - } - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getExtralItemList(int index) { - if (extralItemListBuilder_ == null) { - return extralItemList_.get(index); - } else { - return extralItemListBuilder_.getMessage(index); - } - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder setExtralItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (extralItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtralItemListIsMutable(); - extralItemList_.set(index, value); - onChanged(); - } else { - extralItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder setExtralItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (extralItemListBuilder_ == null) { - ensureExtralItemListIsMutable(); - extralItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - extralItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder addExtralItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (extralItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtralItemListIsMutable(); - extralItemList_.add(value); - onChanged(); - } else { - extralItemListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder addExtralItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (extralItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtralItemListIsMutable(); - extralItemList_.add(index, value); - onChanged(); - } else { - extralItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder addExtralItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (extralItemListBuilder_ == null) { - ensureExtralItemListIsMutable(); - extralItemList_.add(builderForValue.build()); - onChanged(); - } else { - extralItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder addExtralItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (extralItemListBuilder_ == null) { - ensureExtralItemListIsMutable(); - extralItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - extralItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder addAllExtralItemList( - java.lang.Iterable values) { - if (extralItemListBuilder_ == null) { - ensureExtralItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extralItemList_); - onChanged(); - } else { - extralItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder clearExtralItemList() { - if (extralItemListBuilder_ == null) { - extralItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - extralItemListBuilder_.clear(); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public Builder removeExtralItemList(int index) { - if (extralItemListBuilder_ == null) { - ensureExtralItemListIsMutable(); - extralItemList_.remove(index); - onChanged(); - } else { - extralItemListBuilder_.remove(index); - } - return this; - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getExtralItemListBuilder( - int index) { - return getExtralItemListFieldBuilder().getBuilder(index); - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getExtralItemListOrBuilder( - int index) { - if (extralItemListBuilder_ == null) { - return extralItemList_.get(index); } else { - return extralItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public java.util.List - getExtralItemListOrBuilderList() { - if (extralItemListBuilder_ != null) { - return extralItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extralItemList_); - } - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addExtralItemListBuilder() { - return getExtralItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addExtralItemListBuilder( - int index) { - return getExtralItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * repeated .ItemParam extral_item_list = 15; - */ - public java.util.List - getExtralItemListBuilderList() { - return getExtralItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getExtralItemListFieldBuilder() { - if (extralItemListBuilder_ == null) { - extralItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - extralItemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - extralItemList_ = null; - } - return extralItemListBuilder_; - } - - private int cookCount_ ; - /** - * uint32 cook_count = 12; - * @return The cookCount. - */ - @java.lang.Override - public int getCookCount() { - return cookCount_; - } - /** - * uint32 cook_count = 12; - * @param value The cookCount to set. - * @return This builder for chaining. - */ - public Builder setCookCount(int value) { - - cookCount_ = value; - onChanged(); - return this; - } - /** - * uint32 cook_count = 12; - * @return This builder for chaining. - */ - public Builder clearCookCount() { - - cookCount_ = 0; - onChanged(); - return this; - } - - private java.util.List itemList_ = - java.util.Collections.emptyList(); - private void ensureItemListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - itemList_ = new java.util.ArrayList(itemList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemListBuilder_; - - /** - * repeated .ItemParam item_list = 11; - */ - public java.util.List getItemListList() { - if (itemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemList_); - } else { - return itemListBuilder_.getMessageList(); - } - } - /** - * repeated .ItemParam item_list = 11; - */ - public int getItemListCount() { - if (itemListBuilder_ == null) { - return itemList_.size(); - } else { - return itemListBuilder_.getCount(); - } - } - /** - * repeated .ItemParam item_list = 11; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); - } else { - return itemListBuilder_.getMessage(index); - } - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.set(index, value); - onChanged(); - } else { - itemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder addItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(value); - onChanged(); - } else { - itemListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(index, value); - onChanged(); - } else { - itemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder addItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder addAllItemList( - java.lang.Iterable values) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemList_); - onChanged(); - } else { - itemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder clearItemList() { - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - itemListBuilder_.clear(); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public Builder removeItemList(int index) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.remove(index); - onChanged(); - } else { - itemListBuilder_.remove(index); - } - return this; - } - /** - * repeated .ItemParam item_list = 11; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemListBuilder( - int index) { - return getItemListFieldBuilder().getBuilder(index); - } - /** - * repeated .ItemParam item_list = 11; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder( - int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); } else { - return itemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ItemParam item_list = 11; - */ - public java.util.List - getItemListOrBuilderList() { - if (itemListBuilder_ != null) { - return itemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemList_); - } - } - /** - * repeated .ItemParam item_list = 11; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder() { - return getItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * repeated .ItemParam item_list = 11; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder( - int index) { - return getItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * repeated .ItemParam item_list = 11; - */ - public java.util.List - getItemListBuilderList() { - return getItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemListFieldBuilder() { - if (itemListBuilder_ == null) { - itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - itemList_ = null; - } - return itemListBuilder_; - } - - private int retcode_ ; - /** - * int32 retcode = 3; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * int32 retcode = 3; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * int32 retcode = 3; - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int qteQuality_ ; - /** - * uint32 qte_quality = 5; - * @return The qteQuality. - */ - @java.lang.Override - public int getQteQuality() { - return qteQuality_; - } - /** - * uint32 qte_quality = 5; - * @param value The qteQuality to set. - * @return This builder for chaining. - */ - public Builder setQteQuality(int value) { - - qteQuality_ = value; - onChanged(); - return this; - } - /** - * uint32 qte_quality = 5; - * @return This builder for chaining. - */ - public Builder clearQteQuality() { - - qteQuality_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData recipeData_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> recipeDataBuilder_; - /** - * .CookRecipeData recipe_data = 7; - * @return Whether the recipeData field is set. - */ - public boolean hasRecipeData() { - return recipeDataBuilder_ != null || recipeData_ != null; - } - /** - * .CookRecipeData recipe_data = 7; - * @return The recipeData. - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData() { - if (recipeDataBuilder_ == null) { - return recipeData_ == null ? emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_; - } else { - return recipeDataBuilder_.getMessage(); - } - } - /** - * .CookRecipeData recipe_data = 7; - */ - public Builder setRecipeData(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - recipeData_ = value; - onChanged(); - } else { - recipeDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .CookRecipeData recipe_data = 7; - */ - public Builder setRecipeData( - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) { - if (recipeDataBuilder_ == null) { - recipeData_ = builderForValue.build(); - onChanged(); - } else { - recipeDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .CookRecipeData recipe_data = 7; - */ - public Builder mergeRecipeData(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) { - if (recipeDataBuilder_ == null) { - if (recipeData_ != null) { - recipeData_ = - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.newBuilder(recipeData_).mergeFrom(value).buildPartial(); - } else { - recipeData_ = value; - } - onChanged(); - } else { - recipeDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .CookRecipeData recipe_data = 7; - */ - public Builder clearRecipeData() { - if (recipeDataBuilder_ == null) { - recipeData_ = null; - onChanged(); - } else { - recipeData_ = null; - recipeDataBuilder_ = null; - } - - return this; - } - /** - * .CookRecipeData recipe_data = 7; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder getRecipeDataBuilder() { - - onChanged(); - return getRecipeDataFieldBuilder().getBuilder(); - } - /** - * .CookRecipeData recipe_data = 7; - */ - public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder() { - if (recipeDataBuilder_ != null) { - return recipeDataBuilder_.getMessageOrBuilder(); - } else { - return recipeData_ == null ? - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_; - } - } - /** - * .CookRecipeData recipe_data = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> - getRecipeDataFieldBuilder() { - if (recipeDataBuilder_ == null) { - recipeDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>( - getRecipeData(), - getParentForChildren(), - isClean()); - recipeData_ = null; - } - return recipeDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerCookRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerCookRsp) - private static final emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp(); - } - - public static emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlayerCookRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerCookRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerCookRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerCookRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023PlayerCookRsp.proto\032\024CookRecipeData.pr" + - "oto\032\017ItemParam.proto\"\264\001\n\rPlayerCookRsp\022$" + - "\n\020extral_item_list\030\017 \003(\0132\n.ItemParam\022\022\n\n" + - "cook_count\030\014 \001(\r\022\035\n\titem_list\030\013 \003(\0132\n.It" + - "emParam\022\017\n\007retcode\030\003 \001(\005\022\023\n\013qte_quality\030" + - "\005 \001(\r\022$\n\013recipe_data\030\007 \001(\0132\017.CookRecipeD" + - "ataB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_PlayerCookRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerCookRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerCookRsp_descriptor, - new java.lang.String[] { "ExtralItemList", "CookCount", "ItemList", "Retcode", "QteQuality", "RecipeData", }); - emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputReqOuterClass.java deleted file mode 100644 index 3fc80752..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputReqOuterClass.java +++ /dev/null @@ -1,621 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakeCompoundOutputReq.proto - -package emu.grasscutter.net.proto; - -public final class TakeCompoundOutputReqOuterClass { - private TakeCompoundOutputReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakeCompoundOutputReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakeCompoundOutputReq) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 compound_group_id = 3; - * @return The compoundGroupId. - */ - int getCompoundGroupId(); - - /** - * uint32 compound_id = 10; - * @return The compoundId. - */ - int getCompoundId(); - } - /** - *
-   * CmdId: 174
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code TakeCompoundOutputReq} - */ - public static final class TakeCompoundOutputReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TakeCompoundOutputReq) - TakeCompoundOutputReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use TakeCompoundOutputReq.newBuilder() to construct. - private TakeCompoundOutputReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TakeCompoundOutputReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TakeCompoundOutputReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TakeCompoundOutputReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - compoundGroupId_ = input.readUInt32(); - break; - } - case 80: { - - compoundId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.class, emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.Builder.class); - } - - public static final int COMPOUND_GROUP_ID_FIELD_NUMBER = 3; - private int compoundGroupId_; - /** - * uint32 compound_group_id = 3; - * @return The compoundGroupId. - */ - @java.lang.Override - public int getCompoundGroupId() { - return compoundGroupId_; - } - - public static final int COMPOUND_ID_FIELD_NUMBER = 10; - private int compoundId_; - /** - * uint32 compound_id = 10; - * @return The compoundId. - */ - @java.lang.Override - public int getCompoundId() { - return compoundId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (compoundGroupId_ != 0) { - output.writeUInt32(3, compoundGroupId_); - } - if (compoundId_ != 0) { - output.writeUInt32(10, compoundId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compoundGroupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, compoundGroupId_); - } - if (compoundId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, compoundId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq other = (emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq) obj; - - if (getCompoundGroupId() - != other.getCompoundGroupId()) return false; - if (getCompoundId() - != other.getCompoundId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPOUND_GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getCompoundGroupId(); - hash = (37 * hash) + COMPOUND_ID_FIELD_NUMBER; - hash = (53 * hash) + getCompoundId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 174
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code TakeCompoundOutputReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TakeCompoundOutputReq) - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.class, emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - compoundGroupId_ = 0; - - compoundId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq build() { - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq buildPartial() { - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq result = new emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq(this); - result.compoundGroupId_ = compoundGroupId_; - result.compoundId_ = compoundId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq) { - return mergeFrom((emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq other) { - if (other == emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.getDefaultInstance()) return this; - if (other.getCompoundGroupId() != 0) { - setCompoundGroupId(other.getCompoundGroupId()); - } - if (other.getCompoundId() != 0) { - setCompoundId(other.getCompoundId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int compoundGroupId_ ; - /** - * uint32 compound_group_id = 3; - * @return The compoundGroupId. - */ - @java.lang.Override - public int getCompoundGroupId() { - return compoundGroupId_; - } - /** - * uint32 compound_group_id = 3; - * @param value The compoundGroupId to set. - * @return This builder for chaining. - */ - public Builder setCompoundGroupId(int value) { - - compoundGroupId_ = value; - onChanged(); - return this; - } - /** - * uint32 compound_group_id = 3; - * @return This builder for chaining. - */ - public Builder clearCompoundGroupId() { - - compoundGroupId_ = 0; - onChanged(); - return this; - } - - private int compoundId_ ; - /** - * uint32 compound_id = 10; - * @return The compoundId. - */ - @java.lang.Override - public int getCompoundId() { - return compoundId_; - } - /** - * uint32 compound_id = 10; - * @param value The compoundId to set. - * @return This builder for chaining. - */ - public Builder setCompoundId(int value) { - - compoundId_ = value; - onChanged(); - return this; - } - /** - * uint32 compound_id = 10; - * @return This builder for chaining. - */ - public Builder clearCompoundId() { - - compoundId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TakeCompoundOutputReq) - } - - // @@protoc_insertion_point(class_scope:TakeCompoundOutputReq) - private static final emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq(); - } - - public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TakeCompoundOutputReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TakeCompoundOutputReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakeCompoundOutputReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TakeCompoundOutputReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033TakeCompoundOutputReq.proto\"G\n\025TakeCom" + - "poundOutputReq\022\031\n\021compound_group_id\030\003 \001(" + - "\r\022\023\n\013compound_id\030\n \001(\rB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakeCompoundOutputReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakeCompoundOutputReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TakeCompoundOutputReq_descriptor, - new java.lang.String[] { "CompoundGroupId", "CompoundId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputRspOuterClass.java deleted file mode 100644 index d5be287a..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputRspOuterClass.java +++ /dev/null @@ -1,926 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakeCompoundOutputRsp.proto - -package emu.grasscutter.net.proto; - -public final class TakeCompoundOutputRspOuterClass { - private TakeCompoundOutputRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakeCompoundOutputRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakeCompoundOutputRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ItemParam item_list = 6; - */ - java.util.List - getItemListList(); - /** - * repeated .ItemParam item_list = 6; - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index); - /** - * repeated .ItemParam item_list = 6; - */ - int getItemListCount(); - /** - * repeated .ItemParam item_list = 6; - */ - java.util.List - getItemListOrBuilderList(); - /** - * repeated .ItemParam item_list = 6; - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder( - int index); - - /** - * int32 retcode = 2; - * @return The retcode. - */ - int getRetcode(); - } - /** - *
-   * CmdId: 176
-   * EnetChannelId: 0
-   * EnetIsReliable: true
-   * 
- * - * Protobuf type {@code TakeCompoundOutputRsp} - */ - public static final class TakeCompoundOutputRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TakeCompoundOutputRsp) - TakeCompoundOutputRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use TakeCompoundOutputRsp.newBuilder() to construct. - private TakeCompoundOutputRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TakeCompoundOutputRsp() { - itemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TakeCompoundOutputRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TakeCompoundOutputRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - retcode_ = input.readInt32(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - itemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.class, emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.Builder.class); - } - - public static final int ITEM_LIST_FIELD_NUMBER = 6; - private java.util.List itemList_; - /** - * repeated .ItemParam item_list = 6; - */ - @java.lang.Override - public java.util.List getItemListList() { - return itemList_; - } - /** - * repeated .ItemParam item_list = 6; - */ - @java.lang.Override - public java.util.List - getItemListOrBuilderList() { - return itemList_; - } - /** - * repeated .ItemParam item_list = 6; - */ - @java.lang.Override - public int getItemListCount() { - return itemList_.size(); - } - /** - * repeated .ItemParam item_list = 6; - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) { - return itemList_.get(index); - } - /** - * repeated .ItemParam item_list = 6; - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder( - int index) { - return itemList_.get(index); - } - - public static final int RETCODE_FIELD_NUMBER = 2; - private int retcode_; - /** - * int32 retcode = 2; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(2, retcode_); - } - for (int i = 0; i < itemList_.size(); i++) { - output.writeMessage(6, itemList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, retcode_); - } - for (int i = 0; i < itemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, itemList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp other = (emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp) obj; - - if (!getItemListList() - .equals(other.getItemListList())) return false; - if (getRetcode() - != other.getRetcode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemListCount() > 0) { - hash = (37 * hash) + ITEM_LIST_FIELD_NUMBER; - hash = (53 * hash) + getItemListList().hashCode(); - } - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * CmdId: 176
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * 
- * - * Protobuf type {@code TakeCompoundOutputRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TakeCompoundOutputRsp) - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.class, emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemListBuilder_.clear(); - } - retcode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp build() { - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp buildPartial() { - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp result = new emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp(this); - int from_bitField0_ = bitField0_; - if (itemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemList_ = itemList_; - } else { - result.itemList_ = itemListBuilder_.build(); - } - result.retcode_ = retcode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp) { - return mergeFrom((emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp other) { - if (other == emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.getDefaultInstance()) return this; - if (itemListBuilder_ == null) { - if (!other.itemList_.isEmpty()) { - if (itemList_.isEmpty()) { - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemListIsMutable(); - itemList_.addAll(other.itemList_); - } - onChanged(); - } - } else { - if (!other.itemList_.isEmpty()) { - if (itemListBuilder_.isEmpty()) { - itemListBuilder_.dispose(); - itemListBuilder_ = null; - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemListFieldBuilder() : null; - } else { - itemListBuilder_.addAllMessages(other.itemList_); - } - } - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List itemList_ = - java.util.Collections.emptyList(); - private void ensureItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList(itemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemListBuilder_; - - /** - * repeated .ItemParam item_list = 6; - */ - public java.util.List getItemListList() { - if (itemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemList_); - } else { - return itemListBuilder_.getMessageList(); - } - } - /** - * repeated .ItemParam item_list = 6; - */ - public int getItemListCount() { - if (itemListBuilder_ == null) { - return itemList_.size(); - } else { - return itemListBuilder_.getCount(); - } - } - /** - * repeated .ItemParam item_list = 6; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); - } else { - return itemListBuilder_.getMessage(index); - } - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.set(index, value); - onChanged(); - } else { - itemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder addItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(value); - onChanged(); - } else { - itemListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(index, value); - onChanged(); - } else { - itemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder addItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder addAllItemList( - java.lang.Iterable values) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemList_); - onChanged(); - } else { - itemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder clearItemList() { - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemListBuilder_.clear(); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public Builder removeItemList(int index) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.remove(index); - onChanged(); - } else { - itemListBuilder_.remove(index); - } - return this; - } - /** - * repeated .ItemParam item_list = 6; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemListBuilder( - int index) { - return getItemListFieldBuilder().getBuilder(index); - } - /** - * repeated .ItemParam item_list = 6; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder( - int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); } else { - return itemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ItemParam item_list = 6; - */ - public java.util.List - getItemListOrBuilderList() { - if (itemListBuilder_ != null) { - return itemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemList_); - } - } - /** - * repeated .ItemParam item_list = 6; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder() { - return getItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * repeated .ItemParam item_list = 6; - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder( - int index) { - return getItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * repeated .ItemParam item_list = 6; - */ - public java.util.List - getItemListBuilderList() { - return getItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemListFieldBuilder() { - if (itemListBuilder_ == null) { - itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemList_ = null; - } - return itemListBuilder_; - } - - private int retcode_ ; - /** - * int32 retcode = 2; - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * int32 retcode = 2; - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * int32 retcode = 2; - * @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) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TakeCompoundOutputRsp) - } - - // @@protoc_insertion_point(class_scope:TakeCompoundOutputRsp) - private static final emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp(); - } - - public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TakeCompoundOutputRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TakeCompoundOutputRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakeCompoundOutputRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TakeCompoundOutputRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033TakeCompoundOutputRsp.proto\032\017ItemParam" + - ".proto\"G\n\025TakeCompoundOutputRsp\022\035\n\titem_" + - "list\030\006 \003(\0132\n.ItemParam\022\017\n\007retcode\030\002 \001(\005B" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_TakeCompoundOutputRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakeCompoundOutputRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TakeCompoundOutputRsp_descriptor, - new java.lang.String[] { "ItemList", "Retcode", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java b/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java index a0c39579..78954014 100644 --- a/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java +++ b/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java @@ -7,17 +7,16 @@ import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.player.BasePlayerManager; import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ActionReason; -import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData; -import emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq; -import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; -import emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq; import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; -import emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq; -import emu.grasscutter.server.packet.send.PacketTakeCompoundOutputRsp; import emu.grasscutter.server.packet.send.PacketCompoundDataNotify; import emu.grasscutter.server.packet.send.PacketGetCompoundDataRsp; import emu.grasscutter.server.packet.send.PacketPlayerCompoundMaterialRsp; +import emu.grasscutter.server.packet.send.PacketTakeCompoundOutputRsp; import emu.grasscutter.utils.Utils; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.GetCompoundDataReq; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCompoundMaterialReq; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.TakeCompoundOutputReq; import java.util.*; @@ -50,7 +49,11 @@ public class CookingCompoundManager extends BasePlayerManager { List compoundQueueData = new ArrayList<>(player.getActiveCookCompounds().size()); int currentTime = Utils.getCurrentSeconds(); for (var item : player.getActiveCookCompounds().values()) { - var data = CompoundQueueData.newBuilder().setCompoundId(item.getCompoundId()).setOutputCount(item.getOutputCount(currentTime)).setOutputTime(item.getOutputTime(currentTime)).setWaitCount(item.getWaitCount(currentTime)).build(); + var data = new CompoundQueueData(); + data.setCompoundId(item.getCompoundId()); + data.setOutputCount(item.getOutputCount(currentTime)); + data.setOutputTime(item.getOutputTime(currentTime)); + data.setWaitCount(item.getWaitCount(currentTime)); compoundQueueData.add(data); } return compoundQueueData; @@ -91,7 +94,11 @@ public class CookingCompoundManager extends BasePlayerManager { c = new ActiveCookCompoundData(id, compound.getCostTime(), count, currentTime); activeCompounds.put(id, c); } - var data = CompoundQueueData.newBuilder().setCompoundId(id).setOutputCount(c.getOutputCount(currentTime)).setOutputTime(c.getOutputTime(currentTime)).setWaitCount(c.getWaitCount(currentTime)).build(); + var data = new CompoundQueueData(); + data.setCompoundId(id); + data.setOutputCount(c.getOutputCount(currentTime)); + data.setOutputTime(c.getOutputTime(currentTime)); + data.setWaitCount(c.getWaitCount(currentTime)); player.sendPacket(new PacketPlayerCompoundMaterialRsp(data)); } @@ -123,9 +130,9 @@ public class CookingCompoundManager extends BasePlayerManager { //give player the rewards if (success) { player.getInventory().addItems(allRewards.values(), ActionReason.Compound); - player.sendPacket(new PacketTakeCompoundOutputRsp(allRewards.values().stream().map(i -> ItemParam.newBuilder().setItemId(i.getItemId()).setCount(i.getCount()).build()).toList(), Retcode.RET_SUCC_VALUE)); + player.sendPacket(new PacketTakeCompoundOutputRsp(allRewards.values().stream().toList(), Retcode.RET_SUCC_VALUE)); } else { - player.sendPacket(new PacketTakeCompoundOutputRsp(null, Retcode.RET_COMPOUND_NOT_FINISH_VALUE)); + player.sendPacket(new PacketTakeCompoundOutputRsp(new ArrayList(), Retcode.RET_COMPOUND_NOT_FINISH_VALUE)); } } diff --git a/src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java b/src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java index f103cc33..de37721a 100644 --- a/src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java +++ b/src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java @@ -1,10 +1,5 @@ package emu.grasscutter.game.managers.cooking; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.ItemParamData; import emu.grasscutter.data.excels.ItemData; @@ -12,15 +7,20 @@ import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.player.BasePlayerManager; import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ActionReason; -import emu.grasscutter.net.proto.CookRecipeDataOuterClass; -import emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq; -import emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq; import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; import emu.grasscutter.server.packet.send.PacketCookDataNotify; import emu.grasscutter.server.packet.send.PacketCookRecipeDataNotify; import emu.grasscutter.server.packet.send.PacketPlayerCookArgsRsp; import emu.grasscutter.server.packet.send.PacketPlayerCookRsp; import io.netty.util.internal.ThreadLocalRandom; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookArgsReq; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookReq; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; public class CookingManager extends BasePlayerManager { private static final int MANUAL_PERFECT_COOK_QUALITY = 3; @@ -171,12 +171,13 @@ public class CookingManager extends BasePlayerManager { var unlockedRecipes = this.player.getUnlockedRecipies(); // Construct CookRecipeData protos. - List data = new ArrayList<>(); - unlockedRecipes.forEach((recipeId, proficiency) -> - data.add(CookRecipeDataOuterClass.CookRecipeData.newBuilder() - .setRecipeId(recipeId) - .setProficiency(proficiency) - .build())); + List data = new ArrayList<>(); + unlockedRecipes.forEach((recipeId, proficiency) -> { + var cookRecipeData = new CookRecipeData(); + cookRecipeData.setRecipeId(recipeId); + cookRecipeData.setProficiency(proficiency); + data.add(cookRecipeData); + }); // Send packet. this.player.sendPacket(new PacketCookDataNotify(data)); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java index 0a36f929..e855700e 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.Opcodes; -import emu.grasscutter.net.packet.PacketHandler; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.GetCompoundDataReqOuterClass; +import emu.grasscutter.net.packet.TypedPacketHandler; import emu.grasscutter.server.game.GameSession; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.GetCompoundDataReq; -@Opcodes(PacketOpcodes.GetCompoundDataReq) -public class HandlerGetCompoundDataReq extends PacketHandler { +public class HandlerGetCompoundDataReq extends TypedPacketHandler { @Override - public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - var req = GetCompoundDataReqOuterClass.GetCompoundDataReq.parseFrom(payload); + public void handle(GameSession session, byte[] header, GetCompoundDataReq req) throws Exception { session.getPlayer().getCookingCompoundManager().handleGetCompoundDataReq(req); } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCompoundMaterialReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCompoundMaterialReq.java index b7de5794..4bf368e5 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCompoundMaterialReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCompoundMaterialReq.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.Opcodes; -import emu.grasscutter.net.packet.PacketHandler; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass; +import emu.grasscutter.net.packet.TypedPacketHandler; import emu.grasscutter.server.game.GameSession; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCompoundMaterialReq; -@Opcodes(PacketOpcodes.PlayerCompoundMaterialReq) -public class HandlerPlayerCompoundMaterialReq extends PacketHandler { +public class HandlerPlayerCompoundMaterialReq extends TypedPacketHandler { @Override - public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - var req = PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.parseFrom(payload); + public void handle(GameSession session, byte[] header, PlayerCompoundMaterialReq req) throws Exception { session.getPlayer().getCookingCompoundManager().handlePlayerCompoundMaterialReq(req); } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookArgsReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookArgsReq.java index c55dca3b..9dc0cf47 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookArgsReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookArgsReq.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.Opcodes; -import emu.grasscutter.net.packet.PacketHandler; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass; +import emu.grasscutter.net.packet.TypedPacketHandler; import emu.grasscutter.server.game.GameSession; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookArgsReq; -@Opcodes(PacketOpcodes.PlayerCookArgsReq) -public class HandlerPlayerCookArgsReq extends PacketHandler { +public class HandlerPlayerCookArgsReq extends TypedPacketHandler { @Override - public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - PlayerCookArgsReqOuterClass.PlayerCookArgsReq req = PlayerCookArgsReqOuterClass.PlayerCookArgsReq.parseFrom(payload); + public void handle(GameSession session, byte[] header, PlayerCookArgsReq req) throws Exception { session.getPlayer().getCookingManager().handleCookArgsReq(req); } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookReq.java index 46208350..6b0146c8 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCookReq.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.Opcodes; -import emu.grasscutter.net.packet.PacketHandler; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.PlayerCookReqOuterClass; +import emu.grasscutter.net.packet.TypedPacketHandler; import emu.grasscutter.server.game.GameSession; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookReq; -@Opcodes(PacketOpcodes.PlayerCookReq) -public class HandlerPlayerCookReq extends PacketHandler { +public class HandlerPlayerCookReq extends TypedPacketHandler { @Override - public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - PlayerCookReqOuterClass.PlayerCookReq req = PlayerCookReqOuterClass.PlayerCookReq.parseFrom(payload); + public void handle(GameSession session, byte[] header, PlayerCookReq req) throws Exception { session.getPlayer().getCookingManager().handlePlayerCookReq(req); } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeCompoundOutputReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeCompoundOutputReq.java index b05f93dc..cb0fd6cf 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeCompoundOutputReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeCompoundOutputReq.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.Opcodes; -import emu.grasscutter.net.packet.PacketHandler; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass; +import emu.grasscutter.net.packet.TypedPacketHandler; import emu.grasscutter.server.game.GameSession; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.TakeCompoundOutputReq; -@Opcodes(PacketOpcodes.TakeCompoundOutputReq) -public class HandlerTakeCompoundOutputReq extends PacketHandler { +public class HandlerTakeCompoundOutputReq extends TypedPacketHandler { @Override - public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - var req = TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.parseFrom(payload); + public void handle(GameSession session, byte[] header, TakeCompoundOutputReq req) throws Exception { session.getPlayer().getCookingCompoundManager().handleTakeCompoundOutputReq(req); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCompoundDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCompoundDataNotify.java index 950fddac..ba0c488a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketCompoundDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCompoundDataNotify.java @@ -1,21 +1,16 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify; -import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundDataNotify; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData; import java.util.List; import java.util.Set; -public class PacketCompoundDataNotify extends BasePacket { - +public class PacketCompoundDataNotify extends BaseTypedPacket { public PacketCompoundDataNotify(Set unlockedCompounds, List compoundQueueData) { - super(PacketOpcodes.CompoundDataNotify); - var proto= CompoundDataNotify.newBuilder() - .addAllUnlockCompoundList(unlockedCompounds) - .addAllCompoundQueDataList(compoundQueueData) - .build(); - this.setData(proto); + super(new CompoundDataNotify()); + proto.setUnlockCompoundList(unlockedCompounds.stream().toList()); + proto.setCompoundQueueDataList(compoundQueueData); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCookDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCookDataNotify.java index 7d0b1f1c..1c761418 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketCookDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCookDataNotify.java @@ -1,21 +1,14 @@ package emu.grasscutter.server.packet.send; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookDataNotify; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData; + import java.util.List; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify; -import emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData; - -public class PacketCookDataNotify extends BasePacket { - +public class PacketCookDataNotify extends BaseTypedPacket { public PacketCookDataNotify(List recipes) { - super(PacketOpcodes.CookDataNotify); - - CookDataNotify proto = CookDataNotify.newBuilder() - .addAllRecipeDataList(recipes) - .build(); - - this.setData(proto); + super(new CookDataNotify()); + proto.setRecipeDataList(recipes); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCookRecipeDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCookRecipeDataNotify.java index 00762d92..9d5f0e04 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketCookRecipeDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCookRecipeDataNotify.java @@ -1,28 +1,25 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify; -import emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData; +import emu.grasscutter.net.packet.BaseTypedPacket; +import lombok.val; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeDataNotify; -public class PacketCookRecipeDataNotify extends BasePacket { +public class PacketCookRecipeDataNotify extends BaseTypedPacket { public PacketCookRecipeDataNotify(CookRecipeData recipe) { - super(PacketOpcodes.CookRecipeDataNotify); - - CookRecipeDataNotify proto = CookRecipeDataNotify.newBuilder() - .setRecipeData(recipe) - .build(); - - this.setData(proto); + super(new CookRecipeDataNotify()); + proto.setRecipeData(recipe); } public PacketCookRecipeDataNotify(int recipeId) { - super(PacketOpcodes.CookRecipeDataNotify); + this(recipeId, 0); + } - CookRecipeDataNotify proto = CookRecipeDataNotify.newBuilder() - .setRecipeData(CookRecipeData.newBuilder().setRecipeId(recipeId)) - .build(); - - this.setData(proto); + public PacketCookRecipeDataNotify(int recipeId, int proficiency) { + super(new CookRecipeDataNotify()); + val cookRecipeData = new CookRecipeData(); + cookRecipeData.setRecipeId(recipeId); + cookRecipeData.setProficiency(proficiency); + proto.setRecipeData(cookRecipeData); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java index 58b95caf..981a9b56 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java @@ -1,22 +1,18 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData; -import emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp; +import emu.grasscutter.net.packet.BaseTypedPacket; import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.GetCompoundDataRsp; import java.util.List; import java.util.Set; -public class PacketGetCompoundDataRsp extends BasePacket { +public class PacketGetCompoundDataRsp extends BaseTypedPacket { public PacketGetCompoundDataRsp(Set unlockedCompounds, List compoundQueueData) { - super(PacketOpcodes.GetCompoundDataRsp); - var proto = GetCompoundDataRsp.newBuilder() - .addAllUnlockCompoundList(unlockedCompounds) - .addAllCompoundQueDataList(compoundQueueData) - .setRetcode(Retcode.RET_SUCC_VALUE) - .build(); - setData(proto); + super(new GetCompoundDataRsp()); + proto.setUnlockCompoundList(unlockedCompounds.stream().toList()); + proto.setCompoundQueDataList(compoundQueueData); + proto.setRetcode(Retcode.RET_SUCC_VALUE); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java index 031caacb..ae3b87e2 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java @@ -1,24 +1,19 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData; -import emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp; +import emu.grasscutter.net.packet.BaseTypedPacket; import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCompoundMaterialRsp; -public class PacketPlayerCompoundMaterialRsp extends BasePacket { +public class PacketPlayerCompoundMaterialRsp extends BaseTypedPacket { /** * Builder for successful message. - * * @param compoundQueueData new compound queue */ public PacketPlayerCompoundMaterialRsp(CompoundQueueData compoundQueueData) { - super(PacketOpcodes.PlayerCompoundMaterialRsp); - PlayerCompoundMaterialRsp proto = PlayerCompoundMaterialRsp.newBuilder() - .setCompoundQueData(compoundQueueData) - .setRetcode(Retcode.RET_SUCC_VALUE) - .build(); - setData(proto); + super(new PlayerCompoundMaterialRsp()); + proto.setCompoundQueueData(compoundQueueData); + proto.setRetcode(Retcode.RET_SUCC_VALUE); } /** @@ -26,11 +21,7 @@ public class PacketPlayerCompoundMaterialRsp extends BasePacket { * @param retcode error code */ public PacketPlayerCompoundMaterialRsp(int retcode) { - super(PacketOpcodes.PlayerCompoundMaterialRsp); - PlayerCompoundMaterialRsp proto = PlayerCompoundMaterialRsp.newBuilder() - .setRetcode(retcode) - .build(); - setData(proto); + super(new PlayerCompoundMaterialRsp()); + proto.setRetcode(retcode); } - } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookArgsRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookArgsRsp.java index bfdbe334..c62419eb 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookArgsRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookArgsRsp.java @@ -1,17 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookArgsRsp; -public class PacketPlayerCookArgsRsp extends BasePacket { - +public class PacketPlayerCookArgsRsp extends BaseTypedPacket { public PacketPlayerCookArgsRsp() { - super(PacketOpcodes.PlayerCookArgsRsp); - - PlayerCookArgsRsp proto = PlayerCookArgsRsp.newBuilder() - .build(); - - this.setData(proto); + super(new PlayerCookArgsRsp()); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookRsp.java index 8a3d6d5d..26a1795d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCookRsp.java @@ -1,46 +1,28 @@ package emu.grasscutter.server.packet.send; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BaseTypedPacket; +import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; +import lombok.val; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookRsp; + import java.util.List; -import emu.grasscutter.game.inventory.GameItem; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData; -import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; -import emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp; -import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; - -public class PacketPlayerCookRsp extends BasePacket { +public class PacketPlayerCookRsp extends BaseTypedPacket { public PacketPlayerCookRsp(Retcode retcode) { - super(PacketOpcodes.PlayerCookRsp); - - PlayerCookRsp proto = PlayerCookRsp.newBuilder() - .setRetcode(retcode.getNumber()) - .build(); - - this.setData(proto); + super(new PlayerCookRsp()); + proto.setRetcode(retcode.getNumber()); } public PacketPlayerCookRsp(List output, int quality, int count, int recipeId, int proficiency) { - super(PacketOpcodes.PlayerCookRsp); - - PlayerCookRsp.Builder proto = PlayerCookRsp.newBuilder() - .setRecipeData( - CookRecipeData.newBuilder() - .setRecipeId(recipeId) - .setProficiency(proficiency) - ) - .setQteQuality(quality) - .setCookCount(count); - - for (var item : output) { - proto.addItemList( - ItemParam.newBuilder() - .setItemId(item.getItemId()) - .setCount(item.getCount()) - ); - } - - this.setData(proto); + super(new PlayerCookRsp()); + val cookRecipeData = new CookRecipeData(); + cookRecipeData.setRecipeId(recipeId); + cookRecipeData.setProficiency(proficiency); + proto.setRecipeData(cookRecipeData); + proto.setQteQuality(quality); + proto.setCookCount(count); + proto.setItemList(output.stream().map(GameItem::toItemParam).toList()); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketTakeCompoundOutputRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketTakeCompoundOutputRsp.java index 353b71d3..ecd57afa 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketTakeCompoundOutputRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketTakeCompoundOutputRsp.java @@ -1,17 +1,15 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; -import emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.item.cooking.TakeCompoundOutputRsp; -public class PacketTakeCompoundOutputRsp extends BasePacket { +import java.util.List; - public PacketTakeCompoundOutputRsp(Iterable itemList, int retcode) { - super(PacketOpcodes.TakeCompoundOutputRsp); - var builder = TakeCompoundOutputRsp.newBuilder() - .addAllItemList(itemList) - .setRetcode(retcode); - setData(builder.build()); +public class PacketTakeCompoundOutputRsp extends BaseTypedPacket { + public PacketTakeCompoundOutputRsp(List itemList, int retcode) { + super(new TakeCompoundOutputRsp()); + proto.setItemList(itemList.stream().map(GameItem::toItemParam).toList()); + proto.setRetcode(retcode); } }