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

package io.grasscutter.net.proto.define;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AbilityScalarValueEntry(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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 10: {
            io.grasscutter.net.proto.define.AbilityString.Builder subBuilder = null;
            if (key_ != null) {
              subBuilder = key_.toBuilder();
            }
            key_ = input.readMessage(io.grasscutter.net.proto.define.AbilityString.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(key_);
              key_ = subBuilder.buildPartial();
            }

            break;
          }
          case 29: {

            gFKDGCMMNKI_ = input.readFloat();
            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.define.Define.internal_static_AbilityScalarValueEntry_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_AbilityScalarValueEntry_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.AbilityScalarValueEntry.class, io.grasscutter.net.proto.define.AbilityScalarValueEntry.Builder.class);
  }

  public static final int KEY_FIELD_NUMBER = 1;
  private io.grasscutter.net.proto.define.AbilityString key_;
  /**
   * <code>.AbilityString key = 1;</code>
   * @return Whether the key field is set.
   */
  @java.lang.Override
  public boolean hasKey() {
    return key_ != null;
  }
  /**
   * <code>.AbilityString key = 1;</code>
   * @return The key.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.AbilityString getKey() {
    return key_ == null ? io.grasscutter.net.proto.define.AbilityString.getDefaultInstance() : key_;
  }
  /**
   * <code>.AbilityString key = 1;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.AbilityStringOrBuilder getKeyOrBuilder() {
    return getKey();
  }

  public static final int GFKDGCMMNKI_FIELD_NUMBER = 3;
  private float gFKDGCMMNKI_;
  /**
   * <code>float GFKDGCMMNKI = 3;</code>
   * @return The gFKDGCMMNKI.
   */
  @java.lang.Override
  public float getGFKDGCMMNKI() {
    return gFKDGCMMNKI_;
  }

  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 (key_ != null) {
      output.writeMessage(1, getKey());
    }
    if (gFKDGCMMNKI_ != 0F) {
      output.writeFloat(3, gFKDGCMMNKI_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (key_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getKey());
    }
    if (gFKDGCMMNKI_ != 0F) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(3, gFKDGCMMNKI_);
    }
    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.define.AbilityScalarValueEntry)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.AbilityScalarValueEntry other = (io.grasscutter.net.proto.define.AbilityScalarValueEntry) obj;

    if (hasKey() != other.hasKey()) return false;
    if (hasKey()) {
      if (!getKey()
          .equals(other.getKey())) return false;
    }
    if (java.lang.Float.floatToIntBits(getGFKDGCMMNKI())
        != java.lang.Float.floatToIntBits(
            other.getGFKDGCMMNKI())) 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 (hasKey()) {
      hash = (37 * hash) + KEY_FIELD_NUMBER;
      hash = (53 * hash) + getKey().hashCode();
    }
    hash = (37 * hash) + GFKDGCMMNKI_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(
        getGFKDGCMMNKI());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.define.Define.internal_static_AbilityScalarValueEntry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.define.AbilityScalarValueEntry.class, io.grasscutter.net.proto.define.AbilityScalarValueEntry.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.define.AbilityScalarValueEntry.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 (keyBuilder_ == null) {
        key_ = null;
      } else {
        key_ = null;
        keyBuilder_ = null;
      }
      gFKDGCMMNKI_ = 0F;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.define.Define.internal_static_AbilityScalarValueEntry_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.AbilityScalarValueEntry buildPartial() {
      io.grasscutter.net.proto.define.AbilityScalarValueEntry result = new io.grasscutter.net.proto.define.AbilityScalarValueEntry(this);
      if (keyBuilder_ == null) {
        result.key_ = key_;
      } else {
        result.key_ = keyBuilder_.build();
      }
      result.gFKDGCMMNKI_ = gFKDGCMMNKI_;
      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.define.AbilityScalarValueEntry) {
        return mergeFrom((io.grasscutter.net.proto.define.AbilityScalarValueEntry)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.AbilityScalarValueEntry other) {
      if (other == io.grasscutter.net.proto.define.AbilityScalarValueEntry.getDefaultInstance()) return this;
      if (other.hasKey()) {
        mergeKey(other.getKey());
      }
      if (other.getGFKDGCMMNKI() != 0F) {
        setGFKDGCMMNKI(other.getGFKDGCMMNKI());
      }
      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.define.AbilityScalarValueEntry parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.AbilityScalarValueEntry) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private io.grasscutter.net.proto.define.AbilityString key_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.AbilityString, io.grasscutter.net.proto.define.AbilityString.Builder, io.grasscutter.net.proto.define.AbilityStringOrBuilder> keyBuilder_;
    /**
     * <code>.AbilityString key = 1;</code>
     * @return Whether the key field is set.
     */
    public boolean hasKey() {
      return keyBuilder_ != null || key_ != null;
    }
    /**
     * <code>.AbilityString key = 1;</code>
     * @return The key.
     */
    public io.grasscutter.net.proto.define.AbilityString getKey() {
      if (keyBuilder_ == null) {
        return key_ == null ? io.grasscutter.net.proto.define.AbilityString.getDefaultInstance() : key_;
      } else {
        return keyBuilder_.getMessage();
      }
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    public Builder setKey(io.grasscutter.net.proto.define.AbilityString value) {
      if (keyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        key_ = value;
        onChanged();
      } else {
        keyBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    public Builder setKey(
        io.grasscutter.net.proto.define.AbilityString.Builder builderForValue) {
      if (keyBuilder_ == null) {
        key_ = builderForValue.build();
        onChanged();
      } else {
        keyBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    public Builder mergeKey(io.grasscutter.net.proto.define.AbilityString value) {
      if (keyBuilder_ == null) {
        if (key_ != null) {
          key_ =
            io.grasscutter.net.proto.define.AbilityString.newBuilder(key_).mergeFrom(value).buildPartial();
        } else {
          key_ = value;
        }
        onChanged();
      } else {
        keyBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    public Builder clearKey() {
      if (keyBuilder_ == null) {
        key_ = null;
        onChanged();
      } else {
        key_ = null;
        keyBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    public io.grasscutter.net.proto.define.AbilityString.Builder getKeyBuilder() {
      
      onChanged();
      return getKeyFieldBuilder().getBuilder();
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    public io.grasscutter.net.proto.define.AbilityStringOrBuilder getKeyOrBuilder() {
      if (keyBuilder_ != null) {
        return keyBuilder_.getMessageOrBuilder();
      } else {
        return key_ == null ?
            io.grasscutter.net.proto.define.AbilityString.getDefaultInstance() : key_;
      }
    }
    /**
     * <code>.AbilityString key = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.AbilityString, io.grasscutter.net.proto.define.AbilityString.Builder, io.grasscutter.net.proto.define.AbilityStringOrBuilder> 
        getKeyFieldBuilder() {
      if (keyBuilder_ == null) {
        keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.AbilityString, io.grasscutter.net.proto.define.AbilityString.Builder, io.grasscutter.net.proto.define.AbilityStringOrBuilder>(
                getKey(),
                getParentForChildren(),
                isClean());
        key_ = null;
      }
      return keyBuilder_;
    }

    private float gFKDGCMMNKI_ ;
    /**
     * <code>float GFKDGCMMNKI = 3;</code>
     * @return The gFKDGCMMNKI.
     */
    @java.lang.Override
    public float getGFKDGCMMNKI() {
      return gFKDGCMMNKI_;
    }
    /**
     * <code>float GFKDGCMMNKI = 3;</code>
     * @param value The gFKDGCMMNKI to set.
     * @return This builder for chaining.
     */
    public Builder setGFKDGCMMNKI(float value) {
      
      gFKDGCMMNKI_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>float GFKDGCMMNKI = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearGFKDGCMMNKI() {
      
      gFKDGCMMNKI_ = 0F;
      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:AbilityScalarValueEntry)
  }

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

  public static io.grasscutter.net.proto.define.AbilityScalarValueEntry getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

