// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.proto;

import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedByte;

public final class ActivityMiningMoveToNextLayer {
  /**
   * Protobuf type {@code ActivityMiningMoveToNextLayerReq}
   */
  public static final class ActivityMiningMoveToNextLayerReq extends ProtoMessage<ActivityMiningMoveToNextLayerReq> implements Cloneable {
    private static final long serialVersionUID = 0L;

    /**
     * <code>optional uint32 ActivityId = 1;</code>
     */
    private int activityId;

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     */
    private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();

    private ActivityMiningMoveToNextLayerReq() {
    }

    /**
     * @return a new empty instance of {@code ActivityMiningMoveToNextLayerReq}
     */
    public static ActivityMiningMoveToNextLayerReq newInstance() {
      return new ActivityMiningMoveToNextLayerReq();
    }

    /**
     * <code>optional uint32 ActivityId = 1;</code>
     * @return whether the activityId field is set
     */
    public boolean hasActivityId() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional uint32 ActivityId = 1;</code>
     * @return this
     */
    public ActivityMiningMoveToNextLayerReq clearActivityId() {
      bitField0_ &= ~0x00000001;
      activityId = 0;
      return this;
    }

    /**
     * <code>optional uint32 ActivityId = 1;</code>
     * @return the activityId
     */
    public int getActivityId() {
      return activityId;
    }

    /**
     * <code>optional uint32 ActivityId = 1;</code>
     * @param value the activityId to set
     * @return this
     */
    public ActivityMiningMoveToNextLayerReq setActivityId(final int value) {
      bitField0_ |= 0x00000001;
      activityId = value;
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @return whether the nextPackage field is set
     */
    public boolean hasNextPackage() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @return this
     */
    public ActivityMiningMoveToNextLayerReq clearNextPackage() {
      bitField0_ &= ~0x00000002;
      nextPackage.clear();
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableNextPackage()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedByte getNextPackage() {
      return nextPackage;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedByte getMutableNextPackage() {
      bitField0_ |= 0x00000002;
      return nextPackage;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @param value the nextPackage to add
     * @return this
     */
    public ActivityMiningMoveToNextLayerReq addNextPackage(final byte value) {
      bitField0_ |= 0x00000002;
      nextPackage.add(value);
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @param values the nextPackage to add
     * @return this
     */
    public ActivityMiningMoveToNextLayerReq addAllNextPackage(final byte... values) {
      bitField0_ |= 0x00000002;
      nextPackage.addAll(values);
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @param values the nextPackage to set
     * @return this
     */
    public ActivityMiningMoveToNextLayerReq setNextPackage(final byte... values) {
      bitField0_ |= 0x00000002;
      nextPackage.copyFrom(values);
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerReq copyFrom(final ActivityMiningMoveToNextLayerReq other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        activityId = other.activityId;
        nextPackage.copyFrom(other.nextPackage);
      }
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerReq mergeFrom(
        final ActivityMiningMoveToNextLayerReq other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasActivityId()) {
        setActivityId(other.activityId);
      }
      if (other.hasNextPackage()) {
        getMutableNextPackage().copyFrom(other.nextPackage);
      }
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerReq clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      activityId = 0;
      nextPackage.clear();
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerReq clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      nextPackage.clear();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof ActivityMiningMoveToNextLayerReq)) {
        return false;
      }
      ActivityMiningMoveToNextLayerReq other = (ActivityMiningMoveToNextLayerReq) o;
      return bitField0_ == other.bitField0_
        && (!hasActivityId() || activityId == other.activityId)
        && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 8);
        output.writeUInt32NoTag(activityId);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawLittleEndian16((short) 32762);
        output.writeBytesNoTag(nextPackage);
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public ActivityMiningMoveToNextLayerReq mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 8: {
            // activityId
            activityId = input.readUInt32();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 16378) {
              break;
            }
          }
          case 16378: {
            // nextPackage
            input.readBytes(nextPackage);
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 0) {
              break;
            }
          }
          case 0: {
            return this;
          }
          default: {
            if (!input.skipField(tag)) {
              return this;
            }
            tag = input.readTag();
            break;
          }
        }
      }
    }

