All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.cel.common.ast.AutoValue_CelExpr_CelMap Maven / Gradle / Ivy

The newest version!
package dev.cel.common.ast;

import com.google.common.collect.ImmutableList;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_CelExpr_CelMap extends CelExpr.CelMap {

  private final ImmutableList entries;

  private AutoValue_CelExpr_CelMap(
      ImmutableList entries) {
    this.entries = entries;
  }

  @Override
  public ImmutableList entries() {
    return entries;
  }

  @Override
  public String toString() {
    return "CelMap{"
        + "entries=" + entries
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CelExpr.CelMap) {
      CelExpr.CelMap that = (CelExpr.CelMap) o;
      return this.entries.equals(that.entries());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= entries.hashCode();
    return h$;
  }

  @Override
  CelExpr.CelMap.Builder autoToBuilder() {
    return new AutoValue_CelExpr_CelMap.Builder(this);
  }

  static final class Builder extends CelExpr.CelMap.Builder {
    private ImmutableList entries;
    Builder() {
    }
    Builder(CelExpr.CelMap source) {
      this.entries = source.entries();
    }
    @Override
    CelExpr.CelMap.Builder setEntries(ImmutableList entries) {
      if (entries == null) {
        throw new NullPointerException("Null entries");
      }
      this.entries = entries;
      return this;
    }
    @Override
    ImmutableList entries() {
      if (this.entries == null) {
        throw new IllegalStateException("Property \"entries\" has not been set");
      }
      return entries;
    }
    @Override
    CelExpr.CelMap autoBuild() {
      if (this.entries == null) {
        String missing = " entries";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_CelExpr_CelMap(
          this.entries);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy