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

com.google.apphosting.runtime.AutoValue_ApplicationEnvironment_RuntimeConfiguration Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
package com.google.apphosting.runtime;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ApplicationEnvironment_RuntimeConfiguration extends ApplicationEnvironment.RuntimeConfiguration {

  private final boolean cloudSqlJdbcConnectivityEnabled;

  private final boolean useGoogleConnectorJ;

  private AutoValue_ApplicationEnvironment_RuntimeConfiguration(
      boolean cloudSqlJdbcConnectivityEnabled,
      boolean useGoogleConnectorJ) {
    this.cloudSqlJdbcConnectivityEnabled = cloudSqlJdbcConnectivityEnabled;
    this.useGoogleConnectorJ = useGoogleConnectorJ;
  }

  @Override
  public boolean getCloudSqlJdbcConnectivityEnabled() {
    return cloudSqlJdbcConnectivityEnabled;
  }

  @Override
  public boolean getUseGoogleConnectorJ() {
    return useGoogleConnectorJ;
  }

  @Override
  public String toString() {
    return "RuntimeConfiguration{"
        + "cloudSqlJdbcConnectivityEnabled=" + cloudSqlJdbcConnectivityEnabled + ", "
        + "useGoogleConnectorJ=" + useGoogleConnectorJ
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ApplicationEnvironment.RuntimeConfiguration) {
      ApplicationEnvironment.RuntimeConfiguration that = (ApplicationEnvironment.RuntimeConfiguration) o;
      return this.cloudSqlJdbcConnectivityEnabled == that.getCloudSqlJdbcConnectivityEnabled()
          && this.useGoogleConnectorJ == that.getUseGoogleConnectorJ();
    }
    return false;
  }

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

  @Override
  public ApplicationEnvironment.RuntimeConfiguration.Builder toBuilder() {
    return new AutoValue_ApplicationEnvironment_RuntimeConfiguration.Builder(this);
  }

  static final class Builder extends ApplicationEnvironment.RuntimeConfiguration.Builder {
    private boolean cloudSqlJdbcConnectivityEnabled;
    private boolean useGoogleConnectorJ;
    private byte set$0;
    Builder() {
    }
    Builder(ApplicationEnvironment.RuntimeConfiguration source) {
      this.cloudSqlJdbcConnectivityEnabled = source.getCloudSqlJdbcConnectivityEnabled();
      this.useGoogleConnectorJ = source.getUseGoogleConnectorJ();
      set$0 = (byte) 3;
    }
    @Override
    public ApplicationEnvironment.RuntimeConfiguration.Builder setCloudSqlJdbcConnectivityEnabled(boolean cloudSqlJdbcConnectivityEnabled) {
      this.cloudSqlJdbcConnectivityEnabled = cloudSqlJdbcConnectivityEnabled;
      set$0 |= (byte) 1;
      return this;
    }
    @Override
    public ApplicationEnvironment.RuntimeConfiguration.Builder setUseGoogleConnectorJ(boolean useGoogleConnectorJ) {
      this.useGoogleConnectorJ = useGoogleConnectorJ;
      set$0 |= (byte) 2;
      return this;
    }
    @Override
    public ApplicationEnvironment.RuntimeConfiguration build() {
      if (set$0 != 3) {
        StringBuilder missing = new StringBuilder();
        if ((set$0 & 1) == 0) {
          missing.append(" cloudSqlJdbcConnectivityEnabled");
        }
        if ((set$0 & 2) == 0) {
          missing.append(" useGoogleConnectorJ");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ApplicationEnvironment_RuntimeConfiguration(
          this.cloudSqlJdbcConnectivityEnabled,
          this.useGoogleConnectorJ);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy