diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java new file mode 100644 index 000000000..c94488cc3 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CompoundDataNotifyOuterClass.java @@ -0,0 +1,1051 @@ +// 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 new file mode 100644 index 000000000..e70226d64 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CompoundQueueDataOuterClass.java @@ -0,0 +1,748 @@ +// 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/CompoundUnlockNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CompoundUnlockNotifyOuterClass.java new file mode 100644 index 000000000..b17414fd3 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CompoundUnlockNotifyOuterClass.java @@ -0,0 +1,548 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CompoundUnlockNotify.proto + +package emu.grasscutter.net.proto; + +public final class CompoundUnlockNotifyOuterClass { + private CompoundUnlockNotifyOuterClass() {} + 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 CompoundUnlockNotifyOrBuilder extends + // @@protoc_insertion_point(interface_extends:CompoundUnlockNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 compound_id = 3; + * @return The compoundId. + */ + int getCompoundId(); + } + /** + *
+   * CmdId: 128
+   * EnetChannelId: 0
+   * EnetIsReliable: true
+   * 
+ * + * Protobuf type {@code CompoundUnlockNotify} + */ + public static final class CompoundUnlockNotify extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CompoundUnlockNotify) + CompoundUnlockNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompoundUnlockNotify.newBuilder() to construct. + private CompoundUnlockNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompoundUnlockNotify() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompoundUnlockNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompoundUnlockNotify( + 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; + } + 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.CompoundUnlockNotifyOuterClass.internal_static_CompoundUnlockNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.internal_static_CompoundUnlockNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.class, emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.Builder.class); + } + + 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_); + } + 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_); + } + 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify other = (emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify) obj; + + 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_ID_FIELD_NUMBER; + hash = (53 * hash) + getCompoundId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify 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: 128
+     * EnetChannelId: 0
+     * EnetIsReliable: true
+     * 
+ * + * Protobuf type {@code CompoundUnlockNotify} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CompoundUnlockNotify) + emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.internal_static_CompoundUnlockNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.internal_static_CompoundUnlockNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.class, emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.Builder.class); + } + + // Construct using emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.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(); + compoundId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.internal_static_CompoundUnlockNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify getDefaultInstanceForType() { + return emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify build() { + emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify buildPartial() { + emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify result = new emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify(this); + 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify) { + return mergeFrom((emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify other) { + if (other == emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify.getDefaultInstance()) return this; + 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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:CompoundUnlockNotify) + } + + // @@protoc_insertion_point(class_scope:CompoundUnlockNotify) + private static final emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify(); + } + + public static emu.grasscutter.net.proto.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompoundUnlockNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompoundUnlockNotify(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.CompoundUnlockNotifyOuterClass.CompoundUnlockNotify getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CompoundUnlockNotify_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CompoundUnlockNotify_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\032CompoundUnlockNotify.proto\"+\n\024Compound" + + "UnlockNotify\022\023\n\013compound_id\030\003 \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_CompoundUnlockNotify_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_CompoundUnlockNotify_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CompoundUnlockNotify_descriptor, + new java.lang.String[] { "CompoundId", }); + } + + // @@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 new file mode 100644 index 000000000..3911f6444 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataReqOuterClass.java @@ -0,0 +1,480 @@ +// 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 new file mode 100644 index 000000000..4032d836e --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/GetCompoundDataRspOuterClass.java @@ -0,0 +1,1122 @@ +// 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 new file mode 100644 index 000000000..a368591a3 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialReqOuterClass.java @@ -0,0 +1,621 @@ +// 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 new file mode 100644 index 000000000..feb81a3ea --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/PlayerCompoundMaterialRspOuterClass.java @@ -0,0 +1,755 @@ +// 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/TakeCompoundOutputReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputReqOuterClass.java new file mode 100644 index 000000000..3fc80752d --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputReqOuterClass.java @@ -0,0 +1,621 @@ +// 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 new file mode 100644 index 000000000..d5be287a8 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/TakeCompoundOutputRspOuterClass.java @@ -0,0 +1,926 @@ +// 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/data/GameData.java b/src/main/java/emu/grasscutter/data/GameData.java index bcaacb3e0..ea0801d30 100644 --- a/src/main/java/emu/grasscutter/data/GameData.java +++ b/src/main/java/emu/grasscutter/data/GameData.java @@ -68,6 +68,7 @@ public class GameData { @Getter private static final Int2ObjectMap combineDataMap = new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap cookBonusDataMap = new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap cookRecipeDataMap = new Int2ObjectOpenHashMap<>(); + @Getter private static final Int2ObjectMap compoundDataMap=new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap dailyDungeonDataMap = new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap dungeonDataMap = new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap dungeonEntryDataMap = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/grasscutter/data/excels/CompoundData.java b/src/main/java/emu/grasscutter/data/excels/CompoundData.java new file mode 100644 index 000000000..e6eab7ab6 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/excels/CompoundData.java @@ -0,0 +1,26 @@ +package emu.grasscutter.data.excels; + +import emu.grasscutter.data.GameResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.common.ItemParamData; +import lombok.Getter; + +import java.util.List; + +@ResourceType(name = {"CompoundExcelConfigData.json"},loadPriority = ResourceType.LoadPriority.LOW) +public class CompoundData extends GameResource { + private int id; + + @Override + public int getId(){return this.id;} + @Getter private int groupId; + @Getter private int rankLevel; + @Getter private boolean isDefaultUnlocked; + @Getter private int costTime; + @Getter private int queueSize; + @Getter private List inputVec; + @Getter private List outputVec; + + @Override + public void onLoad(){} +} diff --git a/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java b/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java index 591fb9815..d9bc89b1d 100644 --- a/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java +++ b/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java @@ -6,44 +6,23 @@ import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; import emu.grasscutter.data.common.ItemParamData; -import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import lombok.Getter; @ResourceType(name = {"CookRecipeExcelConfigData.json"}, loadPriority = LoadPriority.LOW) public class CookRecipeData extends GameResource { private int id; - private int rankLevel; - private boolean isDefaultUnlocked; - private int maxProficiency; + @Getter private int rankLevel; + @Getter boolean isDefaultUnlocked; + @Getter int maxProficiency; - private List qualityOutputVec; - private List inputVec; + @Getter List qualityOutputVec; + @Getter List inputVec; @Override public int getId() { return this.id; } - - public int getRankLevel() { - return this.rankLevel; - } - - public boolean isDefaultUnlocked() { - return this.isDefaultUnlocked; - } - - public int getMaxProficiency() { - return this.maxProficiency; - } - - public List getQualityOutputVec() { - return this.qualityOutputVec; - } - - public List getInputVec() { - return this.inputVec; - } - @Override public void onLoad() { } diff --git a/src/main/java/emu/grasscutter/game/inventory/Inventory.java b/src/main/java/emu/grasscutter/game/inventory/Inventory.java index 0d12645a9..e0ddb8b1e 100644 --- a/src/main/java/emu/grasscutter/game/inventory/Inventory.java +++ b/src/main/java/emu/grasscutter/game/inventory/Inventory.java @@ -1,12 +1,5 @@ package emu.grasscutter.game.inventory; -import static emu.grasscutter.config.Configuration.*; - -import java.util.Collection; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; - import emu.grasscutter.GameConstants; import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.ItemParamData; @@ -15,14 +8,14 @@ import emu.grasscutter.data.excels.AvatarData; import emu.grasscutter.data.excels.AvatarFlycloakData; import emu.grasscutter.data.excels.ItemData; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.avatar.AvatarStorage; import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.avatar.AvatarStorage; import emu.grasscutter.game.player.BasePlayerManager; import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ActionReason; +import emu.grasscutter.game.props.ItemUseAction.UseItemParams; import emu.grasscutter.game.props.PlayerProperty; import emu.grasscutter.game.props.WatcherTriggerType; -import emu.grasscutter.game.props.ItemUseAction.UseItemParams; import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; import emu.grasscutter.server.packet.send.PacketAvatarEquipChangeNotify; import emu.grasscutter.server.packet.send.PacketItemAddHintNotify; @@ -33,6 +26,13 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.longs.Long2ObjectMap; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; + +import static emu.grasscutter.config.Configuration.INVENTORY_LIMITS; + public class Inventory extends BasePlayerManager implements Iterable { private final Long2ObjectMap store; private final Int2ObjectMap inventoryTypes; @@ -138,26 +138,23 @@ public class Inventory extends BasePlayerManager implements Iterable { this.addItems(items, null); } + public void addItems(Collection items, ActionReason reason) { - List changedItems = new LinkedList<>(); - - for (GameItem item : items) { + List changedItems = new ArrayList<>(); + for (var item : items) { + if (item.getItemId() == 0) continue; GameItem result = putItem(item); - if (result != null) { getPlayer().getBattlePassManager().triggerMission(WatcherTriggerType.TRIGGER_OBTAIN_MATERIAL_NUM, result.getItemId(), result.getCount()); changedItems.add(result); } } - if (changedItems.size() == 0) { return; } - if (reason != null) { getPlayer().sendPacket(new PacketItemAddHintNotify(changedItems, reason)); } - getPlayer().sendPacket(new PacketStoreItemChangeNotify(changedItems)); } @@ -394,6 +391,7 @@ public class Inventory extends BasePlayerManager implements Iterable { return false; // All costs are satisfied, now remove them all costItems.forEach(cost -> this.payVirtualItem(cost.getId(), cost.getCount() * quantity)); + //TODO:handle the reason(need to send certain package) return true; } diff --git a/src/main/java/emu/grasscutter/game/managers/cooking/ActiveCookCompoundData.java b/src/main/java/emu/grasscutter/game/managers/cooking/ActiveCookCompoundData.java new file mode 100644 index 000000000..677c27edc --- /dev/null +++ b/src/main/java/emu/grasscutter/game/managers/cooking/ActiveCookCompoundData.java @@ -0,0 +1,59 @@ +package emu.grasscutter.game.managers.cooking; + +import dev.morphia.annotations.Entity; +import lombok.Getter; + + +@Entity +public class ActiveCookCompoundData { + private final int costTime; + @Getter + private final int compoundId; + @Getter + private int totalCount; + private int startTime; + + public ActiveCookCompoundData(int compoundId, int processTime, int count, int startTime) { + this.compoundId = compoundId; + this.costTime = processTime; + this.totalCount = count; + this.startTime = startTime; + } + + public int getOutputCount(int currentTime) { + int cnt = (currentTime - startTime) / costTime; + if (cnt > totalCount) return totalCount; + else return cnt; + } + + public int getWaitCount(int currentTime) { + return totalCount - getOutputCount(currentTime); + } + + /** + * Get the timestamp of next output. + * If all finished,return 0 + */ + public int getOutputTime(int currentTime) { + int cnt = getOutputCount(currentTime); + if (cnt == totalCount) return 0; + else return startTime + (cnt + 1) * costTime; + } + + public void addCompound(int count, int currentTime) { + if (getOutputCount(currentTime) == totalCount) startTime = currentTime - totalCount * costTime; + totalCount += count; + } + + /** + * Take away all finished compound. + * + * @return The number of finished items. + */ + public int takeCompound(int currentTime) { + int count = getOutputCount(currentTime); + startTime += costTime * count; + totalCount -= count; + return count; + } +} diff --git a/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java b/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java new file mode 100644 index 000000000..03045c819 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java @@ -0,0 +1,132 @@ +package emu.grasscutter.game.managers.cooking; + +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.common.ItemParamData; +import emu.grasscutter.data.excels.CompoundData; +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.PackageTakeCompoundOutputRsp; +import emu.grasscutter.server.packet.send.PacketGetCompoundDataRsp; +import emu.grasscutter.server.packet.send.PacketPlayerCompoundMaterialRsp; +import emu.grasscutter.utils.Utils; + +import java.util.*; + +public class CookingCompoundManager extends BasePlayerManager { + private static Set defaultUnlockedCompounds; + private static Map> compoundGroups; + //TODO:bind it to player + private static Set unlocked; + + public CookingCompoundManager(Player player) { + super(player); + } + + public static void initialize() { + defaultUnlockedCompounds = new HashSet<>(); + compoundGroups = new HashMap<>(); + for (var compound : GameData.getCompoundDataMap().values()) { + if (compound.isDefaultUnlocked()) { + defaultUnlockedCompounds.add(compound.getId()); + } + if (!compoundGroups.containsKey(compound.getGroupId())) { + compoundGroups.put(compound.getGroupId(), new HashSet<>()); + } + compoundGroups.get(compound.getGroupId()).add(compound.getId()); + } + //TODO:Because we haven't implemented fishing feature,unlock all compounds related to fish.Besides,it should be bound to player rather than manager. + unlocked = new HashSet<>(defaultUnlockedCompounds); + unlocked.addAll(compoundGroups.get(3)); + } + + private synchronized List getCompoundQueueData() { + 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(); + compoundQueueData.add(data); + } + return compoundQueueData; + } + + public synchronized void handleGetCompoundDataReq(GetCompoundDataReq req) { + player.sendPacket(new PacketGetCompoundDataRsp(unlocked, getCompoundQueueData())); + } + + public synchronized void handlePlayerCompoundMaterialReq(PlayerCompoundMaterialReq req) { + int id = req.getCompoundId(), count = req.getCount(); + CompoundData compound = GameData.getCompoundDataMap().get(id); + var activeCompounds = player.getActiveCookCompounds(); + + //check whether the compound is available + //TODO:add other compounds,see my pr for detail + if (!unlocked.contains(id)) { + player.sendPacket(new PacketPlayerCompoundMaterialRsp(Retcode.RET_FAIL_VALUE)); + return; + } + //check whether the queue is full + if (activeCompounds.containsKey(id) && activeCompounds.get(id).getTotalCount() + count > compound.getQueueSize()) { + player.sendPacket(new PacketPlayerCompoundMaterialRsp(Retcode.RET_COMPOUND_QUEUE_FULL_VALUE)); + return; + } + //try to consume raw materials + if (!player.getInventory().payItems(compound.getInputVec(), count)) { + //TODO:I'm not sure whether retcode is correct. + player.sendPacket(new PacketPlayerCompoundMaterialRsp(Retcode.RET_ITEM_COUNT_NOT_ENOUGH_VALUE)); + return; + } + ActiveCookCompoundData c; + int currentTime = Utils.getCurrentSeconds(); + if (activeCompounds.containsKey(id)) { + c = activeCompounds.get(id); + c.addCompound(count, currentTime); + } else { + 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(); + player.sendPacket(new PacketPlayerCompoundMaterialRsp(data)); + } + + public synchronized void handleTakeCompoundOutputReq(TakeCompoundOutputReq req) { + //Client won't set compound_id and will set group_id instead. + int groupId = req.getCompoundGroupId(); + var activeCompounds = player.getActiveCookCompounds(); + int now = Utils.getCurrentSeconds(); + //check available queues + boolean success = false; + Map allRewards = new HashMap<>(); + for (int id : compoundGroups.get(groupId)) { + if (!activeCompounds.containsKey(id)) continue; + int quantity = activeCompounds.get(id).takeCompound(now); + if (activeCompounds.get(id).getTotalCount() == 0) activeCompounds.remove(id); + if (quantity == 0) continue; + List rewards = GameData.getCompoundDataMap().get(id).getOutputVec(); + for (var i : rewards) { + if (i.getId() == 0) continue; + if (allRewards.containsKey(i.getId())) { + GameItem item = allRewards.get(i.getId()); + item.setCount(item.getCount() + i.getCount() * quantity); + } else { + allRewards.put(i.getId(), new GameItem(i.getId(), i.getCount()*quantity)); + } + } + success = true; + } + //give player the rewards + if (success) { + player.getInventory().addItems(allRewards.values(), ActionReason.Compound); + player.sendPacket(new PackageTakeCompoundOutputRsp(allRewards.values().stream().map(i -> ItemParam.newBuilder().setItemId(i.getItemId()).setCount(i.getCount()).build()).toList(), Retcode.RET_SUCC_VALUE)); + } else { + player.sendPacket(new PackageTakeCompoundOutputRsp(null, Retcode.RET_COMPOUND_NOT_FINISH_VALUE)); + } + } +} diff --git a/src/main/java/emu/grasscutter/game/managers/CookingManager.java b/src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java similarity index 99% rename from src/main/java/emu/grasscutter/game/managers/CookingManager.java rename to src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java index 372bb4465..e827507f2 100644 --- a/src/main/java/emu/grasscutter/game/managers/CookingManager.java +++ b/src/main/java/emu/grasscutter/game/managers/cooking/CookingManager.java @@ -1,4 +1,4 @@ -package emu.grasscutter.game.managers; +package emu.grasscutter.game.managers.cooking; import java.util.ArrayList; import java.util.HashSet; diff --git a/src/main/java/emu/grasscutter/game/managers/forging/ActiveForgeData.java b/src/main/java/emu/grasscutter/game/managers/forging/ActiveForgeData.java index 3820c8685..e04f23bad 100644 --- a/src/main/java/emu/grasscutter/game/managers/forging/ActiveForgeData.java +++ b/src/main/java/emu/grasscutter/game/managers/forging/ActiveForgeData.java @@ -1,7 +1,6 @@ package emu.grasscutter.game.managers.forging; import dev.morphia.annotations.Entity; -import emu.grasscutter.utils.Utils; @Entity public class ActiveForgeData { @@ -17,7 +16,7 @@ public class ActiveForgeData { public int getFinishedCount(int currentTime) { int timeDelta = currentTime - this.startTime; - int finishedCount = (int)Math.floor(timeDelta / this.forgeTime); + int finishedCount = timeDelta / this.forgeTime; return Math.min(finishedCount, this.count); } diff --git a/src/main/java/emu/grasscutter/game/managers/forging/ForgingManager.java b/src/main/java/emu/grasscutter/game/managers/forging/ForgingManager.java index 347dce7bf..eda0d8121 100644 --- a/src/main/java/emu/grasscutter/game/managers/forging/ForgingManager.java +++ b/src/main/java/emu/grasscutter/game/managers/forging/ForgingManager.java @@ -146,7 +146,8 @@ public class ForgingManager extends BasePlayerManager { boolean success = player.getInventory().payItems(material, req.getForgeCount(), ActionReason.ForgeCost); if (!success) { - this.player.sendPacket(new PacketForgeStartRsp(Retcode.RET_FORGE_POINT_NOT_ENOUGH)); //ToDo: Probably the wrong return code. + //TODO:I'm not sure this one is correct. + this.player.sendPacket(new PacketForgeStartRsp(Retcode.RET_ITEM_COUNT_NOT_ENOUGH)); //ToDo: Probably the wrong return code. } // Consume forge points. @@ -171,7 +172,7 @@ public class ForgingManager extends BasePlayerManager { Forge queue manipulation (obtaining results and cancelling forges). **********/ private synchronized void obtainItems(int queueId) { - // Determin how many items are finished. + // Determine how many items are finished. int currentTime = Utils.getCurrentSeconds(); ActiveForgeData forge = this.player.getActiveForges().get(queueId - 1); @@ -271,14 +272,10 @@ public class ForgingManager extends BasePlayerManager { // Handle according to the manipulation type. switch (manipulateType) { - case FORGE_QUEUE_MANIPULATE_TYPE_RECEIVE_OUTPUT: - this.obtainItems(queueId); - break; - case FORGE_QUEUE_MANIPULATE_TYPE_STOP_FORGE: - this.cancelForge(queueId); - break; - default: - break; //Should never happen. + case FORGE_QUEUE_MANIPULATE_TYPE_RECEIVE_OUTPUT -> this.obtainItems(queueId); + case FORGE_QUEUE_MANIPULATE_TYPE_STOP_FORGE -> this.cancelForge(queueId); + default -> { + } //Should never happen. } } @@ -296,9 +293,7 @@ public class ForgingManager extends BasePlayerManager { } boolean hasChanges = this.player.getActiveForges().stream() - .filter(forge -> forge.updateChanged(currentTime)) - .findAny() - .isPresent(); + .anyMatch(forge -> forge.updateChanged(currentTime)); if (!hasChanges) { return; diff --git a/src/main/java/emu/grasscutter/game/player/Player.java b/src/main/java/emu/grasscutter/game/player/Player.java index 17a3bad39..a6aed4e65 100644 --- a/src/main/java/emu/grasscutter/game/player/Player.java +++ b/src/main/java/emu/grasscutter/game/player/Player.java @@ -24,7 +24,9 @@ import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.inventory.Inventory; import emu.grasscutter.game.mail.Mail; import emu.grasscutter.game.mail.MailHandler; -import emu.grasscutter.game.managers.CookingManager; +import emu.grasscutter.game.managers.cooking.ActiveCookCompoundData; +import emu.grasscutter.game.managers.cooking.CookingCompoundManager; +import emu.grasscutter.game.managers.cooking.CookingManager; import emu.grasscutter.game.managers.FurnitureManager; import emu.grasscutter.game.managers.ResinManager; import emu.grasscutter.game.managers.deforestation.DeforestationManager; @@ -122,6 +124,7 @@ public class Player { @Getter private Map expeditionInfo; @Getter private Map unlockedRecipies; @Getter private List activeForges; + @Getter private Map activeCookCompounds; @Getter private Map questGlobalVariables; @Getter private Map openStates; @Getter @Setter private Map> unlockedSceneAreas; @@ -154,6 +157,7 @@ public class Player { @Getter private transient FurnitureManager furnitureManager; @Getter private transient BattlePassManager battlePassManager; @Getter private transient CookingManager cookingManager; + @Getter private transient CookingCompoundManager cookingCompoundManager; @Getter private transient ActivityManager activityManager; @Getter private transient PlayerBuffManager buffManager; @Getter private transient PlayerProgressManager progressManager; @@ -225,6 +229,7 @@ public class Player { this.unlockedCombines = new HashSet<>(); this.unlockedFurniture = new HashSet<>(); this.unlockedFurnitureSuite = new HashSet<>(); + this.activeCookCompounds=new HashMap<>(); this.activeForges = new ArrayList<>(); this.unlockedRecipies = new HashMap<>(); this.questGlobalVariables = new HashMap<>(); @@ -256,6 +261,7 @@ public class Player { this.progressManager = new PlayerProgressManager(this); this.furnitureManager = new FurnitureManager(this); this.cookingManager = new CookingManager(this); + this.cookingCompoundManager=new CookingCompoundManager(this); } // On player creation @@ -290,6 +296,7 @@ public class Player { this.progressManager = new PlayerProgressManager(this); this.furnitureManager = new FurnitureManager(this); this.cookingManager = new CookingManager(this); + this.cookingCompoundManager=new CookingCompoundManager(this); } public int getUid() { @@ -557,11 +564,11 @@ public class Player { public void onEnterRegion(SceneRegion region) { getQuestManager().forEachActiveQuest(quest -> { - if (quest.getTriggers().containsKey("ENTER_REGION_"+ String.valueOf(region.config_id))) { + if (quest.getTriggers().containsKey("ENTER_REGION_"+ region.config_id)) { // If trigger hasn't been fired yet - if (!Boolean.TRUE.equals(quest.getTriggers().put("ENTER_REGION_"+ String.valueOf(region.config_id), true))) { + if (!Boolean.TRUE.equals(quest.getTriggers().put("ENTER_REGION_"+ region.config_id, true))) { //getSession().send(new PacketServerCondMeetQuestListUpdateNotify()); - getQuestManager().triggerEvent(QuestTrigger.QUEST_CONTENT_TRIGGER_FIRE, quest.getTriggerData().get("ENTER_REGION_"+ String.valueOf(region.config_id)).getId(),0); + getQuestManager().triggerEvent(QuestTrigger.QUEST_CONTENT_TRIGGER_FIRE, quest.getTriggerData().get("ENTER_REGION_"+ region.config_id).getId(),0); } } }); @@ -570,11 +577,11 @@ public class Player { public void onLeaveRegion(SceneRegion region) { getQuestManager().forEachActiveQuest(quest -> { - if (quest.getTriggers().containsKey("LEAVE_REGION_"+ String.valueOf(region.config_id))) { + if (quest.getTriggers().containsKey("LEAVE_REGION_"+ region.config_id)) { // If trigger hasn't been fired yet - if (!Boolean.TRUE.equals(quest.getTriggers().put("LEAVE_REGION_"+ String.valueOf(region.config_id), true))) { + if (!Boolean.TRUE.equals(quest.getTriggers().put("LEAVE_REGION_"+ region.config_id, true))) { getSession().send(new PacketServerCondMeetQuestListUpdateNotify()); - getQuestManager().triggerEvent(QuestTrigger.QUEST_CONTENT_TRIGGER_FIRE, quest.getTriggerData().get("LEAVE_REGION_"+ String.valueOf(region.config_id)).getId(),0); + getQuestManager().triggerEvent(QuestTrigger.QUEST_CONTENT_TRIGGER_FIRE, quest.getTriggerData().get("LEAVE_REGION_"+ region.config_id).getId(),0); } } }); @@ -1287,16 +1294,14 @@ public class Player { @Getter private final int value; - private SceneLoadState(int value) { + SceneLoadState(int value) { this.value = value; } } public int getPropertyMin(PlayerProperty prop) { if (prop.isDynamicRange()) { - return switch (prop) { - default -> 0; - }; + return 0; } else { return prop.getMin(); } diff --git a/src/main/java/emu/grasscutter/server/game/GameServer.java b/src/main/java/emu/grasscutter/server/game/GameServer.java index bea5b8593..09e4e3475 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServer.java +++ b/src/main/java/emu/grasscutter/server/game/GameServer.java @@ -13,7 +13,8 @@ import emu.grasscutter.game.dungeons.DungeonSystem; import emu.grasscutter.game.dungeons.challenge.DungeonChallenge; import emu.grasscutter.game.expedition.ExpeditionSystem; import emu.grasscutter.game.gacha.GachaSystem; -import emu.grasscutter.game.managers.CookingManager; +import emu.grasscutter.game.managers.cooking.CookingCompoundManager; +import emu.grasscutter.game.managers.cooking.CookingManager; import emu.grasscutter.game.managers.energy.EnergyManager; import emu.grasscutter.game.managers.stamina.StaminaManager; import emu.grasscutter.game.player.Player; @@ -95,6 +96,7 @@ public final class GameServer extends KcpServer { EnergyManager.initialize(); StaminaManager.initialize(); CookingManager.initialize(); + CookingCompoundManager.initialize(); CombineManger.initialize(); // Game Server base diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java new file mode 100644 index 000000000..0a36f9296 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetCompoundDataReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.GetCompoundDataReq) +public class HandlerGetCompoundDataReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + var req = GetCompoundDataReqOuterClass.GetCompoundDataReq.parseFrom(payload); + 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 new file mode 100644 index 000000000..b7de57944 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerCompoundMaterialReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.PlayerCompoundMaterialReq) +public class HandlerPlayerCompoundMaterialReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + var req = PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.parseFrom(payload); + session.getPlayer().getCookingCompoundManager().handlePlayerCompoundMaterialReq(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 new file mode 100644 index 000000000..b05f93dc3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeCompoundOutputReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.TakeCompoundOutputReq) +public class HandlerTakeCompoundOutputReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + var req = TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.parseFrom(payload); + session.getPlayer().getCookingCompoundManager().handleTakeCompoundOutputReq(req); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PackageTakeCompoundOutputRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PackageTakeCompoundOutputRsp.java new file mode 100644 index 000000000..0ac763bc0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PackageTakeCompoundOutputRsp.java @@ -0,0 +1,17 @@ +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; + +public class PackageTakeCompoundOutputRsp extends BasePacket { + + public PackageTakeCompoundOutputRsp(Iterable itemList, int retcode) { + super(PacketOpcodes.TakeCompoundOutputRsp); + var builder = TakeCompoundOutputRsp.newBuilder() + .addAllItemList(itemList) + .setRetcode(retcode); + setData(builder.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketForgeStartRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketForgeStartRsp.java index 0a7dc42e9..bd7ba37a0 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketForgeStartRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketForgeStartRsp.java @@ -1,14 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.player.Player; import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ForgeStartRspOuterClass.ForgeStartRsp; import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode; -import java.util.ArrayList; -import java.util.List; - public class PacketForgeStartRsp extends BasePacket { public PacketForgeStartRsp(Retcode retcode) { @@ -17,7 +13,7 @@ public class PacketForgeStartRsp extends BasePacket { ForgeStartRsp proto = ForgeStartRsp.newBuilder() .setRetcode(retcode.getNumber()) .build(); - + this.setData(proto); } -} \ No newline at end of file +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java new file mode 100644 index 000000000..44f990f43 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetCompoundDataRsp.java @@ -0,0 +1,22 @@ +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.proto.RetcodeOuterClass.Retcode; + +import java.util.List; +import java.util.Set; + +public class PacketGetCompoundDataRsp extends BasePacket { + public PacketGetCompoundDataRsp(Set unlockedCompounds, List compundQueueData) { + super(PacketOpcodes.GetCompoundDataRsp); + var proto = GetCompoundDataRsp.newBuilder() + .addAllUnlockCompoundList(unlockedCompounds) + .addAllCompoundQueDataList(compundQueueData) + .setRetcode(Retcode.RET_SUCC_VALUE) + .build(); + setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java new file mode 100644 index 000000000..031caacbb --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerCompoundMaterialRsp.java @@ -0,0 +1,36 @@ +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.proto.RetcodeOuterClass.Retcode; + +public class PacketPlayerCompoundMaterialRsp extends BasePacket { + /** + * 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); + } + + /** + * Builder for failed message. + * @param retcode error code + */ + public PacketPlayerCompoundMaterialRsp(int retcode) { + super(PacketOpcodes.PlayerCompoundMaterialRsp); + PlayerCompoundMaterialRsp proto = PlayerCompoundMaterialRsp.newBuilder() + .setRetcode(retcode) + .build(); + setData(proto); + } + +}