    @Override
    public void writeTo(final JsonSink output) throws IOException {
      output.beginObject();
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeUInt32(FieldNames.activityId, activityId);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeBytes(FieldNames.nextPackage, nextPackage);
      }
      output.endObject();
    }

    @Override
    public ActivityMiningMoveToNextLayerReq mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case -252882774: {
            if (input.isAtField(FieldNames.activityId)) {
              if (!input.trySkipNullValue()) {
                activityId = input.readUInt32();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -2082324045: {
            if (input.isAtField(FieldNames.nextPackage)) {
              if (!input.trySkipNullValue()) {
                input.readBytes(nextPackage);
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerReq clone() {
      return new ActivityMiningMoveToNextLayerReq().copyFrom(this);
    }

    @Override
    public boolean isEmpty() {
      return ((bitField0_) == 0);
    }

    public static ActivityMiningMoveToNextLayerReq parseFrom(final byte[] data) throws
        InvalidProtocolBufferException {
      return ProtoMessage.mergeFrom(new ActivityMiningMoveToNextLayerReq(), data).checkInitialized();
    }

    public static ActivityMiningMoveToNextLayerReq parseFrom(final ProtoSource input) throws
        IOException {
      return ProtoMessage.mergeFrom(new ActivityMiningMoveToNextLayerReq(), input).checkInitialized();
    }

    public static ActivityMiningMoveToNextLayerReq parseFrom(final JsonSource input) throws
        IOException {
      return ProtoMessage.mergeFrom(new ActivityMiningMoveToNextLayerReq(), input).checkInitialized();
    }

    /**
     * @return factory for creating ActivityMiningMoveToNextLayerReq messages
     */
    public static MessageFactory<ActivityMiningMoveToNextLayerReq> getFactory() {
      return ActivityMiningMoveToNextLayerReqFactory.INSTANCE;
    }

    private enum ActivityMiningMoveToNextLayerReqFactory implements MessageFactory<ActivityMiningMoveToNextLayerReq> {
      INSTANCE;

      @Override
      public ActivityMiningMoveToNextLayerReq create() {
        return ActivityMiningMoveToNextLayerReq.newInstance();
      }
    }

    /**
     * Contains name constants used for serializing JSON
     */
    static class FieldNames {
      static final FieldName activityId = FieldName.forField("ActivityId");

      static final FieldName nextPackage = FieldName.forField("NextPackage");
    }
  }

  /**
   * Protobuf type {@code ActivityMiningMoveToNextLayerResp}
   */
  public static final class ActivityMiningMoveToNextLayerResp extends ProtoMessage<ActivityMiningMoveToNextLayerResp> implements Cloneable {
    private static final long serialVersionUID = 0L;

    /**
     * <code>optional .MiningLayer Layer = 1;</code>
     */
    private final PublicMining.MiningLayer layer = PublicMining.MiningLayer.newInstance();

    /**
     * <code>optional .MiningChangeInfo MiningChangeInfo = 2;</code>
     */
    private final PublicMining.MiningChangeInfo miningChangeInfo = PublicMining.MiningChangeInfo.newInstance();

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     */
    private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();

    private ActivityMiningMoveToNextLayerResp() {
    }

    /**
     * @return a new empty instance of {@code ActivityMiningMoveToNextLayerResp}
     */
    public static ActivityMiningMoveToNextLayerResp newInstance() {
      return new ActivityMiningMoveToNextLayerResp();
    }

    /**
     * <code>optional .MiningLayer Layer = 1;</code>
     * @return whether the layer field is set
     */
    public boolean hasLayer() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional .MiningLayer Layer = 1;</code>
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp clearLayer() {
      bitField0_ &= ~0x00000001;
      layer.clear();
      return this;
    }

    /**
     * <code>optional .MiningLayer Layer = 1;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableLayer()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PublicMining.MiningLayer getLayer() {
      return layer;
    }

    /**
     * <code>optional .MiningLayer Layer = 1;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public PublicMining.MiningLayer getMutableLayer() {
      bitField0_ |= 0x00000001;
      return layer;
    }

    /**
     * <code>optional .MiningLayer Layer = 1;</code>
     * @param value the layer to set
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp setLayer(final PublicMining.MiningLayer value) {
      bitField0_ |= 0x00000001;
      layer.copyFrom(value);
      return this;
    }

    /**
     * <code>optional .MiningChangeInfo MiningChangeInfo = 2;</code>
     * @return whether the miningChangeInfo field is set
     */
    public boolean hasMiningChangeInfo() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional .MiningChangeInfo MiningChangeInfo = 2;</code>
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp clearMiningChangeInfo() {
      bitField0_ &= ~0x00000002;
      miningChangeInfo.clear();
      return this;
    }

    /**
     * <code>optional .MiningChangeInfo MiningChangeInfo = 2;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableMiningChangeInfo()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PublicMining.MiningChangeInfo getMiningChangeInfo() {
      return miningChangeInfo;
    }

    /**
     * <code>optional .MiningChangeInfo MiningChangeInfo = 2;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public PublicMining.MiningChangeInfo getMutableMiningChangeInfo() {
      bitField0_ |= 0x00000002;
      return miningChangeInfo;
    }

    /**
     * <code>optional .MiningChangeInfo MiningChangeInfo = 2;</code>
     * @param value the miningChangeInfo to set
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp setMiningChangeInfo(
        final PublicMining.MiningChangeInfo value) {
      bitField0_ |= 0x00000002;
      miningChangeInfo.copyFrom(value);
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @return whether the nextPackage field is set
     */
    public boolean hasNextPackage() {
      return (bitField0_ & 0x00000004) != 0;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp clearNextPackage() {
      bitField0_ &= ~0x00000004;
      nextPackage.clear();
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableNextPackage()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedByte getNextPackage() {
      return nextPackage;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedByte getMutableNextPackage() {
      bitField0_ |= 0x00000004;
      return nextPackage;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @param value the nextPackage to add
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp addNextPackage(final byte value) {
      bitField0_ |= 0x00000004;
      nextPackage.add(value);
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @param values the nextPackage to add
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp addAllNextPackage(final byte... values) {
      bitField0_ |= 0x00000004;
      nextPackage.addAll(values);
      return this;
    }

    /**
     * <code>optional bytes NextPackage = 2047;</code>
     * @param values the nextPackage to set
     * @return this
     */
    public ActivityMiningMoveToNextLayerResp setNextPackage(final byte... values) {
      bitField0_ |= 0x00000004;
      nextPackage.copyFrom(values);
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerResp copyFrom(
        final ActivityMiningMoveToNextLayerResp other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        layer.copyFrom(other.layer);
        miningChangeInfo.copyFrom(other.miningChangeInfo);
        nextPackage.copyFrom(other.nextPackage);
      }
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerResp mergeFrom(
        final ActivityMiningMoveToNextLayerResp other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasLayer()) {
        getMutableLayer().mergeFrom(other.layer);
      }
      if (other.hasMiningChangeInfo()) {
        getMutableMiningChangeInfo().mergeFrom(other.miningChangeInfo);
      }
      if (other.hasNextPackage()) {
        getMutableNextPackage().copyFrom(other.nextPackage);
      }
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerResp clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      layer.clear();
      miningChangeInfo.clear();
      nextPackage.clear();
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerResp clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      layer.clearQuick();
      miningChangeInfo.clearQuick();
      nextPackage.clear();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof ActivityMiningMoveToNextLayerResp)) {
        return false;
      }
      ActivityMiningMoveToNextLayerResp other = (ActivityMiningMoveToNextLayerResp) o;
      return bitField0_ == other.bitField0_
        && (!hasLayer() || layer.equals(other.layer))
        && (!hasMiningChangeInfo() || miningChangeInfo.equals(other.miningChangeInfo))
        && (!hasNextPackage() || nextPackage.equals(other.nextPackage));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 10);
        output.writeMessageNoTag(layer);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 18);
        output.writeMessageNoTag(miningChangeInfo);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawLittleEndian16((short) 32762);
        output.writeBytesNoTag(nextPackage);
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeMessageSizeNoTag(layer);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeMessageSizeNoTag(miningChangeInfo);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public ActivityMiningMoveToNextLayerResp mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 10: {
            // layer
            input.readMessage(layer);
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 18) {
              break;
            }
          }
          case 18: {
            // miningChangeInfo
            input.readMessage(miningChangeInfo);
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 16378) {
              break;
            }
          }
          case 16378: {
            // nextPackage
            input.readBytes(nextPackage);
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 0) {
              break;
            }
          }
          case 0: {
            return this;
          }
          default: {
            if (!input.skipField(tag)) {
              return this;
            }
            tag = input.readTag();
            break;
          }
        }
      }
    }

    @Override
    public void writeTo(final JsonSink output) throws IOException {
      output.beginObject();
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeMessage(FieldNames.layer, layer);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeMessage(FieldNames.miningChangeInfo, miningChangeInfo);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeBytes(FieldNames.nextPackage, nextPackage);
      }
      output.endObject();
    }

    @Override
    public ActivityMiningMoveToNextLayerResp mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 73196849: {
            if (input.isAtField(FieldNames.layer)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(layer);
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1023670002: {
            if (input.isAtField(FieldNames.miningChangeInfo)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(miningChangeInfo);
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -2082324045: {
            if (input.isAtField(FieldNames.nextPackage)) {
              if (!input.trySkipNullValue()) {
                input.readBytes(nextPackage);
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

    @Override
    public ActivityMiningMoveToNextLayerResp clone() {
      return new ActivityMiningMoveToNextLayerResp().copyFrom(this);
    }

    @Override
    public boolean isEmpty() {
      return ((bitField0_) == 0);
    }

    public static ActivityMiningMoveToNextLayerResp parseFrom(final byte[] data) throws
        InvalidProtocolBufferException {
      return ProtoMessage.mergeFrom(new ActivityMiningMoveToNextLayerResp(), data).checkInitialized();
    }

    public static ActivityMiningMoveToNextLayerResp parseFrom(final ProtoSource input) throws
        IOException {
      return ProtoMessage.mergeFrom(new ActivityMiningMoveToNextLayerResp(), input).checkInitialized();
    }

    public static ActivityMiningMoveToNextLayerResp parseFrom(final JsonSource input) throws
        IOException {
      return ProtoMessage.mergeFrom(new ActivityMiningMoveToNextLayerResp(), input).checkInitialized();
    }

    /**
     * @return factory for creating ActivityMiningMoveToNextLayerResp messages
     */
    public static MessageFactory<ActivityMiningMoveToNextLayerResp> getFactory() {
      return ActivityMiningMoveToNextLayerRespFactory.INSTANCE;
    }

    private enum ActivityMiningMoveToNextLayerRespFactory implements MessageFactory<ActivityMiningMoveToNextLayerResp> {
      INSTANCE;

      @Override
      public ActivityMiningMoveToNextLayerResp create() {
        return ActivityMiningMoveToNextLayerResp.newInstance();
      }
    }

    /**
     * Contains name constants used for serializing JSON
     */
    static class FieldNames {
      static final FieldName layer = FieldName.forField("Layer");

      static final FieldName miningChangeInfo = FieldName.forField("MiningChangeInfo");

      static final FieldName nextPackage = FieldName.forField("NextPackage");
    }
  }
}
