From 99ef6de6fc0ca2f811c2dd4e77fc192208ce6932 Mon Sep 17 00:00:00 2001 From: Nazrin Date: Mon, 19 Aug 2024 15:11:40 -0700 Subject: [PATCH] Packet Packet: Blossoms (#143) --- .../BlossomBriefInfoNotifyOuterClass.java | 859 ----------- .../net/proto/BlossomBriefInfoOuterClass.java | 1307 ----------------- .../BlossomChestCreateNotifyOuterClass.java | 621 -------- .../proto/BlossomScheduleInfoOuterClass.java | 889 ----------- ...OwnerBlossomBriefInfoNotifyOuterClass.java | 859 ----------- ...erBlossomScheduleInfoNotifyOuterClass.java | 687 --------- .../game/managers/blossom/BlossomManager.java | 27 +- .../managers/blossom/BlossomSchedule.java | 48 +- .../send/PacketBlossomBriefInfoNotify.java | 17 +- .../send/PacketBlossomChestCreateNotify.java | 14 +- ...acketWorldOwnerBlossomBriefInfoNotify.java | 14 +- ...etWorldOwnerBlossomScheduleInfoNotify.java | 16 +- 12 files changed, 65 insertions(+), 5293 deletions(-) delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoNotifyOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/BlossomChestCreateNotifyOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/BlossomScheduleInfoOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomBriefInfoNotifyOuterClass.java delete mode 100644 src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomScheduleInfoNotifyOuterClass.java diff --git a/src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoNotifyOuterClass.java deleted file mode 100644 index 782e26fa..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoNotifyOuterClass.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BlossomBriefInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class BlossomBriefInfoNotifyOuterClass { - private BlossomBriefInfoNotifyOuterClass() {} - 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 BlossomBriefInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlossomBriefInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - java.util.List - getBriefInfoListList(); - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getBriefInfoList(int index); - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - int getBriefInfoListCount(); - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - java.util.List - getBriefInfoListOrBuilderList(); - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder getBriefInfoListOrBuilder( - int index); - } - /** - *
-   * CmdId: 2712
-   * EnetChannelId: 0
-   * EnetIsReliable: false
-   * IsAllowClient: true
-   * 
- * - * Protobuf type {@code BlossomBriefInfoNotify} - */ - public static final class BlossomBriefInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlossomBriefInfoNotify) - BlossomBriefInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlossomBriefInfoNotify.newBuilder() to construct. - private BlossomBriefInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlossomBriefInfoNotify() { - briefInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlossomBriefInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlossomBriefInfoNotify( - 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 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - briefInfoList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - briefInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.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)) { - briefInfoList_ = java.util.Collections.unmodifiableList(briefInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.internal_static_BlossomBriefInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.internal_static_BlossomBriefInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.class, emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.Builder.class); - } - - public static final int BRIEF_INFO_LIST_FIELD_NUMBER = 4; - private java.util.List briefInfoList_; - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - @java.lang.Override - public java.util.List getBriefInfoListList() { - return briefInfoList_; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - @java.lang.Override - public java.util.List - getBriefInfoListOrBuilderList() { - return briefInfoList_; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - @java.lang.Override - public int getBriefInfoListCount() { - return briefInfoList_.size(); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getBriefInfoList(int index) { - return briefInfoList_.get(index); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder getBriefInfoListOrBuilder( - int index) { - return briefInfoList_.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 { - for (int i = 0; i < briefInfoList_.size(); i++) { - output.writeMessage(4, briefInfoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < briefInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, briefInfoList_.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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify other = (emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify) obj; - - if (!getBriefInfoListList() - .equals(other.getBriefInfoListList())) 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 (getBriefInfoListCount() > 0) { - hash = (37 * hash) + BRIEF_INFO_LIST_FIELD_NUMBER; - hash = (53 * hash) + getBriefInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify 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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify 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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify 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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify 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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify 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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify 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: 2712
-     * EnetChannelId: 0
-     * EnetIsReliable: false
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code BlossomBriefInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlossomBriefInfoNotify) - emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.internal_static_BlossomBriefInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.internal_static_BlossomBriefInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.class, emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBriefInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (briefInfoListBuilder_ == null) { - briefInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - briefInfoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.internal_static_BlossomBriefInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify build() { - emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify buildPartial() { - emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify result = new emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify(this); - int from_bitField0_ = bitField0_; - if (briefInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - briefInfoList_ = java.util.Collections.unmodifiableList(briefInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.briefInfoList_ = briefInfoList_; - } else { - result.briefInfoList_ = briefInfoListBuilder_.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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify other) { - if (other == emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.getDefaultInstance()) return this; - if (briefInfoListBuilder_ == null) { - if (!other.briefInfoList_.isEmpty()) { - if (briefInfoList_.isEmpty()) { - briefInfoList_ = other.briefInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBriefInfoListIsMutable(); - briefInfoList_.addAll(other.briefInfoList_); - } - onChanged(); - } - } else { - if (!other.briefInfoList_.isEmpty()) { - if (briefInfoListBuilder_.isEmpty()) { - briefInfoListBuilder_.dispose(); - briefInfoListBuilder_ = null; - briefInfoList_ = other.briefInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - briefInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBriefInfoListFieldBuilder() : null; - } else { - briefInfoListBuilder_.addAllMessages(other.briefInfoList_); - } - } - } - 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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List briefInfoList_ = - java.util.Collections.emptyList(); - private void ensureBriefInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - briefInfoList_ = new java.util.ArrayList(briefInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder> briefInfoListBuilder_; - - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public java.util.List getBriefInfoListList() { - if (briefInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(briefInfoList_); - } else { - return briefInfoListBuilder_.getMessageList(); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public int getBriefInfoListCount() { - if (briefInfoListBuilder_ == null) { - return briefInfoList_.size(); - } else { - return briefInfoListBuilder_.getCount(); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getBriefInfoList(int index) { - if (briefInfoListBuilder_ == null) { - return briefInfoList_.get(index); - } else { - return briefInfoListBuilder_.getMessage(index); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder setBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo value) { - if (briefInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBriefInfoListIsMutable(); - briefInfoList_.set(index, value); - onChanged(); - } else { - briefInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder setBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder builderForValue) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - briefInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder addBriefInfoList(emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo value) { - if (briefInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBriefInfoListIsMutable(); - briefInfoList_.add(value); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder addBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo value) { - if (briefInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBriefInfoListIsMutable(); - briefInfoList_.add(index, value); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder addBriefInfoList( - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder builderForValue) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.add(builderForValue.build()); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder addBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder builderForValue) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder addAllBriefInfoList( - java.lang.Iterable values) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, briefInfoList_); - onChanged(); - } else { - briefInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder clearBriefInfoList() { - if (briefInfoListBuilder_ == null) { - briefInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - briefInfoListBuilder_.clear(); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public Builder removeBriefInfoList(int index) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.remove(index); - onChanged(); - } else { - briefInfoListBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder getBriefInfoListBuilder( - int index) { - return getBriefInfoListFieldBuilder().getBuilder(index); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder getBriefInfoListOrBuilder( - int index) { - if (briefInfoListBuilder_ == null) { - return briefInfoList_.get(index); } else { - return briefInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public java.util.List - getBriefInfoListOrBuilderList() { - if (briefInfoListBuilder_ != null) { - return briefInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(briefInfoList_); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder addBriefInfoListBuilder() { - return getBriefInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.getDefaultInstance()); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder addBriefInfoListBuilder( - int index) { - return getBriefInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.getDefaultInstance()); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 4; - */ - public java.util.List - getBriefInfoListBuilderList() { - return getBriefInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder> - getBriefInfoListFieldBuilder() { - if (briefInfoListBuilder_ == null) { - briefInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder>( - briefInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - briefInfoList_ = null; - } - return briefInfoListBuilder_; - } - @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:BlossomBriefInfoNotify) - } - - // @@protoc_insertion_point(class_scope:BlossomBriefInfoNotify) - private static final emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify(); - } - - public static emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlossomBriefInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlossomBriefInfoNotify(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.BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlossomBriefInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlossomBriefInfoNotify_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\034BlossomBriefInfoNotify.proto\032\026BlossomB" + - "riefInfo.proto\"D\n\026BlossomBriefInfoNotify" + - "\022*\n\017brief_info_list\030\004 \003(\0132\021.BlossomBrief" + - "InfoB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.getDescriptor(), - }); - internal_static_BlossomBriefInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_BlossomBriefInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlossomBriefInfoNotify_descriptor, - new java.lang.String[] { "BriefInfoList", }); - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoOuterClass.java deleted file mode 100644 index 3465e998..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/BlossomBriefInfoOuterClass.java +++ /dev/null @@ -1,1307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BlossomBriefInfo.proto - -package emu.grasscutter.net.proto; - -public final class BlossomBriefInfoOuterClass { - private BlossomBriefInfoOuterClass() {} - 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 BlossomBriefInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlossomBriefInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 refresh_id = 13; - * @return The refreshId. - */ - int getRefreshId(); - - /** - * uint32 reward_id = 5; - * @return The rewardId. - */ - int getRewardId(); - - /** - * uint32 city_id = 10; - * @return The cityId. - */ - int getCityId(); - - /** - * uint32 resin = 11; - * @return The resin. - */ - int getResin(); - - /** - * uint32 state = 7; - * @return The state. - */ - int getState(); - - /** - * bool is_guide_opened = 1; - * @return The isGuideOpened. - */ - boolean getIsGuideOpened(); - - /** - * uint32 monster_level = 8; - * @return The monsterLevel. - */ - int getMonsterLevel(); - - /** - * uint32 circle_camp_id = 15; - * @return The circleCampId. - */ - int getCircleCampId(); - - /** - * .Vector pos = 12; - * @return Whether the pos field is set. - */ - boolean hasPos(); - /** - * .Vector pos = 12; - * @return The pos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); - /** - * .Vector pos = 12; - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); - - /** - * uint32 scene_id = 9; - * @return The sceneId. - */ - int getSceneId(); - } - /** - * Protobuf type {@code BlossomBriefInfo} - */ - public static final class BlossomBriefInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlossomBriefInfo) - BlossomBriefInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlossomBriefInfo.newBuilder() to construct. - private BlossomBriefInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlossomBriefInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlossomBriefInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlossomBriefInfo( - 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: { - - isGuideOpened_ = input.readBool(); - break; - } - case 40: { - - rewardId_ = input.readUInt32(); - break; - } - case 56: { - - state_ = input.readUInt32(); - break; - } - case 64: { - - monsterLevel_ = input.readUInt32(); - break; - } - case 72: { - - sceneId_ = input.readUInt32(); - break; - } - case 80: { - - cityId_ = input.readUInt32(); - break; - } - case 88: { - - resin_ = input.readUInt32(); - break; - } - case 98: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (pos_ != null) { - subBuilder = pos_.toBuilder(); - } - pos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pos_); - pos_ = subBuilder.buildPartial(); - } - - break; - } - case 104: { - - refreshId_ = input.readUInt32(); - break; - } - case 120: { - - circleCampId_ = 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.BlossomBriefInfoOuterClass.internal_static_BlossomBriefInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.internal_static_BlossomBriefInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.class, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder.class); - } - - public static final int REFRESH_ID_FIELD_NUMBER = 13; - private int refreshId_; - /** - * uint32 refresh_id = 13; - * @return The refreshId. - */ - @java.lang.Override - public int getRefreshId() { - return refreshId_; - } - - public static final int REWARD_ID_FIELD_NUMBER = 5; - private int rewardId_; - /** - * uint32 reward_id = 5; - * @return The rewardId. - */ - @java.lang.Override - public int getRewardId() { - return rewardId_; - } - - public static final int CITY_ID_FIELD_NUMBER = 10; - private int cityId_; - /** - * uint32 city_id = 10; - * @return The cityId. - */ - @java.lang.Override - public int getCityId() { - return cityId_; - } - - public static final int RESIN_FIELD_NUMBER = 11; - private int resin_; - /** - * uint32 resin = 11; - * @return The resin. - */ - @java.lang.Override - public int getResin() { - return resin_; - } - - public static final int STATE_FIELD_NUMBER = 7; - private int state_; - /** - * uint32 state = 7; - * @return The state. - */ - @java.lang.Override - public int getState() { - return state_; - } - - public static final int IS_GUIDE_OPENED_FIELD_NUMBER = 1; - private boolean isGuideOpened_; - /** - * bool is_guide_opened = 1; - * @return The isGuideOpened. - */ - @java.lang.Override - public boolean getIsGuideOpened() { - return isGuideOpened_; - } - - public static final int MONSTER_LEVEL_FIELD_NUMBER = 8; - private int monsterLevel_; - /** - * uint32 monster_level = 8; - * @return The monsterLevel. - */ - @java.lang.Override - public int getMonsterLevel() { - return monsterLevel_; - } - - public static final int CIRCLE_CAMP_ID_FIELD_NUMBER = 15; - private int circleCampId_; - /** - * uint32 circle_camp_id = 15; - * @return The circleCampId. - */ - @java.lang.Override - public int getCircleCampId() { - return circleCampId_; - } - - public static final int POS_FIELD_NUMBER = 12; - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - /** - * .Vector pos = 12; - * @return Whether the pos field is set. - */ - @java.lang.Override - public boolean hasPos() { - return pos_ != null; - } - /** - * .Vector pos = 12; - * @return The pos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - /** - * .Vector pos = 12; - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - return getPos(); - } - - public static final int SCENE_ID_FIELD_NUMBER = 9; - private int sceneId_; - /** - * uint32 scene_id = 9; - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - 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 (isGuideOpened_ != false) { - output.writeBool(1, isGuideOpened_); - } - if (rewardId_ != 0) { - output.writeUInt32(5, rewardId_); - } - if (state_ != 0) { - output.writeUInt32(7, state_); - } - if (monsterLevel_ != 0) { - output.writeUInt32(8, monsterLevel_); - } - if (sceneId_ != 0) { - output.writeUInt32(9, sceneId_); - } - if (cityId_ != 0) { - output.writeUInt32(10, cityId_); - } - if (resin_ != 0) { - output.writeUInt32(11, resin_); - } - if (pos_ != null) { - output.writeMessage(12, getPos()); - } - if (refreshId_ != 0) { - output.writeUInt32(13, refreshId_); - } - if (circleCampId_ != 0) { - output.writeUInt32(15, circleCampId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isGuideOpened_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isGuideOpened_); - } - if (rewardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, rewardId_); - } - if (state_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, state_); - } - if (monsterLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, monsterLevel_); - } - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, sceneId_); - } - if (cityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, cityId_); - } - if (resin_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, resin_); - } - if (pos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getPos()); - } - if (refreshId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, refreshId_); - } - if (circleCampId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, circleCampId_); - } - 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.BlossomBriefInfoOuterClass.BlossomBriefInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo other = (emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo) obj; - - if (getRefreshId() - != other.getRefreshId()) return false; - if (getRewardId() - != other.getRewardId()) return false; - if (getCityId() - != other.getCityId()) return false; - if (getResin() - != other.getResin()) return false; - if (getState() - != other.getState()) return false; - if (getIsGuideOpened() - != other.getIsGuideOpened()) return false; - if (getMonsterLevel() - != other.getMonsterLevel()) return false; - if (getCircleCampId() - != other.getCircleCampId()) return false; - if (hasPos() != other.hasPos()) return false; - if (hasPos()) { - if (!getPos() - .equals(other.getPos())) return false; - } - if (getSceneId() - != other.getSceneId()) 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) + REFRESH_ID_FIELD_NUMBER; - hash = (53 * hash) + getRefreshId(); - hash = (37 * hash) + REWARD_ID_FIELD_NUMBER; - hash = (53 * hash) + getRewardId(); - hash = (37 * hash) + CITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getCityId(); - hash = (37 * hash) + RESIN_FIELD_NUMBER; - hash = (53 * hash) + getResin(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState(); - hash = (37 * hash) + IS_GUIDE_OPENED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsGuideOpened()); - hash = (37 * hash) + MONSTER_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getMonsterLevel(); - hash = (37 * hash) + CIRCLE_CAMP_ID_FIELD_NUMBER; - hash = (53 * hash) + getCircleCampId(); - if (hasPos()) { - hash = (37 * hash) + POS_FIELD_NUMBER; - hash = (53 * hash) + getPos().hashCode(); - } - hash = (37 * hash) + SCENE_ID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo 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.BlossomBriefInfoOuterClass.BlossomBriefInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo 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.BlossomBriefInfoOuterClass.BlossomBriefInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo 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.BlossomBriefInfoOuterClass.BlossomBriefInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo 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.BlossomBriefInfoOuterClass.BlossomBriefInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo 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.BlossomBriefInfoOuterClass.BlossomBriefInfo 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 BlossomBriefInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlossomBriefInfo) - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.internal_static_BlossomBriefInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.internal_static_BlossomBriefInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.class, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.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(); - refreshId_ = 0; - - rewardId_ = 0; - - cityId_ = 0; - - resin_ = 0; - - state_ = 0; - - isGuideOpened_ = false; - - monsterLevel_ = 0; - - circleCampId_ = 0; - - if (posBuilder_ == null) { - pos_ = null; - } else { - pos_ = null; - posBuilder_ = null; - } - sceneId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.internal_static_BlossomBriefInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo build() { - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo buildPartial() { - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo result = new emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo(this); - result.refreshId_ = refreshId_; - result.rewardId_ = rewardId_; - result.cityId_ = cityId_; - result.resin_ = resin_; - result.state_ = state_; - result.isGuideOpened_ = isGuideOpened_; - result.monsterLevel_ = monsterLevel_; - result.circleCampId_ = circleCampId_; - if (posBuilder_ == null) { - result.pos_ = pos_; - } else { - result.pos_ = posBuilder_.build(); - } - result.sceneId_ = sceneId_; - 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.BlossomBriefInfoOuterClass.BlossomBriefInfo) { - return mergeFrom((emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo other) { - if (other == emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.getDefaultInstance()) return this; - if (other.getRefreshId() != 0) { - setRefreshId(other.getRefreshId()); - } - if (other.getRewardId() != 0) { - setRewardId(other.getRewardId()); - } - if (other.getCityId() != 0) { - setCityId(other.getCityId()); - } - if (other.getResin() != 0) { - setResin(other.getResin()); - } - if (other.getState() != 0) { - setState(other.getState()); - } - if (other.getIsGuideOpened() != false) { - setIsGuideOpened(other.getIsGuideOpened()); - } - if (other.getMonsterLevel() != 0) { - setMonsterLevel(other.getMonsterLevel()); - } - if (other.getCircleCampId() != 0) { - setCircleCampId(other.getCircleCampId()); - } - if (other.hasPos()) { - mergePos(other.getPos()); - } - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - 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.BlossomBriefInfoOuterClass.BlossomBriefInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int refreshId_ ; - /** - * uint32 refresh_id = 13; - * @return The refreshId. - */ - @java.lang.Override - public int getRefreshId() { - return refreshId_; - } - /** - * uint32 refresh_id = 13; - * @param value The refreshId to set. - * @return This builder for chaining. - */ - public Builder setRefreshId(int value) { - - refreshId_ = value; - onChanged(); - return this; - } - /** - * uint32 refresh_id = 13; - * @return This builder for chaining. - */ - public Builder clearRefreshId() { - - refreshId_ = 0; - onChanged(); - return this; - } - - private int rewardId_ ; - /** - * uint32 reward_id = 5; - * @return The rewardId. - */ - @java.lang.Override - public int getRewardId() { - return rewardId_; - } - /** - * uint32 reward_id = 5; - * @param value The rewardId to set. - * @return This builder for chaining. - */ - public Builder setRewardId(int value) { - - rewardId_ = value; - onChanged(); - return this; - } - /** - * uint32 reward_id = 5; - * @return This builder for chaining. - */ - public Builder clearRewardId() { - - rewardId_ = 0; - onChanged(); - return this; - } - - private int cityId_ ; - /** - * uint32 city_id = 10; - * @return The cityId. - */ - @java.lang.Override - public int getCityId() { - return cityId_; - } - /** - * uint32 city_id = 10; - * @param value The cityId to set. - * @return This builder for chaining. - */ - public Builder setCityId(int value) { - - cityId_ = value; - onChanged(); - return this; - } - /** - * uint32 city_id = 10; - * @return This builder for chaining. - */ - public Builder clearCityId() { - - cityId_ = 0; - onChanged(); - return this; - } - - private int resin_ ; - /** - * uint32 resin = 11; - * @return The resin. - */ - @java.lang.Override - public int getResin() { - return resin_; - } - /** - * uint32 resin = 11; - * @param value The resin to set. - * @return This builder for chaining. - */ - public Builder setResin(int value) { - - resin_ = value; - onChanged(); - return this; - } - /** - * uint32 resin = 11; - * @return This builder for chaining. - */ - public Builder clearResin() { - - resin_ = 0; - onChanged(); - return this; - } - - private int state_ ; - /** - * uint32 state = 7; - * @return The state. - */ - @java.lang.Override - public int getState() { - return state_; - } - /** - * uint32 state = 7; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * uint32 state = 7; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private boolean isGuideOpened_ ; - /** - * bool is_guide_opened = 1; - * @return The isGuideOpened. - */ - @java.lang.Override - public boolean getIsGuideOpened() { - return isGuideOpened_; - } - /** - * bool is_guide_opened = 1; - * @param value The isGuideOpened to set. - * @return This builder for chaining. - */ - public Builder setIsGuideOpened(boolean value) { - - isGuideOpened_ = value; - onChanged(); - return this; - } - /** - * bool is_guide_opened = 1; - * @return This builder for chaining. - */ - public Builder clearIsGuideOpened() { - - isGuideOpened_ = false; - onChanged(); - return this; - } - - private int monsterLevel_ ; - /** - * uint32 monster_level = 8; - * @return The monsterLevel. - */ - @java.lang.Override - public int getMonsterLevel() { - return monsterLevel_; - } - /** - * uint32 monster_level = 8; - * @param value The monsterLevel to set. - * @return This builder for chaining. - */ - public Builder setMonsterLevel(int value) { - - monsterLevel_ = value; - onChanged(); - return this; - } - /** - * uint32 monster_level = 8; - * @return This builder for chaining. - */ - public Builder clearMonsterLevel() { - - monsterLevel_ = 0; - onChanged(); - return this; - } - - private int circleCampId_ ; - /** - * uint32 circle_camp_id = 15; - * @return The circleCampId. - */ - @java.lang.Override - public int getCircleCampId() { - return circleCampId_; - } - /** - * uint32 circle_camp_id = 15; - * @param value The circleCampId to set. - * @return This builder for chaining. - */ - public Builder setCircleCampId(int value) { - - circleCampId_ = value; - onChanged(); - return this; - } - /** - * uint32 circle_camp_id = 15; - * @return This builder for chaining. - */ - public Builder clearCircleCampId() { - - circleCampId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_; - /** - * .Vector pos = 12; - * @return Whether the pos field is set. - */ - public boolean hasPos() { - return posBuilder_ != null || pos_ != null; - } - /** - * .Vector pos = 12; - * @return The pos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - if (posBuilder_ == null) { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } else { - return posBuilder_.getMessage(); - } - } - /** - * .Vector pos = 12; - */ - public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pos_ = value; - onChanged(); - } else { - posBuilder_.setMessage(value); - } - - return this; - } - /** - * .Vector pos = 12; - */ - public Builder setPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (posBuilder_ == null) { - pos_ = builderForValue.build(); - onChanged(); - } else { - posBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Vector pos = 12; - */ - public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (pos_ != null) { - pos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial(); - } else { - pos_ = value; - } - onChanged(); - } else { - posBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Vector pos = 12; - */ - public Builder clearPos() { - if (posBuilder_ == null) { - pos_ = null; - onChanged(); - } else { - pos_ = null; - posBuilder_ = null; - } - - return this; - } - /** - * .Vector pos = 12; - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { - - onChanged(); - return getPosFieldBuilder().getBuilder(); - } - /** - * .Vector pos = 12; - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - if (posBuilder_ != null) { - return posBuilder_.getMessageOrBuilder(); - } else { - return pos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - } - /** - * .Vector pos = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPosFieldBuilder() { - if (posBuilder_ == null) { - posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPos(), - getParentForChildren(), - isClean()); - pos_ = null; - } - return posBuilder_; - } - - private int sceneId_ ; - /** - * uint32 scene_id = 9; - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * uint32 scene_id = 9; - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * uint32 scene_id = 9; - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 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:BlossomBriefInfo) - } - - // @@protoc_insertion_point(class_scope:BlossomBriefInfo) - private static final emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo(); - } - - public static emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlossomBriefInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlossomBriefInfo(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.BlossomBriefInfoOuterClass.BlossomBriefInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlossomBriefInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlossomBriefInfo_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\026BlossomBriefInfo.proto\032\014Vector.proto\"\330" + - "\001\n\020BlossomBriefInfo\022\022\n\nrefresh_id\030\r \001(\r\022" + - "\021\n\treward_id\030\005 \001(\r\022\017\n\007city_id\030\n \001(\r\022\r\n\005r" + - "esin\030\013 \001(\r\022\r\n\005state\030\007 \001(\r\022\027\n\017is_guide_op" + - "ened\030\001 \001(\010\022\025\n\rmonster_level\030\010 \001(\r\022\026\n\016cir" + - "cle_camp_id\030\017 \001(\r\022\024\n\003pos\030\014 \001(\0132\007.Vector\022" + - "\020\n\010scene_id\030\t \001(\rB\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.VectorOuterClass.getDescriptor(), - }); - internal_static_BlossomBriefInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_BlossomBriefInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlossomBriefInfo_descriptor, - new java.lang.String[] { "RefreshId", "RewardId", "CityId", "Resin", "State", "IsGuideOpened", "MonsterLevel", "CircleCampId", "Pos", "SceneId", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/BlossomChestCreateNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/BlossomChestCreateNotifyOuterClass.java deleted file mode 100644 index c9fafe5b..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/BlossomChestCreateNotifyOuterClass.java +++ /dev/null @@ -1,621 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BlossomChestCreateNotify.proto - -package emu.grasscutter.net.proto; - -public final class BlossomChestCreateNotifyOuterClass { - private BlossomChestCreateNotifyOuterClass() {} - 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 BlossomChestCreateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlossomChestCreateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 refresh_id = 1; - * @return The refreshId. - */ - int getRefreshId(); - - /** - * uint32 circle_camp_id = 10; - * @return The circleCampId. - */ - int getCircleCampId(); - } - /** - *
-     * CmdId: 2721
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code BlossomChestCreateNotify} - */ - public static final class BlossomChestCreateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlossomChestCreateNotify) - BlossomChestCreateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlossomChestCreateNotify.newBuilder() to construct. - private BlossomChestCreateNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlossomChestCreateNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlossomChestCreateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlossomChestCreateNotify( - 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: { - - refreshId_ = input.readUInt32(); - break; - } - case 80: { - - circleCampId_ = 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.BlossomChestCreateNotifyOuterClass.internal_static_BlossomChestCreateNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.internal_static_BlossomChestCreateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.class, emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.Builder.class); - } - - public static final int REFRESH_ID_FIELD_NUMBER = 1; - private int refreshId_; - /** - * uint32 refresh_id = 1; - * @return The refreshId. - */ - @java.lang.Override - public int getRefreshId() { - return refreshId_; - } - - public static final int CIRCLE_CAMP_ID_FIELD_NUMBER = 10; - private int circleCampId_; - /** - * uint32 circle_camp_id = 10; - * @return The circleCampId. - */ - @java.lang.Override - public int getCircleCampId() { - return circleCampId_; - } - - 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 (refreshId_ != 0) { - output.writeUInt32(1, refreshId_); - } - if (circleCampId_ != 0) { - output.writeUInt32(10, circleCampId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (refreshId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, refreshId_); - } - if (circleCampId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, circleCampId_); - } - 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify other = (emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify) obj; - - if (getRefreshId() - != other.getRefreshId()) return false; - if (getCircleCampId() - != other.getCircleCampId()) 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) + REFRESH_ID_FIELD_NUMBER; - hash = (53 * hash) + getRefreshId(); - hash = (37 * hash) + CIRCLE_CAMP_ID_FIELD_NUMBER; - hash = (53 * hash) + getCircleCampId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify 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: 2721
-         * EnetChannelId: 0
-         * EnetIsReliable: true
-         * IsAllowClient: true
-         * 
- * - * Protobuf type {@code BlossomChestCreateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlossomChestCreateNotify) - emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.internal_static_BlossomChestCreateNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.internal_static_BlossomChestCreateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.class, emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.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(); - refreshId_ = 0; - - circleCampId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.internal_static_BlossomChestCreateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify build() { - emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify buildPartial() { - emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify result = new emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify(this); - result.refreshId_ = refreshId_; - result.circleCampId_ = circleCampId_; - 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify) { - return mergeFrom((emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify other) { - if (other == emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify.getDefaultInstance()) return this; - if (other.getRefreshId() != 0) { - setRefreshId(other.getRefreshId()); - } - if (other.getCircleCampId() != 0) { - setCircleCampId(other.getCircleCampId()); - } - 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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int refreshId_ ; - /** - * uint32 refresh_id = 1; - * @return The refreshId. - */ - @java.lang.Override - public int getRefreshId() { - return refreshId_; - } - /** - * uint32 refresh_id = 1; - * @param value The refreshId to set. - * @return This builder for chaining. - */ - public Builder setRefreshId(int value) { - - refreshId_ = value; - onChanged(); - return this; - } - /** - * uint32 refresh_id = 1; - * @return This builder for chaining. - */ - public Builder clearRefreshId() { - - refreshId_ = 0; - onChanged(); - return this; - } - - private int circleCampId_ ; - /** - * uint32 circle_camp_id = 10; - * @return The circleCampId. - */ - @java.lang.Override - public int getCircleCampId() { - return circleCampId_; - } - /** - * uint32 circle_camp_id = 10; - * @param value The circleCampId to set. - * @return This builder for chaining. - */ - public Builder setCircleCampId(int value) { - - circleCampId_ = value; - onChanged(); - return this; - } - /** - * uint32 circle_camp_id = 10; - * @return This builder for chaining. - */ - public Builder clearCircleCampId() { - - circleCampId_ = 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:BlossomChestCreateNotify) - } - - // @@protoc_insertion_point(class_scope:BlossomChestCreateNotify) - private static final emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify(); - } - - public static emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlossomChestCreateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlossomChestCreateNotify(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.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlossomChestCreateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlossomChestCreateNotify_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\036BlossomChestCreateNotify.proto\"F\n\030Blos" + - "somChestCreateNotify\022\022\n\nrefresh_id\030\001 \001(\r" + - "\022\026\n\016circle_camp_id\030\n \001(\rB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_BlossomChestCreateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_BlossomChestCreateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlossomChestCreateNotify_descriptor, - new java.lang.String[] { "RefreshId", "CircleCampId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/BlossomScheduleInfoOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/BlossomScheduleInfoOuterClass.java deleted file mode 100644 index 50e43ea8..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/BlossomScheduleInfoOuterClass.java +++ /dev/null @@ -1,889 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BlossomScheduleInfo.proto - -package emu.grasscutter.net.proto; - -public final class BlossomScheduleInfoOuterClass { - private BlossomScheduleInfoOuterClass() {} - 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 BlossomScheduleInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlossomScheduleInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 progress = 13; - * @return The progress. - */ - int getProgress(); - - /** - * uint32 state = 10; - * @return The state. - */ - int getState(); - - /** - * uint32 round = 4; - * @return The round. - */ - int getRound(); - - /** - * uint32 circle_camp_id = 15; - * @return The circleCampId. - */ - int getCircleCampId(); - - /** - * uint32 refresh_id = 6; - * @return The refreshId. - */ - int getRefreshId(); - - /** - * uint32 finish_progress = 14; - * @return The finishProgress. - */ - int getFinishProgress(); - } - /** - * Protobuf type {@code BlossomScheduleInfo} - */ - public static final class BlossomScheduleInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlossomScheduleInfo) - BlossomScheduleInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlossomScheduleInfo.newBuilder() to construct. - private BlossomScheduleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlossomScheduleInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlossomScheduleInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlossomScheduleInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 32: { - - round_ = input.readUInt32(); - break; - } - case 48: { - - refreshId_ = input.readUInt32(); - break; - } - case 80: { - - state_ = input.readUInt32(); - break; - } - case 104: { - - progress_ = input.readUInt32(); - break; - } - case 112: { - - finishProgress_ = input.readUInt32(); - break; - } - case 120: { - - circleCampId_ = 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.BlossomScheduleInfoOuterClass.internal_static_BlossomScheduleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.internal_static_BlossomScheduleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.class, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder.class); - } - - public static final int PROGRESS_FIELD_NUMBER = 13; - private int progress_; - /** - * uint32 progress = 13; - * @return The progress. - */ - @java.lang.Override - public int getProgress() { - return progress_; - } - - public static final int STATE_FIELD_NUMBER = 10; - private int state_; - /** - * uint32 state = 10; - * @return The state. - */ - @java.lang.Override - public int getState() { - return state_; - } - - public static final int ROUND_FIELD_NUMBER = 4; - private int round_; - /** - * uint32 round = 4; - * @return The round. - */ - @java.lang.Override - public int getRound() { - return round_; - } - - public static final int CIRCLE_CAMP_ID_FIELD_NUMBER = 15; - private int circleCampId_; - /** - * uint32 circle_camp_id = 15; - * @return The circleCampId. - */ - @java.lang.Override - public int getCircleCampId() { - return circleCampId_; - } - - public static final int REFRESH_ID_FIELD_NUMBER = 6; - private int refreshId_; - /** - * uint32 refresh_id = 6; - * @return The refreshId. - */ - @java.lang.Override - public int getRefreshId() { - return refreshId_; - } - - public static final int FINISH_PROGRESS_FIELD_NUMBER = 14; - private int finishProgress_; - /** - * uint32 finish_progress = 14; - * @return The finishProgress. - */ - @java.lang.Override - public int getFinishProgress() { - return finishProgress_; - } - - 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 (round_ != 0) { - output.writeUInt32(4, round_); - } - if (refreshId_ != 0) { - output.writeUInt32(6, refreshId_); - } - if (state_ != 0) { - output.writeUInt32(10, state_); - } - if (progress_ != 0) { - output.writeUInt32(13, progress_); - } - if (finishProgress_ != 0) { - output.writeUInt32(14, finishProgress_); - } - if (circleCampId_ != 0) { - output.writeUInt32(15, circleCampId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (round_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, round_); - } - if (refreshId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, refreshId_); - } - if (state_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, state_); - } - if (progress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, progress_); - } - if (finishProgress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, finishProgress_); - } - if (circleCampId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, circleCampId_); - } - 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo other = (emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo) obj; - - if (getProgress() - != other.getProgress()) return false; - if (getState() - != other.getState()) return false; - if (getRound() - != other.getRound()) return false; - if (getCircleCampId() - != other.getCircleCampId()) return false; - if (getRefreshId() - != other.getRefreshId()) return false; - if (getFinishProgress() - != other.getFinishProgress()) 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) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getProgress(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState(); - hash = (37 * hash) + ROUND_FIELD_NUMBER; - hash = (53 * hash) + getRound(); - hash = (37 * hash) + CIRCLE_CAMP_ID_FIELD_NUMBER; - hash = (53 * hash) + getCircleCampId(); - hash = (37 * hash) + REFRESH_ID_FIELD_NUMBER; - hash = (53 * hash) + getRefreshId(); - hash = (37 * hash) + FINISH_PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getFinishProgress(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo 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 BlossomScheduleInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlossomScheduleInfo) - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.internal_static_BlossomScheduleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.internal_static_BlossomScheduleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.class, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.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(); - progress_ = 0; - - state_ = 0; - - round_ = 0; - - circleCampId_ = 0; - - refreshId_ = 0; - - finishProgress_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.internal_static_BlossomScheduleInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo build() { - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo buildPartial() { - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo result = new emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo(this); - result.progress_ = progress_; - result.state_ = state_; - result.round_ = round_; - result.circleCampId_ = circleCampId_; - result.refreshId_ = refreshId_; - result.finishProgress_ = finishProgress_; - 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo) { - return mergeFrom((emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo other) { - if (other == emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.getDefaultInstance()) return this; - if (other.getProgress() != 0) { - setProgress(other.getProgress()); - } - if (other.getState() != 0) { - setState(other.getState()); - } - if (other.getRound() != 0) { - setRound(other.getRound()); - } - if (other.getCircleCampId() != 0) { - setCircleCampId(other.getCircleCampId()); - } - if (other.getRefreshId() != 0) { - setRefreshId(other.getRefreshId()); - } - if (other.getFinishProgress() != 0) { - setFinishProgress(other.getFinishProgress()); - } - 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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int progress_ ; - /** - * uint32 progress = 13; - * @return The progress. - */ - @java.lang.Override - public int getProgress() { - return progress_; - } - /** - * uint32 progress = 13; - * @param value The progress to set. - * @return This builder for chaining. - */ - public Builder setProgress(int value) { - - progress_ = value; - onChanged(); - return this; - } - /** - * uint32 progress = 13; - * @return This builder for chaining. - */ - public Builder clearProgress() { - - progress_ = 0; - onChanged(); - return this; - } - - private int state_ ; - /** - * uint32 state = 10; - * @return The state. - */ - @java.lang.Override - public int getState() { - return state_; - } - /** - * uint32 state = 10; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * uint32 state = 10; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private int round_ ; - /** - * uint32 round = 4; - * @return The round. - */ - @java.lang.Override - public int getRound() { - return round_; - } - /** - * uint32 round = 4; - * @param value The round to set. - * @return This builder for chaining. - */ - public Builder setRound(int value) { - - round_ = value; - onChanged(); - return this; - } - /** - * uint32 round = 4; - * @return This builder for chaining. - */ - public Builder clearRound() { - - round_ = 0; - onChanged(); - return this; - } - - private int circleCampId_ ; - /** - * uint32 circle_camp_id = 15; - * @return The circleCampId. - */ - @java.lang.Override - public int getCircleCampId() { - return circleCampId_; - } - /** - * uint32 circle_camp_id = 15; - * @param value The circleCampId to set. - * @return This builder for chaining. - */ - public Builder setCircleCampId(int value) { - - circleCampId_ = value; - onChanged(); - return this; - } - /** - * uint32 circle_camp_id = 15; - * @return This builder for chaining. - */ - public Builder clearCircleCampId() { - - circleCampId_ = 0; - onChanged(); - return this; - } - - private int refreshId_ ; - /** - * uint32 refresh_id = 6; - * @return The refreshId. - */ - @java.lang.Override - public int getRefreshId() { - return refreshId_; - } - /** - * uint32 refresh_id = 6; - * @param value The refreshId to set. - * @return This builder for chaining. - */ - public Builder setRefreshId(int value) { - - refreshId_ = value; - onChanged(); - return this; - } - /** - * uint32 refresh_id = 6; - * @return This builder for chaining. - */ - public Builder clearRefreshId() { - - refreshId_ = 0; - onChanged(); - return this; - } - - private int finishProgress_ ; - /** - * uint32 finish_progress = 14; - * @return The finishProgress. - */ - @java.lang.Override - public int getFinishProgress() { - return finishProgress_; - } - /** - * uint32 finish_progress = 14; - * @param value The finishProgress to set. - * @return This builder for chaining. - */ - public Builder setFinishProgress(int value) { - - finishProgress_ = value; - onChanged(); - return this; - } - /** - * uint32 finish_progress = 14; - * @return This builder for chaining. - */ - public Builder clearFinishProgress() { - - finishProgress_ = 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:BlossomScheduleInfo) - } - - // @@protoc_insertion_point(class_scope:BlossomScheduleInfo) - private static final emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo(); - } - - public static emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlossomScheduleInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlossomScheduleInfo(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.BlossomScheduleInfoOuterClass.BlossomScheduleInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlossomScheduleInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlossomScheduleInfo_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\031BlossomScheduleInfo.proto\"\212\001\n\023BlossomS" + - "cheduleInfo\022\020\n\010progress\030\r \001(\r\022\r\n\005state\030\n" + - " \001(\r\022\r\n\005round\030\004 \001(\r\022\026\n\016circle_camp_id\030\017 " + - "\001(\r\022\022\n\nrefresh_id\030\006 \001(\r\022\027\n\017finish_progre" + - "ss\030\016 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_BlossomScheduleInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_BlossomScheduleInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlossomScheduleInfo_descriptor, - new java.lang.String[] { "Progress", "State", "Round", "CircleCampId", "RefreshId", "FinishProgress", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomBriefInfoNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomBriefInfoNotifyOuterClass.java deleted file mode 100644 index 562a73a8..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomBriefInfoNotifyOuterClass.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldOwnerBlossomBriefInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldOwnerBlossomBriefInfoNotifyOuterClass { - private WorldOwnerBlossomBriefInfoNotifyOuterClass() {} - 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 WorldOwnerBlossomBriefInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldOwnerBlossomBriefInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - java.util.List - getBriefInfoListList(); - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getBriefInfoList(int index); - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - int getBriefInfoListCount(); - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - java.util.List - getBriefInfoListOrBuilderList(); - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder getBriefInfoListOrBuilder( - int index); - } - /** - *
-     * CmdId: 2735
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code WorldOwnerBlossomBriefInfoNotify} - */ - public static final class WorldOwnerBlossomBriefInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldOwnerBlossomBriefInfoNotify) - WorldOwnerBlossomBriefInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldOwnerBlossomBriefInfoNotify.newBuilder() to construct. - private WorldOwnerBlossomBriefInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorldOwnerBlossomBriefInfoNotify() { - briefInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldOwnerBlossomBriefInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldOwnerBlossomBriefInfoNotify( - 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 106: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - briefInfoList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - briefInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.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)) { - briefInfoList_ = java.util.Collections.unmodifiableList(briefInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.internal_static_WorldOwnerBlossomBriefInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.internal_static_WorldOwnerBlossomBriefInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.class, emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.Builder.class); - } - - public static final int BRIEF_INFO_LIST_FIELD_NUMBER = 13; - private java.util.List briefInfoList_; - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - @java.lang.Override - public java.util.List getBriefInfoListList() { - return briefInfoList_; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - @java.lang.Override - public java.util.List - getBriefInfoListOrBuilderList() { - return briefInfoList_; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - @java.lang.Override - public int getBriefInfoListCount() { - return briefInfoList_.size(); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getBriefInfoList(int index) { - return briefInfoList_.get(index); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - @java.lang.Override - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder getBriefInfoListOrBuilder( - int index) { - return briefInfoList_.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 { - for (int i = 0; i < briefInfoList_.size(); i++) { - output.writeMessage(13, briefInfoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < briefInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, briefInfoList_.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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify other = (emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify) obj; - - if (!getBriefInfoListList() - .equals(other.getBriefInfoListList())) 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 (getBriefInfoListCount() > 0) { - hash = (37 * hash) + BRIEF_INFO_LIST_FIELD_NUMBER; - hash = (53 * hash) + getBriefInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify 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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify 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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify 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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify 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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify 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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify 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: 2735
-         * EnetChannelId: 0
-         * EnetIsReliable: true
-         * IsAllowClient: true
-         * 
- * - * Protobuf type {@code WorldOwnerBlossomBriefInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WorldOwnerBlossomBriefInfoNotify) - emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.internal_static_WorldOwnerBlossomBriefInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.internal_static_WorldOwnerBlossomBriefInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.class, emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBriefInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (briefInfoListBuilder_ == null) { - briefInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - briefInfoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.internal_static_WorldOwnerBlossomBriefInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify build() { - emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify buildPartial() { - emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify result = new emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify(this); - int from_bitField0_ = bitField0_; - if (briefInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - briefInfoList_ = java.util.Collections.unmodifiableList(briefInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.briefInfoList_ = briefInfoList_; - } else { - result.briefInfoList_ = briefInfoListBuilder_.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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify other) { - if (other == emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify.getDefaultInstance()) return this; - if (briefInfoListBuilder_ == null) { - if (!other.briefInfoList_.isEmpty()) { - if (briefInfoList_.isEmpty()) { - briefInfoList_ = other.briefInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBriefInfoListIsMutable(); - briefInfoList_.addAll(other.briefInfoList_); - } - onChanged(); - } - } else { - if (!other.briefInfoList_.isEmpty()) { - if (briefInfoListBuilder_.isEmpty()) { - briefInfoListBuilder_.dispose(); - briefInfoListBuilder_ = null; - briefInfoList_ = other.briefInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - briefInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBriefInfoListFieldBuilder() : null; - } else { - briefInfoListBuilder_.addAllMessages(other.briefInfoList_); - } - } - } - 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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List briefInfoList_ = - java.util.Collections.emptyList(); - private void ensureBriefInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - briefInfoList_ = new java.util.ArrayList(briefInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder> briefInfoListBuilder_; - - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public java.util.List getBriefInfoListList() { - if (briefInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(briefInfoList_); - } else { - return briefInfoListBuilder_.getMessageList(); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public int getBriefInfoListCount() { - if (briefInfoListBuilder_ == null) { - return briefInfoList_.size(); - } else { - return briefInfoListBuilder_.getCount(); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo getBriefInfoList(int index) { - if (briefInfoListBuilder_ == null) { - return briefInfoList_.get(index); - } else { - return briefInfoListBuilder_.getMessage(index); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder setBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo value) { - if (briefInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBriefInfoListIsMutable(); - briefInfoList_.set(index, value); - onChanged(); - } else { - briefInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder setBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder builderForValue) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - briefInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder addBriefInfoList(emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo value) { - if (briefInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBriefInfoListIsMutable(); - briefInfoList_.add(value); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder addBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo value) { - if (briefInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBriefInfoListIsMutable(); - briefInfoList_.add(index, value); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder addBriefInfoList( - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder builderForValue) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.add(builderForValue.build()); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder addBriefInfoList( - int index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder builderForValue) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - briefInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder addAllBriefInfoList( - java.lang.Iterable values) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, briefInfoList_); - onChanged(); - } else { - briefInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder clearBriefInfoList() { - if (briefInfoListBuilder_ == null) { - briefInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - briefInfoListBuilder_.clear(); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public Builder removeBriefInfoList(int index) { - if (briefInfoListBuilder_ == null) { - ensureBriefInfoListIsMutable(); - briefInfoList_.remove(index); - onChanged(); - } else { - briefInfoListBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder getBriefInfoListBuilder( - int index) { - return getBriefInfoListFieldBuilder().getBuilder(index); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder getBriefInfoListOrBuilder( - int index) { - if (briefInfoListBuilder_ == null) { - return briefInfoList_.get(index); } else { - return briefInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public java.util.List - getBriefInfoListOrBuilderList() { - if (briefInfoListBuilder_ != null) { - return briefInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(briefInfoList_); - } - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder addBriefInfoListBuilder() { - return getBriefInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.getDefaultInstance()); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder addBriefInfoListBuilder( - int index) { - return getBriefInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.getDefaultInstance()); - } - /** - * repeated .BlossomBriefInfo brief_info_list = 13; - */ - public java.util.List - getBriefInfoListBuilderList() { - return getBriefInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder> - getBriefInfoListFieldBuilder() { - if (briefInfoListBuilder_ == null) { - briefInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo.Builder, emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfoOrBuilder>( - briefInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - briefInfoList_ = null; - } - return briefInfoListBuilder_; - } - @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:WorldOwnerBlossomBriefInfoNotify) - } - - // @@protoc_insertion_point(class_scope:WorldOwnerBlossomBriefInfoNotify) - private static final emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify(); - } - - public static emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorldOwnerBlossomBriefInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldOwnerBlossomBriefInfoNotify(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.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldOwnerBlossomBriefInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldOwnerBlossomBriefInfoNotify_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&WorldOwnerBlossomBriefInfoNotify.proto" + - "\032\026BlossomBriefInfo.proto\"N\n WorldOwnerBl" + - "ossomBriefInfoNotify\022*\n\017brief_info_list\030" + - "\r \003(\0132\021.BlossomBriefInfoB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.getDescriptor(), - }); - internal_static_WorldOwnerBlossomBriefInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldOwnerBlossomBriefInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldOwnerBlossomBriefInfoNotify_descriptor, - new java.lang.String[] { "BriefInfoList", }); - emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomScheduleInfoNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomScheduleInfoNotifyOuterClass.java deleted file mode 100644 index d9c8ba3e..00000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/WorldOwnerBlossomScheduleInfoNotifyOuterClass.java +++ /dev/null @@ -1,687 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldOwnerBlossomScheduleInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldOwnerBlossomScheduleInfoNotifyOuterClass { - private WorldOwnerBlossomScheduleInfoNotifyOuterClass() {} - 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 WorldOwnerBlossomScheduleInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldOwnerBlossomScheduleInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * .BlossomScheduleInfo schedule_info = 3; - * @return Whether the scheduleInfo field is set. - */ - boolean hasScheduleInfo(); - /** - * .BlossomScheduleInfo schedule_info = 3; - * @return The scheduleInfo. - */ - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo getScheduleInfo(); - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder getScheduleInfoOrBuilder(); - } - /** - *
-     * CmdId: 2707
-     * EnetChannelId: 0
-     * EnetIsReliable: true
-     * IsAllowClient: true
-     * 
- * - * Protobuf type {@code WorldOwnerBlossomScheduleInfoNotify} - */ - public static final class WorldOwnerBlossomScheduleInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldOwnerBlossomScheduleInfoNotify) - WorldOwnerBlossomScheduleInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldOwnerBlossomScheduleInfoNotify.newBuilder() to construct. - private WorldOwnerBlossomScheduleInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorldOwnerBlossomScheduleInfoNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldOwnerBlossomScheduleInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldOwnerBlossomScheduleInfoNotify( - 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 26: { - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder subBuilder = null; - if (scheduleInfo_ != null) { - subBuilder = scheduleInfo_.toBuilder(); - } - scheduleInfo_ = input.readMessage(emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleInfo_); - scheduleInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.internal_static_WorldOwnerBlossomScheduleInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.internal_static_WorldOwnerBlossomScheduleInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.class, emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.Builder.class); - } - - public static final int SCHEDULE_INFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo scheduleInfo_; - /** - * .BlossomScheduleInfo schedule_info = 3; - * @return Whether the scheduleInfo field is set. - */ - @java.lang.Override - public boolean hasScheduleInfo() { - return scheduleInfo_ != null; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - * @return The scheduleInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo getScheduleInfo() { - return scheduleInfo_ == null ? emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.getDefaultInstance() : scheduleInfo_; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - @java.lang.Override - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder getScheduleInfoOrBuilder() { - return getScheduleInfo(); - } - - 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 (scheduleInfo_ != null) { - output.writeMessage(3, getScheduleInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getScheduleInfo()); - } - 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify other = (emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify) obj; - - if (hasScheduleInfo() != other.hasScheduleInfo()) return false; - if (hasScheduleInfo()) { - if (!getScheduleInfo() - .equals(other.getScheduleInfo())) 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 (hasScheduleInfo()) { - hash = (37 * hash) + SCHEDULE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getScheduleInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify 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: 2707
-         * EnetChannelId: 0
-         * EnetIsReliable: true
-         * IsAllowClient: true
-         * 
- * - * Protobuf type {@code WorldOwnerBlossomScheduleInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WorldOwnerBlossomScheduleInfoNotify) - emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.internal_static_WorldOwnerBlossomScheduleInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.internal_static_WorldOwnerBlossomScheduleInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.class, emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.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 (scheduleInfoBuilder_ == null) { - scheduleInfo_ = null; - } else { - scheduleInfo_ = null; - scheduleInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.internal_static_WorldOwnerBlossomScheduleInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify build() { - emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify buildPartial() { - emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify result = new emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify(this); - if (scheduleInfoBuilder_ == null) { - result.scheduleInfo_ = scheduleInfo_; - } else { - result.scheduleInfo_ = scheduleInfoBuilder_.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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify other) { - if (other == emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify.getDefaultInstance()) return this; - if (other.hasScheduleInfo()) { - mergeScheduleInfo(other.getScheduleInfo()); - } - 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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo scheduleInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder> scheduleInfoBuilder_; - /** - * .BlossomScheduleInfo schedule_info = 3; - * @return Whether the scheduleInfo field is set. - */ - public boolean hasScheduleInfo() { - return scheduleInfoBuilder_ != null || scheduleInfo_ != null; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - * @return The scheduleInfo. - */ - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo getScheduleInfo() { - if (scheduleInfoBuilder_ == null) { - return scheduleInfo_ == null ? emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.getDefaultInstance() : scheduleInfo_; - } else { - return scheduleInfoBuilder_.getMessage(); - } - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - public Builder setScheduleInfo(emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo value) { - if (scheduleInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleInfo_ = value; - onChanged(); - } else { - scheduleInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - public Builder setScheduleInfo( - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder builderForValue) { - if (scheduleInfoBuilder_ == null) { - scheduleInfo_ = builderForValue.build(); - onChanged(); - } else { - scheduleInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - public Builder mergeScheduleInfo(emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo value) { - if (scheduleInfoBuilder_ == null) { - if (scheduleInfo_ != null) { - scheduleInfo_ = - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.newBuilder(scheduleInfo_).mergeFrom(value).buildPartial(); - } else { - scheduleInfo_ = value; - } - onChanged(); - } else { - scheduleInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - public Builder clearScheduleInfo() { - if (scheduleInfoBuilder_ == null) { - scheduleInfo_ = null; - onChanged(); - } else { - scheduleInfo_ = null; - scheduleInfoBuilder_ = null; - } - - return this; - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder getScheduleInfoBuilder() { - - onChanged(); - return getScheduleInfoFieldBuilder().getBuilder(); - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - public emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder getScheduleInfoOrBuilder() { - if (scheduleInfoBuilder_ != null) { - return scheduleInfoBuilder_.getMessageOrBuilder(); - } else { - return scheduleInfo_ == null ? - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.getDefaultInstance() : scheduleInfo_; - } - } - /** - * .BlossomScheduleInfo schedule_info = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder> - getScheduleInfoFieldBuilder() { - if (scheduleInfoBuilder_ == null) { - scheduleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo.Builder, emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfoOrBuilder>( - getScheduleInfo(), - getParentForChildren(), - isClean()); - scheduleInfo_ = null; - } - return scheduleInfoBuilder_; - } - @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:WorldOwnerBlossomScheduleInfoNotify) - } - - // @@protoc_insertion_point(class_scope:WorldOwnerBlossomScheduleInfoNotify) - private static final emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify(); - } - - public static emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorldOwnerBlossomScheduleInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldOwnerBlossomScheduleInfoNotify(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.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldOwnerBlossomScheduleInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldOwnerBlossomScheduleInfoNotify_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)WorldOwnerBlossomScheduleInfoNotify.pr" + - "oto\032\031BlossomScheduleInfo.proto\"R\n#WorldO" + - "wnerBlossomScheduleInfoNotify\022+\n\rschedul" + - "e_info\030\003 \001(\0132\024.BlossomScheduleInfoB\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.getDescriptor(), - }); - internal_static_WorldOwnerBlossomScheduleInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldOwnerBlossomScheduleInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldOwnerBlossomScheduleInfoNotify_descriptor, - new java.lang.String[] { "ScheduleInfo", }); - emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/game/managers/blossom/BlossomManager.java b/src/main/java/emu/grasscutter/game/managers/blossom/BlossomManager.java index bbfdb699..fff7f1b4 100644 --- a/src/main/java/emu/grasscutter/game/managers/blossom/BlossomManager.java +++ b/src/main/java/emu/grasscutter/game/managers/blossom/BlossomManager.java @@ -1,31 +1,34 @@ package emu.grasscutter.game.managers.blossom; -import java.util.*; -import java.util.concurrent.ConcurrentHashMap; -import java.util.stream.IntStream; -import java.util.stream.Stream; - import dev.morphia.annotations.Entity; import emu.grasscutter.Grasscutter; import emu.grasscutter.data.GameData; -import emu.grasscutter.data.excels.*; -import emu.grasscutter.data.excels.BlossomRefreshData.*; +import emu.grasscutter.data.excels.BlossomGroupsData; +import emu.grasscutter.data.excels.BlossomOpenData; +import emu.grasscutter.data.excels.BlossomRefreshData; +import emu.grasscutter.data.excels.BlossomRefreshData.RefreshCond; +import emu.grasscutter.data.excels.BlossomSectionOrderData; import emu.grasscutter.game.entity.EntityGadget; import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.managers.blossom.enums.BlossomRefreshType; import emu.grasscutter.game.player.BasePlayerDataManager; import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ActionReason; -import emu.grasscutter.net.proto.BlossomBriefInfoOuterClass; import emu.grasscutter.server.packet.send.PacketBlossomBriefInfoNotify; import emu.grasscutter.server.packet.send.PacketWorldOwnerBlossomScheduleInfoNotify; import emu.grasscutter.utils.Utils; import lombok.Getter; import lombok.NonNull; import lombok.val; -import org.anime_game_servers.multi_proto.gi.messages.gadget.BlossomChestInfo; import org.anime_game_servers.gi_lua.models.ScriptArgs; import org.anime_game_servers.gi_lua.models.constants.EventType; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomBriefInfo; +import org.anime_game_servers.multi_proto.gi.messages.gadget.BlossomChestInfo; + +import java.util.*; +import java.util.concurrent.ConcurrentHashMap; +import java.util.stream.IntStream; +import java.util.stream.Stream; @Getter @Entity @@ -55,11 +58,11 @@ public class BlossomManager extends BasePlayerDataManager { /** * BlossomBriefInfo proto * */ - public List getBriefInfo() { + public List getBriefInfo() { return this.blossomSchedule.values().stream() .map(BlossomSchedule::toBriefProto) - .sorted(Comparator.comparing(BlossomBriefInfoOuterClass.BlossomBriefInfo::getRefreshId) - .thenComparing(BlossomBriefInfoOuterClass.BlossomBriefInfo::getCircleCampId)) + .sorted(Comparator.comparing(BlossomBriefInfo::getRefreshId) + .thenComparing(BlossomBriefInfo::getCircleCampId)) .toList(); } diff --git a/src/main/java/emu/grasscutter/game/managers/blossom/BlossomSchedule.java b/src/main/java/emu/grasscutter/game/managers/blossom/BlossomSchedule.java index 70f4b629..ee41b286 100644 --- a/src/main/java/emu/grasscutter/game/managers/blossom/BlossomSchedule.java +++ b/src/main/java/emu/grasscutter/game/managers/blossom/BlossomSchedule.java @@ -8,19 +8,19 @@ import emu.grasscutter.data.common.BaseBlossomROSData; import emu.grasscutter.data.excels.*; import emu.grasscutter.game.managers.blossom.enums.BlossomRefreshType; import emu.grasscutter.game.world.World; -import emu.grasscutter.net.proto.BlossomBriefInfoOuterClass.BlossomBriefInfo; -import emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomBriefInfo; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomScheduleInfo; import emu.grasscutter.scripts.ScriptSystem; import emu.grasscutter.utils.Position; import lombok.*; -import org.anime_game_servers.gi_lua.models.scene.group.SceneGroup; -import org.anime_game_servers.core.gi.models.Vector; import org.jetbrains.annotations.NotNull; import javax.annotation.Nonnull; import java.time.LocalTime; import java.time.ZonedDateTime; -import java.util.*; +import java.util.HashSet; +import java.util.Optional; +import java.util.Set; @Getter @Builder(builderMethodName="of", setterPrefix="set") @@ -167,31 +167,31 @@ public class BlossomSchedule implements BaseBlossomROSData { * Works like challenge but blossom style * */ public BlossomScheduleInfo toScheduleProto() { - return BlossomScheduleInfo.newBuilder() - .setFinishProgress(this.finishProgress) - .setRefreshId(this.refreshId) - .setState(this.state) - .setRound(this.round) - .setCircleCampId(this.circleCampId) - .setProgress(this.progress) - .build(); + val proto = new BlossomScheduleInfo(); + proto.setFinishProgress(this.finishProgress); + proto.setRefreshId(this.refreshId); + proto.setState(this.state); + proto.setRound(this.round); + proto.setCircleCampId(this.circleCampId); + proto.setProgress(this.progress); + return proto; } /** * Blossom camp information, updates the map's icon, I think... * */ public BlossomBriefInfo toBriefProto() { - return BlossomBriefInfo.newBuilder() - .setSceneId(this.sceneId) - .setCityId(this.cityId) - .setPos(this.position.toProtoOld()) - .setResin(this.resin) - .setMonsterLevel(this.monsterLevel) - .setRewardId(this.rewardId) - .setCircleCampId(this.circleCampId) - .setRefreshId(this.refreshId) - .setState(this.state) // 0: loaded, 1: spawned, 2:started, 3: finished - .build(); + val proto = new BlossomBriefInfo(); + proto.setSceneId(this.sceneId); + proto.setCityId(this.cityId); + proto.setPos(this.position.toProto()); + proto.setResin(this.resin); + proto.setMonsterLevel(this.monsterLevel); + proto.setRewardId(this.rewardId); + proto.setCircleCampId(this.circleCampId); + proto.setRefreshId(this.refreshId); + proto.setState(this.state); // 0: loaded, 1: spawned, 2:started, 3: finished + return proto; } /** diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomBriefInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomBriefInfoNotify.java index 00cd9636..40e66165 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomBriefInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomBriefInfoNotify.java @@ -1,13 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.BlossomBriefInfoNotifyOuterClass; -import emu.grasscutter.net.proto.BlossomBriefInfoOuterClass; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomBriefInfo; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomBriefInfoNotify; -public class PacketBlossomBriefInfoNotify extends BasePacket { - public PacketBlossomBriefInfoNotify(Iterable blossoms) { - super(PacketOpcodes.BlossomBriefInfoNotify); - this.setData(BlossomBriefInfoNotifyOuterClass.BlossomBriefInfoNotify.newBuilder().addAllBriefInfoList(blossoms)); +import java.util.List; + +public class PacketBlossomBriefInfoNotify extends BaseTypedPacket { + public PacketBlossomBriefInfoNotify(List blossoms) { + super(new BlossomBriefInfoNotify()); + proto.setBriefInfoList(blossoms); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomChestCreateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomChestCreateNotify.java index ffcf2337..237f499f 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomChestCreateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketBlossomChestCreateNotify.java @@ -1,14 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.BlossomChestCreateNotifyOuterClass.BlossomChestCreateNotify; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomChestCreateNotify; -public class PacketBlossomChestCreateNotify extends BasePacket { +public class PacketBlossomChestCreateNotify extends BaseTypedPacket { public PacketBlossomChestCreateNotify(int refreshId, int campId) { - super(PacketOpcodes.BlossomChestCreateNotify); - this.setData(BlossomChestCreateNotify.newBuilder() - .setRefreshId(refreshId) - .setCircleCampId(campId)); + super(new BlossomChestCreateNotify()); + proto.setRefreshId(refreshId); + proto.setCircleCampId(campId); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomBriefInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomBriefInfoNotify.java index fc34204c..065acd72 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomBriefInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomBriefInfoNotify.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.world.World; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.WorldOwnerBlossomBriefInfoNotifyOuterClass.WorldOwnerBlossomBriefInfoNotify; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.blossom.WorldOwnerBlossomBriefInfoNotify; -public class PacketWorldOwnerBlossomBriefInfoNotify extends BasePacket { +public class PacketWorldOwnerBlossomBriefInfoNotify extends BaseTypedPacket { public PacketWorldOwnerBlossomBriefInfoNotify(World world) { - super(PacketOpcodes.WorldOwnerBlossomBriefInfoNotify); - - this.setData(WorldOwnerBlossomBriefInfoNotify.newBuilder() - .addAllBriefInfoList(world.getOwner().getBlossomManager().getBriefInfo()) - .build()); + super(new WorldOwnerBlossomBriefInfoNotify()); + proto.setBriefInfoList(world.getOwner().getBlossomManager().getBriefInfo()); } } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomScheduleInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomScheduleInfoNotify.java index dd214814..52bad9c3 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomScheduleInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldOwnerBlossomScheduleInfoNotify.java @@ -1,16 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.BasePacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.BlossomScheduleInfoOuterClass.BlossomScheduleInfo; -import emu.grasscutter.net.proto.WorldOwnerBlossomScheduleInfoNotifyOuterClass.WorldOwnerBlossomScheduleInfoNotify; +import emu.grasscutter.net.packet.BaseTypedPacket; +import org.anime_game_servers.multi_proto.gi.messages.blossom.BlossomScheduleInfo; +import org.anime_game_servers.multi_proto.gi.messages.blossom.WorldOwnerBlossomScheduleInfoNotify; -public class PacketWorldOwnerBlossomScheduleInfoNotify extends BasePacket { +public class PacketWorldOwnerBlossomScheduleInfoNotify extends BaseTypedPacket { public PacketWorldOwnerBlossomScheduleInfoNotify(BlossomScheduleInfo scheduleInfo) { - super(PacketOpcodes.WorldOwnerBlossomScheduleInfoNotify); - - this.setData(WorldOwnerBlossomScheduleInfoNotify.newBuilder() - .setScheduleInfo(scheduleInfo) - .build()); + super(new WorldOwnerBlossomScheduleInfoNotify()); + proto.setScheduleInfo(scheduleInfo); } }