// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: activity.proto

package io.grasscutter.net.proto.activity;

/**
 * Protobuf type {@code SummerTimeDetailInfo}
 */
public final class SummerTimeDetailInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:SummerTimeDetailInfo)
    SummerTimeDetailInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SummerTimeDetailInfo.newBuilder() to construct.
  private SummerTimeDetailInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SummerTimeDetailInfo() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new SummerTimeDetailInfo();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SummerTimeDetailInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 42: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              stageMap_ = com.google.protobuf.MapField.newMapField(
                  StageMapDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>
            stageMap__ = input.readMessage(
                StageMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            stageMap_.getMutableMap().put(
                stageMap__.getKey(), stageMap__.getValue());
            break;
          }
          case 56: {

            contentCloseTime_ = input.readUInt32();
            break;
          }
          case 88: {

            isContentClosed_ = input.readBool();
            break;
          }
          case 106: {
            io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.Builder subBuilder = null;
            if (sprintBoatInfo_ != null) {
              subBuilder = sprintBoatInfo_.toBuilder();
            }
            sprintBoatInfo_ = input.readMessage(io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(sprintBoatInfo_);
              sprintBoatInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_SummerTimeDetailInfo_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 5:
        return internalGetStageMap();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_SummerTimeDetailInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.activity.SummerTimeDetailInfo.class, io.grasscutter.net.proto.activity.SummerTimeDetailInfo.Builder.class);
  }

  public static final int SPRINT_BOAT_INFO_FIELD_NUMBER = 13;
  private io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo sprintBoatInfo_;
  /**
   * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
   * @return Whether the sprintBoatInfo field is set.
   */
  @java.lang.Override
  public boolean hasSprintBoatInfo() {
    return sprintBoatInfo_ != null;
  }
  /**
   * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
   * @return The sprintBoatInfo.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo getSprintBoatInfo() {
    return sprintBoatInfo_ == null ? io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.getDefaultInstance() : sprintBoatInfo_;
  }
  /**
   * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfoOrBuilder getSprintBoatInfoOrBuilder() {
    return getSprintBoatInfo();
  }

  public static final int STAGE_MAP_FIELD_NUMBER = 5;
  private static final class StageMapDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>newDefaultInstance(
                io.grasscutter.net.proto.activity.Activity.internal_static_SummerTimeDetailInfo_StageMapEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.UINT32,
                0,
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                io.grasscutter.net.proto.activity.SummerTimeStageInfo.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> stageMap_;
  private com.google.protobuf.MapField<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>
  internalGetStageMap() {
    if (stageMap_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          StageMapDefaultEntryHolder.defaultEntry);
    }
    return stageMap_;
  }

  public int getStageMapCount() {
    return internalGetStageMap().getMap().size();
  }
  /**
   * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
   */

  @java.lang.Override
  public boolean containsStageMap(
      int key) {
    
    return internalGetStageMap().getMap().containsKey(key);
  }
  /**
   * Use {@link #getStageMapMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> getStageMap() {
    return getStageMapMap();
  }
  /**
   * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
   */
  @java.lang.Override

  public java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> getStageMapMap() {
    return internalGetStageMap().getMap();
  }
  /**
   * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
   */
  @java.lang.Override

  public io.grasscutter.net.proto.activity.SummerTimeStageInfo getStageMapOrDefault(
      int key,
      io.grasscutter.net.proto.activity.SummerTimeStageInfo defaultValue) {
    
    java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> map =
        internalGetStageMap().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
   */
  @java.lang.Override

  public io.grasscutter.net.proto.activity.SummerTimeStageInfo getStageMapOrThrow(
      int key) {
    
    java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> map =
        internalGetStageMap().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int IS_CONTENT_CLOSED_FIELD_NUMBER = 11;
  private boolean isContentClosed_;
  /**
   * <code>bool is_content_closed = 11;</code>
   * @return The isContentClosed.
   */
  @java.lang.Override
  public boolean getIsContentClosed() {
    return isContentClosed_;
  }

  public static final int CONTENT_CLOSE_TIME_FIELD_NUMBER = 7;
  private int contentCloseTime_;
  /**
   * <code>uint32 content_close_time = 7;</code>
   * @return The contentCloseTime.
   */
  @java.lang.Override
  public int getContentCloseTime() {
    return contentCloseTime_;
  }

  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 {
    com.google.protobuf.GeneratedMessageV3
      .serializeIntegerMapTo(
        output,
        internalGetStageMap(),
        StageMapDefaultEntryHolder.defaultEntry,
        5);
    if (contentCloseTime_ != 0) {
      output.writeUInt32(7, contentCloseTime_);
    }
    if (isContentClosed_ != false) {
      output.writeBool(11, isContentClosed_);
    }
    if (sprintBoatInfo_ != null) {
      output.writeMessage(13, getSprintBoatInfo());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (java.util.Map.Entry<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> entry
         : internalGetStageMap().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>
      stageMap__ = StageMapDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, stageMap__);
    }
    if (contentCloseTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, contentCloseTime_);
    }
    if (isContentClosed_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(11, isContentClosed_);
    }
    if (sprintBoatInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(13, getSprintBoatInfo());
    }
    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 io.grasscutter.net.proto.activity.SummerTimeDetailInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.activity.SummerTimeDetailInfo other = (io.grasscutter.net.proto.activity.SummerTimeDetailInfo) obj;

    if (hasSprintBoatInfo() != other.hasSprintBoatInfo()) return false;
    if (hasSprintBoatInfo()) {
      if (!getSprintBoatInfo()
          .equals(other.getSprintBoatInfo())) return false;
    }
    if (!internalGetStageMap().equals(
        other.internalGetStageMap())) return false;
    if (getIsContentClosed()
        != other.getIsContentClosed()) return false;
    if (getContentCloseTime()
        != other.getContentCloseTime()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasSprintBoatInfo()) {
      hash = (37 * hash) + SPRINT_BOAT_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getSprintBoatInfo().hashCode();
    }
    if (!internalGetStageMap().getMap().isEmpty()) {
      hash = (37 * hash) + STAGE_MAP_FIELD_NUMBER;
      hash = (53 * hash) + internalGetStageMap().hashCode();
    }
    hash = (37 * hash) + IS_CONTENT_CLOSED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsContentClosed());
    hash = (37 * hash) + CONTENT_CLOSE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getContentCloseTime();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo 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 io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo 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 io.grasscutter.net.proto.activity.SummerTimeDetailInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo 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(io.grasscutter.net.proto.activity.SummerTimeDetailInfo 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 SummerTimeDetailInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:SummerTimeDetailInfo)
      io.grasscutter.net.proto.activity.SummerTimeDetailInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_SummerTimeDetailInfo_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 5:
          return internalGetStageMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 5:
          return internalGetMutableStageMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_SummerTimeDetailInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.activity.SummerTimeDetailInfo.class, io.grasscutter.net.proto.activity.SummerTimeDetailInfo.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.activity.SummerTimeDetailInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (sprintBoatInfoBuilder_ == null) {
        sprintBoatInfo_ = null;
      } else {
        sprintBoatInfo_ = null;
        sprintBoatInfoBuilder_ = null;
      }
      internalGetMutableStageMap().clear();
      isContentClosed_ = false;

      contentCloseTime_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_SummerTimeDetailInfo_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.activity.SummerTimeDetailInfo getDefaultInstanceForType() {
      return io.grasscutter.net.proto.activity.SummerTimeDetailInfo.getDefaultInstance();
    }

    @java.lang.Override
    public io.grasscutter.net.proto.activity.SummerTimeDetailInfo build() {
      io.grasscutter.net.proto.activity.SummerTimeDetailInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.activity.SummerTimeDetailInfo buildPartial() {
      io.grasscutter.net.proto.activity.SummerTimeDetailInfo result = new io.grasscutter.net.proto.activity.SummerTimeDetailInfo(this);
      int from_bitField0_ = bitField0_;
      if (sprintBoatInfoBuilder_ == null) {
        result.sprintBoatInfo_ = sprintBoatInfo_;
      } else {
        result.sprintBoatInfo_ = sprintBoatInfoBuilder_.build();
      }
      result.stageMap_ = internalGetStageMap();
      result.stageMap_.makeImmutable();
      result.isContentClosed_ = isContentClosed_;
      result.contentCloseTime_ = contentCloseTime_;
      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 io.grasscutter.net.proto.activity.SummerTimeDetailInfo) {
        return mergeFrom((io.grasscutter.net.proto.activity.SummerTimeDetailInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.activity.SummerTimeDetailInfo other) {
      if (other == io.grasscutter.net.proto.activity.SummerTimeDetailInfo.getDefaultInstance()) return this;
      if (other.hasSprintBoatInfo()) {
        mergeSprintBoatInfo(other.getSprintBoatInfo());
      }
      internalGetMutableStageMap().mergeFrom(
          other.internalGetStageMap());
      if (other.getIsContentClosed() != false) {
        setIsContentClosed(other.getIsContentClosed());
      }
      if (other.getContentCloseTime() != 0) {
        setContentCloseTime(other.getContentCloseTime());
      }
      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 {
      io.grasscutter.net.proto.activity.SummerTimeDetailInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.activity.SummerTimeDetailInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo sprintBoatInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo, io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.Builder, io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfoOrBuilder> sprintBoatInfoBuilder_;
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     * @return Whether the sprintBoatInfo field is set.
     */
    public boolean hasSprintBoatInfo() {
      return sprintBoatInfoBuilder_ != null || sprintBoatInfo_ != null;
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     * @return The sprintBoatInfo.
     */
    public io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo getSprintBoatInfo() {
      if (sprintBoatInfoBuilder_ == null) {
        return sprintBoatInfo_ == null ? io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.getDefaultInstance() : sprintBoatInfo_;
      } else {
        return sprintBoatInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    public Builder setSprintBoatInfo(io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo value) {
      if (sprintBoatInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sprintBoatInfo_ = value;
        onChanged();
      } else {
        sprintBoatInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    public Builder setSprintBoatInfo(
        io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.Builder builderForValue) {
      if (sprintBoatInfoBuilder_ == null) {
        sprintBoatInfo_ = builderForValue.build();
        onChanged();
      } else {
        sprintBoatInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    public Builder mergeSprintBoatInfo(io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo value) {
      if (sprintBoatInfoBuilder_ == null) {
        if (sprintBoatInfo_ != null) {
          sprintBoatInfo_ =
            io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.newBuilder(sprintBoatInfo_).mergeFrom(value).buildPartial();
        } else {
          sprintBoatInfo_ = value;
        }
        onChanged();
      } else {
        sprintBoatInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    public Builder clearSprintBoatInfo() {
      if (sprintBoatInfoBuilder_ == null) {
        sprintBoatInfo_ = null;
        onChanged();
      } else {
        sprintBoatInfo_ = null;
        sprintBoatInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    public io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.Builder getSprintBoatInfoBuilder() {
      
      onChanged();
      return getSprintBoatInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    public io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfoOrBuilder getSprintBoatInfoOrBuilder() {
      if (sprintBoatInfoBuilder_ != null) {
        return sprintBoatInfoBuilder_.getMessageOrBuilder();
      } else {
        return sprintBoatInfo_ == null ?
            io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.getDefaultInstance() : sprintBoatInfo_;
      }
    }
    /**
     * <code>.SummerTimeSprintBoatInfo sprint_boat_info = 13;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo, io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.Builder, io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfoOrBuilder> 
        getSprintBoatInfoFieldBuilder() {
      if (sprintBoatInfoBuilder_ == null) {
        sprintBoatInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo, io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfo.Builder, io.grasscutter.net.proto.activity.SummerTimeSprintBoatInfoOrBuilder>(
                getSprintBoatInfo(),
                getParentForChildren(),
                isClean());
        sprintBoatInfo_ = null;
      }
      return sprintBoatInfoBuilder_;
    }

    private com.google.protobuf.MapField<
        java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> stageMap_;
    private com.google.protobuf.MapField<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>
    internalGetStageMap() {
      if (stageMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            StageMapDefaultEntryHolder.defaultEntry);
      }
      return stageMap_;
    }
    private com.google.protobuf.MapField<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>
    internalGetMutableStageMap() {
      onChanged();;
      if (stageMap_ == null) {
        stageMap_ = com.google.protobuf.MapField.newMapField(
            StageMapDefaultEntryHolder.defaultEntry);
      }
      if (!stageMap_.isMutable()) {
        stageMap_ = stageMap_.copy();
      }
      return stageMap_;
    }

    public int getStageMapCount() {
      return internalGetStageMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */

    @java.lang.Override
    public boolean containsStageMap(
        int key) {
      
      return internalGetStageMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getStageMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> getStageMap() {
      return getStageMapMap();
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> getStageMapMap() {
      return internalGetStageMap().getMap();
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */
    @java.lang.Override

    public io.grasscutter.net.proto.activity.SummerTimeStageInfo getStageMapOrDefault(
        int key,
        io.grasscutter.net.proto.activity.SummerTimeStageInfo defaultValue) {
      
      java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> map =
          internalGetStageMap().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */
    @java.lang.Override

    public io.grasscutter.net.proto.activity.SummerTimeStageInfo getStageMapOrThrow(
        int key) {
      
      java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> map =
          internalGetStageMap().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearStageMap() {
      internalGetMutableStageMap().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */

    public Builder removeStageMap(
        int key) {
      
      internalGetMutableStageMap().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo>
    getMutableStageMap() {
      return internalGetMutableStageMap().getMutableMap();
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */
    public Builder putStageMap(
        int key,
        io.grasscutter.net.proto.activity.SummerTimeStageInfo value) {
      
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableStageMap().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <code>map&lt;uint32, .SummerTimeStageInfo&gt; stage_map = 5;</code>
     */

    public Builder putAllStageMap(
        java.util.Map<java.lang.Integer, io.grasscutter.net.proto.activity.SummerTimeStageInfo> values) {
      internalGetMutableStageMap().getMutableMap()
          .putAll(values);
      return this;
    }

    private boolean isContentClosed_ ;
    /**
     * <code>bool is_content_closed = 11;</code>
     * @return The isContentClosed.
     */
    @java.lang.Override
    public boolean getIsContentClosed() {
      return isContentClosed_;
    }
    /**
     * <code>bool is_content_closed = 11;</code>
     * @param value The isContentClosed to set.
     * @return This builder for chaining.
     */
    public Builder setIsContentClosed(boolean value) {
      
      isContentClosed_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_content_closed = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsContentClosed() {
      
      isContentClosed_ = false;
      onChanged();
      return this;
    }

    private int contentCloseTime_ ;
    /**
     * <code>uint32 content_close_time = 7;</code>
     * @return The contentCloseTime.
     */
    @java.lang.Override
    public int getContentCloseTime() {
      return contentCloseTime_;
    }
    /**
     * <code>uint32 content_close_time = 7;</code>
     * @param value The contentCloseTime to set.
     * @return This builder for chaining.
     */
    public Builder setContentCloseTime(int value) {
      
      contentCloseTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 content_close_time = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearContentCloseTime() {
      
      contentCloseTime_ = 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:SummerTimeDetailInfo)
  }

  // @@protoc_insertion_point(class_scope:SummerTimeDetailInfo)
  private static final io.grasscutter.net.proto.activity.SummerTimeDetailInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.activity.SummerTimeDetailInfo();
  }

  public static io.grasscutter.net.proto.activity.SummerTimeDetailInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<SummerTimeDetailInfo>
      PARSER = new com.google.protobuf.AbstractParser<SummerTimeDetailInfo>() {
    @java.lang.Override
    public SummerTimeDetailInfo parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new SummerTimeDetailInfo(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<SummerTimeDetailInfo> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<SummerTimeDetailInfo> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public io.grasscutter.net.proto.activity.SummerTimeDetailInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

