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

package emu.grasscutter.net.proto;

public final class TrialAvatarInfoOuterClass {
  private TrialAvatarInfoOuterClass() {}
  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 TrialAvatarInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:TrialAvatarInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>uint32 trial_avatar_id = 1;</code>
     * @return The trialAvatarId.
     */
    int getTrialAvatarId();

    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> 
        getTrialEquipListList();
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index);
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    int getTrialEquipListCount();
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> 
        getTrialEquipListOrBuilderList();
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder(
        int index);

    /**
     * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
     * @return Whether the grantRecord field is set.
     */
    boolean hasGrantRecord();
    /**
     * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
     * @return The grantRecord.
     */
    emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord();
    /**
     * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
     */
    emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder getGrantRecordOrBuilder();
  }
  /**
   * Protobuf type {@code TrialAvatarInfo}
   */
  public static final class TrialAvatarInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:TrialAvatarInfo)
      TrialAvatarInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TrialAvatarInfo.newBuilder() to construct.
    private TrialAvatarInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TrialAvatarInfo() {
      trialEquipList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TrialAvatarInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              trialAvatarId_ = input.readUInt32();
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                trialEquipList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>();
                mutable_bitField0_ |= 0x00000001;
              }
              trialEquipList_.add(
                  input.readMessage(emu.grasscutter.net.proto.ItemOuterClass.Item.parser(), extensionRegistry));
              break;
            }
            case 26: {
              emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder subBuilder = null;
              if (grantRecord_ != null) {
                subBuilder = grantRecord_.toBuilder();
              }
              grantRecord_ = input.readMessage(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(grantRecord_);
                grantRecord_ = 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 {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          trialEquipList_ = java.util.Collections.unmodifiableList(trialEquipList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.internal_static_TrialAvatarInfo_descriptor;
    }

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

    public static final int TRIAL_AVATAR_ID_FIELD_NUMBER = 1;
    private int trialAvatarId_;
    /**
     * <code>uint32 trial_avatar_id = 1;</code>
     * @return The trialAvatarId.
     */
    @java.lang.Override
    public int getTrialAvatarId() {
      return trialAvatarId_;
    }

    public static final int TRIAL_EQUIP_LIST_FIELD_NUMBER = 2;
    private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> trialEquipList_;
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getTrialEquipListList() {
      return trialEquipList_;
    }
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> 
        getTrialEquipListOrBuilderList() {
      return trialEquipList_;
    }
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    @java.lang.Override
    public int getTrialEquipListCount() {
      return trialEquipList_.size();
    }
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index) {
      return trialEquipList_.get(index);
    }
    /**
     * <code>repeated .Item trial_equip_list = 2;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder(
        int index) {
      return trialEquipList_.get(index);
    }

    public static final int GRANT_RECORD_FIELD_NUMBER = 3;
    private emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord grantRecord_;
    /**
     * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
     * @return Whether the grantRecord field is set.
     */
    @java.lang.Override
    public boolean hasGrantRecord() {
      return grantRecord_ != null;
    }
    /**
     * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
     * @return The grantRecord.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord() {
      return grantRecord_ == null ? emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance() : grantRecord_;
    }
    /**
     * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder getGrantRecordOrBuilder() {
      return getGrantRecord();
    }

    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 (trialAvatarId_ != 0) {
        output.writeUInt32(1, trialAvatarId_);
      }
      for (int i = 0; i < trialEquipList_.size(); i++) {
        output.writeMessage(2, trialEquipList_.get(i));
      }
      if (grantRecord_ != null) {
        output.writeMessage(3, getGrantRecord());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (trialAvatarId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, trialAvatarId_);
      }
      for (int i = 0; i < trialEquipList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, trialEquipList_.get(i));
      }
      if (grantRecord_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getGrantRecord());
      }
      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.TrialAvatarInfoOuterClass.TrialAvatarInfo)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo other = (emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo) obj;

      if (getTrialAvatarId()
          != other.getTrialAvatarId()) return false;
      if (!getTrialEquipListList()
          .equals(other.getTrialEquipListList())) return false;
      if (hasGrantRecord() != other.hasGrantRecord()) return false;
      if (hasGrantRecord()) {
        if (!getGrantRecord()
            .equals(other.getGrantRecord())) 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) + TRIAL_AVATAR_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTrialAvatarId();
      if (getTrialEquipListCount() > 0) {
        hash = (37 * hash) + TRIAL_EQUIP_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getTrialEquipListList().hashCode();
      }
      if (hasGrantRecord()) {
        hash = (37 * hash) + GRANT_RECORD_FIELD_NUMBER;
        hash = (53 * hash) + getGrantRecord().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

        if (trialEquipListBuilder_ == null) {
          trialEquipList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          trialEquipListBuilder_.clear();
        }
        if (grantRecordBuilder_ == null) {
          grantRecord_ = null;
        } else {
          grantRecord_ = null;
          grantRecordBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo buildPartial() {
        emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo result = new emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo(this);
        int from_bitField0_ = bitField0_;
        result.trialAvatarId_ = trialAvatarId_;
        if (trialEquipListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            trialEquipList_ = java.util.Collections.unmodifiableList(trialEquipList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.trialEquipList_ = trialEquipList_;
        } else {
          result.trialEquipList_ = trialEquipListBuilder_.build();
        }
        if (grantRecordBuilder_ == null) {
          result.grantRecord_ = grantRecord_;
        } else {
          result.grantRecord_ = grantRecordBuilder_.build();
        }
        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.TrialAvatarInfoOuterClass.TrialAvatarInfo) {
          return mergeFrom((emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo other) {
        if (other == emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.getDefaultInstance()) return this;
        if (other.getTrialAvatarId() != 0) {
          setTrialAvatarId(other.getTrialAvatarId());
        }
        if (trialEquipListBuilder_ == null) {
          if (!other.trialEquipList_.isEmpty()) {
            if (trialEquipList_.isEmpty()) {
              trialEquipList_ = other.trialEquipList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureTrialEquipListIsMutable();
              trialEquipList_.addAll(other.trialEquipList_);
            }
            onChanged();
          }
        } else {
          if (!other.trialEquipList_.isEmpty()) {
            if (trialEquipListBuilder_.isEmpty()) {
              trialEquipListBuilder_.dispose();
              trialEquipListBuilder_ = null;
              trialEquipList_ = other.trialEquipList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              trialEquipListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTrialEquipListFieldBuilder() : null;
            } else {
              trialEquipListBuilder_.addAllMessages(other.trialEquipList_);
            }
          }
        }
        if (other.hasGrantRecord()) {
          mergeGrantRecord(other.getGrantRecord());
        }
        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.TrialAvatarInfoOuterClass.TrialAvatarInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int trialAvatarId_ ;
      /**
       * <code>uint32 trial_avatar_id = 1;</code>
       * @return The trialAvatarId.
       */
      @java.lang.Override
      public int getTrialAvatarId() {
        return trialAvatarId_;
      }
      /**
       * <code>uint32 trial_avatar_id = 1;</code>
       * @param value The trialAvatarId to set.
       * @return This builder for chaining.
       */
      public Builder setTrialAvatarId(int value) {
        
        trialAvatarId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 trial_avatar_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearTrialAvatarId() {
        
        trialAvatarId_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> trialEquipList_ =
        java.util.Collections.emptyList();
      private void ensureTrialEquipListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          trialEquipList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(trialEquipList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> trialEquipListBuilder_;

      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getTrialEquipListList() {
        if (trialEquipListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(trialEquipList_);
        } else {
          return trialEquipListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public int getTrialEquipListCount() {
        if (trialEquipListBuilder_ == null) {
          return trialEquipList_.size();
        } else {
          return trialEquipListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index) {
        if (trialEquipListBuilder_ == null) {
          return trialEquipList_.get(index);
        } else {
          return trialEquipListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder setTrialEquipList(
          int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) {
        if (trialEquipListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTrialEquipListIsMutable();
          trialEquipList_.set(index, value);
          onChanged();
        } else {
          trialEquipListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder setTrialEquipList(
          int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) {
        if (trialEquipListBuilder_ == null) {
          ensureTrialEquipListIsMutable();
          trialEquipList_.set(index, builderForValue.build());
          onChanged();
        } else {
          trialEquipListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder addTrialEquipList(emu.grasscutter.net.proto.ItemOuterClass.Item value) {
        if (trialEquipListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTrialEquipListIsMutable();
          trialEquipList_.add(value);
          onChanged();
        } else {
          trialEquipListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder addTrialEquipList(
          int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) {
        if (trialEquipListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTrialEquipListIsMutable();
          trialEquipList_.add(index, value);
          onChanged();
        } else {
          trialEquipListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder addTrialEquipList(
          emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) {
        if (trialEquipListBuilder_ == null) {
          ensureTrialEquipListIsMutable();
          trialEquipList_.add(builderForValue.build());
          onChanged();
        } else {
          trialEquipListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder addTrialEquipList(
          int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) {
        if (trialEquipListBuilder_ == null) {
          ensureTrialEquipListIsMutable();
          trialEquipList_.add(index, builderForValue.build());
          onChanged();
        } else {
          trialEquipListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder addAllTrialEquipList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemOuterClass.Item> values) {
        if (trialEquipListBuilder_ == null) {
          ensureTrialEquipListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, trialEquipList_);
          onChanged();
        } else {
          trialEquipListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder clearTrialEquipList() {
        if (trialEquipListBuilder_ == null) {
          trialEquipList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          trialEquipListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public Builder removeTrialEquipList(int index) {
        if (trialEquipListBuilder_ == null) {
          ensureTrialEquipListIsMutable();
          trialEquipList_.remove(index);
          onChanged();
        } else {
          trialEquipListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getTrialEquipListBuilder(
          int index) {
        return getTrialEquipListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder(
          int index) {
        if (trialEquipListBuilder_ == null) {
          return trialEquipList_.get(index);  } else {
          return trialEquipListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> 
           getTrialEquipListOrBuilderList() {
        if (trialEquipListBuilder_ != null) {
          return trialEquipListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(trialEquipList_);
        }
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addTrialEquipListBuilder() {
        return getTrialEquipListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance());
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addTrialEquipListBuilder(
          int index) {
        return getTrialEquipListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance());
      }
      /**
       * <code>repeated .Item trial_equip_list = 2;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item.Builder> 
           getTrialEquipListBuilderList() {
        return getTrialEquipListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> 
          getTrialEquipListFieldBuilder() {
        if (trialEquipListBuilder_ == null) {
          trialEquipListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder>(
                  trialEquipList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          trialEquipList_ = null;
        }
        return trialEquipListBuilder_;
      }

      private emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord grantRecord_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder> grantRecordBuilder_;
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       * @return Whether the grantRecord field is set.
       */
      public boolean hasGrantRecord() {
        return grantRecordBuilder_ != null || grantRecord_ != null;
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       * @return The grantRecord.
       */
      public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord() {
        if (grantRecordBuilder_ == null) {
          return grantRecord_ == null ? emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance() : grantRecord_;
        } else {
          return grantRecordBuilder_.getMessage();
        }
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      public Builder setGrantRecord(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord value) {
        if (grantRecordBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          grantRecord_ = value;
          onChanged();
        } else {
          grantRecordBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      public Builder setGrantRecord(
          emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder builderForValue) {
        if (grantRecordBuilder_ == null) {
          grantRecord_ = builderForValue.build();
          onChanged();
        } else {
          grantRecordBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      public Builder mergeGrantRecord(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord value) {
        if (grantRecordBuilder_ == null) {
          if (grantRecord_ != null) {
            grantRecord_ =
              emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.newBuilder(grantRecord_).mergeFrom(value).buildPartial();
          } else {
            grantRecord_ = value;
          }
          onChanged();
        } else {
          grantRecordBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      public Builder clearGrantRecord() {
        if (grantRecordBuilder_ == null) {
          grantRecord_ = null;
          onChanged();
        } else {
          grantRecord_ = null;
          grantRecordBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder getGrantRecordBuilder() {
        
        onChanged();
        return getGrantRecordFieldBuilder().getBuilder();
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder getGrantRecordOrBuilder() {
        if (grantRecordBuilder_ != null) {
          return grantRecordBuilder_.getMessageOrBuilder();
        } else {
          return grantRecord_ == null ?
              emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance() : grantRecord_;
        }
      }
      /**
       * <code>.TrialAvatarGrantRecord grant_record = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder> 
          getGrantRecordFieldBuilder() {
        if (grantRecordBuilder_ == null) {
          grantRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder>(
                  getGrantRecord(),
                  getParentForChildren(),
                  isClean());
          grantRecord_ = null;
        }
        return grantRecordBuilder_;
      }
      @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:TrialAvatarInfo)
    }

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

    public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_TrialAvatarInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_TrialAvatarInfo_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\025TrialAvatarInfo.proto\032\nItem.proto\032\034Tri" +
      "alAvatarGrantRecord.proto\"z\n\017TrialAvatar" +
      "Info\022\027\n\017trial_avatar_id\030\001 \001(\r\022\037\n\020trial_e" +
      "quip_list\030\002 \003(\0132\005.Item\022-\n\014grant_record\030\003" +
      " \001(\0132\027.TrialAvatarGrantRecordB\033\n\031emu.gra" +
      "sscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.getDescriptor(),
        });
    internal_static_TrialAvatarInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_TrialAvatarInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_TrialAvatarInfo_descriptor,
        new java.lang.String[] { "TrialAvatarId", "TrialEquipList", "GrantRecord", });
    emu.grasscutter.net.proto.ItemOuterClass.getDescriptor();
    emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
