// Generated from "autovalue/AutoValue_DefaultNonEmptyConstructorAutoValue.java"
@file:Suppress(
 "ALWAYS_NULL",
 "PARAMETER_NAME_CHANGED_ON_OVERRIDE",
 "SENSELESS_COMPARISON",
 "UNCHECKED_CAST",
 "UNNECESSARY_LATEINIT",
 "UNNECESSARY_NOT_NULL_ASSERTION",
 "UNREACHABLE_CODE",
 "UNUSED_ANONYMOUS_PARAMETER",
 "UNUSED_PARAMETER",
 "UNUSED_VARIABLE",
 "USELESS_CAST",
 "VARIABLE_IN_SINGLETON_WITHOUT_THREAD_LOCAL",
 "VARIABLE_WITH_REDUNDANT_INITIALIZER",
 "REDUNDANT_ELSE_IN_WHEN")

package autovalue

import javaemul.lang.*
import autovalue.DefaultNonEmptyConstructorAutoValue
import java.lang.IllegalStateException
import kotlin.Any
import kotlin.Boolean
import kotlin.Byte
import kotlin.Int
import kotlin.String
import kotlin.Suppress

class AutoValue_DefaultNonEmptyConstructorAutoValue: DefaultNonEmptyConstructorAutoValue {
 private val booleanField: Boolean

 private constructor(booleanField: Boolean) {
  this.booleanField = booleanField
 }

 override fun getBooleanField(): Boolean {
  return this.booleanField
 }

 override fun toString(): String {
  return "DefaultNonEmptyConstructorAutoValue{" + "booleanField=" + this.booleanField + "}"
 }

 override fun equals(o: Any?): Boolean {
  if (o === this) {
   return true
  }
  if (o is DefaultNonEmptyConstructorAutoValue) {
   val that: DefaultNonEmptyConstructorAutoValue? = o as DefaultNonEmptyConstructorAutoValue?
   return this.booleanField == that!!.getBooleanField()
  }
  return false
 }

 override fun hashCode(): Int {
  var h___: Int = 1
  h___ = h___ * 1000003
  h___ = h___.xor(
   if (this.booleanField) 1231 else 1237,
  )
  return h___
 }

 class Builder internal constructor(): autovalue.DefaultNonEmptyConstructorAutoValue.Builder() {
  private var booleanField: Boolean = false

  private var set___0: Byte = 0.toByte()

  override fun setBooleanField(booleanField: Boolean): autovalue.DefaultNonEmptyConstructorAutoValue.Builder? {
   this.booleanField = booleanField
   this.set___0 = this.set___0.toInt().or(
    1.toByte().toInt(),
   ).toByte()
   return this
  }

  override fun build(): DefaultNonEmptyConstructorAutoValue? {
   if (this.set___0.toInt() != 1) {
    val missing: String = " booleanField"
    throw IllegalStateException(
     "Missing required properties:" + missing,
    )
   }
   return AutoValue_DefaultNonEmptyConstructorAutoValue(
    this@Builder.booleanField,
   )
  }
 }
}
