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

package emu.grasscutter.net.proto;

public final class SaveUgcReqOuterClass {
  private SaveUgcReqOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SaveUgcReqOrBuilder extends
      // @@protoc_insertion_point(interface_extends:SaveUgcReq)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.UgcType ugc_type = 4;</code>
     * @return The enum numeric value on the wire for ugcType.
     */
    int getUgcTypeValue();
    /**
     * <code>.UgcType ugc_type = 4;</code>
     * @return The ugcType.
     */
    emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType();

    /**
     * <code>uint32 schedule_id = 2;</code>
     * @return The scheduleId.
     */
    int getScheduleId();

    /**
     * <code>optional .UgcMusicRecord music_record = 9;</code>
     * @return Whether the musicRecord field is set.
     */
    boolean hasMusicRecord();
    /**
     * <code>optional .UgcMusicRecord music_record = 9;</code>
     * @return The musicRecord.
     */
    emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord getMusicRecord();
    /**
     * <code>optional .UgcMusicRecord music_record = 9;</code>
     */
    emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder getMusicRecordOrBuilder();

    /**
     * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
     * @return Whether the musicBriefInfo field is set.
     */
    boolean hasMusicBriefInfo();
    /**
     * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
     * @return The musicBriefInfo.
     */
    emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo getMusicBriefInfo();
    /**
     * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
     */
    emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder getMusicBriefInfoOrBuilder();
  }
  /**
   * <pre>
   * CmdId: 4331
   * Obf: NFDPAGDPKFO
   * </pre>
   *
   * Protobuf type {@code SaveUgcReq}
   */
  public static final class SaveUgcReq extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:SaveUgcReq)
      SaveUgcReqOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SaveUgcReq.newBuilder() to construct.
    private SaveUgcReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SaveUgcReq() {
      ugcType_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SaveUgcReq(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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 16: {

              scheduleId_ = input.readUInt32();
              break;
            }
            case 32: {
              int rawValue = input.readEnum();

              ugcType_ = rawValue;
              break;
            }
            case 74: {
              emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = musicRecord_.toBuilder();
              }
              musicRecord_ = input.readMessage(emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(musicRecord_);
                musicRecord_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 12850: {
              emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) != 0)) {
                subBuilder = musicBriefInfo_.toBuilder();
              }
              musicBriefInfo_ = input.readMessage(emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(musicBriefInfo_);
                musicBriefInfo_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.class, emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.Builder.class);
    }

    private int bitField0_;
    public static final int UGC_TYPE_FIELD_NUMBER = 4;
    private int ugcType_;
    /**
     * <code>.UgcType ugc_type = 4;</code>
     * @return The enum numeric value on the wire for ugcType.
     */
    @java.lang.Override public int getUgcTypeValue() {
      return ugcType_;
    }
    /**
     * <code>.UgcType ugc_type = 4;</code>
     * @return The ugcType.
     */
    @java.lang.Override public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() {
      @SuppressWarnings("deprecation")
      emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_);
      return result == null ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED : result;
    }

    public static final int SCHEDULE_ID_FIELD_NUMBER = 2;
    private int scheduleId_;
    /**
     * <code>uint32 schedule_id = 2;</code>
     * @return The scheduleId.
     */
    @java.lang.Override
    public int getScheduleId() {
      return scheduleId_;
    }

    public static final int MUSIC_RECORD_FIELD_NUMBER = 9;
    private emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord musicRecord_;
    /**
     * <code>optional .UgcMusicRecord music_record = 9;</code>
     * @return Whether the musicRecord field is set.
     */
    @java.lang.Override
    public boolean hasMusicRecord() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional .UgcMusicRecord music_record = 9;</code>
     * @return The musicRecord.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord getMusicRecord() {
      return musicRecord_ == null ? emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance() : musicRecord_;
    }
    /**
     * <code>optional .UgcMusicRecord music_record = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder getMusicRecordOrBuilder() {
      return musicRecord_ == null ? emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance() : musicRecord_;
    }

    public static final int MUSIC_BRIEF_INFO_FIELD_NUMBER = 1606;
    private emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo musicBriefInfo_;
    /**
     * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
     * @return Whether the musicBriefInfo field is set.
     */
    @java.lang.Override
    public boolean hasMusicBriefInfo() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
     * @return The musicBriefInfo.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo getMusicBriefInfo() {
      return musicBriefInfo_ == null ? emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.getDefaultInstance() : musicBriefInfo_;
    }
    /**
     * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder getMusicBriefInfoOrBuilder() {
      return musicBriefInfo_ == null ? emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.getDefaultInstance() : musicBriefInfo_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (scheduleId_ != 0) {
        output.writeUInt32(2, scheduleId_);
      }
      if (ugcType_ != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) {
        output.writeEnum(4, ugcType_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(9, getMusicRecord());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(1606, getMusicBriefInfo());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (scheduleId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, scheduleId_);
      }
      if (ugcType_ != emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UGC_TYPE_NONE.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(4, ugcType_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, getMusicRecord());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1606, getMusicBriefInfo());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq other = (emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq) obj;

      if (ugcType_ != other.ugcType_) return false;
      if (getScheduleId()
          != other.getScheduleId()) return false;
      if (hasMusicRecord() != other.hasMusicRecord()) return false;
      if (hasMusicRecord()) {
        if (!getMusicRecord()
            .equals(other.getMusicRecord())) return false;
      }
      if (hasMusicBriefInfo() != other.hasMusicBriefInfo()) return false;
      if (hasMusicBriefInfo()) {
        if (!getMusicBriefInfo()
            .equals(other.getMusicBriefInfo())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + UGC_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + ugcType_;
      hash = (37 * hash) + SCHEDULE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getScheduleId();
      if (hasMusicRecord()) {
        hash = (37 * hash) + MUSIC_RECORD_FIELD_NUMBER;
        hash = (53 * hash) + getMusicRecord().hashCode();
      }
      if (hasMusicBriefInfo()) {
        hash = (37 * hash) + MUSIC_BRIEF_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getMusicBriefInfo().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * CmdId: 4331
     * Obf: NFDPAGDPKFO
     * </pre>
     *
     * Protobuf type {@code SaveUgcReq}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:SaveUgcReq)
        emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReqOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.class, emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.Builder.class);
      }

      // Construct using emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getMusicRecordFieldBuilder();
          getMusicBriefInfoFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        ugcType_ = 0;

        scheduleId_ = 0;

        if (musicRecordBuilder_ == null) {
          musicRecord_ = null;
        } else {
          musicRecordBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (musicBriefInfoBuilder_ == null) {
          musicBriefInfo_ = null;
        } else {
          musicBriefInfoBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return emu.grasscutter.net.proto.SaveUgcReqOuterClass.internal_static_SaveUgcReq_descriptor;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq getDefaultInstanceForType() {
        return emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.getDefaultInstance();
      }

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

      @java.lang.Override
      public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq buildPartial() {
        emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq result = new emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.ugcType_ = ugcType_;
        result.scheduleId_ = scheduleId_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (musicRecordBuilder_ == null) {
            result.musicRecord_ = musicRecord_;
          } else {
            result.musicRecord_ = musicRecordBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          if (musicBriefInfoBuilder_ == null) {
            result.musicBriefInfo_ = musicBriefInfo_;
          } else {
            result.musicBriefInfo_ = musicBriefInfoBuilder_.build();
          }
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq) {
          return mergeFrom((emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq other) {
        if (other == emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq.getDefaultInstance()) return this;
        if (other.ugcType_ != 0) {
          setUgcTypeValue(other.getUgcTypeValue());
        }
        if (other.getScheduleId() != 0) {
          setScheduleId(other.getScheduleId());
        }
        if (other.hasMusicRecord()) {
          mergeMusicRecord(other.getMusicRecord());
        }
        if (other.hasMusicBriefInfo()) {
          mergeMusicBriefInfo(other.getMusicBriefInfo());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int ugcType_ = 0;
      /**
       * <code>.UgcType ugc_type = 4;</code>
       * @return The enum numeric value on the wire for ugcType.
       */
      @java.lang.Override public int getUgcTypeValue() {
        return ugcType_;
      }
      /**
       * <code>.UgcType ugc_type = 4;</code>
       * @param value The enum numeric value on the wire for ugcType to set.
       * @return This builder for chaining.
       */
      public Builder setUgcTypeValue(int value) {
        
        ugcType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.UgcType ugc_type = 4;</code>
       * @return The ugcType.
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType getUgcType() {
        @SuppressWarnings("deprecation")
        emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType result = emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.valueOf(ugcType_);
        return result == null ? emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType.UNRECOGNIZED : result;
      }
      /**
       * <code>.UgcType ugc_type = 4;</code>
       * @param value The ugcType to set.
       * @return This builder for chaining.
       */
      public Builder setUgcType(emu.grasscutter.net.proto.UgcTypeOuterClass.UgcType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        ugcType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.UgcType ugc_type = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearUgcType() {
        
        ugcType_ = 0;
        onChanged();
        return this;
      }

      private int scheduleId_ ;
      /**
       * <code>uint32 schedule_id = 2;</code>
       * @return The scheduleId.
       */
      @java.lang.Override
      public int getScheduleId() {
        return scheduleId_;
      }
      /**
       * <code>uint32 schedule_id = 2;</code>
       * @param value The scheduleId to set.
       * @return This builder for chaining.
       */
      public Builder setScheduleId(int value) {
        
        scheduleId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 schedule_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearScheduleId() {
        
        scheduleId_ = 0;
        onChanged();
        return this;
      }

      private emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord musicRecord_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord, emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder, emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder> musicRecordBuilder_;
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       * @return Whether the musicRecord field is set.
       */
      public boolean hasMusicRecord() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       * @return The musicRecord.
       */
      public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord getMusicRecord() {
        if (musicRecordBuilder_ == null) {
          return musicRecord_ == null ? emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance() : musicRecord_;
        } else {
          return musicRecordBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      public Builder setMusicRecord(emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord value) {
        if (musicRecordBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          musicRecord_ = value;
          onChanged();
        } else {
          musicRecordBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      public Builder setMusicRecord(
          emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder builderForValue) {
        if (musicRecordBuilder_ == null) {
          musicRecord_ = builderForValue.build();
          onChanged();
        } else {
          musicRecordBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      public Builder mergeMusicRecord(emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord value) {
        if (musicRecordBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              musicRecord_ != null &&
              musicRecord_ != emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance()) {
            musicRecord_ =
              emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.newBuilder(musicRecord_).mergeFrom(value).buildPartial();
          } else {
            musicRecord_ = value;
          }
          onChanged();
        } else {
          musicRecordBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      public Builder clearMusicRecord() {
        if (musicRecordBuilder_ == null) {
          musicRecord_ = null;
          onChanged();
        } else {
          musicRecordBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder getMusicRecordBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getMusicRecordFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      public emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder getMusicRecordOrBuilder() {
        if (musicRecordBuilder_ != null) {
          return musicRecordBuilder_.getMessageOrBuilder();
        } else {
          return musicRecord_ == null ?
              emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.getDefaultInstance() : musicRecord_;
        }
      }
      /**
       * <code>optional .UgcMusicRecord music_record = 9;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord, emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder, emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder> 
          getMusicRecordFieldBuilder() {
        if (musicRecordBuilder_ == null) {
          musicRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord, emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecord.Builder, emu.grasscutter.net.proto.UgcMusicRecordOuterClass.UgcMusicRecordOrBuilder>(
                  getMusicRecord(),
                  getParentForChildren(),
                  isClean());
          musicRecord_ = null;
        }
        return musicRecordBuilder_;
      }

      private emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo musicBriefInfo_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder> musicBriefInfoBuilder_;
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       * @return Whether the musicBriefInfo field is set.
       */
      public boolean hasMusicBriefInfo() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       * @return The musicBriefInfo.
       */
      public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo getMusicBriefInfo() {
        if (musicBriefInfoBuilder_ == null) {
          return musicBriefInfo_ == null ? emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.getDefaultInstance() : musicBriefInfo_;
        } else {
          return musicBriefInfoBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      public Builder setMusicBriefInfo(emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo value) {
        if (musicBriefInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          musicBriefInfo_ = value;
          onChanged();
        } else {
          musicBriefInfoBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      public Builder setMusicBriefInfo(
          emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder builderForValue) {
        if (musicBriefInfoBuilder_ == null) {
          musicBriefInfo_ = builderForValue.build();
          onChanged();
        } else {
          musicBriefInfoBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      public Builder mergeMusicBriefInfo(emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo value) {
        if (musicBriefInfoBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
              musicBriefInfo_ != null &&
              musicBriefInfo_ != emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.getDefaultInstance()) {
            musicBriefInfo_ =
              emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.newBuilder(musicBriefInfo_).mergeFrom(value).buildPartial();
          } else {
            musicBriefInfo_ = value;
          }
          onChanged();
        } else {
          musicBriefInfoBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      public Builder clearMusicBriefInfo() {
        if (musicBriefInfoBuilder_ == null) {
          musicBriefInfo_ = null;
          onChanged();
        } else {
          musicBriefInfoBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder getMusicBriefInfoBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getMusicBriefInfoFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      public emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder getMusicBriefInfoOrBuilder() {
        if (musicBriefInfoBuilder_ != null) {
          return musicBriefInfoBuilder_.getMessageOrBuilder();
        } else {
          return musicBriefInfo_ == null ?
              emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.getDefaultInstance() : musicBriefInfo_;
        }
      }
      /**
       * <code>optional .UgcMusicBriefInfo music_brief_info = 1606;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder> 
          getMusicBriefInfoFieldBuilder() {
        if (musicBriefInfoBuilder_ == null) {
          musicBriefInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo, emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder, emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.UgcMusicBriefInfoOrBuilder>(
                  getMusicBriefInfo(),
                  getParentForChildren(),
                  isClean());
          musicBriefInfo_ = null;
        }
        return musicBriefInfoBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:SaveUgcReq)
    }

    // @@protoc_insertion_point(class_scope:SaveUgcReq)
    private static final emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq();
    }

    public static emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public emu.grasscutter.net.proto.SaveUgcReqOuterClass.SaveUgcReq getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_SaveUgcReq_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_SaveUgcReq_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\020SaveUgcReq.proto\032\rUgcType.proto\032\024UgcMu" +
      "sicRecord.proto\032\027UgcMusicBriefInfo.proto" +
      "\"\303\001\n\nSaveUgcReq\022\032\n\010ugc_type\030\004 \001(\0162\010.UgcT" +
      "ype\022\023\n\013schedule_id\030\002 \001(\r\022*\n\014music_record" +
      "\030\t \001(\0132\017.UgcMusicRecordH\000\210\001\001\0222\n\020music_br" +
      "ief_info\030\306\014 \001(\0132\022.UgcMusicBriefInfoH\001\210\001\001" +
      "B\017\n\r_music_recordB\023\n\021_music_brief_infoB\033" +
      "\n\031emu.grasscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.UgcMusicRecordOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.getDescriptor(),
        });
    internal_static_SaveUgcReq_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_SaveUgcReq_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_SaveUgcReq_descriptor,
        new java.lang.String[] { "UgcType", "ScheduleId", "MusicRecord", "MusicBriefInfo", "MusicRecord", "MusicBriefInfo", });
    emu.grasscutter.net.proto.UgcTypeOuterClass.getDescriptor();
    emu.grasscutter.net.proto.UgcMusicRecordOuterClass.getDescriptor();
    emu.grasscutter.net.proto.UgcMusicBriefInfoOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
