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

annotations.com.cognite.client.servicesV1.response.AutoValue_RequestParametersResponseParser Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.cognite.client.servicesV1.response;

import java.util.Map;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RequestParametersResponseParser extends RequestParametersResponseParser {

  private final Map attributeMap;

  private final boolean itemMode;

  private AutoValue_RequestParametersResponseParser(
      Map attributeMap,
      boolean itemMode) {
    this.attributeMap = attributeMap;
    this.itemMode = itemMode;
  }

  @Override
  Map getAttributeMap() {
    return attributeMap;
  }

  @Override
  boolean isItemMode() {
    return itemMode;
  }

  @Override
  public String toString() {
    return "RequestParametersResponseParser{"
        + "attributeMap=" + attributeMap + ", "
        + "itemMode=" + itemMode
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RequestParametersResponseParser) {
      RequestParametersResponseParser that = (RequestParametersResponseParser) o;
      return this.attributeMap.equals(that.getAttributeMap())
          && this.itemMode == that.isItemMode();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= attributeMap.hashCode();
    h$ *= 1000003;
    h$ ^= itemMode ? 1231 : 1237;
    return h$;
  }

  @Override
  RequestParametersResponseParser.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends RequestParametersResponseParser.Builder {
    private Map attributeMap;
    private Boolean itemMode;
    Builder() {
    }
    private Builder(RequestParametersResponseParser source) {
      this.attributeMap = source.getAttributeMap();
      this.itemMode = source.isItemMode();
    }
    @Override
    RequestParametersResponseParser.Builder setAttributeMap(Map attributeMap) {
      if (attributeMap == null) {
        throw new NullPointerException("Null attributeMap");
      }
      this.attributeMap = attributeMap;
      return this;
    }
    @Override
    RequestParametersResponseParser.Builder setItemMode(boolean itemMode) {
      this.itemMode = itemMode;
      return this;
    }
    @Override
    public RequestParametersResponseParser build() {
      if (this.attributeMap == null
          || this.itemMode == null) {
        StringBuilder missing = new StringBuilder();
        if (this.attributeMap == null) {
          missing.append(" attributeMap");
        }
        if (this.itemMode == null) {
          missing.append(" itemMode");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_RequestParametersResponseParser(
          this.attributeMap,
          this.itemMode);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy