diff --git a/src/generated/main/java/emu/grasscutter/net/proto/AvatarDelNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/AvatarDelNotifyOuterClass.java new file mode 100644 index 000000000..9cb02f614 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/AvatarDelNotifyOuterClass.java @@ -0,0 +1,717 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarDelNotify.proto + +package emu.grasscutter.net.proto; + +public final class AvatarDelNotifyOuterClass { + private AvatarDelNotifyOuterClass() {} + + 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 AvatarDelNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:AvatarDelNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return A list containing the avatarGuidList. + */ + java.util.List getAvatarGuidListList(); + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return The count of avatarGuidList. + */ + int getAvatarGuidListCount(); + /** + * repeated uint64 avatar_guid_list = 11; + * + * @param index The index of the element to return. + * @return The avatarGuidList at the given index. + */ + long getAvatarGuidList(int index); + } + /** + * + * + *
+     * Name: ABHDPPOLMHE
+     * CmdId: 1621
+     * 
+ * + * Protobuf type {@code AvatarDelNotify} + */ + public static final class AvatarDelNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:AvatarDelNotify) + AvatarDelNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvatarDelNotify.newBuilder() to construct. + private AvatarDelNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvatarDelNotify() { + avatarGuidList_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvatarDelNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AvatarDelNotify( + 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 88: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + avatarGuidList_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + avatarGuidList_.addLong(input.readUInt64()); + break; + } + case 90: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + avatarGuidList_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + avatarGuidList_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + avatarGuidList_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.AvatarDelNotifyOuterClass + .internal_static_AvatarDelNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.AvatarDelNotifyOuterClass + .internal_static_AvatarDelNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify.class, + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify.Builder.class); + } + + public static final int AVATAR_GUID_LIST_FIELD_NUMBER = 11; + private com.google.protobuf.Internal.LongList avatarGuidList_; + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return A list containing the avatarGuidList. + */ + @java.lang.Override + public java.util.List getAvatarGuidListList() { + return avatarGuidList_; + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @param index The index of the element to return. + * @return The avatarGuidList at the given index. + */ + public long getAvatarGuidList(int index) { + return avatarGuidList_.getLong(index); + } + + private int avatarGuidListMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getAvatarGuidListList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize); + } + for (int i = 0; i < avatarGuidList_.size(); i++) { + output.writeUInt64NoTag(avatarGuidList_.getLong(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < avatarGuidList_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag( + avatarGuidList_.getLong(i)); + } + size += dataSize; + if (!getAvatarGuidListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + avatarGuidListMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify other = + (emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify) obj; + + if (!getAvatarGuidListList().equals(other.getAvatarGuidListList())) 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 (getAvatarGuidListCount() > 0) { + hash = (37 * hash) + AVATAR_GUID_LIST_FIELD_NUMBER; + hash = (53 * hash) + getAvatarGuidListList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify 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.AvatarDelNotifyOuterClass.AvatarDelNotify parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify 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.AvatarDelNotifyOuterClass.AvatarDelNotify parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify 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.AvatarDelNotifyOuterClass.AvatarDelNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify + 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.AvatarDelNotifyOuterClass.AvatarDelNotify parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify 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.AvatarDelNotifyOuterClass.AvatarDelNotify 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; + } + /** + * + * + *
+         * Name: ABHDPPOLMHE
+         * CmdId: 1621
+         * 
+ * + * Protobuf type {@code AvatarDelNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:AvatarDelNotify) + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.AvatarDelNotifyOuterClass + .internal_static_AvatarDelNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.AvatarDelNotifyOuterClass + .internal_static_AvatarDelNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify.class, + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify.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(); + avatarGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.AvatarDelNotifyOuterClass + .internal_static_AvatarDelNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify build() { + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify buildPartial() { + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify result = + new emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + avatarGuidList_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.avatarGuidList_ = avatarGuidList_; + 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.AvatarDelNotifyOuterClass.AvatarDelNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify other) { + if (other + == emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify + .getDefaultInstance()) return this; + if (!other.avatarGuidList_.isEmpty()) { + if (avatarGuidList_.isEmpty()) { + avatarGuidList_ = other.avatarGuidList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.addAll(other.avatarGuidList_); + } + onChanged(); + } + 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.AvatarDelNotifyOuterClass.AvatarDelNotify parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList(); + + private void ensureAvatarGuidListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + avatarGuidList_ = mutableCopy(avatarGuidList_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return A list containing the avatarGuidList. + */ + public java.util.List getAvatarGuidListList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(avatarGuidList_) + : avatarGuidList_; + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @param index The index of the element to return. + * @return The avatarGuidList at the given index. + */ + public long getAvatarGuidList(int index) { + return avatarGuidList_.getLong(index); + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @param index The index to set the value at. + * @param value The avatarGuidList to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuidList(int index, long value) { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @param value The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarGuidList(long value) { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @param values The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarGuidList(java.lang.Iterable values) { + ensureAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, avatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatar_guid_list = 11; + * + * @return This builder for chaining. + */ + public Builder clearAvatarGuidList() { + avatarGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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:AvatarDelNotify) + } + + // @@protoc_insertion_point(class_scope:AvatarDelNotify) + private static final emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify(); + } + + public static emu.grasscutter.net.proto.AvatarDelNotifyOuterClass.AvatarDelNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvatarDelNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AvatarDelNotify(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.AvatarDelNotifyOuterClass.AvatarDelNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarDelNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AvatarDelNotify_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\025AvatarDelNotify.proto\"+\n\017AvatarDelNoti" + + "fy\022\030\n\020avatar_guid_list\030\013 \003(\004B\033\n\031emu.gras" + + "scutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_AvatarDelNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_AvatarDelNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AvatarDelNotify_descriptor, + new java.lang.String[] { + "AvatarGuidList", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcStateReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcStateReqOuterClass.java new file mode 100644 index 000000000..bf7f1fd9a --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcStateReqOuterClass.java @@ -0,0 +1,510 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CheckUgcStateReq.proto + +package emu.grasscutter.net.proto; + +public final class CheckUgcStateReqOuterClass { + private CheckUgcStateReqOuterClass() {} + + 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 CheckUgcStateReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:CheckUgcStateReq) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * CmdId: 6342 (3.2)
+     * EnetChannelId: 0
+     * EnetIsReliable: true
+     * IsAllowClient: true
+     * 
+ * + * Protobuf type {@code CheckUgcStateReq} + */ + public static final class CheckUgcStateReq extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:CheckUgcStateReq) + CheckUgcStateReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckUgcStateReq.newBuilder() to construct. + private CheckUgcStateReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckUgcStateReq() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckUgcStateReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckUgcStateReq( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcStateReqOuterClass + .internal_static_CheckUgcStateReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcStateReqOuterClass + .internal_static_CheckUgcStateReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq.class, + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq other = + (emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq 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.CheckUgcStateReqOuterClass.CheckUgcStateReq parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq 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.CheckUgcStateReqOuterClass.CheckUgcStateReq parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq 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.CheckUgcStateReqOuterClass.CheckUgcStateReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq + 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.CheckUgcStateReqOuterClass.CheckUgcStateReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq 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.CheckUgcStateReqOuterClass.CheckUgcStateReq 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: 6342 (3.2)
+         * EnetChannelId: 0
+         * EnetIsReliable: true
+         * IsAllowClient: true
+         * 
+ * + * Protobuf type {@code CheckUgcStateReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:CheckUgcStateReq) + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcStateReqOuterClass + .internal_static_CheckUgcStateReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcStateReqOuterClass + .internal_static_CheckUgcStateReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq.class, + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.CheckUgcStateReqOuterClass + .internal_static_CheckUgcStateReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq build() { + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq buildPartial() { + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq result = + new emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq) { + return mergeFrom( + (emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq other) { + if (other + == emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CheckUgcStateReq) + } + + // @@protoc_insertion_point(class_scope:CheckUgcStateReq) + private static final emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq(); + } + + public static emu.grasscutter.net.proto.CheckUgcStateReqOuterClass.CheckUgcStateReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckUgcStateReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckUgcStateReq(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.CheckUgcStateReqOuterClass.CheckUgcStateReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CheckUgcStateReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CheckUgcStateReq_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\026CheckUgcStateReq.proto\"\022\n\020CheckUgcStat" + + "eReqB\033\n\031emu.grasscutter.net.protob\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_CheckUgcStateReq_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_CheckUgcStateReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CheckUgcStateReq_descriptor, new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcStateRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcStateRspOuterClass.java new file mode 100644 index 000000000..05e6cb2f2 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcStateRspOuterClass.java @@ -0,0 +1,585 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CheckUgcStateRsp.proto + +package emu.grasscutter.net.proto; + +public final class CheckUgcStateRspOuterClass { + private CheckUgcStateRspOuterClass() {} + + 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 CheckUgcStateRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:CheckUgcStateRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 retcode = 7; + * + * @return The retcode. + */ + int getRetcode(); + } + /** + * + * + *
+     * CmdId: 6314 (3.2)
+     * EnetChannelId: 0
+     * EnetIsReliable: true
+     * 
+ * + * Protobuf type {@code CheckUgcStateRsp} + */ + public static final class CheckUgcStateRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:CheckUgcStateRsp) + CheckUgcStateRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckUgcStateRsp.newBuilder() to construct. + private CheckUgcStateRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckUgcStateRsp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckUgcStateRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckUgcStateRsp( + 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 56: + { + retcode_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcStateRspOuterClass + .internal_static_CheckUgcStateRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcStateRspOuterClass + .internal_static_CheckUgcStateRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp.class, + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp.Builder.class); + } + + public static final int RETCODE_FIELD_NUMBER = 7; + private int retcode_; + /** + * int32 retcode = 7; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retcode_ != 0) { + output.writeInt32(7, retcode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, retcode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp other = + (emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp) obj; + + if (getRetcode() != other.getRetcode()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp 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.CheckUgcStateRspOuterClass.CheckUgcStateRsp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp 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.CheckUgcStateRspOuterClass.CheckUgcStateRsp parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp 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.CheckUgcStateRspOuterClass.CheckUgcStateRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp + 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.CheckUgcStateRspOuterClass.CheckUgcStateRsp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp 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.CheckUgcStateRspOuterClass.CheckUgcStateRsp 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: 6314 (3.2)
+         * EnetChannelId: 0
+         * EnetIsReliable: true
+         * 
+ * + * Protobuf type {@code CheckUgcStateRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:CheckUgcStateRsp) + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcStateRspOuterClass + .internal_static_CheckUgcStateRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcStateRspOuterClass + .internal_static_CheckUgcStateRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp.class, + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + retcode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.CheckUgcStateRspOuterClass + .internal_static_CheckUgcStateRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp build() { + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp buildPartial() { + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp result = + new emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp(this); + result.retcode_ = retcode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp other) { + if (other + == emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp + .getDefaultInstance()) return this; + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retcode_; + /** + * int32 retcode = 7; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 7; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 7; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CheckUgcStateRsp) + } + + // @@protoc_insertion_point(class_scope:CheckUgcStateRsp) + private static final emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp(); + } + + public static emu.grasscutter.net.proto.CheckUgcStateRspOuterClass.CheckUgcStateRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckUgcStateRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckUgcStateRsp(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.CheckUgcStateRspOuterClass.CheckUgcStateRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CheckUgcStateRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CheckUgcStateRsp_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\026CheckUgcStateRsp.proto\"#\n\020CheckUgcStat" + + "eRsp\022\017\n\007retcode\030\007 \001(\005B\033\n\031emu.grasscutter" + + ".net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_CheckUgcStateRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_CheckUgcStateRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CheckUgcStateRsp_descriptor, + new java.lang.String[] { + "Retcode", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcUpdateReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcUpdateReqOuterClass.java new file mode 100644 index 000000000..a879948ad --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcUpdateReqOuterClass.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CheckUgcUpdateReq.proto + +package emu.grasscutter.net.proto; + +public final class CheckUgcUpdateReqOuterClass { + private CheckUgcUpdateReqOuterClass() {} + + 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 CheckUgcUpdateReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:CheckUgcUpdateReq) + com.google.protobuf.MessageOrBuilder { + + /** + * .UgcType ugc_type = 13; + * + * @return The enum numeric value on the wire for ugcType. + */ + int getUgcTypeValue(); + /** + * .UgcType ugc_type = 13; + * + * @return The ugcType. + */ + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType(); + } + /** + * + * + *
+     * CmdId: 6320 (3.2)
+     * EnetChannelId: 0
+     * EnetIsReliable: true
+     * IsAllowClient: true
+     * 
+ * + * Protobuf type {@code CheckUgcUpdateReq} + */ + public static final class CheckUgcUpdateReq extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:CheckUgcUpdateReq) + CheckUgcUpdateReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckUgcUpdateReq.newBuilder() to construct. + private CheckUgcUpdateReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckUgcUpdateReq() { + ugcType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckUgcUpdateReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckUgcUpdateReq( + 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 104: + { + int rawValue = input.readEnum(); + + ugcType_ = rawValue; + 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.CheckUgcUpdateReqOuterClass + .internal_static_CheckUgcUpdateReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass + .internal_static_CheckUgcUpdateReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq.class, + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq.Builder + .class); + } + + public static final int UGC_TYPE_FIELD_NUMBER = 13; + private int ugcType_; + /** + * .UgcType ugc_type = 13; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 13; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + + 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 (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + output.writeEnum(13, ugcType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, ugcType_); + } + 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq other = + (emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq) obj; + + if (ugcType_ != other.ugcType_) 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) + UGC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ugcType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq 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: 6320 (3.2)
+         * EnetChannelId: 0
+         * EnetIsReliable: true
+         * IsAllowClient: true
+         * 
+ * + * Protobuf type {@code CheckUgcUpdateReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:CheckUgcUpdateReq) + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass + .internal_static_CheckUgcUpdateReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass + .internal_static_CheckUgcUpdateReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq.class, + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq.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(); + ugcType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass + .internal_static_CheckUgcUpdateReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq build() { + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + buildPartial() { + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq result = + new emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq(this); + result.ugcType_ = ugcType_; + 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq) { + return mergeFrom( + (emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq other) { + if (other + == emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + .getDefaultInstance()) return this; + if (other.ugcType_ != 0) { + setUgcTypeValue(other.getUgcTypeValue()); + } + 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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int ugcType_ = 0; + /** + * .UgcType ugc_type = 13; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 13; + * + * @param value The enum numeric value on the wire for ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcTypeValue(int value) { + + ugcType_ = value; + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 13; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + /** + * .UgcType ugc_type = 13; + * + * @param value The ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) { + if (value == null) { + throw new NullPointerException(); + } + + ugcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 13; + * + * @return This builder for chaining. + */ + public Builder clearUgcType() { + + ugcType_ = 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:CheckUgcUpdateReq) + } + + // @@protoc_insertion_point(class_scope:CheckUgcUpdateReq) + private static final emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq(); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckUgcUpdateReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckUgcUpdateReq(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.CheckUgcUpdateReqOuterClass.CheckUgcUpdateReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CheckUgcUpdateReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CheckUgcUpdateReq_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\027CheckUgcUpdateReq.proto\032\rUgcType.proto" + + "\"/\n\021CheckUgcUpdateReq\022\032\n\010ugc_type\030\r \001(\0162" + + "\010.UgcTypeB\033\n\031emu.grasscutter.net.protob\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(), + }); + internal_static_CheckUgcUpdateReq_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_CheckUgcUpdateReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CheckUgcUpdateReq_descriptor, + new java.lang.String[] { + "UgcType", + }); + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcUpdateRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcUpdateRspOuterClass.java new file mode 100644 index 000000000..508d690a3 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CheckUgcUpdateRspOuterClass.java @@ -0,0 +1,933 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CheckUgcUpdateRsp.proto + +package emu.grasscutter.net.proto; + +public final class CheckUgcUpdateRspOuterClass { + private CheckUgcUpdateRspOuterClass() {} + + 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 CheckUgcUpdateRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:CheckUgcUpdateRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return A list containing the updateUgcGuidList. + */ + java.util.List getUpdateUgcGuidListList(); + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return The count of updateUgcGuidList. + */ + int getUpdateUgcGuidListCount(); + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @param index The index of the element to return. + * @return The updateUgcGuidList at the given index. + */ + long getUpdateUgcGuidList(int index); + + /** + * int32 retcode = 10; + * + * @return The retcode. + */ + int getRetcode(); + + /** + * .UgcType ugc_type = 12; + * + * @return The enum numeric value on the wire for ugcType. + */ + int getUgcTypeValue(); + /** + * .UgcType ugc_type = 12; + * + * @return The ugcType. + */ + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType(); + } + /** + * + * + *
+     * CmdId: 6345 (3.2)
+     * EnetChannelId: 0
+     * EnetIsReliable: true
+     * 
+ * + * Protobuf type {@code CheckUgcUpdateRsp} + */ + public static final class CheckUgcUpdateRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:CheckUgcUpdateRsp) + CheckUgcUpdateRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckUgcUpdateRsp.newBuilder() to construct. + private CheckUgcUpdateRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckUgcUpdateRsp() { + updateUgcGuidList_ = emptyLongList(); + ugcType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckUgcUpdateRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckUgcUpdateRsp( + 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 80: + { + retcode_ = input.readInt32(); + break; + } + case 96: + { + int rawValue = input.readEnum(); + + ugcType_ = rawValue; + break; + } + case 120: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + updateUgcGuidList_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + updateUgcGuidList_.addLong(input.readUInt64()); + break; + } + case 122: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + updateUgcGuidList_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + updateUgcGuidList_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + updateUgcGuidList_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass + .internal_static_CheckUgcUpdateRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass + .internal_static_CheckUgcUpdateRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp.class, + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp.Builder + .class); + } + + public static final int UPDATE_UGC_GUID_LIST_FIELD_NUMBER = 15; + private com.google.protobuf.Internal.LongList updateUgcGuidList_; + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return A list containing the updateUgcGuidList. + */ + @java.lang.Override + public java.util.List getUpdateUgcGuidListList() { + return updateUgcGuidList_; + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return The count of updateUgcGuidList. + */ + public int getUpdateUgcGuidListCount() { + return updateUgcGuidList_.size(); + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @param index The index of the element to return. + * @return The updateUgcGuidList at the given index. + */ + public long getUpdateUgcGuidList(int index) { + return updateUgcGuidList_.getLong(index); + } + + private int updateUgcGuidListMemoizedSerializedSize = -1; + + public static final int RETCODE_FIELD_NUMBER = 10; + private int retcode_; + /** + * int32 retcode = 10; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int UGC_TYPE_FIELD_NUMBER = 12; + private int ugcType_; + /** + * .UgcType ugc_type = 12; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 12; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (retcode_ != 0) { + output.writeInt32(10, retcode_); + } + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + output.writeEnum(12, ugcType_); + } + if (getUpdateUgcGuidListList().size() > 0) { + output.writeUInt32NoTag(122); + output.writeUInt32NoTag(updateUgcGuidListMemoizedSerializedSize); + } + for (int i = 0; i < updateUgcGuidList_.size(); i++) { + output.writeUInt64NoTag(updateUgcGuidList_.getLong(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, retcode_); + } + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, ugcType_); + } + { + int dataSize = 0; + for (int i = 0; i < updateUgcGuidList_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag( + updateUgcGuidList_.getLong(i)); + } + size += dataSize; + if (!getUpdateUgcGuidListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + updateUgcGuidListMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp other = + (emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp) obj; + + if (!getUpdateUgcGuidListList().equals(other.getUpdateUgcGuidListList())) return false; + if (getRetcode() != other.getRetcode()) return false; + if (ugcType_ != other.ugcType_) 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 (getUpdateUgcGuidListCount() > 0) { + hash = (37 * hash) + UPDATE_UGC_GUID_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUpdateUgcGuidListList().hashCode(); + } + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (37 * hash) + UGC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ugcType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp 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: 6345 (3.2)
+         * EnetChannelId: 0
+         * EnetIsReliable: true
+         * 
+ * + * Protobuf type {@code CheckUgcUpdateRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:CheckUgcUpdateRsp) + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass + .internal_static_CheckUgcUpdateRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass + .internal_static_CheckUgcUpdateRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp.class, + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp.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(); + updateUgcGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + retcode_ = 0; + + ugcType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass + .internal_static_CheckUgcUpdateRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp build() { + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + buildPartial() { + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp result = + new emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + updateUgcGuidList_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.updateUgcGuidList_ = updateUgcGuidList_; + result.retcode_ = retcode_; + result.ugcType_ = ugcType_; + 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp other) { + if (other + == emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + .getDefaultInstance()) return this; + if (!other.updateUgcGuidList_.isEmpty()) { + if (updateUgcGuidList_.isEmpty()) { + updateUgcGuidList_ = other.updateUgcGuidList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUpdateUgcGuidListIsMutable(); + updateUgcGuidList_.addAll(other.updateUgcGuidList_); + } + onChanged(); + } + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + if (other.ugcType_ != 0) { + setUgcTypeValue(other.getUgcTypeValue()); + } + 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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.LongList updateUgcGuidList_ = emptyLongList(); + + private void ensureUpdateUgcGuidListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + updateUgcGuidList_ = mutableCopy(updateUgcGuidList_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return A list containing the updateUgcGuidList. + */ + public java.util.List getUpdateUgcGuidListList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(updateUgcGuidList_) + : updateUgcGuidList_; + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return The count of updateUgcGuidList. + */ + public int getUpdateUgcGuidListCount() { + return updateUgcGuidList_.size(); + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @param index The index of the element to return. + * @return The updateUgcGuidList at the given index. + */ + public long getUpdateUgcGuidList(int index) { + return updateUgcGuidList_.getLong(index); + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @param index The index to set the value at. + * @param value The updateUgcGuidList to set. + * @return This builder for chaining. + */ + public Builder setUpdateUgcGuidList(int index, long value) { + ensureUpdateUgcGuidListIsMutable(); + updateUgcGuidList_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @param value The updateUgcGuidList to add. + * @return This builder for chaining. + */ + public Builder addUpdateUgcGuidList(long value) { + ensureUpdateUgcGuidListIsMutable(); + updateUgcGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @param values The updateUgcGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllUpdateUgcGuidList(java.lang.Iterable values) { + ensureUpdateUgcGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updateUgcGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 update_ugc_guid_list = 15; + * + * @return This builder for chaining. + */ + public Builder clearUpdateUgcGuidList() { + updateUgcGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int retcode_; + /** + * int32 retcode = 10; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 10; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 10; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int ugcType_ = 0; + /** + * .UgcType ugc_type = 12; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 12; + * + * @param value The enum numeric value on the wire for ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcTypeValue(int value) { + + ugcType_ = value; + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 12; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + /** + * .UgcType ugc_type = 12; + * + * @param value The ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) { + if (value == null) { + throw new NullPointerException(); + } + + ugcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 12; + * + * @return This builder for chaining. + */ + public Builder clearUgcType() { + + ugcType_ = 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:CheckUgcUpdateRsp) + } + + // @@protoc_insertion_point(class_scope:CheckUgcUpdateRsp) + private static final emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp(); + } + + public static emu.grasscutter.net.proto.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckUgcUpdateRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckUgcUpdateRsp(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.CheckUgcUpdateRspOuterClass.CheckUgcUpdateRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CheckUgcUpdateRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CheckUgcUpdateRsp_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\027CheckUgcUpdateRsp.proto\032\rUgcType.proto" + + "\"^\n\021CheckUgcUpdateRsp\022\034\n\024update_ugc_guid" + + "_list\030\017 \003(\004\022\017\n\007retcode\030\n \001(\005\022\032\n\010ugc_type" + + "\030\014 \001(\0162\010.UgcTypeB\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.UgcTypeOuterClass.getDescriptor(), + }); + internal_static_CheckUgcUpdateRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_CheckUgcUpdateRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CheckUgcUpdateRsp_descriptor, + new java.lang.String[] { + "UpdateUgcGuidList", "Retcode", "UgcType", + }); + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CloseCommonTipsNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CloseCommonTipsNotifyOuterClass.java new file mode 100644 index 000000000..952e111d9 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/CloseCommonTipsNotifyOuterClass.java @@ -0,0 +1,522 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CloseCommonTipsNotify.proto + +package emu.grasscutter.net.proto; + +public final class CloseCommonTipsNotifyOuterClass { + private CloseCommonTipsNotifyOuterClass() {} + + 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 CloseCommonTipsNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:CloseCommonTipsNotify) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * Name: AFLOLBEDPJM
+     * CmdId: 3196
+     * 
+ * + * Protobuf type {@code CloseCommonTipsNotify} + */ + public static final class CloseCommonTipsNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:CloseCommonTipsNotify) + CloseCommonTipsNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloseCommonTipsNotify.newBuilder() to construct. + private CloseCommonTipsNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloseCommonTipsNotify() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloseCommonTipsNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CloseCommonTipsNotify( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass + .internal_static_CloseCommonTipsNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass + .internal_static_CloseCommonTipsNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.class, + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + .Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify other = + (emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify 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; + } + /** + * + * + *
+         * Name: AFLOLBEDPJM
+         * CmdId: 3196
+         * 
+ * + * Protobuf type {@code CloseCommonTipsNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:CloseCommonTipsNotify) + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass + .internal_static_CloseCommonTipsNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass + .internal_static_CloseCommonTipsNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + .class, + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass + .internal_static_CloseCommonTipsNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + build() { + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + buildPartial() { + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify result = + new emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify( + this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify other) { + if (other + == emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CloseCommonTipsNotify) + } + + // @@protoc_insertion_point(class_scope:CloseCommonTipsNotify) + private static final emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass + .CloseCommonTipsNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify(); + } + + public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloseCommonTipsNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloseCommonTipsNotify(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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CloseCommonTipsNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CloseCommonTipsNotify_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\033CloseCommonTipsNotify.proto\"\027\n\025CloseCo" + + "mmonTipsNotifyB\033\n\031emu.grasscutter.net.pr" + + "otob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_CloseCommonTipsNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_CloseCommonTipsNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CloseCommonTipsNotify_descriptor, new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieNotifyOuterClass.java new file mode 100644 index 000000000..f547ef289 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieNotifyOuterClass.java @@ -0,0 +1,1621 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DungeonPlayerDieNotify.proto + +package emu.grasscutter.net.proto; + +public final class DungeonPlayerDieNotifyOuterClass { + private DungeonPlayerDieNotifyOuterClass() {} + + 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 DungeonPlayerDieNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:DungeonPlayerDieNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 murderer_entity_id = 1; + * + * @return The murdererEntityId. + */ + int getMurdererEntityId(); + + /** + * uint32 dungeon_id = 2; + * + * @return The dungeonId. + */ + int getDungeonId(); + + /** + * uint32 wait_time = 11; + * + * @return The waitTime. + */ + int getWaitTime(); + + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + int getStrengthenPointDataMapCount(); + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + boolean containsStrengthenPointDataMap(int key); + /** Use {@link #getStrengthenPointDataMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getStrengthenPointDataMap(); + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getStrengthenPointDataMapMap(); + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + getStrengthenPointDataMapOrDefault( + int key, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + defaultValue); + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + getStrengthenPointDataMapOrThrow(int key); + + /** + * uint32 revive_count = 5; + * + * @return The reviveCount. + */ + int getReviveCount(); + + /** + * .PlayerDieType die_type = 6; + * + * @return The enum numeric value on the wire for dieType. + */ + int getDieTypeValue(); + /** + * .PlayerDieType die_type = 6; + * + * @return The dieType. + */ + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); + + /** + * uint32 monster_id = 4; + * + * @return Whether the monsterId field is set. + */ + boolean hasMonsterId(); + /** + * uint32 monster_id = 4; + * + * @return The monsterId. + */ + int getMonsterId(); + + /** + * uint32 gadget_id = 7; + * + * @return Whether the gadgetId field is set. + */ + boolean hasGadgetId(); + /** + * uint32 gadget_id = 7; + * + * @return The gadgetId. + */ + int getGadgetId(); + + public emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .EntityCase + getEntityCase(); + } + /** + * + * + *
+     * Name: EPKICJCBBIF
+     * CmdId: 959
+     * 
+ * + * Protobuf type {@code DungeonPlayerDieNotify} + */ + public static final class DungeonPlayerDieNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:DungeonPlayerDieNotify) + DungeonPlayerDieNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use DungeonPlayerDieNotify.newBuilder() to construct. + private DungeonPlayerDieNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DungeonPlayerDieNotify() { + dieType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DungeonPlayerDieNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DungeonPlayerDieNotify( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + murdererEntityId_ = input.readUInt32(); + break; + } + case 16: + { + dungeonId_ = input.readUInt32(); + break; + } + case 32: + { + entityCase_ = 4; + entity_ = input.readUInt32(); + break; + } + case 40: + { + reviveCount_ = input.readUInt32(); + break; + } + case 48: + { + int rawValue = input.readEnum(); + + dieType_ = rawValue; + break; + } + case 56: + { + entityCase_ = 7; + entity_ = input.readUInt32(); + break; + } + case 88: + { + waitTime_ = input.readUInt32(); + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + strengthenPointDataMap_ = + com.google.protobuf.MapField.newMapField( + StrengthenPointDataMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + strengthenPointDataMap__ = + input.readMessage( + StrengthenPointDataMapDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + strengthenPointDataMap_ + .getMutableMap() + .put(strengthenPointDataMap__.getKey(), strengthenPointDataMap__.getValue()); + 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.DungeonPlayerDieNotifyOuterClass + .internal_static_DungeonPlayerDieNotify_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetStrengthenPointDataMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass + .internal_static_DungeonPlayerDieNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .class, + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .Builder.class); + } + + private int entityCase_ = 0; + private java.lang.Object entity_; + + public enum EntityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MONSTER_ID(4), + GADGET_ID(7), + ENTITY_NOT_SET(0); + private final int value; + + private EntityCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntityCase valueOf(int value) { + return forNumber(value); + } + + public static EntityCase forNumber(int value) { + switch (value) { + case 4: + return MONSTER_ID; + case 7: + return GADGET_ID; + case 0: + return ENTITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntityCase getEntityCase() { + return EntityCase.forNumber(entityCase_); + } + + public static final int MURDERER_ENTITY_ID_FIELD_NUMBER = 1; + private int murdererEntityId_; + /** + * uint32 murderer_entity_id = 1; + * + * @return The murdererEntityId. + */ + @java.lang.Override + public int getMurdererEntityId() { + return murdererEntityId_; + } + + public static final int DUNGEON_ID_FIELD_NUMBER = 2; + private int dungeonId_; + /** + * uint32 dungeon_id = 2; + * + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + + public static final int WAIT_TIME_FIELD_NUMBER = 11; + private int waitTime_; + /** + * uint32 wait_time = 11; + * + * @return The waitTime. + */ + @java.lang.Override + public int getWaitTime() { + return waitTime_; + } + + public static final int STRENGTHEN_POINT_DATA_MAP_FIELD_NUMBER = 15; + + private static final class StrengthenPointDataMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass + .internal_static_DungeonPlayerDieNotify_StrengthenPointDataMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass + .StrengthenPointData.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + strengthenPointDataMap_; + + private com.google.protobuf.MapField< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + internalGetStrengthenPointDataMap() { + if (strengthenPointDataMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + StrengthenPointDataMapDefaultEntryHolder.defaultEntry); + } + return strengthenPointDataMap_; + } + + public int getStrengthenPointDataMapCount() { + return internalGetStrengthenPointDataMap().getMap().size(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public boolean containsStrengthenPointDataMap(int key) { + + return internalGetStrengthenPointDataMap().getMap().containsKey(key); + } + /** Use {@link #getStrengthenPointDataMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getStrengthenPointDataMap() { + return getStrengthenPointDataMapMap(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getStrengthenPointDataMapMap() { + return internalGetStrengthenPointDataMap().getMap(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + getStrengthenPointDataMapOrDefault( + int key, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + defaultValue) { + + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + map = internalGetStrengthenPointDataMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + getStrengthenPointDataMapOrThrow(int key) { + + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + map = internalGetStrengthenPointDataMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int REVIVE_COUNT_FIELD_NUMBER = 5; + private int reviveCount_; + /** + * uint32 revive_count = 5; + * + * @return The reviveCount. + */ + @java.lang.Override + public int getReviveCount() { + return reviveCount_; + } + + public static final int DIE_TYPE_FIELD_NUMBER = 6; + private int dieType_; + /** + * .PlayerDieType die_type = 6; + * + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override + public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType die_type = 6; + * + * @return The dieType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); + return result == null + ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED + : result; + } + + public static final int MONSTER_ID_FIELD_NUMBER = 4; + /** + * uint32 monster_id = 4; + * + * @return Whether the monsterId field is set. + */ + @java.lang.Override + public boolean hasMonsterId() { + return entityCase_ == 4; + } + /** + * uint32 monster_id = 4; + * + * @return The monsterId. + */ + @java.lang.Override + public int getMonsterId() { + if (entityCase_ == 4) { + return (java.lang.Integer) entity_; + } + return 0; + } + + public static final int GADGET_ID_FIELD_NUMBER = 7; + /** + * uint32 gadget_id = 7; + * + * @return Whether the gadgetId field is set. + */ + @java.lang.Override + public boolean hasGadgetId() { + return entityCase_ == 7; + } + /** + * uint32 gadget_id = 7; + * + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + if (entityCase_ == 7) { + return (java.lang.Integer) entity_; + } + return 0; + } + + 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 (murdererEntityId_ != 0) { + output.writeUInt32(1, murdererEntityId_); + } + if (dungeonId_ != 0) { + output.writeUInt32(2, dungeonId_); + } + if (entityCase_ == 4) { + output.writeUInt32(4, (int) ((java.lang.Integer) entity_)); + } + if (reviveCount_ != 0) { + output.writeUInt32(5, reviveCount_); + } + if (dieType_ + != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PLAYER_DIE_TYPE_NONE + .getNumber()) { + output.writeEnum(6, dieType_); + } + if (entityCase_ == 7) { + output.writeUInt32(7, (int) ((java.lang.Integer) entity_)); + } + if (waitTime_ != 0) { + output.writeUInt32(11, waitTime_); + } + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, + internalGetStrengthenPointDataMap(), + StrengthenPointDataMapDefaultEntryHolder.defaultEntry, + 15); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (murdererEntityId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, murdererEntityId_); + } + if (dungeonId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, dungeonId_); + } + if (entityCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 4, (int) ((java.lang.Integer) entity_)); + } + if (reviveCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, reviveCount_); + } + if (dieType_ + != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PLAYER_DIE_TYPE_NONE + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, dieType_); + } + if (entityCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 7, (int) ((java.lang.Integer) entity_)); + } + if (waitTime_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(11, waitTime_); + } + for (java.util.Map.Entry< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + entry : internalGetStrengthenPointDataMap().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + strengthenPointDataMap__ = + StrengthenPointDataMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, strengthenPointDataMap__); + } + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify other = + (emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify) obj; + + if (getMurdererEntityId() != other.getMurdererEntityId()) return false; + if (getDungeonId() != other.getDungeonId()) return false; + if (getWaitTime() != other.getWaitTime()) return false; + if (!internalGetStrengthenPointDataMap().equals(other.internalGetStrengthenPointDataMap())) + return false; + if (getReviveCount() != other.getReviveCount()) return false; + if (dieType_ != other.dieType_) return false; + if (!getEntityCase().equals(other.getEntityCase())) return false; + switch (entityCase_) { + case 4: + if (getMonsterId() != other.getMonsterId()) return false; + break; + case 7: + if (getGadgetId() != other.getGadgetId()) return false; + break; + case 0: + default: + } + 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) + MURDERER_ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getMurdererEntityId(); + hash = (37 * hash) + DUNGEON_ID_FIELD_NUMBER; + hash = (53 * hash) + getDungeonId(); + hash = (37 * hash) + WAIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getWaitTime(); + if (!internalGetStrengthenPointDataMap().getMap().isEmpty()) { + hash = (37 * hash) + STRENGTHEN_POINT_DATA_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetStrengthenPointDataMap().hashCode(); + } + hash = (37 * hash) + REVIVE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getReviveCount(); + hash = (37 * hash) + DIE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dieType_; + switch (entityCase_) { + case 4: + hash = (37 * hash) + MONSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getMonsterId(); + break; + case 7: + hash = (37 * hash) + GADGET_ID_FIELD_NUMBER; + hash = (53 * hash) + getGadgetId(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + 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; + } + /** + * + * + *
+         * Name: EPKICJCBBIF
+         * CmdId: 959
+         * 
+ * + * Protobuf type {@code DungeonPlayerDieNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:DungeonPlayerDieNotify) + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass + .internal_static_DungeonPlayerDieNotify_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetStrengthenPointDataMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 15: + return internalGetMutableStrengthenPointDataMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass + .internal_static_DungeonPlayerDieNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .class, + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify.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(); + murdererEntityId_ = 0; + + dungeonId_ = 0; + + waitTime_ = 0; + + internalGetMutableStrengthenPointDataMap().clear(); + reviveCount_ = 0; + + dieType_ = 0; + + entityCase_ = 0; + entity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass + .internal_static_DungeonPlayerDieNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + build() { + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + buildPartial() { + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify result = + new emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify( + this); + int from_bitField0_ = bitField0_; + result.murdererEntityId_ = murdererEntityId_; + result.dungeonId_ = dungeonId_; + result.waitTime_ = waitTime_; + result.strengthenPointDataMap_ = internalGetStrengthenPointDataMap(); + result.strengthenPointDataMap_.makeImmutable(); + result.reviveCount_ = reviveCount_; + result.dieType_ = dieType_; + if (entityCase_ == 4) { + result.entity_ = entity_; + } + if (entityCase_ == 7) { + result.entity_ = entity_; + } + result.entityCase_ = entityCase_; + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify other) { + if (other + == emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + .getDefaultInstance()) return this; + if (other.getMurdererEntityId() != 0) { + setMurdererEntityId(other.getMurdererEntityId()); + } + if (other.getDungeonId() != 0) { + setDungeonId(other.getDungeonId()); + } + if (other.getWaitTime() != 0) { + setWaitTime(other.getWaitTime()); + } + internalGetMutableStrengthenPointDataMap() + .mergeFrom(other.internalGetStrengthenPointDataMap()); + if (other.getReviveCount() != 0) { + setReviveCount(other.getReviveCount()); + } + if (other.dieType_ != 0) { + setDieTypeValue(other.getDieTypeValue()); + } + switch (other.getEntityCase()) { + case MONSTER_ID: + { + setMonsterId(other.getMonsterId()); + break; + } + case GADGET_ID: + { + setGadgetId(other.getGadgetId()); + break; + } + case ENTITY_NOT_SET: + { + break; + } + } + 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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int entityCase_ = 0; + private java.lang.Object entity_; + + public EntityCase getEntityCase() { + return EntityCase.forNumber(entityCase_); + } + + public Builder clearEntity() { + entityCase_ = 0; + entity_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int murdererEntityId_; + /** + * uint32 murderer_entity_id = 1; + * + * @return The murdererEntityId. + */ + @java.lang.Override + public int getMurdererEntityId() { + return murdererEntityId_; + } + /** + * uint32 murderer_entity_id = 1; + * + * @param value The murdererEntityId to set. + * @return This builder for chaining. + */ + public Builder setMurdererEntityId(int value) { + + murdererEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 murderer_entity_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearMurdererEntityId() { + + murdererEntityId_ = 0; + onChanged(); + return this; + } + + private int dungeonId_; + /** + * uint32 dungeon_id = 2; + * + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + /** + * uint32 dungeon_id = 2; + * + * @param value The dungeonId to set. + * @return This builder for chaining. + */ + public Builder setDungeonId(int value) { + + dungeonId_ = value; + onChanged(); + return this; + } + /** + * uint32 dungeon_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearDungeonId() { + + dungeonId_ = 0; + onChanged(); + return this; + } + + private int waitTime_; + /** + * uint32 wait_time = 11; + * + * @return The waitTime. + */ + @java.lang.Override + public int getWaitTime() { + return waitTime_; + } + /** + * uint32 wait_time = 11; + * + * @param value The waitTime to set. + * @return This builder for chaining. + */ + public Builder setWaitTime(int value) { + + waitTime_ = value; + onChanged(); + return this; + } + /** + * uint32 wait_time = 11; + * + * @return This builder for chaining. + */ + public Builder clearWaitTime() { + + waitTime_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + strengthenPointDataMap_; + + private com.google.protobuf.MapField< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + internalGetStrengthenPointDataMap() { + if (strengthenPointDataMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + StrengthenPointDataMapDefaultEntryHolder.defaultEntry); + } + return strengthenPointDataMap_; + } + + private com.google.protobuf.MapField< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + internalGetMutableStrengthenPointDataMap() { + onChanged(); + ; + if (strengthenPointDataMap_ == null) { + strengthenPointDataMap_ = + com.google.protobuf.MapField.newMapField( + StrengthenPointDataMapDefaultEntryHolder.defaultEntry); + } + if (!strengthenPointDataMap_.isMutable()) { + strengthenPointDataMap_ = strengthenPointDataMap_.copy(); + } + return strengthenPointDataMap_; + } + + public int getStrengthenPointDataMapCount() { + return internalGetStrengthenPointDataMap().getMap().size(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public boolean containsStrengthenPointDataMap(int key) { + + return internalGetStrengthenPointDataMap().getMap().containsKey(key); + } + /** Use {@link #getStrengthenPointDataMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getStrengthenPointDataMap() { + return getStrengthenPointDataMapMap(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getStrengthenPointDataMapMap() { + return internalGetStrengthenPointDataMap().getMap(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + getStrengthenPointDataMapOrDefault( + int key, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + defaultValue) { + + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + map = internalGetStrengthenPointDataMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + @java.lang.Override + public emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData + getStrengthenPointDataMapOrThrow(int key) { + + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + map = internalGetStrengthenPointDataMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearStrengthenPointDataMap() { + internalGetMutableStrengthenPointDataMap().getMutableMap().clear(); + return this; + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + public Builder removeStrengthenPointDataMap(int key) { + + internalGetMutableStrengthenPointDataMap().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + getMutableStrengthenPointDataMap() { + return internalGetMutableStrengthenPointDataMap().getMutableMap(); + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + public Builder putStrengthenPointDataMap( + int key, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData value) { + + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableStrengthenPointDataMap().getMutableMap().put(key, value); + return this; + } + /** map<uint32, .StrengthenPointData> strengthen_point_data_map = 15; */ + public Builder putAllStrengthenPointDataMap( + java.util.Map< + java.lang.Integer, + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.StrengthenPointData> + values) { + internalGetMutableStrengthenPointDataMap().getMutableMap().putAll(values); + return this; + } + + private int reviveCount_; + /** + * uint32 revive_count = 5; + * + * @return The reviveCount. + */ + @java.lang.Override + public int getReviveCount() { + return reviveCount_; + } + /** + * uint32 revive_count = 5; + * + * @param value The reviveCount to set. + * @return This builder for chaining. + */ + public Builder setReviveCount(int value) { + + reviveCount_ = value; + onChanged(); + return this; + } + /** + * uint32 revive_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearReviveCount() { + + reviveCount_ = 0; + onChanged(); + return this; + } + + private int dieType_ = 0; + /** + * .PlayerDieType die_type = 6; + * + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override + public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType die_type = 6; + * + * @param value The enum numeric value on the wire for dieType to set. + * @return This builder for chaining. + */ + public Builder setDieTypeValue(int value) { + + dieType_ = value; + onChanged(); + return this; + } + /** + * .PlayerDieType die_type = 6; + * + * @return The dieType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); + return result == null + ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED + : result; + } + /** + * .PlayerDieType die_type = 6; + * + * @param value The dieType to set. + * @return This builder for chaining. + */ + public Builder setDieType( + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType value) { + if (value == null) { + throw new NullPointerException(); + } + + dieType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .PlayerDieType die_type = 6; + * + * @return This builder for chaining. + */ + public Builder clearDieType() { + + dieType_ = 0; + onChanged(); + return this; + } + + /** + * uint32 monster_id = 4; + * + * @return Whether the monsterId field is set. + */ + public boolean hasMonsterId() { + return entityCase_ == 4; + } + /** + * uint32 monster_id = 4; + * + * @return The monsterId. + */ + public int getMonsterId() { + if (entityCase_ == 4) { + return (java.lang.Integer) entity_; + } + return 0; + } + /** + * uint32 monster_id = 4; + * + * @param value The monsterId to set. + * @return This builder for chaining. + */ + public Builder setMonsterId(int value) { + entityCase_ = 4; + entity_ = value; + onChanged(); + return this; + } + /** + * uint32 monster_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearMonsterId() { + if (entityCase_ == 4) { + entityCase_ = 0; + entity_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 gadget_id = 7; + * + * @return Whether the gadgetId field is set. + */ + public boolean hasGadgetId() { + return entityCase_ == 7; + } + /** + * uint32 gadget_id = 7; + * + * @return The gadgetId. + */ + public int getGadgetId() { + if (entityCase_ == 7) { + return (java.lang.Integer) entity_; + } + return 0; + } + /** + * uint32 gadget_id = 7; + * + * @param value The gadgetId to set. + * @return This builder for chaining. + */ + public Builder setGadgetId(int value) { + entityCase_ = 7; + entity_ = value; + onChanged(); + return this; + } + /** + * uint32 gadget_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearGadgetId() { + if (entityCase_ == 7) { + entityCase_ = 0; + entity_ = null; + 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:DungeonPlayerDieNotify) + } + + // @@protoc_insertion_point(class_scope:DungeonPlayerDieNotify) + private static final emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass + .DungeonPlayerDieNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify(); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DungeonPlayerDieNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DungeonPlayerDieNotify(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.DungeonPlayerDieNotifyOuterClass.DungeonPlayerDieNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_DungeonPlayerDieNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DungeonPlayerDieNotify_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_DungeonPlayerDieNotify_StrengthenPointDataMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DungeonPlayerDieNotify_StrengthenPointDataMapEntry_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\034DungeonPlayerDieNotify.proto\032\023PlayerDi" + + "eType.proto\032\031StrengthenPointData.proto\"\365" + + "\002\n\026DungeonPlayerDieNotify\022\032\n\022murderer_en" + + "tity_id\030\001 \001(\r\022\022\n\ndungeon_id\030\002 \001(\r\022\021\n\twai" + + "t_time\030\013 \001(\r\022V\n\031strengthen_point_data_ma" + + "p\030\017 \003(\01323.DungeonPlayerDieNotify.Strengt" + + "henPointDataMapEntry\022\024\n\014revive_count\030\005 \001" + + "(\r\022 \n\010die_type\030\006 \001(\0162\016.PlayerDieType\022\024\n\n" + + "monster_id\030\004 \001(\rH\000\022\023\n\tgadget_id\030\007 \001(\rH\000\032" + + "S\n\033StrengthenPointDataMapEntry\022\013\n\003key\030\001 " + + "\001(\r\022#\n\005value\030\002 \001(\0132\024.StrengthenPointData" + + ":\0028\001B\010\n\006entityB\033\n\031emu.grasscutter.net.pr" + + "otob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(), + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.getDescriptor(), + }); + internal_static_DungeonPlayerDieNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_DungeonPlayerDieNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DungeonPlayerDieNotify_descriptor, + new java.lang.String[] { + "MurdererEntityId", + "DungeonId", + "WaitTime", + "StrengthenPointDataMap", + "ReviveCount", + "DieType", + "MonsterId", + "GadgetId", + "Entity", + }); + internal_static_DungeonPlayerDieNotify_StrengthenPointDataMapEntry_descriptor = + internal_static_DungeonPlayerDieNotify_descriptor.getNestedTypes().get(0); + internal_static_DungeonPlayerDieNotify_StrengthenPointDataMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DungeonPlayerDieNotify_StrengthenPointDataMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(); + emu.grasscutter.net.proto.StrengthenPointDataOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieReqOuterClass.java new file mode 100644 index 000000000..ad6743e5b --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieReqOuterClass.java @@ -0,0 +1,730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DungeonPlayerDieReq.proto + +package emu.grasscutter.net.proto; + +public final class DungeonPlayerDieReqOuterClass { + private DungeonPlayerDieReqOuterClass() {} + + 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 DungeonPlayerDieReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:DungeonPlayerDieReq) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 dungeon_id = 9; + * + * @return The dungeonId. + */ + int getDungeonId(); + + /** + * .PlayerDieType die_type = 13; + * + * @return The enum numeric value on the wire for dieType. + */ + int getDieTypeValue(); + /** + * .PlayerDieType die_type = 13; + * + * @return The dieType. + */ + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); + } + /** + * + * + *
+     * Name: MJCFJHMAMOL
+     * CmdId: 929
+     * 
+ * + * Protobuf type {@code DungeonPlayerDieReq} + */ + public static final class DungeonPlayerDieReq extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:DungeonPlayerDieReq) + DungeonPlayerDieReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use DungeonPlayerDieReq.newBuilder() to construct. + private DungeonPlayerDieReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DungeonPlayerDieReq() { + dieType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DungeonPlayerDieReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DungeonPlayerDieReq( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 72: + { + dungeonId_ = input.readUInt32(); + break; + } + case 104: + { + int rawValue = input.readEnum(); + + dieType_ = rawValue; + 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.DungeonPlayerDieReqOuterClass + .internal_static_DungeonPlayerDieReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass + .internal_static_DungeonPlayerDieReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq.class, + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq.Builder + .class); + } + + public static final int DUNGEON_ID_FIELD_NUMBER = 9; + private int dungeonId_; + /** + * uint32 dungeon_id = 9; + * + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + + public static final int DIE_TYPE_FIELD_NUMBER = 13; + private int dieType_; + /** + * .PlayerDieType die_type = 13; + * + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override + public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType die_type = 13; + * + * @return The dieType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); + return result == null + ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED + : result; + } + + 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 (dungeonId_ != 0) { + output.writeUInt32(9, dungeonId_); + } + if (dieType_ + != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PLAYER_DIE_TYPE_NONE + .getNumber()) { + output.writeEnum(13, dieType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dungeonId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(9, dungeonId_); + } + if (dieType_ + != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PLAYER_DIE_TYPE_NONE + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, dieType_); + } + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq other = + (emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq) obj; + + if (getDungeonId() != other.getDungeonId()) return false; + if (dieType_ != other.dieType_) 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) + DUNGEON_ID_FIELD_NUMBER; + hash = (53 * hash) + getDungeonId(); + hash = (37 * hash) + DIE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dieType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq 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; + } + /** + * + * + *
+         * Name: MJCFJHMAMOL
+         * CmdId: 929
+         * 
+ * + * Protobuf type {@code DungeonPlayerDieReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:DungeonPlayerDieReq) + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass + .internal_static_DungeonPlayerDieReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass + .internal_static_DungeonPlayerDieReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq.class, + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq.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(); + dungeonId_ = 0; + + dieType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass + .internal_static_DungeonPlayerDieReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq build() { + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + buildPartial() { + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq result = + new emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq(this); + result.dungeonId_ = dungeonId_; + result.dieType_ = dieType_; + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq) { + return mergeFrom( + (emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq other) { + if (other + == emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + .getDefaultInstance()) return this; + if (other.getDungeonId() != 0) { + setDungeonId(other.getDungeonId()); + } + if (other.dieType_ != 0) { + setDieTypeValue(other.getDieTypeValue()); + } + 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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int dungeonId_; + /** + * uint32 dungeon_id = 9; + * + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + /** + * uint32 dungeon_id = 9; + * + * @param value The dungeonId to set. + * @return This builder for chaining. + */ + public Builder setDungeonId(int value) { + + dungeonId_ = value; + onChanged(); + return this; + } + /** + * uint32 dungeon_id = 9; + * + * @return This builder for chaining. + */ + public Builder clearDungeonId() { + + dungeonId_ = 0; + onChanged(); + return this; + } + + private int dieType_ = 0; + /** + * .PlayerDieType die_type = 13; + * + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override + public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType die_type = 13; + * + * @param value The enum numeric value on the wire for dieType to set. + * @return This builder for chaining. + */ + public Builder setDieTypeValue(int value) { + + dieType_ = value; + onChanged(); + return this; + } + /** + * .PlayerDieType die_type = 13; + * + * @return The dieType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); + return result == null + ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED + : result; + } + /** + * .PlayerDieType die_type = 13; + * + * @param value The dieType to set. + * @return This builder for chaining. + */ + public Builder setDieType( + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType value) { + if (value == null) { + throw new NullPointerException(); + } + + dieType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .PlayerDieType die_type = 13; + * + * @return This builder for chaining. + */ + public Builder clearDieType() { + + dieType_ = 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:DungeonPlayerDieReq) + } + + // @@protoc_insertion_point(class_scope:DungeonPlayerDieReq) + private static final emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq(); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DungeonPlayerDieReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DungeonPlayerDieReq(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.DungeonPlayerDieReqOuterClass.DungeonPlayerDieReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_DungeonPlayerDieReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DungeonPlayerDieReq_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\031DungeonPlayerDieReq.proto\032\023PlayerDieTy" + + "pe.proto\"K\n\023DungeonPlayerDieReq\022\022\n\ndunge" + + "on_id\030\t \001(\r\022 \n\010die_type\030\r \001(\0162\016.PlayerDi" + + "eTypeB\033\n\031emu.grasscutter.net.protob\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(), + }); + internal_static_DungeonPlayerDieReq_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_DungeonPlayerDieReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DungeonPlayerDieReq_descriptor, + new java.lang.String[] { + "DungeonId", "DieType", + }); + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieRspOuterClass.java new file mode 100644 index 000000000..a970c9a1f --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/DungeonPlayerDieRspOuterClass.java @@ -0,0 +1,593 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DungeonPlayerDieRsp.proto + +package emu.grasscutter.net.proto; + +public final class DungeonPlayerDieRspOuterClass { + private DungeonPlayerDieRspOuterClass() {} + + 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 DungeonPlayerDieRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:DungeonPlayerDieRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 retcode = 1; + * + * @return The retcode. + */ + int getRetcode(); + } + /** + * + * + *
+     * Name: PAANABIGFPI
+     * CmdId: 927
+     * 
+ * + * Protobuf type {@code DungeonPlayerDieRsp} + */ + public static final class DungeonPlayerDieRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:DungeonPlayerDieRsp) + DungeonPlayerDieRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use DungeonPlayerDieRsp.newBuilder() to construct. + private DungeonPlayerDieRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DungeonPlayerDieRsp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DungeonPlayerDieRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DungeonPlayerDieRsp( + 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: + { + retcode_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass + .internal_static_DungeonPlayerDieRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass + .internal_static_DungeonPlayerDieRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp.class, + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp.Builder + .class); + } + + public static final int RETCODE_FIELD_NUMBER = 1; + private int retcode_; + /** + * int32 retcode = 1; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retcode_ != 0) { + output.writeInt32(1, retcode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, retcode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp other = + (emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp) obj; + + if (getRetcode() != other.getRetcode()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + 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.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + 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.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + 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.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + 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.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + 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.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp 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; + } + /** + * + * + *
+         * Name: PAANABIGFPI
+         * CmdId: 927
+         * 
+ * + * Protobuf type {@code DungeonPlayerDieRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:DungeonPlayerDieRsp) + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass + .internal_static_DungeonPlayerDieRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass + .internal_static_DungeonPlayerDieRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp.class, + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + retcode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass + .internal_static_DungeonPlayerDieRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp build() { + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + buildPartial() { + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp result = + new emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp(this); + result.retcode_ = retcode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp other) { + if (other + == emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + .getDefaultInstance()) return this; + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retcode_; + /** + * int32 retcode = 1; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:DungeonPlayerDieRsp) + } + + // @@protoc_insertion_point(class_scope:DungeonPlayerDieRsp) + private static final emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp(); + } + + public static emu.grasscutter.net.proto.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DungeonPlayerDieRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DungeonPlayerDieRsp(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.DungeonPlayerDieRspOuterClass.DungeonPlayerDieRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_DungeonPlayerDieRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DungeonPlayerDieRsp_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\031DungeonPlayerDieRsp.proto\"&\n\023DungeonPl" + + "ayerDieRsp\022\017\n\007retcode\030\001 \001(\005B\033\n\031emu.grass" + + "cutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_DungeonPlayerDieRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_DungeonPlayerDieRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DungeonPlayerDieRsp_descriptor, + new java.lang.String[] { + "Retcode", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/EnterTrialAvatarActivityDungeonReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/EnterTrialAvatarActivityDungeonReqOuterClass.java new file mode 100644 index 000000000..2ea7cf3dc --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/EnterTrialAvatarActivityDungeonReqOuterClass.java @@ -0,0 +1,786 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterTrialAvatarActivityDungeonReq.proto + +package emu.grasscutter.net.proto; + +public final class EnterTrialAvatarActivityDungeonReqOuterClass { + private EnterTrialAvatarActivityDungeonReqOuterClass() {} + + 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 EnterTrialAvatarActivityDungeonReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:EnterTrialAvatarActivityDungeonReq) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 enter_point_id = 15; + * + * @return The enterPointId. + */ + int getEnterPointId(); + + /** + * uint32 activity_id = 7; + * + * @return The activityId. + */ + int getActivityId(); + + /** + * uint32 trial_avatar_index_id = 13; + * + * @return The trialAvatarIndexId. + */ + int getTrialAvatarIndexId(); + } + /** + * + * + *
+     * Name: BODNCMMJHFA
+     * CmdId: 2084
+     * 
+ * + * Protobuf type {@code EnterTrialAvatarActivityDungeonReq} + */ + public static final class EnterTrialAvatarActivityDungeonReq + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:EnterTrialAvatarActivityDungeonReq) + EnterTrialAvatarActivityDungeonReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnterTrialAvatarActivityDungeonReq.newBuilder() to construct. + private EnterTrialAvatarActivityDungeonReq( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnterTrialAvatarActivityDungeonReq() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnterTrialAvatarActivityDungeonReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EnterTrialAvatarActivityDungeonReq( + 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 56: + { + activityId_ = input.readUInt32(); + break; + } + case 104: + { + trialAvatarIndexId_ = input.readUInt32(); + break; + } + case 120: + { + enterPointId_ = 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.EnterTrialAvatarActivityDungeonReqOuterClass + .internal_static_EnterTrialAvatarActivityDungeonReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .internal_static_EnterTrialAvatarActivityDungeonReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq.class, + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq.Builder.class); + } + + public static final int ENTER_POINT_ID_FIELD_NUMBER = 15; + private int enterPointId_; + /** + * uint32 enter_point_id = 15; + * + * @return The enterPointId. + */ + @java.lang.Override + public int getEnterPointId() { + return enterPointId_; + } + + public static final int ACTIVITY_ID_FIELD_NUMBER = 7; + private int activityId_; + /** + * uint32 activity_id = 7; + * + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + + public static final int TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER = 13; + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 13; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + + 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 (activityId_ != 0) { + output.writeUInt32(7, activityId_); + } + if (trialAvatarIndexId_ != 0) { + output.writeUInt32(13, trialAvatarIndexId_); + } + if (enterPointId_ != 0) { + output.writeUInt32(15, enterPointId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (activityId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(7, activityId_); + } + if (trialAvatarIndexId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, trialAvatarIndexId_); + } + if (enterPointId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(15, enterPointId_); + } + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + other = + (emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq) + obj; + + if (getEnterPointId() != other.getEnterPointId()) return false; + if (getActivityId() != other.getActivityId()) return false; + if (getTrialAvatarIndexId() != other.getTrialAvatarIndexId()) 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) + ENTER_POINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnterPointId(); + hash = (37 * hash) + ACTIVITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getActivityId(); + hash = (37 * hash) + TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrialAvatarIndexId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + 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; + } + /** + * + * + *
+         * Name: BODNCMMJHFA
+         * CmdId: 2084
+         * 
+ * + * Protobuf type {@code EnterTrialAvatarActivityDungeonReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:EnterTrialAvatarActivityDungeonReq) + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .internal_static_EnterTrialAvatarActivityDungeonReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .internal_static_EnterTrialAvatarActivityDungeonReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq.class, + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass.EnterTrialAvatarActivityDungeonReq.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(); + enterPointId_ = 0; + + activityId_ = 0; + + trialAvatarIndexId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .internal_static_EnterTrialAvatarActivityDungeonReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + build() { + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + buildPartial() { + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + result = + new emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq(this); + result.enterPointId_ = enterPointId_; + result.activityId_ = activityId_; + result.trialAvatarIndexId_ = trialAvatarIndexId_; + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq) { + return mergeFrom( + (emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + other) { + if (other + == emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq.getDefaultInstance()) return this; + if (other.getEnterPointId() != 0) { + setEnterPointId(other.getEnterPointId()); + } + if (other.getActivityId() != 0) { + setActivityId(other.getActivityId()); + } + if (other.getTrialAvatarIndexId() != 0) { + setTrialAvatarIndexId(other.getTrialAvatarIndexId()); + } + 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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int enterPointId_; + /** + * uint32 enter_point_id = 15; + * + * @return The enterPointId. + */ + @java.lang.Override + public int getEnterPointId() { + return enterPointId_; + } + /** + * uint32 enter_point_id = 15; + * + * @param value The enterPointId to set. + * @return This builder for chaining. + */ + public Builder setEnterPointId(int value) { + + enterPointId_ = value; + onChanged(); + return this; + } + /** + * uint32 enter_point_id = 15; + * + * @return This builder for chaining. + */ + public Builder clearEnterPointId() { + + enterPointId_ = 0; + onChanged(); + return this; + } + + private int activityId_; + /** + * uint32 activity_id = 7; + * + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + /** + * uint32 activity_id = 7; + * + * @param value The activityId to set. + * @return This builder for chaining. + */ + public Builder setActivityId(int value) { + + activityId_ = value; + onChanged(); + return this; + } + /** + * uint32 activity_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearActivityId() { + + activityId_ = 0; + onChanged(); + return this; + } + + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 13; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + /** + * uint32 trial_avatar_index_id = 13; + * + * @param value The trialAvatarIndexId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarIndexId(int value) { + + trialAvatarIndexId_ = value; + onChanged(); + return this; + } + /** + * uint32 trial_avatar_index_id = 13; + * + * @return This builder for chaining. + */ + public Builder clearTrialAvatarIndexId() { + + trialAvatarIndexId_ = 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:EnterTrialAvatarActivityDungeonReq) + } + + // @@protoc_insertion_point(class_scope:EnterTrialAvatarActivityDungeonReq) + private static final emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq(); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnterTrialAvatarActivityDungeonReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnterTrialAvatarActivityDungeonReq(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.EnterTrialAvatarActivityDungeonReqOuterClass + .EnterTrialAvatarActivityDungeonReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_EnterTrialAvatarActivityDungeonReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_EnterTrialAvatarActivityDungeonReq_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(EnterTrialAvatarActivityDungeonReq.pro" + + "to\"p\n\"EnterTrialAvatarActivityDungeonReq" + + "\022\026\n\016enter_point_id\030\017 \001(\r\022\023\n\013activity_id\030" + + "\007 \001(\r\022\035\n\025trial_avatar_index_id\030\r \001(\rB\033\n\031" + + "emu.grasscutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_EnterTrialAvatarActivityDungeonReq_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_EnterTrialAvatarActivityDungeonReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EnterTrialAvatarActivityDungeonReq_descriptor, + new java.lang.String[] { + "EnterPointId", "ActivityId", "TrialAvatarIndexId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/EnterTrialAvatarActivityDungeonRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/EnterTrialAvatarActivityDungeonRspOuterClass.java new file mode 100644 index 000000000..295035638 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/EnterTrialAvatarActivityDungeonRspOuterClass.java @@ -0,0 +1,786 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterTrialAvatarActivityDungeonRsp.proto + +package emu.grasscutter.net.proto; + +public final class EnterTrialAvatarActivityDungeonRspOuterClass { + private EnterTrialAvatarActivityDungeonRspOuterClass() {} + + 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 EnterTrialAvatarActivityDungeonRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:EnterTrialAvatarActivityDungeonRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 retcode = 3; + * + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 activity_id = 12; + * + * @return The activityId. + */ + int getActivityId(); + + /** + * uint32 trial_avatar_index_id = 5; + * + * @return The trialAvatarIndexId. + */ + int getTrialAvatarIndexId(); + } + /** + * + * + *
+     * Name: PAFBDJNHHJB
+     * CmdId: 2154
+     * 
+ * + * Protobuf type {@code EnterTrialAvatarActivityDungeonRsp} + */ + public static final class EnterTrialAvatarActivityDungeonRsp + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:EnterTrialAvatarActivityDungeonRsp) + EnterTrialAvatarActivityDungeonRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnterTrialAvatarActivityDungeonRsp.newBuilder() to construct. + private EnterTrialAvatarActivityDungeonRsp( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnterTrialAvatarActivityDungeonRsp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnterTrialAvatarActivityDungeonRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EnterTrialAvatarActivityDungeonRsp( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + retcode_ = input.readInt32(); + break; + } + case 40: + { + trialAvatarIndexId_ = input.readUInt32(); + break; + } + case 96: + { + activityId_ = 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.EnterTrialAvatarActivityDungeonRspOuterClass + .internal_static_EnterTrialAvatarActivityDungeonRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .internal_static_EnterTrialAvatarActivityDungeonRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp.class, + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp.Builder.class); + } + + public static final int RETCODE_FIELD_NUMBER = 3; + private int retcode_; + /** + * int32 retcode = 3; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ACTIVITY_ID_FIELD_NUMBER = 12; + private int activityId_; + /** + * uint32 activity_id = 12; + * + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + + public static final int TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER = 5; + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 5; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retcode_ != 0) { + output.writeInt32(3, retcode_); + } + if (trialAvatarIndexId_ != 0) { + output.writeUInt32(5, trialAvatarIndexId_); + } + if (activityId_ != 0) { + output.writeUInt32(12, activityId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, retcode_); + } + if (trialAvatarIndexId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, trialAvatarIndexId_); + } + if (activityId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(12, activityId_); + } + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + other = + (emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp) + obj; + + if (getRetcode() != other.getRetcode()) return false; + if (getActivityId() != other.getActivityId()) return false; + if (getTrialAvatarIndexId() != other.getTrialAvatarIndexId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (37 * hash) + ACTIVITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getActivityId(); + hash = (37 * hash) + TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrialAvatarIndexId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + 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; + } + /** + * + * + *
+         * Name: PAFBDJNHHJB
+         * CmdId: 2154
+         * 
+ * + * Protobuf type {@code EnterTrialAvatarActivityDungeonRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:EnterTrialAvatarActivityDungeonRsp) + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .internal_static_EnterTrialAvatarActivityDungeonRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .internal_static_EnterTrialAvatarActivityDungeonRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp.class, + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass.EnterTrialAvatarActivityDungeonRsp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + retcode_ = 0; + + activityId_ = 0; + + trialAvatarIndexId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .internal_static_EnterTrialAvatarActivityDungeonRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + build() { + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + buildPartial() { + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + result = + new emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp(this); + result.retcode_ = retcode_; + result.activityId_ = activityId_; + result.trialAvatarIndexId_ = trialAvatarIndexId_; + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + other) { + if (other + == emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp.getDefaultInstance()) return this; + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + if (other.getActivityId() != 0) { + setActivityId(other.getActivityId()); + } + if (other.getTrialAvatarIndexId() != 0) { + setTrialAvatarIndexId(other.getTrialAvatarIndexId()); + } + 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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retcode_; + /** + * int32 retcode = 3; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 3; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 3; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int activityId_; + /** + * uint32 activity_id = 12; + * + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + /** + * uint32 activity_id = 12; + * + * @param value The activityId to set. + * @return This builder for chaining. + */ + public Builder setActivityId(int value) { + + activityId_ = value; + onChanged(); + return this; + } + /** + * uint32 activity_id = 12; + * + * @return This builder for chaining. + */ + public Builder clearActivityId() { + + activityId_ = 0; + onChanged(); + return this; + } + + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 5; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + /** + * uint32 trial_avatar_index_id = 5; + * + * @param value The trialAvatarIndexId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarIndexId(int value) { + + trialAvatarIndexId_ = value; + onChanged(); + return this; + } + /** + * uint32 trial_avatar_index_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearTrialAvatarIndexId() { + + trialAvatarIndexId_ = 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:EnterTrialAvatarActivityDungeonRsp) + } + + // @@protoc_insertion_point(class_scope:EnterTrialAvatarActivityDungeonRsp) + private static final emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp(); + } + + public static emu.grasscutter.net.proto.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnterTrialAvatarActivityDungeonRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnterTrialAvatarActivityDungeonRsp(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.EnterTrialAvatarActivityDungeonRspOuterClass + .EnterTrialAvatarActivityDungeonRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_EnterTrialAvatarActivityDungeonRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_EnterTrialAvatarActivityDungeonRsp_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(EnterTrialAvatarActivityDungeonRsp.pro" + + "to\"i\n\"EnterTrialAvatarActivityDungeonRsp" + + "\022\017\n\007retcode\030\003 \001(\005\022\023\n\013activity_id\030\014 \001(\r\022\035" + + "\n\025trial_avatar_index_id\030\005 \001(\rB\033\n\031emu.gra" + + "sscutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_EnterTrialAvatarActivityDungeonRsp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_EnterTrialAvatarActivityDungeonRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EnterTrialAvatarActivityDungeonRsp_descriptor, + new java.lang.String[] { + "Retcode", "ActivityId", "TrialAvatarIndexId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ExecuteGadgetLuaReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ExecuteGadgetLuaReqOuterClass.java new file mode 100644 index 000000000..31c6716c4 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ExecuteGadgetLuaReqOuterClass.java @@ -0,0 +1,814 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExecuteGadgetLuaReq.proto + +package emu.grasscutter.net.proto; + +public final class ExecuteGadgetLuaReqOuterClass { + private ExecuteGadgetLuaReqOuterClass() {} + + 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 ExecuteGadgetLuaReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ExecuteGadgetLuaReq) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 param1 = 14; + * + * @return The param1. + */ + int getParam1(); + + /** + * int32 param3 = 5; + * + * @return The param3. + */ + int getParam3(); + + /** + * int32 param2 = 4; + * + * @return The param2. + */ + int getParam2(); + + /** + * uint32 source_entity_id = 9; + * + * @return The sourceEntityId. + */ + int getSourceEntityId(); + } + /** + * + * + *
+     * Name: CPGCKPFMILP
+     * CmdId: 217
+     * 
+ * + * Protobuf type {@code ExecuteGadgetLuaReq} + */ + public static final class ExecuteGadgetLuaReq extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ExecuteGadgetLuaReq) + ExecuteGadgetLuaReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteGadgetLuaReq.newBuilder() to construct. + private ExecuteGadgetLuaReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteGadgetLuaReq() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecuteGadgetLuaReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExecuteGadgetLuaReq( + 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: + { + param2_ = input.readInt32(); + break; + } + case 40: + { + param3_ = input.readInt32(); + break; + } + case 72: + { + sourceEntityId_ = input.readUInt32(); + break; + } + case 112: + { + param1_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass + .internal_static_ExecuteGadgetLuaReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass + .internal_static_ExecuteGadgetLuaReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.class, + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.Builder + .class); + } + + public static final int PARAM1_FIELD_NUMBER = 14; + private int param1_; + /** + * int32 param1 = 14; + * + * @return The param1. + */ + @java.lang.Override + public int getParam1() { + return param1_; + } + + public static final int PARAM3_FIELD_NUMBER = 5; + private int param3_; + /** + * int32 param3 = 5; + * + * @return The param3. + */ + @java.lang.Override + public int getParam3() { + return param3_; + } + + public static final int PARAM2_FIELD_NUMBER = 4; + private int param2_; + /** + * int32 param2 = 4; + * + * @return The param2. + */ + @java.lang.Override + public int getParam2() { + return param2_; + } + + public static final int SOURCE_ENTITY_ID_FIELD_NUMBER = 9; + private int sourceEntityId_; + /** + * uint32 source_entity_id = 9; + * + * @return The sourceEntityId. + */ + @java.lang.Override + public int getSourceEntityId() { + return sourceEntityId_; + } + + 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 (param2_ != 0) { + output.writeInt32(4, param2_); + } + if (param3_ != 0) { + output.writeInt32(5, param3_); + } + if (sourceEntityId_ != 0) { + output.writeUInt32(9, sourceEntityId_); + } + if (param1_ != 0) { + output.writeInt32(14, param1_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (param2_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, param2_); + } + if (param3_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, param3_); + } + if (sourceEntityId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(9, sourceEntityId_); + } + if (param1_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, param1_); + } + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq other = + (emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) obj; + + if (getParam1() != other.getParam1()) return false; + if (getParam3() != other.getParam3()) return false; + if (getParam2() != other.getParam2()) return false; + if (getSourceEntityId() != other.getSourceEntityId()) 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) + PARAM1_FIELD_NUMBER; + hash = (53 * hash) + getParam1(); + hash = (37 * hash) + PARAM3_FIELD_NUMBER; + hash = (53 * hash) + getParam3(); + hash = (37 * hash) + PARAM2_FIELD_NUMBER; + hash = (53 * hash) + getParam2(); + hash = (37 * hash) + SOURCE_ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSourceEntityId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq 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; + } + /** + * + * + *
+         * Name: CPGCKPFMILP
+         * CmdId: 217
+         * 
+ * + * Protobuf type {@code ExecuteGadgetLuaReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ExecuteGadgetLuaReq) + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass + .internal_static_ExecuteGadgetLuaReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass + .internal_static_ExecuteGadgetLuaReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.class, + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.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(); + param1_ = 0; + + param3_ = 0; + + param2_ = 0; + + sourceEntityId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass + .internal_static_ExecuteGadgetLuaReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq build() { + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + buildPartial() { + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq result = + new emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq(this); + result.param1_ = param1_; + result.param3_ = param3_; + result.param2_ = param2_; + result.sourceEntityId_ = sourceEntityId_; + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) { + return mergeFrom( + (emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq other) { + if (other + == emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + .getDefaultInstance()) return this; + if (other.getParam1() != 0) { + setParam1(other.getParam1()); + } + if (other.getParam3() != 0) { + setParam3(other.getParam3()); + } + if (other.getParam2() != 0) { + setParam2(other.getParam2()); + } + if (other.getSourceEntityId() != 0) { + setSourceEntityId(other.getSourceEntityId()); + } + 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int param1_; + /** + * int32 param1 = 14; + * + * @return The param1. + */ + @java.lang.Override + public int getParam1() { + return param1_; + } + /** + * int32 param1 = 14; + * + * @param value The param1 to set. + * @return This builder for chaining. + */ + public Builder setParam1(int value) { + + param1_ = value; + onChanged(); + return this; + } + /** + * int32 param1 = 14; + * + * @return This builder for chaining. + */ + public Builder clearParam1() { + + param1_ = 0; + onChanged(); + return this; + } + + private int param3_; + /** + * int32 param3 = 5; + * + * @return The param3. + */ + @java.lang.Override + public int getParam3() { + return param3_; + } + /** + * int32 param3 = 5; + * + * @param value The param3 to set. + * @return This builder for chaining. + */ + public Builder setParam3(int value) { + + param3_ = value; + onChanged(); + return this; + } + /** + * int32 param3 = 5; + * + * @return This builder for chaining. + */ + public Builder clearParam3() { + + param3_ = 0; + onChanged(); + return this; + } + + private int param2_; + /** + * int32 param2 = 4; + * + * @return The param2. + */ + @java.lang.Override + public int getParam2() { + return param2_; + } + /** + * int32 param2 = 4; + * + * @param value The param2 to set. + * @return This builder for chaining. + */ + public Builder setParam2(int value) { + + param2_ = value; + onChanged(); + return this; + } + /** + * int32 param2 = 4; + * + * @return This builder for chaining. + */ + public Builder clearParam2() { + + param2_ = 0; + onChanged(); + return this; + } + + private int sourceEntityId_; + /** + * uint32 source_entity_id = 9; + * + * @return The sourceEntityId. + */ + @java.lang.Override + public int getSourceEntityId() { + return sourceEntityId_; + } + /** + * uint32 source_entity_id = 9; + * + * @param value The sourceEntityId to set. + * @return This builder for chaining. + */ + public Builder setSourceEntityId(int value) { + + sourceEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 source_entity_id = 9; + * + * @return This builder for chaining. + */ + public Builder clearSourceEntityId() { + + sourceEntityId_ = 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:ExecuteGadgetLuaReq) + } + + // @@protoc_insertion_point(class_scope:ExecuteGadgetLuaReq) + private static final emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq(); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteGadgetLuaReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecuteGadgetLuaReq(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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ExecuteGadgetLuaReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ExecuteGadgetLuaReq_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\031ExecuteGadgetLuaReq.proto\"_\n\023ExecuteGa" + + "dgetLuaReq\022\016\n\006param1\030\016 \001(\005\022\016\n\006param3\030\005 \001" + + "(\005\022\016\n\006param2\030\004 \001(\005\022\030\n\020source_entity_id\030\t" + + " \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ExecuteGadgetLuaReq_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ExecuteGadgetLuaReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ExecuteGadgetLuaReq_descriptor, + new java.lang.String[] { + "Param1", "Param3", "Param2", "SourceEntityId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ExecuteGadgetLuaRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ExecuteGadgetLuaRspOuterClass.java new file mode 100644 index 000000000..721365dc5 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ExecuteGadgetLuaRspOuterClass.java @@ -0,0 +1,593 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExecuteGadgetLuaRsp.proto + +package emu.grasscutter.net.proto; + +public final class ExecuteGadgetLuaRspOuterClass { + private ExecuteGadgetLuaRspOuterClass() {} + + 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 ExecuteGadgetLuaRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ExecuteGadgetLuaRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 retcode = 7; + * + * @return The retcode. + */ + int getRetcode(); + } + /** + * + * + *
+     * Name: HAJKCLEOHJL
+     * CmdId: 224
+     * 
+ * + * Protobuf type {@code ExecuteGadgetLuaRsp} + */ + public static final class ExecuteGadgetLuaRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ExecuteGadgetLuaRsp) + ExecuteGadgetLuaRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteGadgetLuaRsp.newBuilder() to construct. + private ExecuteGadgetLuaRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteGadgetLuaRsp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecuteGadgetLuaRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExecuteGadgetLuaRsp( + 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 56: + { + retcode_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass + .internal_static_ExecuteGadgetLuaRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass + .internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.class, + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.Builder + .class); + } + + public static final int RETCODE_FIELD_NUMBER = 7; + private int retcode_; + /** + * int32 retcode = 7; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retcode_ != 0) { + output.writeInt32(7, retcode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, retcode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp other = + (emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) obj; + + if (getRetcode() != other.getRetcode()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp 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; + } + /** + * + * + *
+         * Name: HAJKCLEOHJL
+         * CmdId: 224
+         * 
+ * + * Protobuf type {@code ExecuteGadgetLuaRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ExecuteGadgetLuaRsp) + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass + .internal_static_ExecuteGadgetLuaRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass + .internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.class, + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + retcode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass + .internal_static_ExecuteGadgetLuaRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp build() { + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + buildPartial() { + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp result = + new emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp(this); + result.retcode_ = retcode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp other) { + if (other + == emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + .getDefaultInstance()) return this; + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retcode_; + /** + * int32 retcode = 7; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 7; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 7; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ExecuteGadgetLuaRsp) + } + + // @@protoc_insertion_point(class_scope:ExecuteGadgetLuaRsp) + private static final emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp(); + } + + public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteGadgetLuaRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecuteGadgetLuaRsp(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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ExecuteGadgetLuaRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ExecuteGadgetLuaRsp_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\031ExecuteGadgetLuaRsp.proto\"&\n\023ExecuteGa" + + "dgetLuaRsp\022\017\n\007retcode\030\007 \001(\005B\033\n\031emu.grass" + + "cutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ExecuteGadgetLuaRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ExecuteGadgetLuaRsp_descriptor, + new java.lang.String[] { + "Retcode", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/GetUgcBriefInfoReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/GetUgcBriefInfoReqOuterClass.java new file mode 100644 index 000000000..9f7b6b332 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/GetUgcBriefInfoReqOuterClass.java @@ -0,0 +1,725 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetUgcBriefInfoReq.proto + +package emu.grasscutter.net.proto; + +public final class GetUgcBriefInfoReqOuterClass { + private GetUgcBriefInfoReqOuterClass() {} + + 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 GetUgcBriefInfoReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:GetUgcBriefInfoReq) + com.google.protobuf.MessageOrBuilder { + + /** + * .UgcType ugc_type = 1; + * + * @return The enum numeric value on the wire for ugcType. + */ + int getUgcTypeValue(); + /** + * .UgcType ugc_type = 1; + * + * @return The ugcType. + */ + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType(); + + /** + * uint64 ugc_guid = 12; + * + * @return The ugcGuid. + */ + long getUgcGuid(); + } + /** + * + * + *
+     * Name: DPBNMIFDCJH
+     * CmdId: 6309
+     * 
+ * + * Protobuf type {@code GetUgcBriefInfoReq} + */ + public static final class GetUgcBriefInfoReq extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:GetUgcBriefInfoReq) + GetUgcBriefInfoReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetUgcBriefInfoReq.newBuilder() to construct. + private GetUgcBriefInfoReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetUgcBriefInfoReq() { + ugcType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetUgcBriefInfoReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetUgcBriefInfoReq( + 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: + { + int rawValue = input.readEnum(); + + ugcType_ = rawValue; + break; + } + case 96: + { + ugcGuid_ = input.readUInt64(); + 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.GetUgcBriefInfoReqOuterClass + .internal_static_GetUgcBriefInfoReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass + .internal_static_GetUgcBriefInfoReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq.class, + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq.Builder + .class); + } + + public static final int UGC_TYPE_FIELD_NUMBER = 1; + private int ugcType_; + /** + * .UgcType ugc_type = 1; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 1; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + + public static final int UGC_GUID_FIELD_NUMBER = 12; + private long ugcGuid_; + /** + * uint64 ugc_guid = 12; + * + * @return The ugcGuid. + */ + @java.lang.Override + public long getUgcGuid() { + return ugcGuid_; + } + + 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 (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + output.writeEnum(1, ugcType_); + } + if (ugcGuid_ != 0L) { + output.writeUInt64(12, ugcGuid_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, ugcType_); + } + if (ugcGuid_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(12, ugcGuid_); + } + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq other = + (emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq) obj; + + if (ugcType_ != other.ugcType_) return false; + if (getUgcGuid() != other.getUgcGuid()) 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) + UGC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ugcType_; + hash = (37 * hash) + UGC_GUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUgcGuid()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq 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; + } + /** + * + * + *
+         * Name: DPBNMIFDCJH
+         * CmdId: 6309
+         * 
+ * + * Protobuf type {@code GetUgcBriefInfoReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:GetUgcBriefInfoReq) + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass + .internal_static_GetUgcBriefInfoReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass + .internal_static_GetUgcBriefInfoReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq.class, + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq.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(); + ugcType_ = 0; + + ugcGuid_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass + .internal_static_GetUgcBriefInfoReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq build() { + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + buildPartial() { + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq result = + new emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq(this); + result.ugcType_ = ugcType_; + result.ugcGuid_ = ugcGuid_; + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq) { + return mergeFrom( + (emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq other) { + if (other + == emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + .getDefaultInstance()) return this; + if (other.ugcType_ != 0) { + setUgcTypeValue(other.getUgcTypeValue()); + } + if (other.getUgcGuid() != 0L) { + setUgcGuid(other.getUgcGuid()); + } + 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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int ugcType_ = 0; + /** + * .UgcType ugc_type = 1; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 1; + * + * @param value The enum numeric value on the wire for ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcTypeValue(int value) { + + ugcType_ = value; + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 1; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + /** + * .UgcType ugc_type = 1; + * + * @param value The ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) { + if (value == null) { + throw new NullPointerException(); + } + + ugcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearUgcType() { + + ugcType_ = 0; + onChanged(); + return this; + } + + private long ugcGuid_; + /** + * uint64 ugc_guid = 12; + * + * @return The ugcGuid. + */ + @java.lang.Override + public long getUgcGuid() { + return ugcGuid_; + } + /** + * uint64 ugc_guid = 12; + * + * @param value The ugcGuid to set. + * @return This builder for chaining. + */ + public Builder setUgcGuid(long value) { + + ugcGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 ugc_guid = 12; + * + * @return This builder for chaining. + */ + public Builder clearUgcGuid() { + + ugcGuid_ = 0L; + 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:GetUgcBriefInfoReq) + } + + // @@protoc_insertion_point(class_scope:GetUgcBriefInfoReq) + private static final emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq(); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUgcBriefInfoReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetUgcBriefInfoReq(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.GetUgcBriefInfoReqOuterClass.GetUgcBriefInfoReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_GetUgcBriefInfoReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_GetUgcBriefInfoReq_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\030GetUgcBriefInfoReq.proto\032\rUgcType.prot" + + "o\"B\n\022GetUgcBriefInfoReq\022\032\n\010ugc_type\030\001 \001(" + + "\0162\010.UgcType\022\020\n\010ugc_guid\030\014 \001(\004B\033\n\031emu.gra" + + "sscutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(), + }); + internal_static_GetUgcBriefInfoReq_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_GetUgcBriefInfoReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_GetUgcBriefInfoReq_descriptor, + new java.lang.String[] { + "UgcType", "UgcGuid", + }); + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/GetUgcBriefInfoRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/GetUgcBriefInfoRspOuterClass.java new file mode 100644 index 000000000..48d42ef59 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/GetUgcBriefInfoRspOuterClass.java @@ -0,0 +1,1141 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetUgcBriefInfoRsp.proto + +package emu.grasscutter.net.proto; + +public final class GetUgcBriefInfoRspOuterClass { + private GetUgcBriefInfoRspOuterClass() {} + + 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 GetUgcBriefInfoRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:GetUgcBriefInfoRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * .UgcType ugc_type = 14; + * + * @return The enum numeric value on the wire for ugcType. + */ + int getUgcTypeValue(); + /** + * .UgcType ugc_type = 14; + * + * @return The ugcType. + */ + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType(); + + /** + * int32 retcode = 4; + * + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 ugc_guid = 7; + * + * @return The ugcGuid. + */ + long getUgcGuid(); + + /** + * .UgcMusicBriefInfo music_brief_info = 8; + * + * @return Whether the musicBriefInfo field is set. + */ + boolean hasMusicBriefInfo(); + /** + * .UgcMusicBriefInfo music_brief_info = 8; + * + * @return The musicBriefInfo. + */ + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo getMusicBriefInfo(); + /** .UgcMusicBriefInfo music_brief_info = 8; */ + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder + getMusicBriefInfoOrBuilder(); + + public emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp.BriefCase + getBriefCase(); + } + /** + * + * + *
+     * Name: HCHEBMEEOJO
+     * CmdId: 6346
+     * 
+ * + * Protobuf type {@code GetUgcBriefInfoRsp} + */ + public static final class GetUgcBriefInfoRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:GetUgcBriefInfoRsp) + GetUgcBriefInfoRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetUgcBriefInfoRsp.newBuilder() to construct. + private GetUgcBriefInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetUgcBriefInfoRsp() { + ugcType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetUgcBriefInfoRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetUgcBriefInfoRsp( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 32: + { + retcode_ = input.readInt32(); + break; + } + case 56: + { + ugcGuid_ = input.readUInt64(); + break; + } + case 66: + { + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder + subBuilder = null; + if (briefCase_ == 8) { + subBuilder = + ((emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) + brief_) + .toBuilder(); + } + brief_ = + input.readMessage( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) + brief_); + brief_ = subBuilder.buildPartial(); + } + briefCase_ = 8; + break; + } + case 112: + { + int rawValue = input.readEnum(); + + ugcType_ = rawValue; + 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.GetUgcBriefInfoRspOuterClass + .internal_static_GetUgcBriefInfoRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass + .internal_static_GetUgcBriefInfoRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp.class, + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp.Builder + .class); + } + + private int briefCase_ = 0; + private java.lang.Object brief_; + + public enum BriefCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MUSIC_BRIEF_INFO(8), + BRIEF_NOT_SET(0); + private final int value; + + private BriefCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BriefCase valueOf(int value) { + return forNumber(value); + } + + public static BriefCase forNumber(int value) { + switch (value) { + case 8: + return MUSIC_BRIEF_INFO; + case 0: + return BRIEF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BriefCase getBriefCase() { + return BriefCase.forNumber(briefCase_); + } + + public static final int UGC_TYPE_FIELD_NUMBER = 14; + private int ugcType_; + /** + * .UgcType ugc_type = 14; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 14; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + + public static final int RETCODE_FIELD_NUMBER = 4; + private int retcode_; + /** + * int32 retcode = 4; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int UGC_GUID_FIELD_NUMBER = 7; + private long ugcGuid_; + /** + * uint64 ugc_guid = 7; + * + * @return The ugcGuid. + */ + @java.lang.Override + public long getUgcGuid() { + return ugcGuid_; + } + + public static final int MUSIC_BRIEF_INFO_FIELD_NUMBER = 8; + /** + * .UgcMusicBriefInfo music_brief_info = 8; + * + * @return Whether the musicBriefInfo field is set. + */ + @java.lang.Override + public boolean hasMusicBriefInfo() { + return briefCase_ == 8; + } + /** + * .UgcMusicBriefInfo music_brief_info = 8; + * + * @return The musicBriefInfo. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + getMusicBriefInfo() { + if (briefCase_ == 8) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder + getMusicBriefInfoOrBuilder() { + if (briefCase_ == 8) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retcode_ != 0) { + output.writeInt32(4, retcode_); + } + if (ugcGuid_ != 0L) { + output.writeUInt64(7, ugcGuid_); + } + if (briefCase_ == 8) { + output.writeMessage( + 8, (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_); + } + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + output.writeEnum(14, ugcType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, retcode_); + } + if (ugcGuid_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, ugcGuid_); + } + if (briefCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_); + } + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, ugcType_); + } + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp other = + (emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp) obj; + + if (ugcType_ != other.ugcType_) return false; + if (getRetcode() != other.getRetcode()) return false; + if (getUgcGuid() != other.getUgcGuid()) return false; + if (!getBriefCase().equals(other.getBriefCase())) return false; + switch (briefCase_) { + case 8: + if (!getMusicBriefInfo().equals(other.getMusicBriefInfo())) return false; + break; + case 0: + default: + } + 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) + UGC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ugcType_; + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (37 * hash) + UGC_GUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUgcGuid()); + switch (briefCase_) { + case 8: + hash = (37 * hash) + MUSIC_BRIEF_INFO_FIELD_NUMBER; + hash = (53 * hash) + getMusicBriefInfo().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp 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; + } + /** + * + * + *
+         * Name: HCHEBMEEOJO
+         * CmdId: 6346
+         * 
+ * + * Protobuf type {@code GetUgcBriefInfoRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:GetUgcBriefInfoRsp) + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass + .internal_static_GetUgcBriefInfoRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass + .internal_static_GetUgcBriefInfoRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp.class, + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp.Builder + .class); + } + + // Construct using + // emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp.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(); + ugcType_ = 0; + + retcode_ = 0; + + ugcGuid_ = 0L; + + briefCase_ = 0; + brief_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass + .internal_static_GetUgcBriefInfoRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp build() { + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + buildPartial() { + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp result = + new emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp(this); + result.ugcType_ = ugcType_; + result.retcode_ = retcode_; + result.ugcGuid_ = ugcGuid_; + if (briefCase_ == 8) { + if (musicBriefInfoBuilder_ == null) { + result.brief_ = brief_; + } else { + result.brief_ = musicBriefInfoBuilder_.build(); + } + } + result.briefCase_ = briefCase_; + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp other) { + if (other + == emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + .getDefaultInstance()) return this; + if (other.ugcType_ != 0) { + setUgcTypeValue(other.getUgcTypeValue()); + } + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + if (other.getUgcGuid() != 0L) { + setUgcGuid(other.getUgcGuid()); + } + switch (other.getBriefCase()) { + case MUSIC_BRIEF_INFO: + { + mergeMusicBriefInfo(other.getMusicBriefInfo()); + break; + } + case BRIEF_NOT_SET: + { + break; + } + } + 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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int briefCase_ = 0; + private java.lang.Object brief_; + + public BriefCase getBriefCase() { + return BriefCase.forNumber(briefCase_); + } + + public Builder clearBrief() { + briefCase_ = 0; + brief_ = null; + onChanged(); + return this; + } + + private int ugcType_ = 0; + /** + * .UgcType ugc_type = 14; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 14; + * + * @param value The enum numeric value on the wire for ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcTypeValue(int value) { + + ugcType_ = value; + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 14; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + /** + * .UgcType ugc_type = 14; + * + * @param value The ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) { + if (value == null) { + throw new NullPointerException(); + } + + ugcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 14; + * + * @return This builder for chaining. + */ + public Builder clearUgcType() { + + ugcType_ = 0; + onChanged(); + return this; + } + + private int retcode_; + /** + * int32 retcode = 4; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 4; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 4; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long ugcGuid_; + /** + * uint64 ugc_guid = 7; + * + * @return The ugcGuid. + */ + @java.lang.Override + public long getUgcGuid() { + return ugcGuid_; + } + /** + * uint64 ugc_guid = 7; + * + * @param value The ugcGuid to set. + * @return This builder for chaining. + */ + public Builder setUgcGuid(long value) { + + ugcGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 ugc_guid = 7; + * + * @return This builder for chaining. + */ + public Builder clearUgcGuid() { + + ugcGuid_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder> + musicBriefInfoBuilder_; + /** + * .UgcMusicBriefInfo music_brief_info = 8; + * + * @return Whether the musicBriefInfo field is set. + */ + @java.lang.Override + public boolean hasMusicBriefInfo() { + return briefCase_ == 8; + } + /** + * .UgcMusicBriefInfo music_brief_info = 8; + * + * @return The musicBriefInfo. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + getMusicBriefInfo() { + if (musicBriefInfoBuilder_ == null) { + if (briefCase_ == 8) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } else { + if (briefCase_ == 8) { + return musicBriefInfoBuilder_.getMessage(); + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + public Builder setMusicBriefInfo( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo value) { + if (musicBriefInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + brief_ = value; + onChanged(); + } else { + musicBriefInfoBuilder_.setMessage(value); + } + briefCase_ = 8; + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + public Builder setMusicBriefInfo( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder + builderForValue) { + if (musicBriefInfoBuilder_ == null) { + brief_ = builderForValue.build(); + onChanged(); + } else { + musicBriefInfoBuilder_.setMessage(builderForValue.build()); + } + briefCase_ = 8; + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + public Builder mergeMusicBriefInfo( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo value) { + if (musicBriefInfoBuilder_ == null) { + if (briefCase_ == 8 + && brief_ + != emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance()) { + brief_ = + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.newBuilder( + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) + brief_) + .mergeFrom(value) + .buildPartial(); + } else { + brief_ = value; + } + onChanged(); + } else { + if (briefCase_ == 8) { + musicBriefInfoBuilder_.mergeFrom(value); + } + musicBriefInfoBuilder_.setMessage(value); + } + briefCase_ = 8; + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + public Builder clearMusicBriefInfo() { + if (musicBriefInfoBuilder_ == null) { + if (briefCase_ == 8) { + briefCase_ = 0; + brief_ = null; + onChanged(); + } + } else { + if (briefCase_ == 8) { + briefCase_ = 0; + brief_ = null; + } + musicBriefInfoBuilder_.clear(); + } + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder + getMusicBriefInfoBuilder() { + return getMusicBriefInfoFieldBuilder().getBuilder(); + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder + getMusicBriefInfoOrBuilder() { + if ((briefCase_ == 8) && (musicBriefInfoBuilder_ != null)) { + return musicBriefInfoBuilder_.getMessageOrBuilder(); + } else { + if (briefCase_ == 8) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + } + /** .UgcMusicBriefInfo music_brief_info = 8; */ + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder> + getMusicBriefInfoFieldBuilder() { + if (musicBriefInfoBuilder_ == null) { + if (!(briefCase_ == 8)) { + brief_ = + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + musicBriefInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder>( + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_, + getParentForChildren(), + isClean()); + brief_ = null; + } + briefCase_ = 8; + onChanged(); + ; + return musicBriefInfoBuilder_; + } + + @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:GetUgcBriefInfoRsp) + } + + // @@protoc_insertion_point(class_scope:GetUgcBriefInfoRsp) + private static final emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp(); + } + + public static emu.grasscutter.net.proto.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUgcBriefInfoRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetUgcBriefInfoRsp(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.GetUgcBriefInfoRspOuterClass.GetUgcBriefInfoRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_GetUgcBriefInfoRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_GetUgcBriefInfoRsp_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\030GetUgcBriefInfoRsp.proto\032\027UgcMusicBrie" + + "fInfo.proto\032\rUgcType.proto\"\214\001\n\022GetUgcBri" + + "efInfoRsp\022\032\n\010ugc_type\030\016 \001(\0162\010.UgcType\022\017\n" + + "\007retcode\030\004 \001(\005\022\020\n\010ugc_guid\030\007 \001(\004\022.\n\020musi" + + "c_brief_info\030\010 \001(\0132\022.UgcMusicBriefInfoH\000" + + "B\007\n\005briefB\033\n\031emu.grasscutter.net.protob\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.getDescriptor(), + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(), + }); + internal_static_GetUgcBriefInfoRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_GetUgcBriefInfoRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_GetUgcBriefInfoRsp_descriptor, + new java.lang.String[] { + "UgcType", "Retcode", "UgcGuid", "MusicBriefInfo", "Brief", + }); + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.getDescriptor(); + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/OfficialCustomDungeonOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/OfficialCustomDungeonOuterClass.java new file mode 100644 index 000000000..44dd7cbc3 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/OfficialCustomDungeonOuterClass.java @@ -0,0 +1,671 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OfficialCustomDungeon.proto + +package emu.grasscutter.net.proto; + +public final class OfficialCustomDungeonOuterClass { + private OfficialCustomDungeonOuterClass() {} + + 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 OfficialCustomDungeonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:OfficialCustomDungeon) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 dungeon_id = 11; + * + * @return The dungeonId. + */ + int getDungeonId(); + + /** + * uint32 win_times = 3; + * + * @return The winTimes. + */ + int getWinTimes(); + } + /** + * + * + *
+     * 3.2
+     * 
+ * + * Protobuf type {@code OfficialCustomDungeon} + */ + public static final class OfficialCustomDungeon extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:OfficialCustomDungeon) + OfficialCustomDungeonOrBuilder { + private static final long serialVersionUID = 0L; + // Use OfficialCustomDungeon.newBuilder() to construct. + private OfficialCustomDungeon(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OfficialCustomDungeon() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OfficialCustomDungeon(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OfficialCustomDungeon( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + winTimes_ = input.readUInt32(); + break; + } + case 88: + { + dungeonId_ = 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.OfficialCustomDungeonOuterClass + .internal_static_OfficialCustomDungeon_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .internal_static_OfficialCustomDungeon_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.class, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .Builder.class); + } + + public static final int DUNGEON_ID_FIELD_NUMBER = 11; + private int dungeonId_; + /** + * uint32 dungeon_id = 11; + * + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + + public static final int WIN_TIMES_FIELD_NUMBER = 3; + private int winTimes_; + /** + * uint32 win_times = 3; + * + * @return The winTimes. + */ + @java.lang.Override + public int getWinTimes() { + return winTimes_; + } + + 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 (winTimes_ != 0) { + output.writeUInt32(3, winTimes_); + } + if (dungeonId_ != 0) { + output.writeUInt32(11, dungeonId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (winTimes_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, winTimes_); + } + if (dungeonId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(11, dungeonId_); + } + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon other = + (emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon) obj; + + if (getDungeonId() != other.getDungeonId()) return false; + if (getWinTimes() != other.getWinTimes()) 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) + DUNGEON_ID_FIELD_NUMBER; + hash = (53 * hash) + getDungeonId(); + hash = (37 * hash) + WIN_TIMES_FIELD_NUMBER; + hash = (53 * hash) + getWinTimes(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon 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; + } + /** + * + * + *
+         * 3.2
+         * 
+ * + * Protobuf type {@code OfficialCustomDungeon} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:OfficialCustomDungeon) + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .internal_static_OfficialCustomDungeon_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .internal_static_OfficialCustomDungeon_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .class, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.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(); + dungeonId_ = 0; + + winTimes_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .internal_static_OfficialCustomDungeon_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + build() { + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + buildPartial() { + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon result = + new emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon( + this); + result.dungeonId_ = dungeonId_; + result.winTimes_ = winTimes_; + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon) { + return mergeFrom( + (emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon other) { + if (other + == emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .getDefaultInstance()) return this; + if (other.getDungeonId() != 0) { + setDungeonId(other.getDungeonId()); + } + if (other.getWinTimes() != 0) { + setWinTimes(other.getWinTimes()); + } + 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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int dungeonId_; + /** + * uint32 dungeon_id = 11; + * + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + /** + * uint32 dungeon_id = 11; + * + * @param value The dungeonId to set. + * @return This builder for chaining. + */ + public Builder setDungeonId(int value) { + + dungeonId_ = value; + onChanged(); + return this; + } + /** + * uint32 dungeon_id = 11; + * + * @return This builder for chaining. + */ + public Builder clearDungeonId() { + + dungeonId_ = 0; + onChanged(); + return this; + } + + private int winTimes_; + /** + * uint32 win_times = 3; + * + * @return The winTimes. + */ + @java.lang.Override + public int getWinTimes() { + return winTimes_; + } + /** + * uint32 win_times = 3; + * + * @param value The winTimes to set. + * @return This builder for chaining. + */ + public Builder setWinTimes(int value) { + + winTimes_ = value; + onChanged(); + return this; + } + /** + * uint32 win_times = 3; + * + * @return This builder for chaining. + */ + public Builder clearWinTimes() { + + winTimes_ = 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:OfficialCustomDungeon) + } + + // @@protoc_insertion_point(class_scope:OfficialCustomDungeon) + private static final emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeon + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon(); + } + + public static emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OfficialCustomDungeon parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OfficialCustomDungeon(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.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_OfficialCustomDungeon_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_OfficialCustomDungeon_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\033OfficialCustomDungeon.proto\">\n\025Officia" + + "lCustomDungeon\022\022\n\ndungeon_id\030\013 \001(\r\022\021\n\twi" + + "n_times\030\003 \001(\rB\033\n\031emu.grasscutter.net.pro" + + "tob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_OfficialCustomDungeon_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_OfficialCustomDungeon_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_OfficialCustomDungeon_descriptor, + new java.lang.String[] { + "DungeonId", "WinTimes", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ReceivedTrialAvatarActivityRewardReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ReceivedTrialAvatarActivityRewardReqOuterClass.java new file mode 100644 index 000000000..4deda71ef --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ReceivedTrialAvatarActivityRewardReqOuterClass.java @@ -0,0 +1,639 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReceivedTrialAvatarActivityRewardReq.proto + +package emu.grasscutter.net.proto; + +public final class ReceivedTrialAvatarActivityRewardReqOuterClass { + private ReceivedTrialAvatarActivityRewardReqOuterClass() {} + + 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 ReceivedTrialAvatarActivityRewardReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ReceivedTrialAvatarActivityRewardReq) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 trial_avatar_index_id = 3; + * + * @return The trialAvatarIndexId. + */ + int getTrialAvatarIndexId(); + } + /** + * + * + *
+     * Name: KHHINOIPNPA
+     * CmdId: 2005
+     * 
+ * + * Protobuf type {@code ReceivedTrialAvatarActivityRewardReq} + */ + public static final class ReceivedTrialAvatarActivityRewardReq + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ReceivedTrialAvatarActivityRewardReq) + ReceivedTrialAvatarActivityRewardReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReceivedTrialAvatarActivityRewardReq.newBuilder() to construct. + private ReceivedTrialAvatarActivityRewardReq( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceivedTrialAvatarActivityRewardReq() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceivedTrialAvatarActivityRewardReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceivedTrialAvatarActivityRewardReq( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + trialAvatarIndexId_ = 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq.class, + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq.Builder.class); + } + + public static final int TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER = 3; + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 3; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + + 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 (trialAvatarIndexId_ != 0) { + output.writeUInt32(3, trialAvatarIndexId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trialAvatarIndexId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, trialAvatarIndexId_); + } + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + other = + (emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq) + obj; + + if (getTrialAvatarIndexId() != other.getTrialAvatarIndexId()) 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) + TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrialAvatarIndexId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + 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; + } + /** + * + * + *
+         * Name: KHHINOIPNPA
+         * CmdId: 2005
+         * 
+ * + * Protobuf type {@code ReceivedTrialAvatarActivityRewardReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ReceivedTrialAvatarActivityRewardReq) + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq.class, + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass.ReceivedTrialAvatarActivityRewardReq.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(); + trialAvatarIndexId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + build() { + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + buildPartial() { + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + result = + new emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq(this); + result.trialAvatarIndexId_ = trialAvatarIndexId_; + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq) { + return mergeFrom( + (emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + other) { + if (other + == emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq.getDefaultInstance()) return this; + if (other.getTrialAvatarIndexId() != 0) { + setTrialAvatarIndexId(other.getTrialAvatarIndexId()); + } + 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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 3; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + /** + * uint32 trial_avatar_index_id = 3; + * + * @param value The trialAvatarIndexId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarIndexId(int value) { + + trialAvatarIndexId_ = value; + onChanged(); + return this; + } + /** + * uint32 trial_avatar_index_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrialAvatarIndexId() { + + trialAvatarIndexId_ = 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:ReceivedTrialAvatarActivityRewardReq) + } + + // @@protoc_insertion_point(class_scope:ReceivedTrialAvatarActivityRewardReq) + private static final emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq(); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceivedTrialAvatarActivityRewardReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceivedTrialAvatarActivityRewardReq(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.ReceivedTrialAvatarActivityRewardReqOuterClass + .ReceivedTrialAvatarActivityRewardReq + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ReceivedTrialAvatarActivityRewardReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ReceivedTrialAvatarActivityRewardReq_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*ReceivedTrialAvatarActivityRewardReq.p" + + "roto\"E\n$ReceivedTrialAvatarActivityRewar" + + "dReq\022\035\n\025trial_avatar_index_id\030\003 \001(\rB\033\n\031e" + + "mu.grasscutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ReceivedTrialAvatarActivityRewardReq_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_ReceivedTrialAvatarActivityRewardReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceivedTrialAvatarActivityRewardReq_descriptor, + new java.lang.String[] { + "TrialAvatarIndexId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ReceivedTrialAvatarActivityRewardRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ReceivedTrialAvatarActivityRewardRspOuterClass.java new file mode 100644 index 000000000..08c63b227 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ReceivedTrialAvatarActivityRewardRspOuterClass.java @@ -0,0 +1,786 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReceivedTrialAvatarActivityRewardRsp.proto + +package emu.grasscutter.net.proto; + +public final class ReceivedTrialAvatarActivityRewardRspOuterClass { + private ReceivedTrialAvatarActivityRewardRspOuterClass() {} + + 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 ReceivedTrialAvatarActivityRewardRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ReceivedTrialAvatarActivityRewardRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 activity_id = 12; + * + * @return The activityId. + */ + int getActivityId(); + + /** + * uint32 trial_avatar_index_id = 15; + * + * @return The trialAvatarIndexId. + */ + int getTrialAvatarIndexId(); + + /** + * int32 retcode = 5; + * + * @return The retcode. + */ + int getRetcode(); + } + /** + * + * + *
+     * Name: LIMEMDMOOCJ
+     * CmdId: 2009
+     * 
+ * + * Protobuf type {@code ReceivedTrialAvatarActivityRewardRsp} + */ + public static final class ReceivedTrialAvatarActivityRewardRsp + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ReceivedTrialAvatarActivityRewardRsp) + ReceivedTrialAvatarActivityRewardRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReceivedTrialAvatarActivityRewardRsp.newBuilder() to construct. + private ReceivedTrialAvatarActivityRewardRsp( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceivedTrialAvatarActivityRewardRsp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceivedTrialAvatarActivityRewardRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceivedTrialAvatarActivityRewardRsp( + 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 40: + { + retcode_ = input.readInt32(); + break; + } + case 96: + { + activityId_ = input.readUInt32(); + break; + } + case 120: + { + trialAvatarIndexId_ = 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp.class, + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp.Builder.class); + } + + public static final int ACTIVITY_ID_FIELD_NUMBER = 12; + private int activityId_; + /** + * uint32 activity_id = 12; + * + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + + public static final int TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER = 15; + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 15; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + + public static final int RETCODE_FIELD_NUMBER = 5; + private int retcode_; + /** + * int32 retcode = 5; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retcode_ != 0) { + output.writeInt32(5, retcode_); + } + if (activityId_ != 0) { + output.writeUInt32(12, activityId_); + } + if (trialAvatarIndexId_ != 0) { + output.writeUInt32(15, trialAvatarIndexId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, retcode_); + } + if (activityId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(12, activityId_); + } + if (trialAvatarIndexId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(15, trialAvatarIndexId_); + } + 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + other = + (emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp) + obj; + + if (getActivityId() != other.getActivityId()) return false; + if (getTrialAvatarIndexId() != other.getTrialAvatarIndexId()) return false; + if (getRetcode() != other.getRetcode()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACTIVITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getActivityId(); + hash = (37 * hash) + TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrialAvatarIndexId(); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + 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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + 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; + } + /** + * + * + *
+         * Name: LIMEMDMOOCJ
+         * CmdId: 2009
+         * 
+ * + * Protobuf type {@code ReceivedTrialAvatarActivityRewardRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ReceivedTrialAvatarActivityRewardRsp) + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp.class, + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass.ReceivedTrialAvatarActivityRewardRsp.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(); + activityId_ = 0; + + trialAvatarIndexId_ = 0; + + retcode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .internal_static_ReceivedTrialAvatarActivityRewardRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + build() { + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + buildPartial() { + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + result = + new emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp(this); + result.activityId_ = activityId_; + result.trialAvatarIndexId_ = trialAvatarIndexId_; + result.retcode_ = retcode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp) { + return mergeFrom( + (emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + other) { + if (other + == emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp.getDefaultInstance()) return this; + if (other.getActivityId() != 0) { + setActivityId(other.getActivityId()); + } + if (other.getTrialAvatarIndexId() != 0) { + setTrialAvatarIndexId(other.getTrialAvatarIndexId()); + } + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int activityId_; + /** + * uint32 activity_id = 12; + * + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + /** + * uint32 activity_id = 12; + * + * @param value The activityId to set. + * @return This builder for chaining. + */ + public Builder setActivityId(int value) { + + activityId_ = value; + onChanged(); + return this; + } + /** + * uint32 activity_id = 12; + * + * @return This builder for chaining. + */ + public Builder clearActivityId() { + + activityId_ = 0; + onChanged(); + return this; + } + + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 15; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + /** + * uint32 trial_avatar_index_id = 15; + * + * @param value The trialAvatarIndexId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarIndexId(int value) { + + trialAvatarIndexId_ = value; + onChanged(); + return this; + } + /** + * uint32 trial_avatar_index_id = 15; + * + * @return This builder for chaining. + */ + public Builder clearTrialAvatarIndexId() { + + trialAvatarIndexId_ = 0; + onChanged(); + return this; + } + + private int retcode_; + /** + * int32 retcode = 5; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 5; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 5; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceivedTrialAvatarActivityRewardRsp) + } + + // @@protoc_insertion_point(class_scope:ReceivedTrialAvatarActivityRewardRsp) + private static final emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp(); + } + + public static emu.grasscutter.net.proto.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceivedTrialAvatarActivityRewardRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceivedTrialAvatarActivityRewardRsp(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.ReceivedTrialAvatarActivityRewardRspOuterClass + .ReceivedTrialAvatarActivityRewardRsp + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ReceivedTrialAvatarActivityRewardRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ReceivedTrialAvatarActivityRewardRsp_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*ReceivedTrialAvatarActivityRewardRsp.p" + + "roto\"k\n$ReceivedTrialAvatarActivityRewar" + + "dRsp\022\023\n\013activity_id\030\014 \001(\r\022\035\n\025trial_avata" + + "r_index_id\030\017 \001(\r\022\017\n\007retcode\030\005 \001(\005B\033\n\031emu" + + ".grasscutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ReceivedTrialAvatarActivityRewardRsp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_ReceivedTrialAvatarActivityRewardRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceivedTrialAvatarActivityRewardRsp_descriptor, + new java.lang.String[] { + "ActivityId", "TrialAvatarIndexId", "Retcode", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/SaveUgcReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/SaveUgcReqOuterClass.java new file mode 100644 index 000000000..cd095304e --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/SaveUgcReqOuterClass.java @@ -0,0 +1,1371 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SaveUgcReq.proto + +package emu.grasscutter.net.proto; + +public final class SaveUgcReqOuterClass { + private SaveUgcReqOuterClass() {} + + 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 SaveUgcReqOrBuilder + extends + // @@protoc_insertion_point(interface_extends:SaveUgcReq) + com.google.protobuf.MessageOrBuilder { + + /** + * .UgcType ugc_type = 13; + * + * @return The enum numeric value on the wire for ugcType. + */ + int getUgcTypeValue(); + /** + * .UgcType ugc_type = 13; + * + * @return The ugcType. + */ + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType(); + + /** + * uint32 schedule_id = 2; + * + * @return The scheduleId. + */ + int getScheduleId(); + + /** + * .UgcMusicRecord music_record = 11; + * + * @return Whether the musicRecord field is set. + */ + boolean hasMusicRecord(); + /** + * .UgcMusicRecord music_record = 11; + * + * @return The musicRecord. + */ + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord getMusicRecord(); + /** .UgcMusicRecord music_record = 11; */ + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder + getMusicRecordOrBuilder(); + + /** + * .UgcMusicBriefInfo music_brief_info = 380; + * + * @return Whether the musicBriefInfo field is set. + */ + boolean hasMusicBriefInfo(); + /** + * .UgcMusicBriefInfo music_brief_info = 380; + * + * @return The musicBriefInfo. + */ + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo getMusicBriefInfo(); + /** .UgcMusicBriefInfo music_brief_info = 380; */ + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder + getMusicBriefInfoOrBuilder(); + + public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.RecordCase getRecordCase(); + + public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.BriefCase getBriefCase(); + } + /** + * + * + *
+     * Name: DMPCNMHFEHN
+     * CmdId: 6344
+     * 
+ * + * Protobuf type {@code SaveUgcReq} + */ + public static final class SaveUgcReq extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:SaveUgcReq) + SaveUgcReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use SaveUgcReq.newBuilder() to construct. + private SaveUgcReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SaveUgcReq() { + ugcType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SaveUgcReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SaveUgcReq( + 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 16: + { + scheduleId_ = input.readUInt32(); + break; + } + case 90: + { + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder + subBuilder = null; + if (recordCase_ == 11) { + subBuilder = + ((emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_) + .toBuilder(); + } + record_ = + input.readMessage( + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_); + record_ = subBuilder.buildPartial(); + } + recordCase_ = 11; + break; + } + case 104: + { + int rawValue = input.readEnum(); + + ugcType_ = rawValue; + break; + } + case 3042: + { + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder + subBuilder = null; + if (briefCase_ == 380) { + subBuilder = + ((emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) + brief_) + .toBuilder(); + } + brief_ = + input.readMessage( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) + brief_); + brief_ = subBuilder.buildPartial(); + } + briefCase_ = 380; + 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.SaveUgcReqOuterClass.internal_static_SaveUgcReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.SaveUgcReqOuterClass + .internal_static_SaveUgcReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.class, + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.Builder.class); + } + + private int recordCase_ = 0; + private java.lang.Object record_; + + public enum RecordCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MUSIC_RECORD(11), + RECORD_NOT_SET(0); + private final int value; + + private RecordCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RecordCase valueOf(int value) { + return forNumber(value); + } + + public static RecordCase forNumber(int value) { + switch (value) { + case 11: + return MUSIC_RECORD; + case 0: + return RECORD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RecordCase getRecordCase() { + return RecordCase.forNumber(recordCase_); + } + + private int briefCase_ = 0; + private java.lang.Object brief_; + + public enum BriefCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MUSIC_BRIEF_INFO(380), + BRIEF_NOT_SET(0); + private final int value; + + private BriefCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BriefCase valueOf(int value) { + return forNumber(value); + } + + public static BriefCase forNumber(int value) { + switch (value) { + case 380: + return MUSIC_BRIEF_INFO; + case 0: + return BRIEF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BriefCase getBriefCase() { + return BriefCase.forNumber(briefCase_); + } + + public static final int UGC_TYPE_FIELD_NUMBER = 13; + private int ugcType_; + /** + * .UgcType ugc_type = 13; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 13; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + + public static final int SCHEDULE_ID_FIELD_NUMBER = 2; + private int scheduleId_; + /** + * uint32 schedule_id = 2; + * + * @return The scheduleId. + */ + @java.lang.Override + public int getScheduleId() { + return scheduleId_; + } + + public static final int MUSIC_RECORD_FIELD_NUMBER = 11; + /** + * .UgcMusicRecord music_record = 11; + * + * @return Whether the musicRecord field is set. + */ + @java.lang.Override + public boolean hasMusicRecord() { + return recordCase_ == 11; + } + /** + * .UgcMusicRecord music_record = 11; + * + * @return The musicRecord. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord getMusicRecord() { + if (recordCase_ == 11) { + return (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_; + } + return emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance(); + } + /** .UgcMusicRecord music_record = 11; */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder + getMusicRecordOrBuilder() { + if (recordCase_ == 11) { + return (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_; + } + return emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance(); + } + + public static final int MUSIC_BRIEF_INFO_FIELD_NUMBER = 380; + /** + * .UgcMusicBriefInfo music_brief_info = 380; + * + * @return Whether the musicBriefInfo field is set. + */ + @java.lang.Override + public boolean hasMusicBriefInfo() { + return briefCase_ == 380; + } + /** + * .UgcMusicBriefInfo music_brief_info = 380; + * + * @return The musicBriefInfo. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + getMusicBriefInfo() { + if (briefCase_ == 380) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder + getMusicBriefInfoOrBuilder() { + if (briefCase_ == 380) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + + 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 (scheduleId_ != 0) { + output.writeUInt32(2, scheduleId_); + } + if (recordCase_ == 11) { + output.writeMessage( + 11, (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_); + } + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + output.writeEnum(13, ugcType_); + } + if (briefCase_ == 380) { + output.writeMessage( + 380, (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scheduleId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, scheduleId_); + } + if (recordCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_); + } + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, ugcType_); + } + if (briefCase_ == 380) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 380, + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_); + } + 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.SaveUgcReqOuterClass.SaveUgcReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq other = + (emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq) obj; + + if (ugcType_ != other.ugcType_) return false; + if (getScheduleId() != other.getScheduleId()) return false; + if (!getRecordCase().equals(other.getRecordCase())) return false; + switch (recordCase_) { + case 11: + if (!getMusicRecord().equals(other.getMusicRecord())) return false; + break; + case 0: + default: + } + if (!getBriefCase().equals(other.getBriefCase())) return false; + switch (briefCase_) { + case 380: + if (!getMusicBriefInfo().equals(other.getMusicBriefInfo())) return false; + break; + case 0: + default: + } + 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) + UGC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ugcType_; + hash = (37 * hash) + SCHEDULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getScheduleId(); + switch (recordCase_) { + case 11: + hash = (37 * hash) + MUSIC_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getMusicRecord().hashCode(); + break; + case 0: + default: + } + switch (briefCase_) { + case 380: + hash = (37 * hash) + MUSIC_BRIEF_INFO_FIELD_NUMBER; + hash = (53 * hash) + getMusicBriefInfo().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq 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.SaveUgcReqOuterClass.SaveUgcReq parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq 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.SaveUgcReqOuterClass.SaveUgcReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq 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.SaveUgcReqOuterClass.SaveUgcReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq 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.SaveUgcReqOuterClass.SaveUgcReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq 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.SaveUgcReqOuterClass.SaveUgcReq 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; + } + /** + * + * + *
+         * Name: DMPCNMHFEHN
+         * CmdId: 6344
+         * 
+ * + * Protobuf type {@code SaveUgcReq} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:SaveUgcReq) + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.SaveUgcReqOuterClass + .internal_static_SaveUgcReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.class, + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.Builder.class); + } + + // Construct using emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.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(); + ugcType_ = 0; + + scheduleId_ = 0; + + recordCase_ = 0; + record_ = null; + briefCase_ = 0; + brief_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq getDefaultInstanceForType() { + return emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq build() { + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq buildPartial() { + emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq result = + new emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq(this); + result.ugcType_ = ugcType_; + result.scheduleId_ = scheduleId_; + if (recordCase_ == 11) { + if (musicRecordBuilder_ == null) { + result.record_ = record_; + } else { + result.record_ = musicRecordBuilder_.build(); + } + } + if (briefCase_ == 380) { + if (musicBriefInfoBuilder_ == null) { + result.brief_ = brief_; + } else { + result.brief_ = musicBriefInfoBuilder_.build(); + } + } + result.recordCase_ = recordCase_; + result.briefCase_ = briefCase_; + 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.SaveUgcReqOuterClass.SaveUgcReq) { + return mergeFrom((emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq other) { + if (other == emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.getDefaultInstance()) + return this; + if (other.ugcType_ != 0) { + setUgcTypeValue(other.getUgcTypeValue()); + } + if (other.getScheduleId() != 0) { + setScheduleId(other.getScheduleId()); + } + switch (other.getRecordCase()) { + case MUSIC_RECORD: + { + mergeMusicRecord(other.getMusicRecord()); + break; + } + case RECORD_NOT_SET: + { + break; + } + } + switch (other.getBriefCase()) { + case MUSIC_BRIEF_INFO: + { + mergeMusicBriefInfo(other.getMusicBriefInfo()); + break; + } + case BRIEF_NOT_SET: + { + break; + } + } + 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.SaveUgcReqOuterClass.SaveUgcReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int recordCase_ = 0; + private java.lang.Object record_; + + public RecordCase getRecordCase() { + return RecordCase.forNumber(recordCase_); + } + + public Builder clearRecord() { + recordCase_ = 0; + record_ = null; + onChanged(); + return this; + } + + private int briefCase_ = 0; + private java.lang.Object brief_; + + public BriefCase getBriefCase() { + return BriefCase.forNumber(briefCase_); + } + + public Builder clearBrief() { + briefCase_ = 0; + brief_ = null; + onChanged(); + return this; + } + + private int ugcType_ = 0; + /** + * .UgcType ugc_type = 13; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 13; + * + * @param value The enum numeric value on the wire for ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcTypeValue(int value) { + + ugcType_ = value; + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 13; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + /** + * .UgcType ugc_type = 13; + * + * @param value The ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) { + if (value == null) { + throw new NullPointerException(); + } + + ugcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 13; + * + * @return This builder for chaining. + */ + public Builder clearUgcType() { + + ugcType_ = 0; + onChanged(); + return this; + } + + private int scheduleId_; + /** + * uint32 schedule_id = 2; + * + * @return The scheduleId. + */ + @java.lang.Override + public int getScheduleId() { + return scheduleId_; + } + /** + * uint32 schedule_id = 2; + * + * @param value The scheduleId to set. + * @return This builder for chaining. + */ + public Builder setScheduleId(int value) { + + scheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 schedule_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearScheduleId() { + + scheduleId_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord, + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder, + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder> + musicRecordBuilder_; + /** + * .UgcMusicRecord music_record = 11; + * + * @return Whether the musicRecord field is set. + */ + @java.lang.Override + public boolean hasMusicRecord() { + return recordCase_ == 11; + } + /** + * .UgcMusicRecord music_record = 11; + * + * @return The musicRecord. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord getMusicRecord() { + if (musicRecordBuilder_ == null) { + if (recordCase_ == 11) { + return (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_; + } + return emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord + .getDefaultInstance(); + } else { + if (recordCase_ == 11) { + return musicRecordBuilder_.getMessage(); + } + return emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord + .getDefaultInstance(); + } + } + /** .UgcMusicRecord music_record = 11; */ + public Builder setMusicRecord( + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord value) { + if (musicRecordBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + record_ = value; + onChanged(); + } else { + musicRecordBuilder_.setMessage(value); + } + recordCase_ = 11; + return this; + } + /** .UgcMusicRecord music_record = 11; */ + public Builder setMusicRecord( + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder + builderForValue) { + if (musicRecordBuilder_ == null) { + record_ = builderForValue.build(); + onChanged(); + } else { + musicRecordBuilder_.setMessage(builderForValue.build()); + } + recordCase_ = 11; + return this; + } + /** .UgcMusicRecord music_record = 11; */ + public Builder mergeMusicRecord( + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord value) { + if (musicRecordBuilder_ == null) { + if (recordCase_ == 11 + && record_ + != emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord + .getDefaultInstance()) { + record_ = + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.newBuilder( + (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_) + .mergeFrom(value) + .buildPartial(); + } else { + record_ = value; + } + onChanged(); + } else { + if (recordCase_ == 11) { + musicRecordBuilder_.mergeFrom(value); + } + musicRecordBuilder_.setMessage(value); + } + recordCase_ = 11; + return this; + } + /** .UgcMusicRecord music_record = 11; */ + public Builder clearMusicRecord() { + if (musicRecordBuilder_ == null) { + if (recordCase_ == 11) { + recordCase_ = 0; + record_ = null; + onChanged(); + } + } else { + if (recordCase_ == 11) { + recordCase_ = 0; + record_ = null; + } + musicRecordBuilder_.clear(); + } + return this; + } + /** .UgcMusicRecord music_record = 11; */ + public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder + getMusicRecordBuilder() { + return getMusicRecordFieldBuilder().getBuilder(); + } + /** .UgcMusicRecord music_record = 11; */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder + getMusicRecordOrBuilder() { + if ((recordCase_ == 11) && (musicRecordBuilder_ != null)) { + return musicRecordBuilder_.getMessageOrBuilder(); + } else { + if (recordCase_ == 11) { + return (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_; + } + return emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord + .getDefaultInstance(); + } + } + /** .UgcMusicRecord music_record = 11; */ + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord, + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder, + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder> + getMusicRecordFieldBuilder() { + if (musicRecordBuilder_ == null) { + if (!(recordCase_ == 11)) { + record_ = + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord + .getDefaultInstance(); + } + musicRecordBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord, + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder, + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder>( + (emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord) record_, + getParentForChildren(), + isClean()); + record_ = null; + } + recordCase_ = 11; + onChanged(); + ; + return musicRecordBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder> + musicBriefInfoBuilder_; + /** + * .UgcMusicBriefInfo music_brief_info = 380; + * + * @return Whether the musicBriefInfo field is set. + */ + @java.lang.Override + public boolean hasMusicBriefInfo() { + return briefCase_ == 380; + } + /** + * .UgcMusicBriefInfo music_brief_info = 380; + * + * @return The musicBriefInfo. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + getMusicBriefInfo() { + if (musicBriefInfoBuilder_ == null) { + if (briefCase_ == 380) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } else { + if (briefCase_ == 380) { + return musicBriefInfoBuilder_.getMessage(); + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + public Builder setMusicBriefInfo( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo value) { + if (musicBriefInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + brief_ = value; + onChanged(); + } else { + musicBriefInfoBuilder_.setMessage(value); + } + briefCase_ = 380; + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + public Builder setMusicBriefInfo( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder + builderForValue) { + if (musicBriefInfoBuilder_ == null) { + brief_ = builderForValue.build(); + onChanged(); + } else { + musicBriefInfoBuilder_.setMessage(builderForValue.build()); + } + briefCase_ = 380; + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + public Builder mergeMusicBriefInfo( + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo value) { + if (musicBriefInfoBuilder_ == null) { + if (briefCase_ == 380 + && brief_ + != emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance()) { + brief_ = + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.newBuilder( + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) + brief_) + .mergeFrom(value) + .buildPartial(); + } else { + brief_ = value; + } + onChanged(); + } else { + if (briefCase_ == 380) { + musicBriefInfoBuilder_.mergeFrom(value); + } + musicBriefInfoBuilder_.setMessage(value); + } + briefCase_ = 380; + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + public Builder clearMusicBriefInfo() { + if (musicBriefInfoBuilder_ == null) { + if (briefCase_ == 380) { + briefCase_ = 0; + brief_ = null; + onChanged(); + } + } else { + if (briefCase_ == 380) { + briefCase_ = 0; + brief_ = null; + } + musicBriefInfoBuilder_.clear(); + } + return this; + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder + getMusicBriefInfoBuilder() { + return getMusicBriefInfoFieldBuilder().getBuilder(); + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder + getMusicBriefInfoOrBuilder() { + if ((briefCase_ == 380) && (musicBriefInfoBuilder_ != null)) { + return musicBriefInfoBuilder_.getMessageOrBuilder(); + } else { + if (briefCase_ == 380) { + return (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_; + } + return emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + } + /** .UgcMusicBriefInfo music_brief_info = 380; */ + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder> + getMusicBriefInfoFieldBuilder() { + if (musicBriefInfoBuilder_ == null) { + if (!(briefCase_ == 380)) { + brief_ = + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo + .getDefaultInstance(); + } + musicBriefInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder>( + (emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo) brief_, + getParentForChildren(), + isClean()); + brief_ = null; + } + briefCase_ = 380; + onChanged(); + ; + return musicBriefInfoBuilder_; + } + + @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:SaveUgcReq) + } + + // @@protoc_insertion_point(class_scope:SaveUgcReq) + private static final emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq(); + } + + public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaveUgcReq parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaveUgcReq(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.SaveUgcReqOuterClass.SaveUgcReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_SaveUgcReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SaveUgcReq_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\020SaveUgcReq.proto\032\027UgcMusicBriefInfo.pr" + + "oto\032\024UgcMusicRecord.proto\032\rUgcType.proto" + + "\"\252\001\n\nSaveUgcReq\022\032\n\010ugc_type\030\r \001(\0162\010.UgcT" + + "ype\022\023\n\013schedule_id\030\002 \001(\r\022\'\n\014music_record" + + "\030\013 \001(\0132\017.UgcMusicRecordH\000\022/\n\020music_brief" + + "_info\030\374\002 \001(\0132\022.UgcMusicBriefInfoH\001B\010\n\006re" + + "cordB\007\n\005briefB\033\n\031emu.grasscutter.net.pro" + + "tob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.getDescriptor(), + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.getDescriptor(), + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(), + }); + internal_static_SaveUgcReq_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_SaveUgcReq_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SaveUgcReq_descriptor, + new java.lang.String[] { + "UgcType", "ScheduleId", "MusicRecord", "MusicBriefInfo", "Record", "Brief", + }); + emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.getDescriptor(); + emu.grasscutter.net.proto.UgcMusicRecordOuterClass.getDescriptor(); + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/SaveUgcRspOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/SaveUgcRspOuterClass.java new file mode 100644 index 000000000..62329f049 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/SaveUgcRspOuterClass.java @@ -0,0 +1,845 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SaveUgcRsp.proto + +package emu.grasscutter.net.proto; + +public final class SaveUgcRspOuterClass { + private SaveUgcRspOuterClass() {} + + 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 SaveUgcRspOrBuilder + extends + // @@protoc_insertion_point(interface_extends:SaveUgcRsp) + com.google.protobuf.MessageOrBuilder { + + /** + * .UgcType ugc_type = 3; + * + * @return The enum numeric value on the wire for ugcType. + */ + int getUgcTypeValue(); + /** + * .UgcType ugc_type = 3; + * + * @return The ugcType. + */ + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType(); + + /** + * uint64 ugc_guid = 6; + * + * @return The ugcGuid. + */ + long getUgcGuid(); + + /** + * int32 retcode = 14; + * + * @return The retcode. + */ + int getRetcode(); + + /** + * bool JGBHEMIDGCJ = 11; + * + * @return The jGBHEMIDGCJ. + */ + boolean getJGBHEMIDGCJ(); + } + /** + * + * + *
+     * Name: JKPCEIOLHFA
+     * CmdId: 6332
+     * 
+ * + * Protobuf type {@code SaveUgcRsp} + */ + public static final class SaveUgcRsp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:SaveUgcRsp) + SaveUgcRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use SaveUgcRsp.newBuilder() to construct. + private SaveUgcRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SaveUgcRsp() { + ugcType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SaveUgcRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SaveUgcRsp( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + int rawValue = input.readEnum(); + + ugcType_ = rawValue; + break; + } + case 48: + { + ugcGuid_ = input.readUInt64(); + break; + } + case 88: + { + jGBHEMIDGCJ_ = input.readBool(); + break; + } + case 112: + { + retcode_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.SaveUgcRspOuterClass.internal_static_SaveUgcRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.SaveUgcRspOuterClass + .internal_static_SaveUgcRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.class, + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.Builder.class); + } + + public static final int UGC_TYPE_FIELD_NUMBER = 3; + private int ugcType_; + /** + * .UgcType ugc_type = 3; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 3; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + + public static final int UGC_GUID_FIELD_NUMBER = 6; + private long ugcGuid_; + /** + * uint64 ugc_guid = 6; + * + * @return The ugcGuid. + */ + @java.lang.Override + public long getUgcGuid() { + return ugcGuid_; + } + + public static final int RETCODE_FIELD_NUMBER = 14; + private int retcode_; + /** + * int32 retcode = 14; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int JGBHEMIDGCJ_FIELD_NUMBER = 11; + private boolean jGBHEMIDGCJ_; + /** + * bool JGBHEMIDGCJ = 11; + * + * @return The jGBHEMIDGCJ. + */ + @java.lang.Override + public boolean getJGBHEMIDGCJ() { + return jGBHEMIDGCJ_; + } + + 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 (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + output.writeEnum(3, ugcType_); + } + if (ugcGuid_ != 0L) { + output.writeUInt64(6, ugcGuid_); + } + if (jGBHEMIDGCJ_ != false) { + output.writeBool(11, jGBHEMIDGCJ_); + } + if (retcode_ != 0) { + output.writeInt32(14, retcode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ugcType_ + != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ugcType_); + } + if (ugcGuid_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, ugcGuid_); + } + if (jGBHEMIDGCJ_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, jGBHEMIDGCJ_); + } + if (retcode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, retcode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp other = + (emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp) obj; + + if (ugcType_ != other.ugcType_) return false; + if (getUgcGuid() != other.getUgcGuid()) return false; + if (getRetcode() != other.getRetcode()) return false; + if (getJGBHEMIDGCJ() != other.getJGBHEMIDGCJ()) 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) + UGC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ugcType_; + hash = (37 * hash) + UGC_GUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUgcGuid()); + hash = (37 * hash) + RETCODE_FIELD_NUMBER; + hash = (53 * hash) + getRetcode(); + hash = (37 * hash) + JGBHEMIDGCJ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getJGBHEMIDGCJ()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp 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.SaveUgcRspOuterClass.SaveUgcRsp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp 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.SaveUgcRspOuterClass.SaveUgcRsp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp 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.SaveUgcRspOuterClass.SaveUgcRsp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp 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.SaveUgcRspOuterClass.SaveUgcRsp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp 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.SaveUgcRspOuterClass.SaveUgcRsp 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; + } + /** + * + * + *
+         * Name: JKPCEIOLHFA
+         * CmdId: 6332
+         * 
+ * + * Protobuf type {@code SaveUgcRsp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:SaveUgcRsp) + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRspOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.SaveUgcRspOuterClass.internal_static_SaveUgcRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.SaveUgcRspOuterClass + .internal_static_SaveUgcRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.class, + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.Builder.class); + } + + // Construct using emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.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(); + ugcType_ = 0; + + ugcGuid_ = 0L; + + retcode_ = 0; + + jGBHEMIDGCJ_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.SaveUgcRspOuterClass.internal_static_SaveUgcRsp_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp getDefaultInstanceForType() { + return emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp build() { + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp buildPartial() { + emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp result = + new emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp(this); + result.ugcType_ = ugcType_; + result.ugcGuid_ = ugcGuid_; + result.retcode_ = retcode_; + result.jGBHEMIDGCJ_ = jGBHEMIDGCJ_; + 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.SaveUgcRspOuterClass.SaveUgcRsp) { + return mergeFrom((emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp other) { + if (other == emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp.getDefaultInstance()) + return this; + if (other.ugcType_ != 0) { + setUgcTypeValue(other.getUgcTypeValue()); + } + if (other.getUgcGuid() != 0L) { + setUgcGuid(other.getUgcGuid()); + } + if (other.getRetcode() != 0) { + setRetcode(other.getRetcode()); + } + if (other.getJGBHEMIDGCJ() != false) { + setJGBHEMIDGCJ(other.getJGBHEMIDGCJ()); + } + 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.SaveUgcRspOuterClass.SaveUgcRsp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int ugcType_ = 0; + /** + * .UgcType ugc_type = 3; + * + * @return The enum numeric value on the wire for ugcType. + */ + @java.lang.Override + public int getUgcTypeValue() { + return ugcType_; + } + /** + * .UgcType ugc_type = 3; + * + * @param value The enum numeric value on the wire for ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcTypeValue(int value) { + + ugcType_ = value; + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 3; + * + * @return The ugcType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = + emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_); + return result == null + ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED + : result; + } + /** + * .UgcType ugc_type = 3; + * + * @param value The ugcType to set. + * @return This builder for chaining. + */ + public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) { + if (value == null) { + throw new NullPointerException(); + } + + ugcType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .UgcType ugc_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearUgcType() { + + ugcType_ = 0; + onChanged(); + return this; + } + + private long ugcGuid_; + /** + * uint64 ugc_guid = 6; + * + * @return The ugcGuid. + */ + @java.lang.Override + public long getUgcGuid() { + return ugcGuid_; + } + /** + * uint64 ugc_guid = 6; + * + * @param value The ugcGuid to set. + * @return This builder for chaining. + */ + public Builder setUgcGuid(long value) { + + ugcGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 ugc_guid = 6; + * + * @return This builder for chaining. + */ + public Builder clearUgcGuid() { + + ugcGuid_ = 0L; + onChanged(); + return this; + } + + private int retcode_; + /** + * int32 retcode = 14; + * + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 14; + * + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 14; + * + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private boolean jGBHEMIDGCJ_; + /** + * bool JGBHEMIDGCJ = 11; + * + * @return The jGBHEMIDGCJ. + */ + @java.lang.Override + public boolean getJGBHEMIDGCJ() { + return jGBHEMIDGCJ_; + } + /** + * bool JGBHEMIDGCJ = 11; + * + * @param value The jGBHEMIDGCJ to set. + * @return This builder for chaining. + */ + public Builder setJGBHEMIDGCJ(boolean value) { + + jGBHEMIDGCJ_ = value; + onChanged(); + return this; + } + /** + * bool JGBHEMIDGCJ = 11; + * + * @return This builder for chaining. + */ + public Builder clearJGBHEMIDGCJ() { + + jGBHEMIDGCJ_ = false; + 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:SaveUgcRsp) + } + + // @@protoc_insertion_point(class_scope:SaveUgcRsp) + private static final emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp(); + } + + public static emu.grasscutter.net.proto.SaveUgcRspOuterClass.SaveUgcRsp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaveUgcRsp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaveUgcRsp(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.SaveUgcRspOuterClass.SaveUgcRsp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_SaveUgcRsp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SaveUgcRsp_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\020SaveUgcRsp.proto\032\rUgcType.proto\"`\n\nSav" + + "eUgcRsp\022\032\n\010ugc_type\030\003 \001(\0162\010.UgcType\022\020\n\010u" + + "gc_guid\030\006 \001(\004\022\017\n\007retcode\030\016 \001(\005\022\023\n\013JGBHEM" + + "IDGCJ\030\013 \001(\010B\033\n\031emu.grasscutter.net.proto" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(), + }); + internal_static_SaveUgcRsp_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_SaveUgcRsp_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SaveUgcRsp_descriptor, + new java.lang.String[] { + "UgcType", "UgcGuid", "Retcode", "JGBHEMIDGCJ", + }); + emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ScenePlayerSoundNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ScenePlayerSoundNotifyOuterClass.java new file mode 100644 index 000000000..4ce15a45f --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ScenePlayerSoundNotifyOuterClass.java @@ -0,0 +1,1155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ScenePlayerSoundNotify.proto + +package emu.grasscutter.net.proto; + +public final class ScenePlayerSoundNotifyOuterClass { + private ScenePlayerSoundNotifyOuterClass() {} + + 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 ScenePlayerSoundNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ScenePlayerSoundNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return The enum numeric value on the wire for playType. + */ + int getPlayTypeValue(); + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return The playType. + */ + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify.PlaySoundType + getPlayType(); + + /** + * .Vector play_pos = 1; + * + * @return Whether the playPos field is set. + */ + boolean hasPlayPos(); + /** + * .Vector play_pos = 1; + * + * @return The playPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPlayPos(); + /** .Vector play_pos = 1; */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPlayPosOrBuilder(); + + /** + * string sound_name = 4; + * + * @return The soundName. + */ + java.lang.String getSoundName(); + /** + * string sound_name = 4; + * + * @return The bytes for soundName. + */ + com.google.protobuf.ByteString getSoundNameBytes(); + } + /** + * + * + *
+     * Name: EMBMCPPLGPA
+     * CmdId: 201
+     * 
+ * + * Protobuf type {@code ScenePlayerSoundNotify} + */ + public static final class ScenePlayerSoundNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ScenePlayerSoundNotify) + ScenePlayerSoundNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScenePlayerSoundNotify.newBuilder() to construct. + private ScenePlayerSoundNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ScenePlayerSoundNotify() { + playType_ = 0; + soundName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScenePlayerSoundNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ScenePlayerSoundNotify( + 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 10: + { + emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; + if (playPos_ != null) { + subBuilder = playPos_.toBuilder(); + } + playPos_ = + input.readMessage( + emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(playPos_); + playPos_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + soundName_ = s; + break; + } + case 112: + { + int rawValue = input.readEnum(); + + playType_ = rawValue; + 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.ScenePlayerSoundNotifyOuterClass + .internal_static_ScenePlayerSoundNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass + .internal_static_ScenePlayerSoundNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .class, + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .Builder.class); + } + + /** + * + * + *
+         * Name: MCCICFBIADN
+         * 
+ * + * Protobuf enum {@code ScenePlayerSoundNotify.PlaySoundType} + */ + public enum PlaySoundType implements com.google.protobuf.ProtocolMessageEnum { + /** PLAY_SOUND_NONE = 0; */ + PLAY_SOUND_NONE(0), + /** PLAY_SOUND_START = 1; */ + PLAY_SOUND_START(1), + /** PLAY_SOUND_STOP = 2; */ + PLAY_SOUND_STOP(2), + UNRECOGNIZED(-1), + ; + + /** PLAY_SOUND_NONE = 0; */ + public static final int PLAY_SOUND_NONE_VALUE = 0; + /** PLAY_SOUND_START = 1; */ + public static final int PLAY_SOUND_START_VALUE = 1; + /** PLAY_SOUND_STOP = 2; */ + public static final int PLAY_SOUND_STOP_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PlaySoundType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PlaySoundType forNumber(int value) { + switch (value) { + case 0: + return PLAY_SOUND_NONE; + case 1: + return PLAY_SOUND_START; + case 2: + return PLAY_SOUND_STOP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PlaySoundType findValueByNumber(int number) { + return PlaySoundType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PlaySoundType[] VALUES = values(); + + public static PlaySoundType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PlaySoundType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:ScenePlayerSoundNotify.PlaySoundType) + } + + public static final int PLAY_TYPE_FIELD_NUMBER = 14; + private int playType_; + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return The enum numeric value on the wire for playType. + */ + @java.lang.Override + public int getPlayTypeValue() { + return playType_; + } + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return The playType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType + getPlayType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType + result = + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType.valueOf(playType_); + return result == null + ? emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType.UNRECOGNIZED + : result; + } + + public static final int PLAY_POS_FIELD_NUMBER = 1; + private emu.grasscutter.net.proto.VectorOuterClass.Vector playPos_; + /** + * .Vector play_pos = 1; + * + * @return Whether the playPos field is set. + */ + @java.lang.Override + public boolean hasPlayPos() { + return playPos_ != null; + } + /** + * .Vector play_pos = 1; + * + * @return The playPos. + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.Vector getPlayPos() { + return playPos_ == null + ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() + : playPos_; + } + /** .Vector play_pos = 1; */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPlayPosOrBuilder() { + return getPlayPos(); + } + + public static final int SOUND_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object soundName_; + /** + * string sound_name = 4; + * + * @return The soundName. + */ + @java.lang.Override + public java.lang.String getSoundName() { + java.lang.Object ref = soundName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + soundName_ = s; + return s; + } + } + /** + * string sound_name = 4; + * + * @return The bytes for soundName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSoundNameBytes() { + java.lang.Object ref = soundName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + soundName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (playPos_ != null) { + output.writeMessage(1, getPlayPos()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(soundName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, soundName_); + } + if (playType_ + != emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType.PLAY_SOUND_NONE + .getNumber()) { + output.writeEnum(14, playType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (playPos_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPlayPos()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(soundName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, soundName_); + } + if (playType_ + != emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType.PLAY_SOUND_NONE + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, playType_); + } + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify other = + (emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify) obj; + + if (playType_ != other.playType_) return false; + if (hasPlayPos() != other.hasPlayPos()) return false; + if (hasPlayPos()) { + if (!getPlayPos().equals(other.getPlayPos())) return false; + } + if (!getSoundName().equals(other.getSoundName())) 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) + PLAY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + playType_; + if (hasPlayPos()) { + hash = (37 * hash) + PLAY_POS_FIELD_NUMBER; + hash = (53 * hash) + getPlayPos().hashCode(); + } + hash = (37 * hash) + SOUND_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSoundName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + 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; + } + /** + * + * + *
+         * Name: EMBMCPPLGPA
+         * CmdId: 201
+         * 
+ * + * Protobuf type {@code ScenePlayerSoundNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ScenePlayerSoundNotify) + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass + .internal_static_ScenePlayerSoundNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass + .internal_static_ScenePlayerSoundNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .class, + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify.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(); + playType_ = 0; + + if (playPosBuilder_ == null) { + playPos_ = null; + } else { + playPos_ = null; + playPosBuilder_ = null; + } + soundName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass + .internal_static_ScenePlayerSoundNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + build() { + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + buildPartial() { + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify result = + new emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify( + this); + result.playType_ = playType_; + if (playPosBuilder_ == null) { + result.playPos_ = playPos_; + } else { + result.playPos_ = playPosBuilder_.build(); + } + result.soundName_ = soundName_; + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify other) { + if (other + == emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .getDefaultInstance()) return this; + if (other.playType_ != 0) { + setPlayTypeValue(other.getPlayTypeValue()); + } + if (other.hasPlayPos()) { + mergePlayPos(other.getPlayPos()); + } + if (!other.getSoundName().isEmpty()) { + soundName_ = other.soundName_; + onChanged(); + } + 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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int playType_ = 0; + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return The enum numeric value on the wire for playType. + */ + @java.lang.Override + public int getPlayTypeValue() { + return playType_; + } + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @param value The enum numeric value on the wire for playType to set. + * @return This builder for chaining. + */ + public Builder setPlayTypeValue(int value) { + + playType_ = value; + onChanged(); + return this; + } + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return The playType. + */ + @java.lang.Override + public emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType + getPlayType() { + @SuppressWarnings("deprecation") + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType + result = + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType.valueOf(playType_); + return result == null + ? emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType.UNRECOGNIZED + : result; + } + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @param value The playType to set. + * @return This builder for chaining. + */ + public Builder setPlayType( + emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + .PlaySoundType + value) { + if (value == null) { + throw new NullPointerException(); + } + + playType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .ScenePlayerSoundNotify.PlaySoundType play_type = 14; + * + * @return This builder for chaining. + */ + public Builder clearPlayType() { + + playType_ = 0; + onChanged(); + return this; + } + + private emu.grasscutter.net.proto.VectorOuterClass.Vector playPos_; + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.VectorOuterClass.Vector, + emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> + playPosBuilder_; + /** + * .Vector play_pos = 1; + * + * @return Whether the playPos field is set. + */ + public boolean hasPlayPos() { + return playPosBuilder_ != null || playPos_ != null; + } + /** + * .Vector play_pos = 1; + * + * @return The playPos. + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector getPlayPos() { + if (playPosBuilder_ == null) { + return playPos_ == null + ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() + : playPos_; + } else { + return playPosBuilder_.getMessage(); + } + } + /** .Vector play_pos = 1; */ + public Builder setPlayPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { + if (playPosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playPos_ = value; + onChanged(); + } else { + playPosBuilder_.setMessage(value); + } + + return this; + } + /** .Vector play_pos = 1; */ + public Builder setPlayPos( + emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { + if (playPosBuilder_ == null) { + playPos_ = builderForValue.build(); + onChanged(); + } else { + playPosBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** .Vector play_pos = 1; */ + public Builder mergePlayPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { + if (playPosBuilder_ == null) { + if (playPos_ != null) { + playPos_ = + emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(playPos_) + .mergeFrom(value) + .buildPartial(); + } else { + playPos_ = value; + } + onChanged(); + } else { + playPosBuilder_.mergeFrom(value); + } + + return this; + } + /** .Vector play_pos = 1; */ + public Builder clearPlayPos() { + if (playPosBuilder_ == null) { + playPos_ = null; + onChanged(); + } else { + playPos_ = null; + playPosBuilder_ = null; + } + + return this; + } + /** .Vector play_pos = 1; */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPlayPosBuilder() { + + onChanged(); + return getPlayPosFieldBuilder().getBuilder(); + } + /** .Vector play_pos = 1; */ + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPlayPosOrBuilder() { + if (playPosBuilder_ != null) { + return playPosBuilder_.getMessageOrBuilder(); + } else { + return playPos_ == null + ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() + : playPos_; + } + } + /** .Vector play_pos = 1; */ + private com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.VectorOuterClass.Vector, + emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> + getPlayPosFieldBuilder() { + if (playPosBuilder_ == null) { + playPosBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + emu.grasscutter.net.proto.VectorOuterClass.Vector, + emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( + getPlayPos(), getParentForChildren(), isClean()); + playPos_ = null; + } + return playPosBuilder_; + } + + private java.lang.Object soundName_ = ""; + /** + * string sound_name = 4; + * + * @return The soundName. + */ + public java.lang.String getSoundName() { + java.lang.Object ref = soundName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + soundName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sound_name = 4; + * + * @return The bytes for soundName. + */ + public com.google.protobuf.ByteString getSoundNameBytes() { + java.lang.Object ref = soundName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + soundName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sound_name = 4; + * + * @param value The soundName to set. + * @return This builder for chaining. + */ + public Builder setSoundName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + soundName_ = value; + onChanged(); + return this; + } + /** + * string sound_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearSoundName() { + + soundName_ = getDefaultInstance().getSoundName(); + onChanged(); + return this; + } + /** + * string sound_name = 4; + * + * @param value The bytes for soundName to set. + * @return This builder for chaining. + */ + public Builder setSoundNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + soundName_ = value; + 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:ScenePlayerSoundNotify) + } + + // @@protoc_insertion_point(class_scope:ScenePlayerSoundNotify) + private static final emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass + .ScenePlayerSoundNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify(); + } + + public static emu.grasscutter.net.proto.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScenePlayerSoundNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScenePlayerSoundNotify(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.ScenePlayerSoundNotifyOuterClass.ScenePlayerSoundNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ScenePlayerSoundNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ScenePlayerSoundNotify_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\034ScenePlayerSoundNotify.proto\032\014Vector.p" + + "roto\"\322\001\n\026ScenePlayerSoundNotify\0228\n\tplay_" + + "type\030\016 \001(\0162%.ScenePlayerSoundNotify.Play" + + "SoundType\022\031\n\010play_pos\030\001 \001(\0132\007.Vector\022\022\n\n" + + "sound_name\030\004 \001(\t\"O\n\rPlaySoundType\022\023\n\017PLA" + + "Y_SOUND_NONE\020\000\022\024\n\020PLAY_SOUND_START\020\001\022\023\n\017" + + "PLAY_SOUND_STOP\020\002B\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_ScenePlayerSoundNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ScenePlayerSoundNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ScenePlayerSoundNotify_descriptor, + new java.lang.String[] { + "PlayType", "PlayPos", "SoundName", + }); + emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ShowClientGuideNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ShowClientGuideNotifyOuterClass.java new file mode 100644 index 000000000..7ef8aaa55 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ShowClientGuideNotifyOuterClass.java @@ -0,0 +1,677 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ShowClientGuideNotify.proto + +package emu.grasscutter.net.proto; + +public final class ShowClientGuideNotifyOuterClass { + private ShowClientGuideNotifyOuterClass() {} + + 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 ShowClientGuideNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ShowClientGuideNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * string guide_name = 11; + * + * @return The guideName. + */ + java.lang.String getGuideName(); + /** + * string guide_name = 11; + * + * @return The bytes for guideName. + */ + com.google.protobuf.ByteString getGuideNameBytes(); + } + /** + * + * + *
+     * Name: LAJJKMLLJEB
+     * CmdId: 3384
+     * 
+ * + * Protobuf type {@code ShowClientGuideNotify} + */ + public static final class ShowClientGuideNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ShowClientGuideNotify) + ShowClientGuideNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShowClientGuideNotify.newBuilder() to construct. + private ShowClientGuideNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowClientGuideNotify() { + guideName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowClientGuideNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShowClientGuideNotify( + 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 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + guideName_ = s; + 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.ShowClientGuideNotifyOuterClass + .internal_static_ShowClientGuideNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass + .internal_static_ShowClientGuideNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify.class, + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + .Builder.class); + } + + public static final int GUIDE_NAME_FIELD_NUMBER = 11; + private volatile java.lang.Object guideName_; + /** + * string guide_name = 11; + * + * @return The guideName. + */ + @java.lang.Override + public java.lang.String getGuideName() { + java.lang.Object ref = guideName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + guideName_ = s; + return s; + } + } + /** + * string guide_name = 11; + * + * @return The bytes for guideName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGuideNameBytes() { + java.lang.Object ref = guideName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + guideName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guideName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, guideName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guideName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, guideName_); + } + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify other = + (emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify) obj; + + if (!getGuideName().equals(other.getGuideName())) 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) + GUIDE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGuideName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify 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; + } + /** + * + * + *
+         * Name: LAJJKMLLJEB
+         * CmdId: 3384
+         * 
+ * + * Protobuf type {@code ShowClientGuideNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ShowClientGuideNotify) + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass + .internal_static_ShowClientGuideNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass + .internal_static_ShowClientGuideNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + .class, + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify.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(); + guideName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass + .internal_static_ShowClientGuideNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + build() { + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + buildPartial() { + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify result = + new emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify( + this); + result.guideName_ = guideName_; + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify other) { + if (other + == emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + .getDefaultInstance()) return this; + if (!other.getGuideName().isEmpty()) { + guideName_ = other.guideName_; + onChanged(); + } + 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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object guideName_ = ""; + /** + * string guide_name = 11; + * + * @return The guideName. + */ + public java.lang.String getGuideName() { + java.lang.Object ref = guideName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + guideName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string guide_name = 11; + * + * @return The bytes for guideName. + */ + public com.google.protobuf.ByteString getGuideNameBytes() { + java.lang.Object ref = guideName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + guideName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string guide_name = 11; + * + * @param value The guideName to set. + * @return This builder for chaining. + */ + public Builder setGuideName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + guideName_ = value; + onChanged(); + return this; + } + /** + * string guide_name = 11; + * + * @return This builder for chaining. + */ + public Builder clearGuideName() { + + guideName_ = getDefaultInstance().getGuideName(); + onChanged(); + return this; + } + /** + * string guide_name = 11; + * + * @param value The bytes for guideName to set. + * @return This builder for chaining. + */ + public Builder setGuideNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + guideName_ = value; + 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:ShowClientGuideNotify) + } + + // @@protoc_insertion_point(class_scope:ShowClientGuideNotify) + private static final emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass + .ShowClientGuideNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify(); + } + + public static emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowClientGuideNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShowClientGuideNotify(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.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ShowClientGuideNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ShowClientGuideNotify_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\033ShowClientGuideNotify.proto\"+\n\025ShowCli" + + "entGuideNotify\022\022\n\nguide_name\030\013 \001(\tB\033\n\031em" + + "u.grasscutter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ShowClientGuideNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ShowClientGuideNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ShowClientGuideNotify_descriptor, + new java.lang.String[] { + "GuideName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/ShowCommonTipsNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/ShowCommonTipsNotifyOuterClass.java new file mode 100644 index 000000000..8fa7c9fa2 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/ShowCommonTipsNotifyOuterClass.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ShowCommonTipsNotify.proto + +package emu.grasscutter.net.proto; + +public final class ShowCommonTipsNotifyOuterClass { + private ShowCommonTipsNotifyOuterClass() {} + + 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 ShowCommonTipsNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ShowCommonTipsNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 close_time = 1; + * + * @return The closeTime. + */ + int getCloseTime(); + + /** + * string content = 6; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * string content = 6; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * string title = 14; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * string title = 14; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
+     * Name: DCNCLONCJHI
+     * CmdId: 3469
+     * 
+ * + * Protobuf type {@code ShowCommonTipsNotify} + */ + public static final class ShowCommonTipsNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ShowCommonTipsNotify) + ShowCommonTipsNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShowCommonTipsNotify.newBuilder() to construct. + private ShowCommonTipsNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowCommonTipsNotify() { + content_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowCommonTipsNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShowCommonTipsNotify( + 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: + { + closeTime_ = input.readUInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + 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.ShowCommonTipsNotifyOuterClass + .internal_static_ShowCommonTipsNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass + .internal_static_ShowCommonTipsNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify.class, + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify.Builder + .class); + } + + public static final int CLOSE_TIME_FIELD_NUMBER = 1; + private int closeTime_; + /** + * uint32 close_time = 1; + * + * @return The closeTime. + */ + @java.lang.Override + public int getCloseTime() { + return closeTime_; + } + + public static final int CONTENT_FIELD_NUMBER = 6; + private volatile java.lang.Object content_; + /** + * string content = 6; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } + } + /** + * string content = 6; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 14; + private volatile java.lang.Object title_; + /** + * string title = 14; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * string title = 14; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (closeTime_ != 0) { + output.writeUInt32(1, closeTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, content_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, title_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (closeTime_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, closeTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, content_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, title_); + } + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify other = + (emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify) obj; + + if (getCloseTime() != other.getCloseTime()) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getTitle().equals(other.getTitle())) 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) + CLOSE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCloseTime(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify 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; + } + /** + * + * + *
+         * Name: DCNCLONCJHI
+         * CmdId: 3469
+         * 
+ * + * Protobuf type {@code ShowCommonTipsNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ShowCommonTipsNotify) + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass + .internal_static_ShowCommonTipsNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass + .internal_static_ShowCommonTipsNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify.class, + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify.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(); + closeTime_ = 0; + + content_ = ""; + + title_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass + .internal_static_ShowCommonTipsNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify build() { + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + buildPartial() { + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify result = + new emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify(this); + result.closeTime_ = closeTime_; + result.content_ = content_; + result.title_ = title_; + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify other) { + if (other + == emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + .getDefaultInstance()) return this; + if (other.getCloseTime() != 0) { + setCloseTime(other.getCloseTime()); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + 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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int closeTime_; + /** + * uint32 close_time = 1; + * + * @return The closeTime. + */ + @java.lang.Override + public int getCloseTime() { + return closeTime_; + } + /** + * uint32 close_time = 1; + * + * @param value The closeTime to set. + * @return This builder for chaining. + */ + public Builder setCloseTime(int value) { + + closeTime_ = value; + onChanged(); + return this; + } + /** + * uint32 close_time = 1; + * + * @return This builder for chaining. + */ + public Builder clearCloseTime() { + + closeTime_ = 0; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + /** + * string content = 6; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string content = 6; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string content = 6; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + * string content = 6; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + * string content = 6; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * string title = 14; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string title = 14; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string title = 14; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * string title = 14; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * string title = 14; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + 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:ShowCommonTipsNotify) + } + + // @@protoc_insertion_point(class_scope:ShowCommonTipsNotify) + private static final emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass + .ShowCommonTipsNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify(); + } + + public static emu.grasscutter.net.proto.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowCommonTipsNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShowCommonTipsNotify(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.ShowCommonTipsNotifyOuterClass.ShowCommonTipsNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ShowCommonTipsNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ShowCommonTipsNotify_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\032ShowCommonTipsNotify.proto\"J\n\024ShowComm" + + "onTipsNotify\022\022\n\nclose_time\030\001 \001(\r\022\017\n\007cont" + + "ent\030\006 \001(\t\022\r\n\005title\030\016 \001(\tB\033\n\031emu.grasscut" + + "ter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ShowCommonTipsNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ShowCommonTipsNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ShowCommonTipsNotify_descriptor, + new java.lang.String[] { + "CloseTime", "Content", "Title", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarActivityDetailInfoOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarActivityDetailInfoOuterClass.java new file mode 100644 index 000000000..4e897dc9b --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarActivityDetailInfoOuterClass.java @@ -0,0 +1,984 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrialAvatarActivityDetailInfo.proto + +package emu.grasscutter.net.proto; + +public final class TrialAvatarActivityDetailInfoOuterClass { + private TrialAvatarActivityDetailInfoOuterClass() {} + + 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 TrialAvatarActivityDetailInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:TrialAvatarActivityDetailInfo) + com.google.protobuf.MessageOrBuilder { + + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + java.util.List< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo> + getRewardInfoListList(); + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + getRewardInfoList(int index); + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + int getRewardInfoListCount(); + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + java.util.List< + ? extends + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder> + getRewardInfoListOrBuilderList(); + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder + getRewardInfoListOrBuilder(int index); + } + /** + * + * + *
+     * Name: OIGGLAODKKL
+     * 
+ * + * Protobuf type {@code TrialAvatarActivityDetailInfo} + */ + public static final class TrialAvatarActivityDetailInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:TrialAvatarActivityDetailInfo) + TrialAvatarActivityDetailInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrialAvatarActivityDetailInfo.newBuilder() to construct. + private TrialAvatarActivityDetailInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrialAvatarActivityDetailInfo() { + rewardInfoList_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrialAvatarActivityDetailInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TrialAvatarActivityDetailInfo( + 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)) { + rewardInfoList_ = + new java.util.ArrayList< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo>(); + mutable_bitField0_ |= 0x00000001; + } + rewardInfoList_.add( + input.readMessage( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.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)) { + rewardInfoList_ = java.util.Collections.unmodifiableList(rewardInfoList_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .internal_static_TrialAvatarActivityDetailInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .internal_static_TrialAvatarActivityDetailInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo.class, + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo.Builder.class); + } + + public static final int REWARD_INFO_LIST_FIELD_NUMBER = 4; + private java.util.List< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo> + rewardInfoList_; + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + @java.lang.Override + public java.util.List< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo> + getRewardInfoListList() { + return rewardInfoList_; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + @java.lang.Override + public java.util.List< + ? extends + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder> + getRewardInfoListOrBuilderList() { + return rewardInfoList_; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + @java.lang.Override + public int getRewardInfoListCount() { + return rewardInfoList_.size(); + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + getRewardInfoList(int index) { + return rewardInfoList_.get(index); + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder + getRewardInfoListOrBuilder(int index) { + return rewardInfoList_.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 < rewardInfoList_.size(); i++) { + output.writeMessage(4, rewardInfoList_.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 < rewardInfoList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, rewardInfoList_.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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + other = + (emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo) + obj; + + if (!getRewardInfoListList().equals(other.getRewardInfoListList())) 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 (getRewardInfoListCount() > 0) { + hash = (37 * hash) + REWARD_INFO_LIST_FIELD_NUMBER; + hash = (53 * hash) + getRewardInfoListList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + 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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + 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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + 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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + 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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + 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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + 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; + } + /** + * + * + *
+         * Name: OIGGLAODKKL
+         * 
+ * + * Protobuf type {@code TrialAvatarActivityDetailInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:TrialAvatarActivityDetailInfo) + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .internal_static_TrialAvatarActivityDetailInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .internal_static_TrialAvatarActivityDetailInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo.class, + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass.TrialAvatarActivityDetailInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRewardInfoListFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (rewardInfoListBuilder_ == null) { + rewardInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + rewardInfoListBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .internal_static_TrialAvatarActivityDetailInfo_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + build() { + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + buildPartial() { + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + result = + new emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo(this); + int from_bitField0_ = bitField0_; + if (rewardInfoListBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rewardInfoList_ = java.util.Collections.unmodifiableList(rewardInfoList_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rewardInfoList_ = rewardInfoList_; + } else { + result.rewardInfoList_ = rewardInfoListBuilder_.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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo) { + return mergeFrom( + (emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + other) { + if (other + == emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo.getDefaultInstance()) return this; + if (rewardInfoListBuilder_ == null) { + if (!other.rewardInfoList_.isEmpty()) { + if (rewardInfoList_.isEmpty()) { + rewardInfoList_ = other.rewardInfoList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRewardInfoListIsMutable(); + rewardInfoList_.addAll(other.rewardInfoList_); + } + onChanged(); + } + } else { + if (!other.rewardInfoList_.isEmpty()) { + if (rewardInfoListBuilder_.isEmpty()) { + rewardInfoListBuilder_.dispose(); + rewardInfoListBuilder_ = null; + rewardInfoList_ = other.rewardInfoList_; + bitField0_ = (bitField0_ & ~0x00000001); + rewardInfoListBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRewardInfoListFieldBuilder() + : null; + } else { + rewardInfoListBuilder_.addAllMessages(other.rewardInfoList_); + } + } + } + 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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo> + rewardInfoList_ = java.util.Collections.emptyList(); + + private void ensureRewardInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rewardInfoList_ = + new java.util.ArrayList< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo>(rewardInfoList_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder> + rewardInfoListBuilder_; + + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public java.util.List< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo> + getRewardInfoListList() { + if (rewardInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(rewardInfoList_); + } else { + return rewardInfoListBuilder_.getMessageList(); + } + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public int getRewardInfoListCount() { + if (rewardInfoListBuilder_ == null) { + return rewardInfoList_.size(); + } else { + return rewardInfoListBuilder_.getCount(); + } + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + getRewardInfoList(int index) { + if (rewardInfoListBuilder_ == null) { + return rewardInfoList_.get(index); + } else { + return rewardInfoListBuilder_.getMessage(index); + } + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder setRewardInfoList( + int index, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + value) { + if (rewardInfoListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRewardInfoListIsMutable(); + rewardInfoList_.set(index, value); + onChanged(); + } else { + rewardInfoListBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder setRewardInfoList( + int index, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder + builderForValue) { + if (rewardInfoListBuilder_ == null) { + ensureRewardInfoListIsMutable(); + rewardInfoList_.set(index, builderForValue.build()); + onChanged(); + } else { + rewardInfoListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder addRewardInfoList( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + value) { + if (rewardInfoListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRewardInfoListIsMutable(); + rewardInfoList_.add(value); + onChanged(); + } else { + rewardInfoListBuilder_.addMessage(value); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder addRewardInfoList( + int index, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + value) { + if (rewardInfoListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRewardInfoListIsMutable(); + rewardInfoList_.add(index, value); + onChanged(); + } else { + rewardInfoListBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder addRewardInfoList( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder + builderForValue) { + if (rewardInfoListBuilder_ == null) { + ensureRewardInfoListIsMutable(); + rewardInfoList_.add(builderForValue.build()); + onChanged(); + } else { + rewardInfoListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder addRewardInfoList( + int index, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder + builderForValue) { + if (rewardInfoListBuilder_ == null) { + ensureRewardInfoListIsMutable(); + rewardInfoList_.add(index, builderForValue.build()); + onChanged(); + } else { + rewardInfoListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder addAllRewardInfoList( + java.lang.Iterable< + ? extends + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo> + values) { + if (rewardInfoListBuilder_ == null) { + ensureRewardInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rewardInfoList_); + onChanged(); + } else { + rewardInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder clearRewardInfoList() { + if (rewardInfoListBuilder_ == null) { + rewardInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rewardInfoListBuilder_.clear(); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public Builder removeRewardInfoList(int index) { + if (rewardInfoListBuilder_ == null) { + ensureRewardInfoListIsMutable(); + rewardInfoList_.remove(index); + onChanged(); + } else { + rewardInfoListBuilder_.remove(index); + } + return this; + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder + getRewardInfoListBuilder(int index) { + return getRewardInfoListFieldBuilder().getBuilder(index); + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder + getRewardInfoListOrBuilder(int index) { + if (rewardInfoListBuilder_ == null) { + return rewardInfoList_.get(index); + } else { + return rewardInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public java.util.List< + ? extends + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder> + getRewardInfoListOrBuilderList() { + if (rewardInfoListBuilder_ != null) { + return rewardInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rewardInfoList_); + } + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder + addRewardInfoListBuilder() { + return getRewardInfoListFieldBuilder() + .addBuilder( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.getDefaultInstance()); + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder + addRewardInfoListBuilder(int index) { + return getRewardInfoListFieldBuilder() + .addBuilder( + index, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.getDefaultInstance()); + } + /** repeated .TrialAvatarActivityRewardDetailInfo reward_info_list = 4; */ + public java.util.List< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder> + getRewardInfoListBuilderList() { + return getRewardInfoListFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder> + getRewardInfoListFieldBuilder() { + if (rewardInfoListBuilder_ == null) { + rewardInfoListBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder>( + rewardInfoList_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rewardInfoList_ = null; + } + return rewardInfoListBuilder_; + } + + @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:TrialAvatarActivityDetailInfo) + } + + // @@protoc_insertion_point(class_scope:TrialAvatarActivityDetailInfo) + private static final emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo(); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrialAvatarActivityDetailInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrialAvatarActivityDetailInfo(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.TrialAvatarActivityDetailInfoOuterClass + .TrialAvatarActivityDetailInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_TrialAvatarActivityDetailInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_TrialAvatarActivityDetailInfo_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#TrialAvatarActivityDetailInfo.proto\032)T" + + "rialAvatarActivityRewardDetailInfo.proto" + + "\"_\n\035TrialAvatarActivityDetailInfo\022>\n\020rew" + + "ard_info_list\030\004 \003(\0132$.TrialAvatarActivit" + + "yRewardDetailInfoB\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.TrialAvatarActivityRewardDetailInfoOuterClass + .getDescriptor(), + }); + internal_static_TrialAvatarActivityDetailInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_TrialAvatarActivityDetailInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TrialAvatarActivityDetailInfo_descriptor, + new java.lang.String[] { + "RewardInfoList", + }); + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarActivityRewardDetailInfoOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarActivityRewardDetailInfoOuterClass.java new file mode 100644 index 000000000..b3b3d2115 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarActivityRewardDetailInfoOuterClass.java @@ -0,0 +1,918 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrialAvatarActivityRewardDetailInfo.proto + +package emu.grasscutter.net.proto; + +public final class TrialAvatarActivityRewardDetailInfoOuterClass { + private TrialAvatarActivityRewardDetailInfoOuterClass() {} + + 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 TrialAvatarActivityRewardDetailInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:TrialAvatarActivityRewardDetailInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * MCCAEONNHPH
+         * 
+ * + * bool received_reward = 12; + * + * @return The receivedReward. + */ + boolean getReceivedReward(); + + /** + * uint32 reward_id = 8; + * + * @return The rewardId. + */ + int getRewardId(); + + /** + * + * + *
+         * JNEMHMEMNEB
+         * 
+ * + * bool passed_dungeon = 14; + * + * @return The passedDungeon. + */ + boolean getPassedDungeon(); + + /** + * uint32 trial_avatar_index_id = 13; + * + * @return The trialAvatarIndexId. + */ + int getTrialAvatarIndexId(); + } + /** + * + * + *
+     * Name: BEBIONDAIJE
+     * 
+ * + * Protobuf type {@code TrialAvatarActivityRewardDetailInfo} + */ + public static final class TrialAvatarActivityRewardDetailInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:TrialAvatarActivityRewardDetailInfo) + TrialAvatarActivityRewardDetailInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrialAvatarActivityRewardDetailInfo.newBuilder() to construct. + private TrialAvatarActivityRewardDetailInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrialAvatarActivityRewardDetailInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrialAvatarActivityRewardDetailInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TrialAvatarActivityRewardDetailInfo( + 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 64: + { + rewardId_ = input.readUInt32(); + break; + } + case 96: + { + receivedReward_ = input.readBool(); + break; + } + case 104: + { + trialAvatarIndexId_ = input.readUInt32(); + break; + } + case 112: + { + passedDungeon_ = input.readBool(); + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .internal_static_TrialAvatarActivityRewardDetailInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .internal_static_TrialAvatarActivityRewardDetailInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.class, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder.class); + } + + public static final int RECEIVED_REWARD_FIELD_NUMBER = 12; + private boolean receivedReward_; + /** + * + * + *
+         * MCCAEONNHPH
+         * 
+ * + * bool received_reward = 12; + * + * @return The receivedReward. + */ + @java.lang.Override + public boolean getReceivedReward() { + return receivedReward_; + } + + public static final int REWARD_ID_FIELD_NUMBER = 8; + private int rewardId_; + /** + * uint32 reward_id = 8; + * + * @return The rewardId. + */ + @java.lang.Override + public int getRewardId() { + return rewardId_; + } + + public static final int PASSED_DUNGEON_FIELD_NUMBER = 14; + private boolean passedDungeon_; + /** + * + * + *
+         * JNEMHMEMNEB
+         * 
+ * + * bool passed_dungeon = 14; + * + * @return The passedDungeon. + */ + @java.lang.Override + public boolean getPassedDungeon() { + return passedDungeon_; + } + + public static final int TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER = 13; + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 13; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + + 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 (rewardId_ != 0) { + output.writeUInt32(8, rewardId_); + } + if (receivedReward_ != false) { + output.writeBool(12, receivedReward_); + } + if (trialAvatarIndexId_ != 0) { + output.writeUInt32(13, trialAvatarIndexId_); + } + if (passedDungeon_ != false) { + output.writeBool(14, passedDungeon_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rewardId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(8, rewardId_); + } + if (receivedReward_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, receivedReward_); + } + if (trialAvatarIndexId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, trialAvatarIndexId_); + } + if (passedDungeon_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, passedDungeon_); + } + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + other = + (emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo) + obj; + + if (getReceivedReward() != other.getReceivedReward()) return false; + if (getRewardId() != other.getRewardId()) return false; + if (getPassedDungeon() != other.getPassedDungeon()) return false; + if (getTrialAvatarIndexId() != other.getTrialAvatarIndexId()) 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) + RECEIVED_REWARD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReceivedReward()); + hash = (37 * hash) + REWARD_ID_FIELD_NUMBER; + hash = (53 * hash) + getRewardId(); + hash = (37 * hash) + PASSED_DUNGEON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPassedDungeon()); + hash = (37 * hash) + TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrialAvatarIndexId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + 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; + } + /** + * + * + *
+         * Name: BEBIONDAIJE
+         * 
+ * + * Protobuf type {@code TrialAvatarActivityRewardDetailInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:TrialAvatarActivityRewardDetailInfo) + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .internal_static_TrialAvatarActivityRewardDetailInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .internal_static_TrialAvatarActivityRewardDetailInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.class, + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass.TrialAvatarActivityRewardDetailInfo.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(); + receivedReward_ = false; + + rewardId_ = 0; + + passedDungeon_ = false; + + trialAvatarIndexId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .internal_static_TrialAvatarActivityRewardDetailInfo_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + build() { + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + buildPartial() { + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + result = + new emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo(this); + result.receivedReward_ = receivedReward_; + result.rewardId_ = rewardId_; + result.passedDungeon_ = passedDungeon_; + result.trialAvatarIndexId_ = trialAvatarIndexId_; + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo) { + return mergeFrom( + (emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + other) { + if (other + == emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo.getDefaultInstance()) return this; + if (other.getReceivedReward() != false) { + setReceivedReward(other.getReceivedReward()); + } + if (other.getRewardId() != 0) { + setRewardId(other.getRewardId()); + } + if (other.getPassedDungeon() != false) { + setPassedDungeon(other.getPassedDungeon()); + } + if (other.getTrialAvatarIndexId() != 0) { + setTrialAvatarIndexId(other.getTrialAvatarIndexId()); + } + 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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean receivedReward_; + /** + * + * + *
+             * MCCAEONNHPH
+             * 
+ * + * bool received_reward = 12; + * + * @return The receivedReward. + */ + @java.lang.Override + public boolean getReceivedReward() { + return receivedReward_; + } + /** + * + * + *
+             * MCCAEONNHPH
+             * 
+ * + * bool received_reward = 12; + * + * @param value The receivedReward to set. + * @return This builder for chaining. + */ + public Builder setReceivedReward(boolean value) { + + receivedReward_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * MCCAEONNHPH
+             * 
+ * + * bool received_reward = 12; + * + * @return This builder for chaining. + */ + public Builder clearReceivedReward() { + + receivedReward_ = false; + onChanged(); + return this; + } + + private int rewardId_; + /** + * uint32 reward_id = 8; + * + * @return The rewardId. + */ + @java.lang.Override + public int getRewardId() { + return rewardId_; + } + /** + * uint32 reward_id = 8; + * + * @param value The rewardId to set. + * @return This builder for chaining. + */ + public Builder setRewardId(int value) { + + rewardId_ = value; + onChanged(); + return this; + } + /** + * uint32 reward_id = 8; + * + * @return This builder for chaining. + */ + public Builder clearRewardId() { + + rewardId_ = 0; + onChanged(); + return this; + } + + private boolean passedDungeon_; + /** + * + * + *
+             * JNEMHMEMNEB
+             * 
+ * + * bool passed_dungeon = 14; + * + * @return The passedDungeon. + */ + @java.lang.Override + public boolean getPassedDungeon() { + return passedDungeon_; + } + /** + * + * + *
+             * JNEMHMEMNEB
+             * 
+ * + * bool passed_dungeon = 14; + * + * @param value The passedDungeon to set. + * @return This builder for chaining. + */ + public Builder setPassedDungeon(boolean value) { + + passedDungeon_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * JNEMHMEMNEB
+             * 
+ * + * bool passed_dungeon = 14; + * + * @return This builder for chaining. + */ + public Builder clearPassedDungeon() { + + passedDungeon_ = false; + onChanged(); + return this; + } + + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 13; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + /** + * uint32 trial_avatar_index_id = 13; + * + * @param value The trialAvatarIndexId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarIndexId(int value) { + + trialAvatarIndexId_ = value; + onChanged(); + return this; + } + /** + * uint32 trial_avatar_index_id = 13; + * + * @return This builder for chaining. + */ + public Builder clearTrialAvatarIndexId() { + + trialAvatarIndexId_ = 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:TrialAvatarActivityRewardDetailInfo) + } + + // @@protoc_insertion_point(class_scope:TrialAvatarActivityRewardDetailInfo) + private static final emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo(); + } + + public static emu.grasscutter.net.proto.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrialAvatarActivityRewardDetailInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrialAvatarActivityRewardDetailInfo(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.TrialAvatarActivityRewardDetailInfoOuterClass + .TrialAvatarActivityRewardDetailInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_TrialAvatarActivityRewardDetailInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_TrialAvatarActivityRewardDetailInfo_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)TrialAvatarActivityRewardDetailInfo.pr" + + "oto\"\210\001\n#TrialAvatarActivityRewardDetailI" + + "nfo\022\027\n\017received_reward\030\014 \001(\010\022\021\n\treward_i" + + "d\030\010 \001(\r\022\026\n\016passed_dungeon\030\016 \001(\010\022\035\n\025trial" + + "_avatar_index_id\030\r \001(\rB\033\n\031emu.grasscutte" + + "r.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_TrialAvatarActivityRewardDetailInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_TrialAvatarActivityRewardDetailInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TrialAvatarActivityRewardDetailInfo_descriptor, + new java.lang.String[] { + "ReceivedReward", "RewardId", "PassedDungeon", "TrialAvatarIndexId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarInDungeonIndexNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarInDungeonIndexNotifyOuterClass.java new file mode 100644 index 000000000..0bc1e07bc --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/TrialAvatarInDungeonIndexNotifyOuterClass.java @@ -0,0 +1,639 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrialAvatarInDungeonIndexNotify.proto + +package emu.grasscutter.net.proto; + +public final class TrialAvatarInDungeonIndexNotifyOuterClass { + private TrialAvatarInDungeonIndexNotifyOuterClass() {} + + 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 TrialAvatarInDungeonIndexNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:TrialAvatarInDungeonIndexNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 trial_avatar_index_id = 6; + * + * @return The trialAvatarIndexId. + */ + int getTrialAvatarIndexId(); + } + /** + * + * + *
+     * Name: NEIOEGLNCBC
+     * CmdId: 2109
+     * 
+ * + * Protobuf type {@code TrialAvatarInDungeonIndexNotify} + */ + public static final class TrialAvatarInDungeonIndexNotify + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:TrialAvatarInDungeonIndexNotify) + TrialAvatarInDungeonIndexNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrialAvatarInDungeonIndexNotify.newBuilder() to construct. + private TrialAvatarInDungeonIndexNotify( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrialAvatarInDungeonIndexNotify() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrialAvatarInDungeonIndexNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TrialAvatarInDungeonIndexNotify( + 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 48: + { + trialAvatarIndexId_ = 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.TrialAvatarInDungeonIndexNotifyOuterClass + .internal_static_TrialAvatarInDungeonIndexNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .internal_static_TrialAvatarInDungeonIndexNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify.class, + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify.Builder.class); + } + + public static final int TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER = 6; + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 6; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + + 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 (trialAvatarIndexId_ != 0) { + output.writeUInt32(6, trialAvatarIndexId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trialAvatarIndexId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, trialAvatarIndexId_); + } + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + other = + (emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify) + obj; + + if (getTrialAvatarIndexId() != other.getTrialAvatarIndexId()) 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) + TRIAL_AVATAR_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrialAvatarIndexId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + 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; + } + /** + * + * + *
+         * Name: NEIOEGLNCBC
+         * CmdId: 2109
+         * 
+ * + * Protobuf type {@code TrialAvatarInDungeonIndexNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:TrialAvatarInDungeonIndexNotify) + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .internal_static_TrialAvatarInDungeonIndexNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .internal_static_TrialAvatarInDungeonIndexNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify.class, + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify.Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass.TrialAvatarInDungeonIndexNotify.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(); + trialAvatarIndexId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .internal_static_TrialAvatarInDungeonIndexNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + build() { + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + buildPartial() { + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + result = + new emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify(this); + result.trialAvatarIndexId_ = trialAvatarIndexId_; + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify) { + return mergeFrom( + (emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + other) { + if (other + == emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify.getDefaultInstance()) return this; + if (other.getTrialAvatarIndexId() != 0) { + setTrialAvatarIndexId(other.getTrialAvatarIndexId()); + } + 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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int trialAvatarIndexId_; + /** + * uint32 trial_avatar_index_id = 6; + * + * @return The trialAvatarIndexId. + */ + @java.lang.Override + public int getTrialAvatarIndexId() { + return trialAvatarIndexId_; + } + /** + * uint32 trial_avatar_index_id = 6; + * + * @param value The trialAvatarIndexId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarIndexId(int value) { + + trialAvatarIndexId_ = value; + onChanged(); + return this; + } + /** + * uint32 trial_avatar_index_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearTrialAvatarIndexId() { + + trialAvatarIndexId_ = 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:TrialAvatarInDungeonIndexNotify) + } + + // @@protoc_insertion_point(class_scope:TrialAvatarInDungeonIndexNotify) + private static final emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify(); + } + + public static emu.grasscutter.net.proto.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrialAvatarInDungeonIndexNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrialAvatarInDungeonIndexNotify(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.TrialAvatarInDungeonIndexNotifyOuterClass + .TrialAvatarInDungeonIndexNotify + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_TrialAvatarInDungeonIndexNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_TrialAvatarInDungeonIndexNotify_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%TrialAvatarInDungeonIndexNotify.proto\"" + + "@\n\037TrialAvatarInDungeonIndexNotify\022\035\n\025tr" + + "ial_avatar_index_id\030\006 \001(\rB\033\n\031emu.grasscu" + + "tter.net.protob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_TrialAvatarInDungeonIndexNotify_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_TrialAvatarInDungeonIndexNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TrialAvatarInDungeonIndexNotify_descriptor, + new java.lang.String[] { + "TrialAvatarIndexId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/UgcActivityDetailInfoOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/UgcActivityDetailInfoOuterClass.java new file mode 100644 index 000000000..db7ed063d --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/UgcActivityDetailInfoOuterClass.java @@ -0,0 +1,1147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UgcActivityDetailInfo.proto + +package emu.grasscutter.net.proto; + +public final class UgcActivityDetailInfoOuterClass { + private UgcActivityDetailInfoOuterClass() {} + + 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 UgcActivityDetailInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:UgcActivityDetailInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * bool is_ugc_feature_closed = 10; + * + * @return The isUgcFeatureClosed. + */ + boolean getIsUgcFeatureClosed(); + + /** + * uint32 custom_dungeon_group_id = 12; + * + * @return The customDungeonGroupId. + */ + int getCustomDungeonGroupId(); + + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + java.util.List + getOfficialCustomDungeonListList(); + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + getOfficialCustomDungeonList(int index); + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + int getOfficialCustomDungeonListCount(); + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + java.util.List< + ? extends + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder> + getOfficialCustomDungeonListOrBuilderList(); + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeonOrBuilder + getOfficialCustomDungeonListOrBuilder(int index); + + /** + * bool is_enable_ugc = 11; + * + * @return The isEnableUgc. + */ + boolean getIsEnableUgc(); + } + /** + * + * + *
+     * 3.2
+     * 
+ * + * Protobuf type {@code UgcActivityDetailInfo} + */ + public static final class UgcActivityDetailInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:UgcActivityDetailInfo) + UgcActivityDetailInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UgcActivityDetailInfo.newBuilder() to construct. + private UgcActivityDetailInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UgcActivityDetailInfo() { + officialCustomDungeonList_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UgcActivityDetailInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UgcActivityDetailInfo( + 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 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + officialCustomDungeonList_ = + new java.util.ArrayList< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeon>(); + mutable_bitField0_ |= 0x00000001; + } + officialCustomDungeonList_.add( + input.readMessage( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeon.parser(), + extensionRegistry)); + break; + } + case 80: + { + isUgcFeatureClosed_ = input.readBool(); + break; + } + case 88: + { + isEnableUgc_ = input.readBool(); + break; + } + case 96: + { + customDungeonGroupId_ = input.readUInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + officialCustomDungeonList_ = + java.util.Collections.unmodifiableList(officialCustomDungeonList_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass + .internal_static_UgcActivityDetailInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass + .internal_static_UgcActivityDetailInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo.class, + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + .Builder.class); + } + + public static final int IS_UGC_FEATURE_CLOSED_FIELD_NUMBER = 10; + private boolean isUgcFeatureClosed_; + /** + * bool is_ugc_feature_closed = 10; + * + * @return The isUgcFeatureClosed. + */ + @java.lang.Override + public boolean getIsUgcFeatureClosed() { + return isUgcFeatureClosed_; + } + + public static final int CUSTOM_DUNGEON_GROUP_ID_FIELD_NUMBER = 12; + private int customDungeonGroupId_; + /** + * uint32 custom_dungeon_group_id = 12; + * + * @return The customDungeonGroupId. + */ + @java.lang.Override + public int getCustomDungeonGroupId() { + return customDungeonGroupId_; + } + + public static final int OFFICIAL_CUSTOM_DUNGEON_LIST_FIELD_NUMBER = 5; + private java.util.List< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon> + officialCustomDungeonList_; + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + @java.lang.Override + public java.util.List< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon> + getOfficialCustomDungeonListList() { + return officialCustomDungeonList_; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + @java.lang.Override + public java.util.List< + ? extends + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder> + getOfficialCustomDungeonListOrBuilderList() { + return officialCustomDungeonList_; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + @java.lang.Override + public int getOfficialCustomDungeonListCount() { + return officialCustomDungeonList_.size(); + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + @java.lang.Override + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + getOfficialCustomDungeonList(int index) { + return officialCustomDungeonList_.get(index); + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + @java.lang.Override + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeonOrBuilder + getOfficialCustomDungeonListOrBuilder(int index) { + return officialCustomDungeonList_.get(index); + } + + public static final int IS_ENABLE_UGC_FIELD_NUMBER = 11; + private boolean isEnableUgc_; + /** + * bool is_enable_ugc = 11; + * + * @return The isEnableUgc. + */ + @java.lang.Override + public boolean getIsEnableUgc() { + return isEnableUgc_; + } + + 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 < officialCustomDungeonList_.size(); i++) { + output.writeMessage(5, officialCustomDungeonList_.get(i)); + } + if (isUgcFeatureClosed_ != false) { + output.writeBool(10, isUgcFeatureClosed_); + } + if (isEnableUgc_ != false) { + output.writeBool(11, isEnableUgc_); + } + if (customDungeonGroupId_ != 0) { + output.writeUInt32(12, customDungeonGroupId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < officialCustomDungeonList_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, officialCustomDungeonList_.get(i)); + } + if (isUgcFeatureClosed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, isUgcFeatureClosed_); + } + if (isEnableUgc_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, isEnableUgc_); + } + if (customDungeonGroupId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(12, customDungeonGroupId_); + } + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo other = + (emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo) obj; + + if (getIsUgcFeatureClosed() != other.getIsUgcFeatureClosed()) return false; + if (getCustomDungeonGroupId() != other.getCustomDungeonGroupId()) return false; + if (!getOfficialCustomDungeonListList().equals(other.getOfficialCustomDungeonListList())) + return false; + if (getIsEnableUgc() != other.getIsEnableUgc()) 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) + IS_UGC_FEATURE_CLOSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUgcFeatureClosed()); + hash = (37 * hash) + CUSTOM_DUNGEON_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomDungeonGroupId(); + if (getOfficialCustomDungeonListCount() > 0) { + hash = (37 * hash) + OFFICIAL_CUSTOM_DUNGEON_LIST_FIELD_NUMBER; + hash = (53 * hash) + getOfficialCustomDungeonListList().hashCode(); + } + hash = (37 * hash) + IS_ENABLE_UGC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsEnableUgc()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo 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; + } + /** + * + * + *
+         * 3.2
+         * 
+ * + * Protobuf type {@code UgcActivityDetailInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:UgcActivityDetailInfo) + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass + .internal_static_UgcActivityDetailInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass + .internal_static_UgcActivityDetailInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + .class, + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + .Builder.class); + } + + // Construct using + // emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOfficialCustomDungeonListFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + isUgcFeatureClosed_ = false; + + customDungeonGroupId_ = 0; + + if (officialCustomDungeonListBuilder_ == null) { + officialCustomDungeonList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + officialCustomDungeonListBuilder_.clear(); + } + isEnableUgc_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass + .internal_static_UgcActivityDetailInfo_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + getDefaultInstanceForType() { + return emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + .getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + build() { + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + buildPartial() { + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo result = + new emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo( + this); + int from_bitField0_ = bitField0_; + result.isUgcFeatureClosed_ = isUgcFeatureClosed_; + result.customDungeonGroupId_ = customDungeonGroupId_; + if (officialCustomDungeonListBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + officialCustomDungeonList_ = + java.util.Collections.unmodifiableList(officialCustomDungeonList_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.officialCustomDungeonList_ = officialCustomDungeonList_; + } else { + result.officialCustomDungeonList_ = officialCustomDungeonListBuilder_.build(); + } + result.isEnableUgc_ = isEnableUgc_; + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo) { + return mergeFrom( + (emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo other) { + if (other + == emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + .getDefaultInstance()) return this; + if (other.getIsUgcFeatureClosed() != false) { + setIsUgcFeatureClosed(other.getIsUgcFeatureClosed()); + } + if (other.getCustomDungeonGroupId() != 0) { + setCustomDungeonGroupId(other.getCustomDungeonGroupId()); + } + if (officialCustomDungeonListBuilder_ == null) { + if (!other.officialCustomDungeonList_.isEmpty()) { + if (officialCustomDungeonList_.isEmpty()) { + officialCustomDungeonList_ = other.officialCustomDungeonList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.addAll(other.officialCustomDungeonList_); + } + onChanged(); + } + } else { + if (!other.officialCustomDungeonList_.isEmpty()) { + if (officialCustomDungeonListBuilder_.isEmpty()) { + officialCustomDungeonListBuilder_.dispose(); + officialCustomDungeonListBuilder_ = null; + officialCustomDungeonList_ = other.officialCustomDungeonList_; + bitField0_ = (bitField0_ & ~0x00000001); + officialCustomDungeonListBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOfficialCustomDungeonListFieldBuilder() + : null; + } else { + officialCustomDungeonListBuilder_.addAllMessages(other.officialCustomDungeonList_); + } + } + } + if (other.getIsEnableUgc() != false) { + setIsEnableUgc(other.getIsEnableUgc()); + } + 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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private boolean isUgcFeatureClosed_; + /** + * bool is_ugc_feature_closed = 10; + * + * @return The isUgcFeatureClosed. + */ + @java.lang.Override + public boolean getIsUgcFeatureClosed() { + return isUgcFeatureClosed_; + } + /** + * bool is_ugc_feature_closed = 10; + * + * @param value The isUgcFeatureClosed to set. + * @return This builder for chaining. + */ + public Builder setIsUgcFeatureClosed(boolean value) { + + isUgcFeatureClosed_ = value; + onChanged(); + return this; + } + /** + * bool is_ugc_feature_closed = 10; + * + * @return This builder for chaining. + */ + public Builder clearIsUgcFeatureClosed() { + + isUgcFeatureClosed_ = false; + onChanged(); + return this; + } + + private int customDungeonGroupId_; + /** + * uint32 custom_dungeon_group_id = 12; + * + * @return The customDungeonGroupId. + */ + @java.lang.Override + public int getCustomDungeonGroupId() { + return customDungeonGroupId_; + } + /** + * uint32 custom_dungeon_group_id = 12; + * + * @param value The customDungeonGroupId to set. + * @return This builder for chaining. + */ + public Builder setCustomDungeonGroupId(int value) { + + customDungeonGroupId_ = value; + onChanged(); + return this; + } + /** + * uint32 custom_dungeon_group_id = 12; + * + * @return This builder for chaining. + */ + public Builder clearCustomDungeonGroupId() { + + customDungeonGroupId_ = 0; + onChanged(); + return this; + } + + private java.util.List< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon> + officialCustomDungeonList_ = java.util.Collections.emptyList(); + + private void ensureOfficialCustomDungeonListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + officialCustomDungeonList_ = + new java.util.ArrayList< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon>( + officialCustomDungeonList_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .Builder, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder> + officialCustomDungeonListBuilder_; + + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public java.util.List< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon> + getOfficialCustomDungeonListList() { + if (officialCustomDungeonListBuilder_ == null) { + return java.util.Collections.unmodifiableList(officialCustomDungeonList_); + } else { + return officialCustomDungeonListBuilder_.getMessageList(); + } + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public int getOfficialCustomDungeonListCount() { + if (officialCustomDungeonListBuilder_ == null) { + return officialCustomDungeonList_.size(); + } else { + return officialCustomDungeonListBuilder_.getCount(); + } + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + getOfficialCustomDungeonList(int index) { + if (officialCustomDungeonListBuilder_ == null) { + return officialCustomDungeonList_.get(index); + } else { + return officialCustomDungeonListBuilder_.getMessage(index); + } + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder setOfficialCustomDungeonList( + int index, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon value) { + if (officialCustomDungeonListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.set(index, value); + onChanged(); + } else { + officialCustomDungeonListBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder setOfficialCustomDungeonList( + int index, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.Builder + builderForValue) { + if (officialCustomDungeonListBuilder_ == null) { + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.set(index, builderForValue.build()); + onChanged(); + } else { + officialCustomDungeonListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder addOfficialCustomDungeonList( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon value) { + if (officialCustomDungeonListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.add(value); + onChanged(); + } else { + officialCustomDungeonListBuilder_.addMessage(value); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder addOfficialCustomDungeonList( + int index, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon value) { + if (officialCustomDungeonListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.add(index, value); + onChanged(); + } else { + officialCustomDungeonListBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder addOfficialCustomDungeonList( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.Builder + builderForValue) { + if (officialCustomDungeonListBuilder_ == null) { + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.add(builderForValue.build()); + onChanged(); + } else { + officialCustomDungeonListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder addOfficialCustomDungeonList( + int index, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.Builder + builderForValue) { + if (officialCustomDungeonListBuilder_ == null) { + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.add(index, builderForValue.build()); + onChanged(); + } else { + officialCustomDungeonListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder addAllOfficialCustomDungeonList( + java.lang.Iterable< + ? extends + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeon> + values) { + if (officialCustomDungeonListBuilder_ == null) { + ensureOfficialCustomDungeonListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, officialCustomDungeonList_); + onChanged(); + } else { + officialCustomDungeonListBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder clearOfficialCustomDungeonList() { + if (officialCustomDungeonListBuilder_ == null) { + officialCustomDungeonList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + officialCustomDungeonListBuilder_.clear(); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public Builder removeOfficialCustomDungeonList(int index) { + if (officialCustomDungeonListBuilder_ == null) { + ensureOfficialCustomDungeonListIsMutable(); + officialCustomDungeonList_.remove(index); + onChanged(); + } else { + officialCustomDungeonListBuilder_.remove(index); + } + return this; + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.Builder + getOfficialCustomDungeonListBuilder(int index) { + return getOfficialCustomDungeonListFieldBuilder().getBuilder(index); + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder + getOfficialCustomDungeonListOrBuilder(int index) { + if (officialCustomDungeonListBuilder_ == null) { + return officialCustomDungeonList_.get(index); + } else { + return officialCustomDungeonListBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public java.util.List< + ? extends + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder> + getOfficialCustomDungeonListOrBuilderList() { + if (officialCustomDungeonListBuilder_ != null) { + return officialCustomDungeonListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(officialCustomDungeonList_); + } + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.Builder + addOfficialCustomDungeonListBuilder() { + return getOfficialCustomDungeonListFieldBuilder() + .addBuilder( + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .getDefaultInstance()); + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon.Builder + addOfficialCustomDungeonListBuilder(int index) { + return getOfficialCustomDungeonListFieldBuilder() + .addBuilder( + index, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .getDefaultInstance()); + } + /** repeated .OfficialCustomDungeon official_custom_dungeon_list = 5; */ + public java.util.List< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .Builder> + getOfficialCustomDungeonListBuilderList() { + return getOfficialCustomDungeonListFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .Builder, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder> + getOfficialCustomDungeonListFieldBuilder() { + if (officialCustomDungeonListBuilder_ == null) { + officialCustomDungeonListBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.OfficialCustomDungeon + .Builder, + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass + .OfficialCustomDungeonOrBuilder>( + officialCustomDungeonList_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + officialCustomDungeonList_ = null; + } + return officialCustomDungeonListBuilder_; + } + + private boolean isEnableUgc_; + /** + * bool is_enable_ugc = 11; + * + * @return The isEnableUgc. + */ + @java.lang.Override + public boolean getIsEnableUgc() { + return isEnableUgc_; + } + /** + * bool is_enable_ugc = 11; + * + * @param value The isEnableUgc to set. + * @return This builder for chaining. + */ + public Builder setIsEnableUgc(boolean value) { + + isEnableUgc_ = value; + onChanged(); + return this; + } + /** + * bool is_enable_ugc = 11; + * + * @return This builder for chaining. + */ + public Builder clearIsEnableUgc() { + + isEnableUgc_ = false; + 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:UgcActivityDetailInfo) + } + + // @@protoc_insertion_point(class_scope:UgcActivityDetailInfo) + private static final emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass + .UgcActivityDetailInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo(); + } + + public static emu.grasscutter.net.proto.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UgcActivityDetailInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UgcActivityDetailInfo(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.UgcActivityDetailInfoOuterClass.UgcActivityDetailInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_UgcActivityDetailInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_UgcActivityDetailInfo_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\033UgcActivityDetailInfo.proto\032\033OfficialC" + + "ustomDungeon.proto\"\254\001\n\025UgcActivityDetail" + + "Info\022\035\n\025is_ugc_feature_closed\030\n \001(\010\022\037\n\027c" + + "ustom_dungeon_group_id\030\014 \001(\r\022<\n\034official" + + "_custom_dungeon_list\030\005 \003(\0132\026.OfficialCus" + + "tomDungeon\022\025\n\ris_enable_ugc\030\013 \001(\010B\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.OfficialCustomDungeonOuterClass.getDescriptor(), + }); + internal_static_UgcActivityDetailInfo_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_UgcActivityDetailInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_UgcActivityDetailInfo_descriptor, + new java.lang.String[] { + "IsUgcFeatureClosed", + "CustomDungeonGroupId", + "OfficialCustomDungeonList", + "IsEnableUgc", + }); + emu.grasscutter.net.proto.OfficialCustomDungeonOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/UgcNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/UgcNotifyOuterClass.java new file mode 100644 index 000000000..72067b153 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/UgcNotifyOuterClass.java @@ -0,0 +1,716 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UgcNotify.proto + +package emu.grasscutter.net.proto; + +public final class UgcNotifyOuterClass { + private UgcNotifyOuterClass() {} + + 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 UgcNotifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:UgcNotify) + com.google.protobuf.MessageOrBuilder { + + /** + * bool is_ugc_publish_ban = 12; + * + * @return The isUgcPublishBan. + */ + boolean getIsUgcPublishBan(); + + /** + * bool is_ugc_publish_feature_closed = 8; + * + * @return The isUgcPublishFeatureClosed. + */ + boolean getIsUgcPublishFeatureClosed(); + + /** + * bool is_ugc_feature_closed = 15; + * + * @return The isUgcFeatureClosed. + */ + boolean getIsUgcFeatureClosed(); + } + /** + * + * + *
+     * CmdId: 6341 (3.2)
+     * EnetChannelId: 0
+     * EnetIsReliable: true
+     * 
+ * + * Protobuf type {@code UgcNotify} + */ + public static final class UgcNotify extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:UgcNotify) + UgcNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use UgcNotify.newBuilder() to construct. + private UgcNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UgcNotify() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UgcNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UgcNotify( + 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 64: + { + isUgcPublishFeatureClosed_ = input.readBool(); + break; + } + case 96: + { + isUgcPublishBan_ = input.readBool(); + break; + } + case 120: + { + isUgcFeatureClosed_ = input.readBool(); + 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.UgcNotifyOuterClass.internal_static_UgcNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.UgcNotifyOuterClass + .internal_static_UgcNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.class, + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.Builder.class); + } + + public static final int IS_UGC_PUBLISH_BAN_FIELD_NUMBER = 12; + private boolean isUgcPublishBan_; + /** + * bool is_ugc_publish_ban = 12; + * + * @return The isUgcPublishBan. + */ + @java.lang.Override + public boolean getIsUgcPublishBan() { + return isUgcPublishBan_; + } + + public static final int IS_UGC_PUBLISH_FEATURE_CLOSED_FIELD_NUMBER = 8; + private boolean isUgcPublishFeatureClosed_; + /** + * bool is_ugc_publish_feature_closed = 8; + * + * @return The isUgcPublishFeatureClosed. + */ + @java.lang.Override + public boolean getIsUgcPublishFeatureClosed() { + return isUgcPublishFeatureClosed_; + } + + public static final int IS_UGC_FEATURE_CLOSED_FIELD_NUMBER = 15; + private boolean isUgcFeatureClosed_; + /** + * bool is_ugc_feature_closed = 15; + * + * @return The isUgcFeatureClosed. + */ + @java.lang.Override + public boolean getIsUgcFeatureClosed() { + return isUgcFeatureClosed_; + } + + 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 (isUgcPublishFeatureClosed_ != false) { + output.writeBool(8, isUgcPublishFeatureClosed_); + } + if (isUgcPublishBan_ != false) { + output.writeBool(12, isUgcPublishBan_); + } + if (isUgcFeatureClosed_ != false) { + output.writeBool(15, isUgcFeatureClosed_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isUgcPublishFeatureClosed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(8, isUgcPublishFeatureClosed_); + } + if (isUgcPublishBan_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, isUgcPublishBan_); + } + if (isUgcFeatureClosed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, isUgcFeatureClosed_); + } + 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.UgcNotifyOuterClass.UgcNotify)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify other = + (emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify) obj; + + if (getIsUgcPublishBan() != other.getIsUgcPublishBan()) return false; + if (getIsUgcPublishFeatureClosed() != other.getIsUgcPublishFeatureClosed()) return false; + if (getIsUgcFeatureClosed() != other.getIsUgcFeatureClosed()) 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) + IS_UGC_PUBLISH_BAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUgcPublishBan()); + hash = (37 * hash) + IS_UGC_PUBLISH_FEATURE_CLOSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUgcPublishFeatureClosed()); + hash = (37 * hash) + IS_UGC_FEATURE_CLOSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUgcFeatureClosed()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify 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.UgcNotifyOuterClass.UgcNotify parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify 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.UgcNotifyOuterClass.UgcNotify parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify 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.UgcNotifyOuterClass.UgcNotify parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify 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.UgcNotifyOuterClass.UgcNotify parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify 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.UgcNotifyOuterClass.UgcNotify 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: 6341 (3.2)
+         * EnetChannelId: 0
+         * EnetIsReliable: true
+         * 
+ * + * Protobuf type {@code UgcNotify} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:UgcNotify) + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return emu.grasscutter.net.proto.UgcNotifyOuterClass.internal_static_UgcNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.UgcNotifyOuterClass + .internal_static_UgcNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.class, + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.Builder.class); + } + + // Construct using emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.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(); + isUgcPublishBan_ = false; + + isUgcPublishFeatureClosed_ = false; + + isUgcFeatureClosed_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return emu.grasscutter.net.proto.UgcNotifyOuterClass.internal_static_UgcNotify_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify getDefaultInstanceForType() { + return emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify build() { + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify buildPartial() { + emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify result = + new emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify(this); + result.isUgcPublishBan_ = isUgcPublishBan_; + result.isUgcPublishFeatureClosed_ = isUgcPublishFeatureClosed_; + result.isUgcFeatureClosed_ = isUgcFeatureClosed_; + 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.UgcNotifyOuterClass.UgcNotify) { + return mergeFrom((emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify other) { + if (other == emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify.getDefaultInstance()) + return this; + if (other.getIsUgcPublishBan() != false) { + setIsUgcPublishBan(other.getIsUgcPublishBan()); + } + if (other.getIsUgcPublishFeatureClosed() != false) { + setIsUgcPublishFeatureClosed(other.getIsUgcPublishFeatureClosed()); + } + if (other.getIsUgcFeatureClosed() != false) { + setIsUgcFeatureClosed(other.getIsUgcFeatureClosed()); + } + 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.UgcNotifyOuterClass.UgcNotify parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean isUgcPublishBan_; + /** + * bool is_ugc_publish_ban = 12; + * + * @return The isUgcPublishBan. + */ + @java.lang.Override + public boolean getIsUgcPublishBan() { + return isUgcPublishBan_; + } + /** + * bool is_ugc_publish_ban = 12; + * + * @param value The isUgcPublishBan to set. + * @return This builder for chaining. + */ + public Builder setIsUgcPublishBan(boolean value) { + + isUgcPublishBan_ = value; + onChanged(); + return this; + } + /** + * bool is_ugc_publish_ban = 12; + * + * @return This builder for chaining. + */ + public Builder clearIsUgcPublishBan() { + + isUgcPublishBan_ = false; + onChanged(); + return this; + } + + private boolean isUgcPublishFeatureClosed_; + /** + * bool is_ugc_publish_feature_closed = 8; + * + * @return The isUgcPublishFeatureClosed. + */ + @java.lang.Override + public boolean getIsUgcPublishFeatureClosed() { + return isUgcPublishFeatureClosed_; + } + /** + * bool is_ugc_publish_feature_closed = 8; + * + * @param value The isUgcPublishFeatureClosed to set. + * @return This builder for chaining. + */ + public Builder setIsUgcPublishFeatureClosed(boolean value) { + + isUgcPublishFeatureClosed_ = value; + onChanged(); + return this; + } + /** + * bool is_ugc_publish_feature_closed = 8; + * + * @return This builder for chaining. + */ + public Builder clearIsUgcPublishFeatureClosed() { + + isUgcPublishFeatureClosed_ = false; + onChanged(); + return this; + } + + private boolean isUgcFeatureClosed_; + /** + * bool is_ugc_feature_closed = 15; + * + * @return The isUgcFeatureClosed. + */ + @java.lang.Override + public boolean getIsUgcFeatureClosed() { + return isUgcFeatureClosed_; + } + /** + * bool is_ugc_feature_closed = 15; + * + * @param value The isUgcFeatureClosed to set. + * @return This builder for chaining. + */ + public Builder setIsUgcFeatureClosed(boolean value) { + + isUgcFeatureClosed_ = value; + onChanged(); + return this; + } + /** + * bool is_ugc_feature_closed = 15; + * + * @return This builder for chaining. + */ + public Builder clearIsUgcFeatureClosed() { + + isUgcFeatureClosed_ = false; + 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:UgcNotify) + } + + // @@protoc_insertion_point(class_scope:UgcNotify) + private static final emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify(); + } + + public static emu.grasscutter.net.proto.UgcNotifyOuterClass.UgcNotify getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UgcNotify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UgcNotify(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.UgcNotifyOuterClass.UgcNotify getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_UgcNotify_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_UgcNotify_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\017UgcNotify.proto\"m\n\tUgcNotify\022\032\n\022is_ugc" + + "_publish_ban\030\014 \001(\010\022%\n\035is_ugc_publish_fea" + + "ture_closed\030\010 \001(\010\022\035\n\025is_ugc_feature_clos" + + "ed\030\017 \001(\010B\033\n\031emu.grasscutter.net.protob\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_UgcNotify_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_UgcNotify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_UgcNotify_descriptor, + new java.lang.String[] { + "IsUgcPublishBan", "IsUgcPublishFeatureClosed", "IsUgcFeatureClosed", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +}