content: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: PacketHead.proto
  
  package emu.grasscutter.net.proto;
  
  public final class PacketHeadOuterClass {
    private PacketHeadOuterClass() {}
    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 PacketHeadOrBuilder extends
        // @@protoc_insertion_point(interface_extends:PacketHead)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <code>uint32 packet_id = 1;</code>
       * @return The packetId.
       */
      int getPacketId();
  
      /**
       * <code>uint32 rpc_id = 2;</code>
       * @return The rpcId.
       */
      int getRpcId();
  
      /**
       * <code>uint32 client_sequence_id = 3;</code>
       * @return The clientSequenceId.
       */
      int getClientSequenceId();
  
      /**
       * <code>uint32 enet_channel_id = 4;</code>
       * @return The enetChannelId.
       */
      int getEnetChannelId();
  
      /**
       * <code>uint32 enet_is_reliable = 5;</code>
       * @return The enetIsReliable.
       */
      int getEnetIsReliable();
  
      /**
       * <code>uint64 sent_ms = 6;</code>
       * @return The sentMs.
       */
      long getSentMs();
  
      /**
       * <code>uint32 user_id = 11;</code>
       * @return The userId.
       */
      int getUserId();
  
      /**
       * <code>uint32 user_ip = 12;</code>
       * @return The userIp.
       */
      int getUserIp();
  
      /**
       * <code>uint32 user_session_id = 13;</code>
       * @return The userSessionId.
       */
      int getUserSessionId();
  
      /**
       * <code>uint64 recv_time_ms = 21;</code>
       * @return The recvTimeMs.
       */
      long getRecvTimeMs();
  
      /**
       * <code>uint32 rpc_begin_time_ms = 22;</code>
       * @return The rpcBeginTimeMs.
       */
      int getRpcBeginTimeMs();
  
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
      int getExtMapCount();
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
      boolean containsExtMap(
          int key);
      /**
       * Use {@link #getExtMapMap()} instead.
       */
      @java.lang.Deprecated
      java.util.Map<java.lang.Integer, java.lang.Integer>
      getExtMap();
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
      java.util.Map<java.lang.Integer, java.lang.Integer>
      getExtMapMap();
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
  
      int getExtMapOrDefault(
          int key,
          int defaultValue);
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
  
      int getExtMapOrThrow(
          int key);
  
      /**
       * <code>uint32 sender_app_id = 24;</code>
       * @return The senderAppId.
       */
      int getSenderAppId();
  
      /**
       * <code>uint32 source_service = 31;</code>
       * @return The sourceService.
       */
      int getSourceService();
  
      /**
       * <code>uint32 target_service = 32;</code>
       * @return The targetService.
       */
      int getTargetService();
  
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
      int getServiceAppIdMapCount();
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
      boolean containsServiceAppIdMap(
          int key);
      /**
       * Use {@link #getServiceAppIdMapMap()} instead.
       */
      @java.lang.Deprecated
      java.util.Map<java.lang.Integer, java.lang.Integer>
      getServiceAppIdMap();
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
      java.util.Map<java.lang.Integer, java.lang.Integer>
      getServiceAppIdMapMap();
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
  
      int getServiceAppIdMapOrDefault(
          int key,
          int defaultValue);
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
  
      int getServiceAppIdMapOrThrow(
          int key);
  
      /**
       * <code>bool is_set_game_thread = 34;</code>
       * @return The isSetGameThread.
       */
      boolean getIsSetGameThread();
  
      /**
       * <code>uint32 game_thread_index = 35;</code>
       * @return The gameThreadIndex.
       */
      int getGameThreadIndex();
    }
    /**
     * Protobuf type {@code PacketHead}
     */
    public static final class PacketHead extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:PacketHead)
        PacketHeadOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use PacketHead.newBuilder() to construct.
      private PacketHead(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private PacketHead() {
      }
  
      @java.lang.Override
      @SuppressWarnings({"unused"})
      protected java.lang.Object newInstance(
          UnusedPrivateParameter unused) {
        return new PacketHead();
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private PacketHead(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
  
                packetId_ = input.readUInt32();
                break;
              }
              case 16: {
  
                rpcId_ = input.readUInt32();
                break;
              }
              case 24: {
  
                clientSequenceId_ = input.readUInt32();
                break;
              }
              case 32: {
  
                enetChannelId_ = input.readUInt32();
                break;
              }
              case 40: {
  
                enetIsReliable_ = input.readUInt32();
                break;
              }
              case 48: {
  
                sentMs_ = input.readUInt64();
                break;
              }
              case 88: {
  
                userId_ = input.readUInt32();
                break;
              }
              case 96: {
  
                userIp_ = input.readUInt32();
                break;
              }
              case 104: {
  
                userSessionId_ = input.readUInt32();
                break;
              }
              case 168: {
  
                recvTimeMs_ = input.readUInt64();
                break;
              }
              case 176: {
  
                rpcBeginTimeMs_ = input.readUInt32();
                break;
              }
              case 186: {
                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                  extMap_ = com.google.protobuf.MapField.newMapField(
                      ExtMapDefaultEntryHolder.defaultEntry);
                  mutable_bitField0_ |= 0x00000001;
                }
                com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
                extMap__ = input.readMessage(
                    ExtMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                extMap_.getMutableMap().put(
                    extMap__.getKey(), extMap__.getValue());
                break;
              }
              case 192: {
  
                senderAppId_ = input.readUInt32();
                break;
              }
              case 248: {
  
                sourceService_ = input.readUInt32();
                break;
              }
              case 256: {
  
                targetService_ = input.readUInt32();
                break;
              }
              case 266: {
                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                  serviceAppIdMap_ = com.google.protobuf.MapField.newMapField(
                      ServiceAppIdMapDefaultEntryHolder.defaultEntry);
                  mutable_bitField0_ |= 0x00000002;
                }
                com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
                serviceAppIdMap__ = input.readMessage(
                    ServiceAppIdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                serviceAppIdMap_.getMutableMap().put(
                    serviceAppIdMap__.getKey(), serviceAppIdMap__.getValue());
                break;
              }
              case 272: {
  
                isSetGameThread_ = input.readBool();
                break;
              }
              case 280: {
  
                gameThreadIndex_ = 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.PacketHeadOuterClass.internal_static_PacketHead_descriptor;
      }
  
      @SuppressWarnings({"rawtypes"})
      @java.lang.Override
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 23:
            return internalGetExtMap();
          case 33:
            return internalGetServiceAppIdMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.class, emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.Builder.class);
      }
  
      public static final int PACKET_ID_FIELD_NUMBER = 1;
      private int packetId_;
      /**
       * <code>uint32 packet_id = 1;</code>
       * @return The packetId.
       */
      @java.lang.Override
      public int getPacketId() {
        return packetId_;
      }
  
      public static final int RPC_ID_FIELD_NUMBER = 2;
      private int rpcId_;
      /**
       * <code>uint32 rpc_id = 2;</code>
       * @return The rpcId.
       */
      @java.lang.Override
      public int getRpcId() {
        return rpcId_;
      }
  
      public static final int CLIENT_SEQUENCE_ID_FIELD_NUMBER = 3;
      private int clientSequenceId_;
      /**
       * <code>uint32 client_sequence_id = 3;</code>
       * @return The clientSequenceId.
       */
      @java.lang.Override
      public int getClientSequenceId() {
        return clientSequenceId_;
      }
  
      public static final int ENET_CHANNEL_ID_FIELD_NUMBER = 4;
      private int enetChannelId_;
      /**
       * <code>uint32 enet_channel_id = 4;</code>
       * @return The enetChannelId.
       */
      @java.lang.Override
      public int getEnetChannelId() {
        return enetChannelId_;
      }
  
      public static final int ENET_IS_RELIABLE_FIELD_NUMBER = 5;
      private int enetIsReliable_;
      /**
       * <code>uint32 enet_is_reliable = 5;</code>
       * @return The enetIsReliable.
       */
      @java.lang.Override
      public int getEnetIsReliable() {
        return enetIsReliable_;
      }
  
      public static final int SENT_MS_FIELD_NUMBER = 6;
      private long sentMs_;
      /**
       * <code>uint64 sent_ms = 6;</code>
       * @return The sentMs.
       */
      @java.lang.Override
      public long getSentMs() {
        return sentMs_;
      }
  
      public static final int USER_ID_FIELD_NUMBER = 11;
      private int userId_;
      /**
       * <code>uint32 user_id = 11;</code>
       * @return The userId.
       */
      @java.lang.Override
      public int getUserId() {
        return userId_;
      }
  
      public static final int USER_IP_FIELD_NUMBER = 12;
      private int userIp_;
      /**
       * <code>uint32 user_ip = 12;</code>
       * @return The userIp.
       */
      @java.lang.Override
      public int getUserIp() {
        return userIp_;
      }
  
      public static final int USER_SESSION_ID_FIELD_NUMBER = 13;
      private int userSessionId_;
      /**
       * <code>uint32 user_session_id = 13;</code>
       * @return The userSessionId.
       */
      @java.lang.Override
      public int getUserSessionId() {
        return userSessionId_;
      }
  
      public static final int RECV_TIME_MS_FIELD_NUMBER = 21;
      private long recvTimeMs_;
      /**
       * <code>uint64 recv_time_ms = 21;</code>
       * @return The recvTimeMs.
       */
      @java.lang.Override
      public long getRecvTimeMs() {
        return recvTimeMs_;
      }
  
      public static final int RPC_BEGIN_TIME_MS_FIELD_NUMBER = 22;
      private int rpcBeginTimeMs_;
      /**
       * <code>uint32 rpc_begin_time_ms = 22;</code>
       * @return The rpcBeginTimeMs.
       */
      @java.lang.Override
      public int getRpcBeginTimeMs() {
        return rpcBeginTimeMs_;
      }
  
      public static final int EXT_MAP_FIELD_NUMBER = 23;
      private static final class ExtMapDefaultEntryHolder {
        static final com.google.protobuf.MapEntry<
            java.lang.Integer, java.lang.Integer> defaultEntry =
                com.google.protobuf.MapEntry
                .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                    emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_ExtMapEntry_descriptor, 
                    com.google.protobuf.WireFormat.FieldType.UINT32,
                    0,
                    com.google.protobuf.WireFormat.FieldType.UINT32,
                    0);
      }
      private com.google.protobuf.MapField<
          java.lang.Integer, java.lang.Integer> extMap_;
      private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
      internalGetExtMap() {
        if (extMap_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              ExtMapDefaultEntryHolder.defaultEntry);
        }
        return extMap_;
      }
  
      public int getExtMapCount() {
        return internalGetExtMap().getMap().size();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
  
      @java.lang.Override
      public boolean containsExtMap(
          int key) {
        
        return internalGetExtMap().getMap().containsKey(key);
      }
      /**
       * Use {@link #getExtMapMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, java.lang.Integer> getExtMap() {
        return getExtMapMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
      @java.lang.Override
  
      public java.util.Map<java.lang.Integer, java.lang.Integer> getExtMapMap() {
        return internalGetExtMap().getMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
      @java.lang.Override
  
      public int getExtMapOrDefault(
          int key,
          int defaultValue) {
        
        java.util.Map<java.lang.Integer, java.lang.Integer> map =
            internalGetExtMap().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
       */
      @java.lang.Override
  
      public int getExtMapOrThrow(
          int key) {
        
        java.util.Map<java.lang.Integer, java.lang.Integer> map =
            internalGetExtMap().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
  
      public static final int SENDER_APP_ID_FIELD_NUMBER = 24;
      private int senderAppId_;
      /**
       * <code>uint32 sender_app_id = 24;</code>
       * @return The senderAppId.
       */
      @java.lang.Override
      public int getSenderAppId() {
        return senderAppId_;
      }
  
      public static final int SOURCE_SERVICE_FIELD_NUMBER = 31;
      private int sourceService_;
      /**
       * <code>uint32 source_service = 31;</code>
       * @return The sourceService.
       */
      @java.lang.Override
      public int getSourceService() {
        return sourceService_;
      }
  
      public static final int TARGET_SERVICE_FIELD_NUMBER = 32;
      private int targetService_;
      /**
       * <code>uint32 target_service = 32;</code>
       * @return The targetService.
       */
      @java.lang.Override
      public int getTargetService() {
        return targetService_;
      }
  
      public static final int SERVICE_APP_ID_MAP_FIELD_NUMBER = 33;
      private static final class ServiceAppIdMapDefaultEntryHolder {
        static final com.google.protobuf.MapEntry<
            java.lang.Integer, java.lang.Integer> defaultEntry =
                com.google.protobuf.MapEntry
                .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                    emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_ServiceAppIdMapEntry_descriptor, 
                    com.google.protobuf.WireFormat.FieldType.UINT32,
                    0,
                    com.google.protobuf.WireFormat.FieldType.UINT32,
                    0);
      }
      private com.google.protobuf.MapField<
          java.lang.Integer, java.lang.Integer> serviceAppIdMap_;
      private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
      internalGetServiceAppIdMap() {
        if (serviceAppIdMap_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              ServiceAppIdMapDefaultEntryHolder.defaultEntry);
        }
        return serviceAppIdMap_;
      }
  
      public int getServiceAppIdMapCount() {
        return internalGetServiceAppIdMap().getMap().size();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
  
      @java.lang.Override
      public boolean containsServiceAppIdMap(
          int key) {
        
        return internalGetServiceAppIdMap().getMap().containsKey(key);
      }
      /**
       * Use {@link #getServiceAppIdMapMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, java.lang.Integer> getServiceAppIdMap() {
        return getServiceAppIdMapMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
      @java.lang.Override
  
      public java.util.Map<java.lang.Integer, java.lang.Integer> getServiceAppIdMapMap() {
        return internalGetServiceAppIdMap().getMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
      @java.lang.Override
  
      public int getServiceAppIdMapOrDefault(
          int key,
          int defaultValue) {
        
        java.util.Map<java.lang.Integer, java.lang.Integer> map =
            internalGetServiceAppIdMap().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
       */
      @java.lang.Override
  
      public int getServiceAppIdMapOrThrow(
          int key) {
        
        java.util.Map<java.lang.Integer, java.lang.Integer> map =
            internalGetServiceAppIdMap().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
  
      public static final int IS_SET_GAME_THREAD_FIELD_NUMBER = 34;
      private boolean isSetGameThread_;
      /**
       * <code>bool is_set_game_thread = 34;</code>
       * @return The isSetGameThread.
       */
      @java.lang.Override
      public boolean getIsSetGameThread() {
        return isSetGameThread_;
      }
  
      public static final int GAME_THREAD_INDEX_FIELD_NUMBER = 35;
      private int gameThreadIndex_;
      /**
       * <code>uint32 game_thread_index = 35;</code>
       * @return The gameThreadIndex.
       */
      @java.lang.Override
      public int getGameThreadIndex() {
        return gameThreadIndex_;
      }
  
      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 (packetId_ != 0) {
          output.writeUInt32(1, packetId_);
        }
        if (rpcId_ != 0) {
          output.writeUInt32(2, rpcId_);
        }
        if (clientSequenceId_ != 0) {
          output.writeUInt32(3, clientSequenceId_);
        }
        if (enetChannelId_ != 0) {
          output.writeUInt32(4, enetChannelId_);
        }
        if (enetIsReliable_ != 0) {
          output.writeUInt32(5, enetIsReliable_);
        }
        if (sentMs_ != 0L) {
          output.writeUInt64(6, sentMs_);
        }
        if (userId_ != 0) {
          output.writeUInt32(11, userId_);
        }
        if (userIp_ != 0) {
          output.writeUInt32(12, userIp_);
        }
        if (userSessionId_ != 0) {
          output.writeUInt32(13, userSessionId_);
        }
        if (recvTimeMs_ != 0L) {
          output.writeUInt64(21, recvTimeMs_);
        }
        if (rpcBeginTimeMs_ != 0) {
          output.writeUInt32(22, rpcBeginTimeMs_);
        }
        com.google.protobuf.GeneratedMessageV3
          .serializeIntegerMapTo(
            output,
            internalGetExtMap(),
            ExtMapDefaultEntryHolder.defaultEntry,
            23);
        if (senderAppId_ != 0) {
          output.writeUInt32(24, senderAppId_);
        }
        if (sourceService_ != 0) {
          output.writeUInt32(31, sourceService_);
        }
        if (targetService_ != 0) {
          output.writeUInt32(32, targetService_);
        }
        com.google.protobuf.GeneratedMessageV3
          .serializeIntegerMapTo(
            output,
            internalGetServiceAppIdMap(),
            ServiceAppIdMapDefaultEntryHolder.defaultEntry,
            33);
        if (isSetGameThread_ != false) {
          output.writeBool(34, isSetGameThread_);
        }
        if (gameThreadIndex_ != 0) {
          output.writeUInt32(35, gameThreadIndex_);
        }
        unknownFields.writeTo(output);
      }
  
      @java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (packetId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(1, packetId_);
        }
        if (rpcId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(2, rpcId_);
        }
        if (clientSequenceId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(3, clientSequenceId_);
        }
        if (enetChannelId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(4, enetChannelId_);
        }
        if (enetIsReliable_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(5, enetIsReliable_);
        }
        if (sentMs_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt64Size(6, sentMs_);
        }
        if (userId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(11, userId_);
        }
        if (userIp_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(12, userIp_);
        }
        if (userSessionId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(13, userSessionId_);
        }
        if (recvTimeMs_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt64Size(21, recvTimeMs_);
        }
        if (rpcBeginTimeMs_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(22, rpcBeginTimeMs_);
        }
        for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
             : internalGetExtMap().getMap().entrySet()) {
          com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
          extMap__ = ExtMapDefaultEntryHolder.defaultEntry.newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
          size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(23, extMap__);
        }
        if (senderAppId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(24, senderAppId_);
        }
        if (sourceService_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(31, sourceService_);
        }
        if (targetService_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(32, targetService_);
        }
        for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
             : internalGetServiceAppIdMap().getMap().entrySet()) {
          com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
          serviceAppIdMap__ = ServiceAppIdMapDefaultEntryHolder.defaultEntry.newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
          size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(33, serviceAppIdMap__);
        }
        if (isSetGameThread_ != false) {
          size += com.google.protobuf.CodedOutputStream
            .computeBoolSize(34, isSetGameThread_);
        }
        if (gameThreadIndex_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(35, gameThreadIndex_);
        }
        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.PacketHeadOuterClass.PacketHead)) {
          return super.equals(obj);
        }
        emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead other = (emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead) obj;
  
        if (getPacketId()
            != other.getPacketId()) return false;
        if (getRpcId()
            != other.getRpcId()) return false;
        if (getClientSequenceId()
            != other.getClientSequenceId()) return false;
        if (getEnetChannelId()
            != other.getEnetChannelId()) return false;
        if (getEnetIsReliable()
            != other.getEnetIsReliable()) return false;
        if (getSentMs()
            != other.getSentMs()) return false;
        if (getUserId()
            != other.getUserId()) return false;
        if (getUserIp()
            != other.getUserIp()) return false;
        if (getUserSessionId()
            != other.getUserSessionId()) return false;
        if (getRecvTimeMs()
            != other.getRecvTimeMs()) return false;
        if (getRpcBeginTimeMs()
            != other.getRpcBeginTimeMs()) return false;
        if (!internalGetExtMap().equals(
            other.internalGetExtMap())) return false;
        if (getSenderAppId()
            != other.getSenderAppId()) return false;
        if (getSourceService()
            != other.getSourceService()) return false;
        if (getTargetService()
            != other.getTargetService()) return false;
        if (!internalGetServiceAppIdMap().equals(
            other.internalGetServiceAppIdMap())) return false;
        if (getIsSetGameThread()
            != other.getIsSetGameThread()) return false;
        if (getGameThreadIndex()
            != other.getGameThreadIndex()) 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) + PACKET_ID_FIELD_NUMBER;
        hash = (53 * hash) + getPacketId();
        hash = (37 * hash) + RPC_ID_FIELD_NUMBER;
        hash = (53 * hash) + getRpcId();
        hash = (37 * hash) + CLIENT_SEQUENCE_ID_FIELD_NUMBER;
        hash = (53 * hash) + getClientSequenceId();
        hash = (37 * hash) + ENET_CHANNEL_ID_FIELD_NUMBER;
        hash = (53 * hash) + getEnetChannelId();
        hash = (37 * hash) + ENET_IS_RELIABLE_FIELD_NUMBER;
        hash = (53 * hash) + getEnetIsReliable();
        hash = (37 * hash) + SENT_MS_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getSentMs());
        hash = (37 * hash) + USER_ID_FIELD_NUMBER;
        hash = (53 * hash) + getUserId();
        hash = (37 * hash) + USER_IP_FIELD_NUMBER;
        hash = (53 * hash) + getUserIp();
        hash = (37 * hash) + USER_SESSION_ID_FIELD_NUMBER;
        hash = (53 * hash) + getUserSessionId();
        hash = (37 * hash) + RECV_TIME_MS_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getRecvTimeMs());
        hash = (37 * hash) + RPC_BEGIN_TIME_MS_FIELD_NUMBER;
        hash = (53 * hash) + getRpcBeginTimeMs();
        if (!internalGetExtMap().getMap().isEmpty()) {
          hash = (37 * hash) + EXT_MAP_FIELD_NUMBER;
          hash = (53 * hash) + internalGetExtMap().hashCode();
        }
        hash = (37 * hash) + SENDER_APP_ID_FIELD_NUMBER;
        hash = (53 * hash) + getSenderAppId();
        hash = (37 * hash) + SOURCE_SERVICE_FIELD_NUMBER;
        hash = (53 * hash) + getSourceService();
        hash = (37 * hash) + TARGET_SERVICE_FIELD_NUMBER;
        hash = (53 * hash) + getTargetService();
        if (!internalGetServiceAppIdMap().getMap().isEmpty()) {
          hash = (37 * hash) + SERVICE_APP_ID_MAP_FIELD_NUMBER;
          hash = (53 * hash) + internalGetServiceAppIdMap().hashCode();
        }
        hash = (37 * hash) + IS_SET_GAME_THREAD_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getIsSetGameThread());
        hash = (37 * hash) + GAME_THREAD_INDEX_FIELD_NUMBER;
        hash = (53 * hash) + getGameThreadIndex();
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead 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.PacketHeadOuterClass.PacketHead parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead 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.PacketHeadOuterClass.PacketHead parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead 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.PacketHeadOuterClass.PacketHead parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead 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.PacketHeadOuterClass.PacketHead parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead 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.PacketHeadOuterClass.PacketHead prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
      }
      @java.lang.Override
      public Builder toBuilder() {
        return this == DEFAULT_INSTANCE
            ? new Builder() : new Builder().mergeFrom(this);
      }
  
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      /**
       * Protobuf type {@code PacketHead}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:PacketHead)
          emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHeadOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_descriptor;
        }
  
        @SuppressWarnings({"rawtypes"})
        protected com.google.protobuf.MapField internalGetMapField(
            int number) {
          switch (number) {
            case 23:
              return internalGetExtMap();
            case 33:
              return internalGetServiceAppIdMap();
            default:
              throw new RuntimeException(
                  "Invalid map field number: " + number);
          }
        }
        @SuppressWarnings({"rawtypes"})
        protected com.google.protobuf.MapField internalGetMutableMapField(
            int number) {
          switch (number) {
            case 23:
              return internalGetMutableExtMap();
            case 33:
              return internalGetMutableServiceAppIdMap();
            default:
              throw new RuntimeException(
                  "Invalid map field number: " + number);
          }
        }
        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.class, emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.Builder.class);
        }
  
        // Construct using emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
  
        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          packetId_ = 0;
  
          rpcId_ = 0;
  
          clientSequenceId_ = 0;
  
          enetChannelId_ = 0;
  
          enetIsReliable_ = 0;
  
          sentMs_ = 0L;
  
          userId_ = 0;
  
          userIp_ = 0;
  
          userSessionId_ = 0;
  
          recvTimeMs_ = 0L;
  
          rpcBeginTimeMs_ = 0;
  
          internalGetMutableExtMap().clear();
          senderAppId_ = 0;
  
          sourceService_ = 0;
  
          targetService_ = 0;
  
          internalGetMutableServiceAppIdMap().clear();
          isSetGameThread_ = false;
  
          gameThreadIndex_ = 0;
  
          return this;
        }
  
        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_descriptor;
        }
  
        @java.lang.Override
        public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead getDefaultInstanceForType() {
          return emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.getDefaultInstance();
        }
  
        @java.lang.Override
        public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead build() {
          emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        @java.lang.Override
        public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead buildPartial() {
          emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead result = new emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead(this);
          int from_bitField0_ = bitField0_;
          result.packetId_ = packetId_;
          result.rpcId_ = rpcId_;
          result.clientSequenceId_ = clientSequenceId_;
          result.enetChannelId_ = enetChannelId_;
          result.enetIsReliable_ = enetIsReliable_;
          result.sentMs_ = sentMs_;
          result.userId_ = userId_;
          result.userIp_ = userIp_;
          result.userSessionId_ = userSessionId_;
          result.recvTimeMs_ = recvTimeMs_;
          result.rpcBeginTimeMs_ = rpcBeginTimeMs_;
          result.extMap_ = internalGetExtMap();
          result.extMap_.makeImmutable();
          result.senderAppId_ = senderAppId_;
          result.sourceService_ = sourceService_;
          result.targetService_ = targetService_;
          result.serviceAppIdMap_ = internalGetServiceAppIdMap();
          result.serviceAppIdMap_.makeImmutable();
          result.isSetGameThread_ = isSetGameThread_;
          result.gameThreadIndex_ = gameThreadIndex_;
          onBuilt();
          return result;
        }
  
        @java.lang.Override
        public Builder clone() {
          return super.clone();
        }
        @java.lang.Override
        public Builder setField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return super.setField(field, value);
        }
        @java.lang.Override
        public Builder clearField(
            com.google.protobuf.Descriptors.FieldDescriptor field) {
          return super.clearField(field);
        }
        @java.lang.Override
        public Builder clearOneof(
            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          return super.clearOneof(oneof);
        }
        @java.lang.Override
        public Builder setRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            int index, java.lang.Object value) {
          return super.setRepeatedField(field, index, value);
        }
        @java.lang.Override
        public Builder addRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return super.addRepeatedField(field, value);
        }
        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead) {
            return mergeFrom((emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead other) {
          if (other == emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.getDefaultInstance()) return this;
          if (other.getPacketId() != 0) {
            setPacketId(other.getPacketId());
          }
          if (other.getRpcId() != 0) {
            setRpcId(other.getRpcId());
          }
          if (other.getClientSequenceId() != 0) {
            setClientSequenceId(other.getClientSequenceId());
          }
          if (other.getEnetChannelId() != 0) {
            setEnetChannelId(other.getEnetChannelId());
          }
          if (other.getEnetIsReliable() != 0) {
            setEnetIsReliable(other.getEnetIsReliable());
          }
          if (other.getSentMs() != 0L) {
            setSentMs(other.getSentMs());
          }
          if (other.getUserId() != 0) {
            setUserId(other.getUserId());
          }
          if (other.getUserIp() != 0) {
            setUserIp(other.getUserIp());
          }
          if (other.getUserSessionId() != 0) {
            setUserSessionId(other.getUserSessionId());
          }
          if (other.getRecvTimeMs() != 0L) {
            setRecvTimeMs(other.getRecvTimeMs());
          }
          if (other.getRpcBeginTimeMs() != 0) {
            setRpcBeginTimeMs(other.getRpcBeginTimeMs());
          }
          internalGetMutableExtMap().mergeFrom(
              other.internalGetExtMap());
          if (other.getSenderAppId() != 0) {
            setSenderAppId(other.getSenderAppId());
          }
          if (other.getSourceService() != 0) {
            setSourceService(other.getSourceService());
          }
          if (other.getTargetService() != 0) {
            setTargetService(other.getTargetService());
          }
          internalGetMutableServiceAppIdMap().mergeFrom(
              other.internalGetServiceAppIdMap());
          if (other.getIsSetGameThread() != false) {
            setIsSetGameThread(other.getIsSetGameThread());
          }
          if (other.getGameThreadIndex() != 0) {
            setGameThreadIndex(other.getGameThreadIndex());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }
  
        @java.lang.Override
        public final boolean isInitialized() {
          return true;
        }
  
        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;
  
        private int packetId_ ;
        /**
         * <code>uint32 packet_id = 1;</code>
         * @return The packetId.
         */
        @java.lang.Override
        public int getPacketId() {
          return packetId_;
        }
        /**
         * <code>uint32 packet_id = 1;</code>
         * @param value The packetId to set.
         * @return This builder for chaining.
         */
        public Builder setPacketId(int value) {
          
          packetId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 packet_id = 1;</code>
         * @return This builder for chaining.
         */
        public Builder clearPacketId() {
          
          packetId_ = 0;
          onChanged();
          return this;
        }
  
        private int rpcId_ ;
        /**
         * <code>uint32 rpc_id = 2;</code>
         * @return The rpcId.
         */
        @java.lang.Override
        public int getRpcId() {
          return rpcId_;
        }
        /**
         * <code>uint32 rpc_id = 2;</code>
         * @param value The rpcId to set.
         * @return This builder for chaining.
         */
        public Builder setRpcId(int value) {
          
          rpcId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 rpc_id = 2;</code>
         * @return This builder for chaining.
         */
        public Builder clearRpcId() {
          
          rpcId_ = 0;
          onChanged();
          return this;
        }
  
        private int clientSequenceId_ ;
        /**
         * <code>uint32 client_sequence_id = 3;</code>
         * @return The clientSequenceId.
         */
        @java.lang.Override
        public int getClientSequenceId() {
          return clientSequenceId_;
        }
        /**
         * <code>uint32 client_sequence_id = 3;</code>
         * @param value The clientSequenceId to set.
         * @return This builder for chaining.
         */
        public Builder setClientSequenceId(int value) {
          
          clientSequenceId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 client_sequence_id = 3;</code>
         * @return This builder for chaining.
         */
        public Builder clearClientSequenceId() {
          
          clientSequenceId_ = 0;
          onChanged();
          return this;
        }
  
        private int enetChannelId_ ;
        /**
         * <code>uint32 enet_channel_id = 4;</code>
         * @return The enetChannelId.
         */
        @java.lang.Override
        public int getEnetChannelId() {
          return enetChannelId_;
        }
        /**
         * <code>uint32 enet_channel_id = 4;</code>
         * @param value The enetChannelId to set.
         * @return This builder for chaining.
         */
        public Builder setEnetChannelId(int value) {
          
          enetChannelId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 enet_channel_id = 4;</code>
         * @return This builder for chaining.
         */
        public Builder clearEnetChannelId() {
          
          enetChannelId_ = 0;
          onChanged();
          return this;
        }
  
        private int enetIsReliable_ ;
        /**
         * <code>uint32 enet_is_reliable = 5;</code>
         * @return The enetIsReliable.
         */
        @java.lang.Override
        public int getEnetIsReliable() {
          return enetIsReliable_;
        }
        /**
         * <code>uint32 enet_is_reliable = 5;</code>
         * @param value The enetIsReliable to set.
         * @return This builder for chaining.
         */
        public Builder setEnetIsReliable(int value) {
          
          enetIsReliable_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 enet_is_reliable = 5;</code>
         * @return This builder for chaining.
         */
        public Builder clearEnetIsReliable() {
          
          enetIsReliable_ = 0;
          onChanged();
          return this;
        }
  
        private long sentMs_ ;
        /**
         * <code>uint64 sent_ms = 6;</code>
         * @return The sentMs.
         */
        @java.lang.Override
        public long getSentMs() {
          return sentMs_;
        }
        /**
         * <code>uint64 sent_ms = 6;</code>
         * @param value The sentMs to set.
         * @return This builder for chaining.
         */
        public Builder setSentMs(long value) {
          
          sentMs_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint64 sent_ms = 6;</code>
         * @return This builder for chaining.
         */
        public Builder clearSentMs() {
          
          sentMs_ = 0L;
          onChanged();
          return this;
        }
  
        private int userId_ ;
        /**
         * <code>uint32 user_id = 11;</code>
         * @return The userId.
         */
        @java.lang.Override
        public int getUserId() {
          return userId_;
        }
        /**
         * <code>uint32 user_id = 11;</code>
         * @param value The userId to set.
         * @return This builder for chaining.
         */
        public Builder setUserId(int value) {
          
          userId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 user_id = 11;</code>
         * @return This builder for chaining.
         */
        public Builder clearUserId() {
          
          userId_ = 0;
          onChanged();
          return this;
        }
  
        private int userIp_ ;
        /**
         * <code>uint32 user_ip = 12;</code>
         * @return The userIp.
         */
        @java.lang.Override
        public int getUserIp() {
          return userIp_;
        }
        /**
         * <code>uint32 user_ip = 12;</code>
         * @param value The userIp to set.
         * @return This builder for chaining.
         */
        public Builder setUserIp(int value) {
          
          userIp_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 user_ip = 12;</code>
         * @return This builder for chaining.
         */
        public Builder clearUserIp() {
          
          userIp_ = 0;
          onChanged();
          return this;
        }
  
        private int userSessionId_ ;
        /**
         * <code>uint32 user_session_id = 13;</code>
         * @return The userSessionId.
         */
        @java.lang.Override
        public int getUserSessionId() {
          return userSessionId_;
        }
        /**
         * <code>uint32 user_session_id = 13;</code>
         * @param value The userSessionId to set.
         * @return This builder for chaining.
         */
        public Builder setUserSessionId(int value) {
          
          userSessionId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 user_session_id = 13;</code>
         * @return This builder for chaining.
         */
        public Builder clearUserSessionId() {
          
          userSessionId_ = 0;
          onChanged();
          return this;
        }
  
        private long recvTimeMs_ ;
        /**
         * <code>uint64 recv_time_ms = 21;</code>
         * @return The recvTimeMs.
         */
        @java.lang.Override
        public long getRecvTimeMs() {
          return recvTimeMs_;
        }
        /**
         * <code>uint64 recv_time_ms = 21;</code>
         * @param value The recvTimeMs to set.
         * @return This builder for chaining.
         */
        public Builder setRecvTimeMs(long value) {
          
          recvTimeMs_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint64 recv_time_ms = 21;</code>
         * @return This builder for chaining.
         */
        public Builder clearRecvTimeMs() {
          
          recvTimeMs_ = 0L;
          onChanged();
          return this;
        }
  
        private int rpcBeginTimeMs_ ;
        /**
         * <code>uint32 rpc_begin_time_ms = 22;</code>
         * @return The rpcBeginTimeMs.
         */
        @java.lang.Override
        public int getRpcBeginTimeMs() {
          return rpcBeginTimeMs_;
        }
        /**
         * <code>uint32 rpc_begin_time_ms = 22;</code>
         * @param value The rpcBeginTimeMs to set.
         * @return This builder for chaining.
         */
        public Builder setRpcBeginTimeMs(int value) {
          
          rpcBeginTimeMs_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 rpc_begin_time_ms = 22;</code>
         * @return This builder for chaining.
         */
        public Builder clearRpcBeginTimeMs() {
          
          rpcBeginTimeMs_ = 0;
          onChanged();
          return this;
        }
  
        private com.google.protobuf.MapField<
            java.lang.Integer, java.lang.Integer> extMap_;
        private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
        internalGetExtMap() {
          if (extMap_ == null) {
            return com.google.protobuf.MapField.emptyMapField(
                ExtMapDefaultEntryHolder.defaultEntry);
          }
          return extMap_;
        }
        private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
        internalGetMutableExtMap() {
          onChanged();;
          if (extMap_ == null) {
            extMap_ = com.google.protobuf.MapField.newMapField(
                ExtMapDefaultEntryHolder.defaultEntry);
          }
          if (!extMap_.isMutable()) {
            extMap_ = extMap_.copy();
          }
          return extMap_;
        }
  
        public int getExtMapCount() {
          return internalGetExtMap().getMap().size();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
  
        @java.lang.Override
        public boolean containsExtMap(
            int key) {
          
          return internalGetExtMap().getMap().containsKey(key);
        }
        /**
         * Use {@link #getExtMapMap()} instead.
         */
        @java.lang.Override
        @java.lang.Deprecated
        public java.util.Map<java.lang.Integer, java.lang.Integer> getExtMap() {
          return getExtMapMap();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
        @java.lang.Override
  
        public java.util.Map<java.lang.Integer, java.lang.Integer> getExtMapMap() {
          return internalGetExtMap().getMap();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
        @java.lang.Override
  
        public int getExtMapOrDefault(
            int key,
            int defaultValue) {
          
          java.util.Map<java.lang.Integer, java.lang.Integer> map =
              internalGetExtMap().getMap();
          return map.containsKey(key) ? map.get(key) : defaultValue;
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
        @java.lang.Override
  
        public int getExtMapOrThrow(
            int key) {
          
          java.util.Map<java.lang.Integer, java.lang.Integer> map =
              internalGetExtMap().getMap();
          if (!map.containsKey(key)) {
            throw new java.lang.IllegalArgumentException();
          }
          return map.get(key);
        }
  
        public Builder clearExtMap() {
          internalGetMutableExtMap().getMutableMap()
              .clear();
          return this;
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
  
        public Builder removeExtMap(
            int key) {
          
          internalGetMutableExtMap().getMutableMap()
              .remove(key);
          return this;
        }
        /**
         * Use alternate mutation accessors instead.
         */
        @java.lang.Deprecated
        public java.util.Map<java.lang.Integer, java.lang.Integer>
        getMutableExtMap() {
          return internalGetMutableExtMap().getMutableMap();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
        public Builder putExtMap(
            int key,
            int value) {
          
          
          internalGetMutableExtMap().getMutableMap()
              .put(key, value);
          return this;
        }
        /**
         * <code>map&lt;uint32, uint32&gt; ext_map = 23;</code>
         */
  
        public Builder putAllExtMap(
            java.util.Map<java.lang.Integer, java.lang.Integer> values) {
          internalGetMutableExtMap().getMutableMap()
              .putAll(values);
          return this;
        }
  
        private int senderAppId_ ;
        /**
         * <code>uint32 sender_app_id = 24;</code>
         * @return The senderAppId.
         */
        @java.lang.Override
        public int getSenderAppId() {
          return senderAppId_;
        }
        /**
         * <code>uint32 sender_app_id = 24;</code>
         * @param value The senderAppId to set.
         * @return This builder for chaining.
         */
        public Builder setSenderAppId(int value) {
          
          senderAppId_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 sender_app_id = 24;</code>
         * @return This builder for chaining.
         */
        public Builder clearSenderAppId() {
          
          senderAppId_ = 0;
          onChanged();
          return this;
        }
  
        private int sourceService_ ;
        /**
         * <code>uint32 source_service = 31;</code>
         * @return The sourceService.
         */
        @java.lang.Override
        public int getSourceService() {
          return sourceService_;
        }
        /**
         * <code>uint32 source_service = 31;</code>
         * @param value The sourceService to set.
         * @return This builder for chaining.
         */
        public Builder setSourceService(int value) {
          
          sourceService_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 source_service = 31;</code>
         * @return This builder for chaining.
         */
        public Builder clearSourceService() {
          
          sourceService_ = 0;
          onChanged();
          return this;
        }
  
        private int targetService_ ;
        /**
         * <code>uint32 target_service = 32;</code>
         * @return The targetService.
         */
        @java.lang.Override
        public int getTargetService() {
          return targetService_;
        }
        /**
         * <code>uint32 target_service = 32;</code>
         * @param value The targetService to set.
         * @return This builder for chaining.
         */
        public Builder setTargetService(int value) {
          
          targetService_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 target_service = 32;</code>
         * @return This builder for chaining.
         */
        public Builder clearTargetService() {
          
          targetService_ = 0;
          onChanged();
          return this;
        }
  
        private com.google.protobuf.MapField<
            java.lang.Integer, java.lang.Integer> serviceAppIdMap_;
        private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
        internalGetServiceAppIdMap() {
          if (serviceAppIdMap_ == null) {
            return com.google.protobuf.MapField.emptyMapField(
                ServiceAppIdMapDefaultEntryHolder.defaultEntry);
          }
          return serviceAppIdMap_;
        }
        private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
        internalGetMutableServiceAppIdMap() {
          onChanged();;
          if (serviceAppIdMap_ == null) {
            serviceAppIdMap_ = com.google.protobuf.MapField.newMapField(
                ServiceAppIdMapDefaultEntryHolder.defaultEntry);
          }
          if (!serviceAppIdMap_.isMutable()) {
            serviceAppIdMap_ = serviceAppIdMap_.copy();
          }
          return serviceAppIdMap_;
        }
  
        public int getServiceAppIdMapCount() {
          return internalGetServiceAppIdMap().getMap().size();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
  
        @java.lang.Override
        public boolean containsServiceAppIdMap(
            int key) {
          
          return internalGetServiceAppIdMap().getMap().containsKey(key);
        }
        /**
         * Use {@link #getServiceAppIdMapMap()} instead.
         */
        @java.lang.Override
        @java.lang.Deprecated
        public java.util.Map<java.lang.Integer, java.lang.Integer> getServiceAppIdMap() {
          return getServiceAppIdMapMap();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
        @java.lang.Override
  
        public java.util.Map<java.lang.Integer, java.lang.Integer> getServiceAppIdMapMap() {
          return internalGetServiceAppIdMap().getMap();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
        @java.lang.Override
  
        public int getServiceAppIdMapOrDefault(
            int key,
            int defaultValue) {
          
          java.util.Map<java.lang.Integer, java.lang.Integer> map =
              internalGetServiceAppIdMap().getMap();
          return map.containsKey(key) ? map.get(key) : defaultValue;
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
        @java.lang.Override
  
        public int getServiceAppIdMapOrThrow(
            int key) {
          
          java.util.Map<java.lang.Integer, java.lang.Integer> map =
              internalGetServiceAppIdMap().getMap();
          if (!map.containsKey(key)) {
            throw new java.lang.IllegalArgumentException();
          }
          return map.get(key);
        }
  
        public Builder clearServiceAppIdMap() {
          internalGetMutableServiceAppIdMap().getMutableMap()
              .clear();
          return this;
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
  
        public Builder removeServiceAppIdMap(
            int key) {
          
          internalGetMutableServiceAppIdMap().getMutableMap()
              .remove(key);
          return this;
        }
        /**
         * Use alternate mutation accessors instead.
         */
        @java.lang.Deprecated
        public java.util.Map<java.lang.Integer, java.lang.Integer>
        getMutableServiceAppIdMap() {
          return internalGetMutableServiceAppIdMap().getMutableMap();
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
        public Builder putServiceAppIdMap(
            int key,
            int value) {
          
          
          internalGetMutableServiceAppIdMap().getMutableMap()
              .put(key, value);
          return this;
        }
        /**
         * <code>map&lt;uint32, uint32&gt; service_app_id_map = 33;</code>
         */
  
        public Builder putAllServiceAppIdMap(
            java.util.Map<java.lang.Integer, java.lang.Integer> values) {
          internalGetMutableServiceAppIdMap().getMutableMap()
              .putAll(values);
          return this;
        }
  
        private boolean isSetGameThread_ ;
        /**
         * <code>bool is_set_game_thread = 34;</code>
         * @return The isSetGameThread.
         */
        @java.lang.Override
        public boolean getIsSetGameThread() {
          return isSetGameThread_;
        }
        /**
         * <code>bool is_set_game_thread = 34;</code>
         * @param value The isSetGameThread to set.
         * @return This builder for chaining.
         */
        public Builder setIsSetGameThread(boolean value) {
          
          isSetGameThread_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>bool is_set_game_thread = 34;</code>
         * @return This builder for chaining.
         */
        public Builder clearIsSetGameThread() {
          
          isSetGameThread_ = false;
          onChanged();
          return this;
        }
  
        private int gameThreadIndex_ ;
        /**
         * <code>uint32 game_thread_index = 35;</code>
         * @return The gameThreadIndex.
         */
        @java.lang.Override
        public int getGameThreadIndex() {
          return gameThreadIndex_;
        }
        /**
         * <code>uint32 game_thread_index = 35;</code>
         * @param value The gameThreadIndex to set.
         * @return This builder for chaining.
         */
        public Builder setGameThreadIndex(int value) {
          
          gameThreadIndex_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>uint32 game_thread_index = 35;</code>
         * @return This builder for chaining.
         */
        public Builder clearGameThreadIndex() {
          
          gameThreadIndex_ = 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:PacketHead)
      }
  
      // @@protoc_insertion_point(class_scope:PacketHead)
      private static final emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead();
      }
  
      public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<PacketHead>
          PARSER = new com.google.protobuf.AbstractParser<PacketHead>() {
        @java.lang.Override
        public PacketHead parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new PacketHead(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<PacketHead> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<PacketHead> getParserForType() {
        return PARSER;
      }
  
      @java.lang.Override
      public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_PacketHead_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_PacketHead_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_PacketHead_ExtMapEntry_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_PacketHead_ExtMapEntry_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_PacketHead_ServiceAppIdMapEntry_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_PacketHead_ServiceAppIdMapEntry_fieldAccessorTable;
  
    public static com.google.protobuf.Descriptors.FileDescriptor
        getDescriptor() {
      return descriptor;
    }
    private static  com.google.protobuf.Descriptors.FileDescriptor
        descriptor;
    static {
      java.lang.String[] descriptorData = {
        "\n\020PacketHead.proto\"\310\004\n\nPacketHead\022\021\n\tpac" +
        "ket_id\030\001 \001(\r\022\016\n\006rpc_id\030\002 \001(\r\022\032\n\022client_s" +
        "equence_id\030\003 \001(\r\022\027\n\017enet_channel_id\030\004 \001(" +
        "\r\022\030\n\020enet_is_reliable\030\005 \001(\r\022\017\n\007sent_ms\030\006" +
        " \001(\004\022\017\n\007user_id\030\013 \001(\r\022\017\n\007user_ip\030\014 \001(\r\022\027" +
        "\n\017user_session_id\030\r \001(\r\022\024\n\014recv_time_ms\030" +
        "\025 \001(\004\022\031\n\021rpc_begin_time_ms\030\026 \001(\r\022(\n\007ext_" +
        "map\030\027 \003(\0132\027.PacketHead.ExtMapEntry\022\025\n\rse" +
        "nder_app_id\030\030 \001(\r\022\026\n\016source_service\030\037 \001(" +
        "\r\022\026\n\016target_service\030  \001(\r\022<\n\022service_app" +
        "_id_map\030! \003(\0132 .PacketHead.ServiceAppIdM" +
        "apEntry\022\032\n\022is_set_game_thread\030\" \001(\010\022\031\n\021g" +
        "ame_thread_index\030# \001(\r\032-\n\013ExtMapEntry\022\013\n" +
        "\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\0326\n\024Service" +
        "AppIdMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(" +
        "\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006prot" +
        "o3"
      };
      descriptor = com.google.protobuf.Descriptors.FileDescriptor
        .internalBuildGeneratedFileFrom(descriptorData,
          new com.google.protobuf.Descriptors.FileDescriptor[] {
          });
      internal_static_PacketHead_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_PacketHead_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_PacketHead_descriptor,
          new java.lang.String[] { "PacketId", "RpcId", "ClientSequenceId", "EnetChannelId", "EnetIsReliable", "SentMs", "UserId", "UserIp", "UserSessionId", "RecvTimeMs", "RpcBeginTimeMs", "ExtMap", "SenderAppId", "SourceService", "TargetService", "ServiceAppIdMap", "IsSetGameThread", "GameThreadIndex", });
      internal_static_PacketHead_ExtMapEntry_descriptor =
        internal_static_PacketHead_descriptor.getNestedTypes().get(0);
      internal_static_PacketHead_ExtMapEntry_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_PacketHead_ExtMapEntry_descriptor,
          new java.lang.String[] { "Key", "Value", });
      internal_static_PacketHead_ServiceAppIdMapEntry_descriptor =
        internal_static_PacketHead_descriptor.getNestedTypes().get(1);
      internal_static_PacketHead_ServiceAppIdMapEntry_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_PacketHead_ServiceAppIdMapEntry_descriptor,
          new java.lang.String[] { "Key", "Value", });
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  