From ab5b49b7c510e7c7776e8cf9fb7138ee3afb221e Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Thu, 9 Feb 2023 09:00:16 -0700 Subject: [PATCH] Teapot Implementations & Fixes (#2032) * Add realm switching Fix realm unlock items * Implement exiting teapot * Implement home level rewards * Fix small issues * Fix call issue * Add 'seen unlock' packets * Fix Sumeru Main House bricking accounts This is only for the house, not the full realm * Fixed realm 5 Main house needs to be placed manually for Sumeru realm (module 5) as the resources for defaults in Sumeru realm are missing. Sumeru main house cannot be exited from the door, issue due to the same missing res. * Fix Grass main house bricking accounts * Remove references * Formatting change (web editor) * Whitespace & Formatting * Whitespace * Make 'seen' status persistent * Fix misnamed field * Revert "Fix misnamed field" This reverts commit 21ef404e14b3111db47c25a15ba86bbd2eaab6db. * Implement gaining trust (realm exp) Add gaining trust by crafting Add gaining trust via `/give` Show trust in djinn menu * Interior check for prevScene * Correct positions & rotations Return to front of main house when exiting from inside * Update HandlerBackMyWorldReq.java --------- Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com> Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> --- .../net/proto/BackMyWorldReqOuterClass.java | 487 +++++++++++ .../net/proto/BackMyWorldRspOuterClass.java | 556 +++++++++++++ .../GetHomeLevelUpRewardReqOuterClass.java | 558 +++++++++++++ .../GetHomeLevelUpRewardRspOuterClass.java | 627 +++++++++++++++ .../proto/HomeChangeModuleReqOuterClass.java | 558 +++++++++++++ .../proto/HomeChangeModuleRspOuterClass.java | 627 +++++++++++++++ .../proto/HomeModuleSeenReqOuterClass.java | 685 ++++++++++++++++ .../proto/HomeModuleSeenRspOuterClass.java | 754 ++++++++++++++++++ .../HomeModuleUnlockNotifyOuterClass.java | 556 +++++++++++++ .../emu/grasscutter/game/home/GameHome.java | 33 +- .../grasscutter/game/inventory/Inventory.java | 4 +- .../game/managers/FurnitureManager.java | 4 + .../emu/grasscutter/game/player/Player.java | 21 + .../ItemUseUnlockHomeModule.java | 8 +- .../packet/recv/HandlerBackMyWorldReq.java | 33 + .../recv/HandlerGetHomeLevelUpRewardReq.java | 42 + .../recv/HandlerHomeChangeModuleReq.java | 37 + .../packet/recv/HandlerHomeModuleSeenReq.java | 26 + .../packet/recv/HandlerHomeSceneJumpReq.java | 9 + .../packet/send/PacketBackMyWorldRsp.java | 16 + .../send/PacketGetHomeLevelUpRewardRsp.java | 25 + .../send/PacketHomeBasicInfoNotify.java | 1 + .../send/PacketHomeChangeModuleRsp.java | 19 + .../packet/send/PacketHomeModuleSeenRsp.java | 20 + .../send/PacketHomeModuleUnlockNotify.java | 18 + .../send/PacketPlayerEnterSceneNotify.java | 8 + .../send/PacketPlayerHomeCompInfoNotify.java | 5 +- 27 files changed, 5731 insertions(+), 6 deletions(-) create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/BackMyWorldReqOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/BackMyWorldRspOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/GetHomeLevelUpRewardReqOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/GetHomeLevelUpRewardRspOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/HomeChangeModuleReqOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/HomeChangeModuleRspOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/HomeModuleSeenReqOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/HomeModuleSeenRspOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/HomeModuleUnlockNotifyOuterClass.java create mode 100644 src/main/java/emu/grasscutter/server/packet/recv/HandlerBackMyWorldReq.java create mode 100644 src/main/java/emu/grasscutter/server/packet/recv/HandlerGetHomeLevelUpRewardReq.java create mode 100644 src/main/java/emu/grasscutter/server/packet/recv/HandlerHomeChangeModuleReq.java create mode 100644 src/main/java/emu/grasscutter/server/packet/recv/HandlerHomeModuleSeenReq.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketBackMyWorldRsp.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketGetHomeLevelUpRewardRsp.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketHomeChangeModuleRsp.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketHomeModuleSeenRsp.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketHomeModuleUnlockNotify.java diff --git a/src/generated/main/java/emu/grasscutter/net/proto/BackMyWorldReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/BackMyWorldReqOuterClass.java new file mode 100644 index 000000000..8890c1255 --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/BackMyWorldReqOuterClass.java @@ -0,0 +1,487 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BackMyWorldReq.proto + +package emu.grasscutter.net.proto; + +public final class BackMyWorldReqOuterClass { + private BackMyWorldReqOuterClass() {} + 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 BackMyWorldReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:BackMyWorldReq) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+ * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 269; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code BackMyWorldReq} + */ + public static final class BackMyWorldReq extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BackMyWorldReq) + BackMyWorldReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackMyWorldReq.newBuilder() to construct. + private BackMyWorldReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private BackMyWorldReq() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BackMyWorldReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BackMyWorldReq( + 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.BackMyWorldReqOuterClass.internal_static_BackMyWorldReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.BackMyWorldReqOuterClass.internal_static_BackMyWorldReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq.class, emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq.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.BackMyWorldReqOuterClass.BackMyWorldReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq other = (emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq) 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.BackMyWorldReqOuterClass.BackMyWorldReq parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq 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.BackMyWorldReqOuterClass.BackMyWorldReq parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq 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.BackMyWorldReqOuterClass.BackMyWorldReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq 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.BackMyWorldReqOuterClass.BackMyWorldReq parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq 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.BackMyWorldReqOuterClass.BackMyWorldReq parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.BackMyWorldReqOuterClass.BackMyWorldReq 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.BackMyWorldReqOuterClass.BackMyWorldReq 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; + } + /** + *
+ * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 269; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code BackMyWorldReq} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
int32 retcode = 6;
+ * @return The retcode.
+ */
+ int getRetcode();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 218; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code BackMyWorldRsp} + */ + public static final class BackMyWorldRsp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BackMyWorldRsp) + BackMyWorldRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackMyWorldRsp.newBuilder() to construct. + private BackMyWorldRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private BackMyWorldRsp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BackMyWorldRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BackMyWorldRsp( + 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: { + + 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.BackMyWorldRspOuterClass.internal_static_BackMyWorldRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.BackMyWorldRspOuterClass.internal_static_BackMyWorldRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp.class, emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp.Builder.class); + } + + public static final int RETCODE_FIELD_NUMBER = 6; + private int retcode_; + /** + *
int32 retcode = 6;
+ * @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(6, 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(6, 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.BackMyWorldRspOuterClass.BackMyWorldRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp other = (emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp) 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.BackMyWorldRspOuterClass.BackMyWorldRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp 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.BackMyWorldRspOuterClass.BackMyWorldRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp 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.BackMyWorldRspOuterClass.BackMyWorldRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp 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.BackMyWorldRspOuterClass.BackMyWorldRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp 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.BackMyWorldRspOuterClass.BackMyWorldRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp 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.BackMyWorldRspOuterClass.BackMyWorldRsp 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 218; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code BackMyWorldRsp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
int32 retcode = 6;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 6;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 6;
+ * @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:BackMyWorldRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:BackMyWorldRsp)
+ private static final emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp();
+ }
+
+ public static emu.grasscutter.net.proto.BackMyWorldRspOuterClass.BackMyWorldRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint32 level = 11;
+ * @return The level.
+ */
+ int getLevel();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4457; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code GetHomeLevelUpRewardReq} + */ + public static final class GetHomeLevelUpRewardReq extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:GetHomeLevelUpRewardReq) + GetHomeLevelUpRewardReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHomeLevelUpRewardReq.newBuilder() to construct. + private GetHomeLevelUpRewardReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GetHomeLevelUpRewardReq() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetHomeLevelUpRewardReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetHomeLevelUpRewardReq( + 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 88: { + + level_ = 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.GetHomeLevelUpRewardReqOuterClass.internal_static_GetHomeLevelUpRewardReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.internal_static_GetHomeLevelUpRewardReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq.class, emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq.Builder.class); + } + + public static final int LEVEL_FIELD_NUMBER = 11; + private int level_; + /** + *
uint32 level = 11;
+ * @return The level.
+ */
+ @java.lang.Override
+ public int getLevel() {
+ return level_;
+ }
+
+ 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 (level_ != 0) {
+ output.writeUInt32(11, level_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (level_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(11, level_);
+ }
+ 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.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq other = (emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq) obj;
+
+ if (getLevel()
+ != other.getLevel()) 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) + LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLevel();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq 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.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq 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.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq 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.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq 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.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq 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.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4457; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code GetHomeLevelUpRewardReq} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
uint32 level = 11;
+ * @return The level.
+ */
+ @java.lang.Override
+ public int getLevel() {
+ return level_;
+ }
+ /**
+ * uint32 level = 11;
+ * @param value The level to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLevel(int value) {
+
+ level_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 level = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearLevel() {
+
+ level_ = 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:GetHomeLevelUpRewardReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:GetHomeLevelUpRewardReq)
+ private static final emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq();
+ }
+
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardReqOuterClass.GetHomeLevelUpRewardReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 retcode = 8;
+ * @return The retcode.
+ */
+ int getRetcode();
+
+ /**
+ * uint32 level = 5;
+ * @return The level.
+ */
+ int getLevel();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4857; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code GetHomeLevelUpRewardRsp} + */ + public static final class GetHomeLevelUpRewardRsp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:GetHomeLevelUpRewardRsp) + GetHomeLevelUpRewardRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHomeLevelUpRewardRsp.newBuilder() to construct. + private GetHomeLevelUpRewardRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GetHomeLevelUpRewardRsp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetHomeLevelUpRewardRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetHomeLevelUpRewardRsp( + 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: { + + level_ = input.readUInt32(); + break; + } + case 64: { + + 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.GetHomeLevelUpRewardRspOuterClass.internal_static_GetHomeLevelUpRewardRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.internal_static_GetHomeLevelUpRewardRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp.class, emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp.Builder.class); + } + + public static final int RETCODE_FIELD_NUMBER = 8; + private int retcode_; + /** + *
int32 retcode = 8;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+
+ public static final int LEVEL_FIELD_NUMBER = 5;
+ private int level_;
+ /**
+ * uint32 level = 5;
+ * @return The level.
+ */
+ @java.lang.Override
+ public int getLevel() {
+ return level_;
+ }
+
+ 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 (level_ != 0) {
+ output.writeUInt32(5, level_);
+ }
+ if (retcode_ != 0) {
+ output.writeInt32(8, retcode_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (level_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(5, level_);
+ }
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(8, 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.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp other = (emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp) obj;
+
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (getLevel()
+ != other.getLevel()) 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) + LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLevel();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp 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.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp 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.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp 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.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp 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.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp 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.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4857; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code GetHomeLevelUpRewardRsp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
int32 retcode = 8;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 8;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearRetcode() {
+
+ retcode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int level_ ;
+ /**
+ * uint32 level = 5;
+ * @return The level.
+ */
+ @java.lang.Override
+ public int getLevel() {
+ return level_;
+ }
+ /**
+ * uint32 level = 5;
+ * @param value The level to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLevel(int value) {
+
+ level_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 level = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearLevel() {
+
+ level_ = 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:GetHomeLevelUpRewardRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:GetHomeLevelUpRewardRsp)
+ private static final emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp();
+ }
+
+ public static emu.grasscutter.net.proto.GetHomeLevelUpRewardRspOuterClass.GetHomeLevelUpRewardRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint32 target_module_id = 6;
+ * @return The targetModuleId.
+ */
+ int getTargetModuleId();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4559; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code HomeChangeModuleReq} + */ + public static final class HomeChangeModuleReq extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HomeChangeModuleReq) + HomeChangeModuleReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use HomeChangeModuleReq.newBuilder() to construct. + private HomeChangeModuleReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private HomeChangeModuleReq() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HomeChangeModuleReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HomeChangeModuleReq( + 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: { + + targetModuleId_ = 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.HomeChangeModuleReqOuterClass.internal_static_HomeChangeModuleReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.internal_static_HomeChangeModuleReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq.class, emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq.Builder.class); + } + + public static final int TARGET_MODULE_ID_FIELD_NUMBER = 6; + private int targetModuleId_; + /** + *
uint32 target_module_id = 6;
+ * @return The targetModuleId.
+ */
+ @java.lang.Override
+ public int getTargetModuleId() {
+ return targetModuleId_;
+ }
+
+ 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 (targetModuleId_ != 0) {
+ output.writeUInt32(6, targetModuleId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (targetModuleId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(6, targetModuleId_);
+ }
+ 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.HomeChangeModuleReqOuterClass.HomeChangeModuleReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq other = (emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq) obj;
+
+ if (getTargetModuleId()
+ != other.getTargetModuleId()) 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) + TARGET_MODULE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetModuleId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq 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.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq 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.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq 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.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq 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.HomeChangeModuleReqOuterClass.HomeChangeModuleReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq 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.HomeChangeModuleReqOuterClass.HomeChangeModuleReq 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4559; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code HomeChangeModuleReq} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
uint32 target_module_id = 6;
+ * @return The targetModuleId.
+ */
+ @java.lang.Override
+ public int getTargetModuleId() {
+ return targetModuleId_;
+ }
+ /**
+ * uint32 target_module_id = 6;
+ * @param value The targetModuleId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetModuleId(int value) {
+
+ targetModuleId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 target_module_id = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetModuleId() {
+
+ targetModuleId_ = 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:HomeChangeModuleReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:HomeChangeModuleReq)
+ private static final emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq();
+ }
+
+ public static emu.grasscutter.net.proto.HomeChangeModuleReqOuterClass.HomeChangeModuleReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 retcode = 14;
+ * @return The retcode.
+ */
+ int getRetcode();
+
+ /**
+ * uint32 target_module_id = 8;
+ * @return The targetModuleId.
+ */
+ int getTargetModuleId();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4551; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code HomeChangeModuleRsp} + */ + public static final class HomeChangeModuleRsp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HomeChangeModuleRsp) + HomeChangeModuleRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use HomeChangeModuleRsp.newBuilder() to construct. + private HomeChangeModuleRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private HomeChangeModuleRsp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HomeChangeModuleRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HomeChangeModuleRsp( + 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: { + + targetModuleId_ = input.readUInt32(); + 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.HomeChangeModuleRspOuterClass.internal_static_HomeChangeModuleRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.internal_static_HomeChangeModuleRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp.class, emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp.Builder.class); + } + + 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 TARGET_MODULE_ID_FIELD_NUMBER = 8;
+ private int targetModuleId_;
+ /**
+ * uint32 target_module_id = 8;
+ * @return The targetModuleId.
+ */
+ @java.lang.Override
+ public int getTargetModuleId() {
+ return targetModuleId_;
+ }
+
+ 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 (targetModuleId_ != 0) {
+ output.writeUInt32(8, targetModuleId_);
+ }
+ 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 (targetModuleId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(8, targetModuleId_);
+ }
+ 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.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp other = (emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp) obj;
+
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (getTargetModuleId()
+ != other.getTargetModuleId()) 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) + TARGET_MODULE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetModuleId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp 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.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp 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.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp 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.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp 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.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp 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.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4551; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code HomeChangeModuleRsp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
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 int targetModuleId_ ;
+ /**
+ * uint32 target_module_id = 8;
+ * @return The targetModuleId.
+ */
+ @java.lang.Override
+ public int getTargetModuleId() {
+ return targetModuleId_;
+ }
+ /**
+ * uint32 target_module_id = 8;
+ * @param value The targetModuleId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetModuleId(int value) {
+
+ targetModuleId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 target_module_id = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetModuleId() {
+
+ targetModuleId_ = 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:HomeChangeModuleRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:HomeChangeModuleRsp)
+ private static final emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp();
+ }
+
+ public static emu.grasscutter.net.proto.HomeChangeModuleRspOuterClass.HomeChangeModuleRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated uint32 seen_module_id_list = 9;
+ * @return A list containing the seenModuleIdList.
+ */
+ java.util.Listrepeated uint32 seen_module_id_list = 9;
+ * @return The count of seenModuleIdList.
+ */
+ int getSeenModuleIdListCount();
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index of the element to return.
+ * @return The seenModuleIdList at the given index.
+ */
+ int getSeenModuleIdList(int index);
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4861; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code HomeModuleSeenReq} + */ + public static final class HomeModuleSeenReq extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HomeModuleSeenReq) + HomeModuleSeenReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use HomeModuleSeenReq.newBuilder() to construct. + private HomeModuleSeenReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private HomeModuleSeenReq() { + seenModuleIdList_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HomeModuleSeenReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HomeModuleSeenReq( + 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 72: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + seenModuleIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + seenModuleIdList_.addInt(input.readUInt32()); + break; + } + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + seenModuleIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + seenModuleIdList_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + seenModuleIdList_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.internal_static_HomeModuleSeenReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.internal_static_HomeModuleSeenReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq.class, emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq.Builder.class); + } + + public static final int SEEN_MODULE_ID_LIST_FIELD_NUMBER = 9; + private com.google.protobuf.Internal.IntList seenModuleIdList_; + /** + *
repeated uint32 seen_module_id_list = 9;
+ * @return A list containing the seenModuleIdList.
+ */
+ @java.lang.Override
+ public java.util.Listrepeated uint32 seen_module_id_list = 9;
+ * @return The count of seenModuleIdList.
+ */
+ public int getSeenModuleIdListCount() {
+ return seenModuleIdList_.size();
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index of the element to return.
+ * @return The seenModuleIdList at the given index.
+ */
+ public int getSeenModuleIdList(int index) {
+ return seenModuleIdList_.getInt(index);
+ }
+ private int seenModuleIdListMemoizedSerializedSize = -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 (getSeenModuleIdListList().size() > 0) {
+ output.writeUInt32NoTag(74);
+ output.writeUInt32NoTag(seenModuleIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < seenModuleIdList_.size(); i++) {
+ output.writeUInt32NoTag(seenModuleIdList_.getInt(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 < seenModuleIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(seenModuleIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getSeenModuleIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ seenModuleIdListMemoizedSerializedSize = 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.HomeModuleSeenReqOuterClass.HomeModuleSeenReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq other = (emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq) obj;
+
+ if (!getSeenModuleIdListList()
+ .equals(other.getSeenModuleIdListList())) 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 (getSeenModuleIdListCount() > 0) {
+ hash = (37 * hash) + SEEN_MODULE_ID_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getSeenModuleIdListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq 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.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq 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.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq 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.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq 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.HomeModuleSeenReqOuterClass.HomeModuleSeenReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq 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.HomeModuleSeenReqOuterClass.HomeModuleSeenReq 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4861; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * IS_ALLOW_CLIENT = 1; + * } + *+ * + * Protobuf type {@code HomeModuleSeenReq} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
repeated uint32 seen_module_id_list = 9;
+ * @return A list containing the seenModuleIdList.
+ */
+ public java.util.Listrepeated uint32 seen_module_id_list = 9;
+ * @return The count of seenModuleIdList.
+ */
+ public int getSeenModuleIdListCount() {
+ return seenModuleIdList_.size();
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index of the element to return.
+ * @return The seenModuleIdList at the given index.
+ */
+ public int getSeenModuleIdList(int index) {
+ return seenModuleIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index to set the value at.
+ * @param value The seenModuleIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeenModuleIdList(
+ int index, int value) {
+ ensureSeenModuleIdListIsMutable();
+ seenModuleIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param value The seenModuleIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSeenModuleIdList(int value) {
+ ensureSeenModuleIdListIsMutable();
+ seenModuleIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param values The seenModuleIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSeenModuleIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureSeenModuleIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, seenModuleIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearSeenModuleIdList() {
+ seenModuleIdList_ = emptyIntList();
+ 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:HomeModuleSeenReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:HomeModuleSeenReq)
+ private static final emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq();
+ }
+
+ public static emu.grasscutter.net.proto.HomeModuleSeenReqOuterClass.HomeModuleSeenReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated uint32 seen_module_id_list = 9;
+ * @return A list containing the seenModuleIdList.
+ */
+ java.util.Listrepeated uint32 seen_module_id_list = 9;
+ * @return The count of seenModuleIdList.
+ */
+ int getSeenModuleIdListCount();
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index of the element to return.
+ * @return The seenModuleIdList at the given index.
+ */
+ int getSeenModuleIdList(int index);
+
+ /**
+ * int32 retcode = 6;
+ * @return The retcode.
+ */
+ int getRetcode();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4693; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code HomeModuleSeenRsp} + */ + public static final class HomeModuleSeenRsp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HomeModuleSeenRsp) + HomeModuleSeenRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use HomeModuleSeenRsp.newBuilder() to construct. + private HomeModuleSeenRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private HomeModuleSeenRsp() { + seenModuleIdList_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HomeModuleSeenRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HomeModuleSeenRsp( + 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 48: { + + retcode_ = input.readInt32(); + break; + } + case 72: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + seenModuleIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + seenModuleIdList_.addInt(input.readUInt32()); + break; + } + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + seenModuleIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + seenModuleIdList_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + seenModuleIdList_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.internal_static_HomeModuleSeenRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.internal_static_HomeModuleSeenRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp.class, emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp.Builder.class); + } + + public static final int SEEN_MODULE_ID_LIST_FIELD_NUMBER = 9; + private com.google.protobuf.Internal.IntList seenModuleIdList_; + /** + *
repeated uint32 seen_module_id_list = 9;
+ * @return A list containing the seenModuleIdList.
+ */
+ @java.lang.Override
+ public java.util.Listrepeated uint32 seen_module_id_list = 9;
+ * @return The count of seenModuleIdList.
+ */
+ public int getSeenModuleIdListCount() {
+ return seenModuleIdList_.size();
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index of the element to return.
+ * @return The seenModuleIdList at the given index.
+ */
+ public int getSeenModuleIdList(int index) {
+ return seenModuleIdList_.getInt(index);
+ }
+ private int seenModuleIdListMemoizedSerializedSize = -1;
+
+ public static final int RETCODE_FIELD_NUMBER = 6;
+ private int retcode_;
+ /**
+ * int32 retcode = 6;
+ * @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 {
+ getSerializedSize();
+ if (retcode_ != 0) {
+ output.writeInt32(6, retcode_);
+ }
+ if (getSeenModuleIdListList().size() > 0) {
+ output.writeUInt32NoTag(74);
+ output.writeUInt32NoTag(seenModuleIdListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < seenModuleIdList_.size(); i++) {
+ output.writeUInt32NoTag(seenModuleIdList_.getInt(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (retcode_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(6, retcode_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < seenModuleIdList_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(seenModuleIdList_.getInt(i));
+ }
+ size += dataSize;
+ if (!getSeenModuleIdListList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ seenModuleIdListMemoizedSerializedSize = 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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp other = (emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp) obj;
+
+ if (!getSeenModuleIdListList()
+ .equals(other.getSeenModuleIdListList())) return false;
+ if (getRetcode()
+ != other.getRetcode()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getSeenModuleIdListCount() > 0) {
+ hash = (37 * hash) + SEEN_MODULE_ID_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getSeenModuleIdListList().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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp 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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp 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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp 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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp 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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp 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.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4693; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code HomeModuleSeenRsp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
repeated uint32 seen_module_id_list = 9;
+ * @return A list containing the seenModuleIdList.
+ */
+ public java.util.Listrepeated uint32 seen_module_id_list = 9;
+ * @return The count of seenModuleIdList.
+ */
+ public int getSeenModuleIdListCount() {
+ return seenModuleIdList_.size();
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index of the element to return.
+ * @return The seenModuleIdList at the given index.
+ */
+ public int getSeenModuleIdList(int index) {
+ return seenModuleIdList_.getInt(index);
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param index The index to set the value at.
+ * @param value The seenModuleIdList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeenModuleIdList(
+ int index, int value) {
+ ensureSeenModuleIdListIsMutable();
+ seenModuleIdList_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param value The seenModuleIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSeenModuleIdList(int value) {
+ ensureSeenModuleIdListIsMutable();
+ seenModuleIdList_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @param values The seenModuleIdList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSeenModuleIdList(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureSeenModuleIdListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, seenModuleIdList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 seen_module_id_list = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearSeenModuleIdList() {
+ seenModuleIdList_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 6;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 6;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 6;
+ * @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:HomeModuleSeenRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:HomeModuleSeenRsp)
+ private static final emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp();
+ }
+
+ public static emu.grasscutter.net.proto.HomeModuleSeenRspOuterClass.HomeModuleSeenRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint32 module_id = 4;
+ * @return The moduleId.
+ */
+ int getModuleId();
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4674; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code HomeModuleUnlockNotify} + */ + public static final class HomeModuleUnlockNotify extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HomeModuleUnlockNotify) + HomeModuleUnlockNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use HomeModuleUnlockNotify.newBuilder() to construct. + private HomeModuleUnlockNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private HomeModuleUnlockNotify() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HomeModuleUnlockNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HomeModuleUnlockNotify( + 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: { + + moduleId_ = 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.HomeModuleUnlockNotifyOuterClass.internal_static_HomeModuleUnlockNotify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.internal_static_HomeModuleUnlockNotify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify.class, emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify.Builder.class); + } + + public static final int MODULE_ID_FIELD_NUMBER = 4; + private int moduleId_; + /** + *
uint32 module_id = 4;
+ * @return The moduleId.
+ */
+ @java.lang.Override
+ public int getModuleId() {
+ return moduleId_;
+ }
+
+ 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 (moduleId_ != 0) {
+ output.writeUInt32(4, moduleId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (moduleId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, moduleId_);
+ }
+ 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.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify other = (emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify) obj;
+
+ if (getModuleId()
+ != other.getModuleId()) 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) + MODULE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getModuleId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify 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.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify 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.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify 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.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify 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.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify 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.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify 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;
+ }
+ /**
+ * + * enum CmdId { + * option allow_alias = true; + * NONE = 0; + * CMD_ID = 4674; + * ENET_CHANNEL_ID = 0; + * ENET_IS_RELIABLE = 1; + * } + *+ * + * Protobuf type {@code HomeModuleUnlockNotify} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
uint32 module_id = 4;
+ * @return The moduleId.
+ */
+ @java.lang.Override
+ public int getModuleId() {
+ return moduleId_;
+ }
+ /**
+ * uint32 module_id = 4;
+ * @param value The moduleId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModuleId(int value) {
+
+ moduleId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 module_id = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearModuleId() {
+
+ moduleId_ = 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:HomeModuleUnlockNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:HomeModuleUnlockNotify)
+ private static final emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify();
+ }
+
+ public static emu.grasscutter.net.proto.HomeModuleUnlockNotifyOuterClass.HomeModuleUnlockNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser