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

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

package com.google.apphosting.runtime;

import java.io.File;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoBuilderProcessor")
class AutoBuilder_AppVersionFactory_Builder extends AppVersionFactory.Builder {

  private NullSandboxPlugin sandboxPlugin;

  private File sharedDirectory;

  private String runtimeVersion;

  private boolean defaultToNativeUrlStreamHandler;

  private boolean forceUrlfetchUrlStreamHandler;

  private boolean ignoreDaemonThreads;

  private boolean useEnvVarsFromAppInfo;

  private String fixedApplicationPath;

  private byte set$0;

  AutoBuilder_AppVersionFactory_Builder() {
  }

  @Override
  public AppVersionFactory.Builder setSandboxPlugin(NullSandboxPlugin sandboxPlugin) {
    if (sandboxPlugin == null) {
      throw new NullPointerException("Null sandboxPlugin");
    }
    this.sandboxPlugin = sandboxPlugin;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setSharedDirectory(File sharedDirectory) {
    if (sharedDirectory == null) {
      throw new NullPointerException("Null sharedDirectory");
    }
    this.sharedDirectory = sharedDirectory;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setRuntimeVersion(String runtimeVersion) {
    if (runtimeVersion == null) {
      throw new NullPointerException("Null runtimeVersion");
    }
    this.runtimeVersion = runtimeVersion;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setDefaultToNativeUrlStreamHandler(boolean defaultToNativeUrlStreamHandler) {
    this.defaultToNativeUrlStreamHandler = defaultToNativeUrlStreamHandler;
    set$0 |= (byte) 1;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setForceUrlfetchUrlStreamHandler(boolean forceUrlfetchUrlStreamHandler) {
    this.forceUrlfetchUrlStreamHandler = forceUrlfetchUrlStreamHandler;
    set$0 |= (byte) 2;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setIgnoreDaemonThreads(boolean ignoreDaemonThreads) {
    this.ignoreDaemonThreads = ignoreDaemonThreads;
    set$0 |= (byte) 4;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setUseEnvVarsFromAppInfo(boolean useEnvVarsFromAppInfo) {
    this.useEnvVarsFromAppInfo = useEnvVarsFromAppInfo;
    set$0 |= (byte) 8;
    return this;
  }

  @Override
  public AppVersionFactory.Builder setFixedApplicationPath(String fixedApplicationPath) {
    this.fixedApplicationPath = fixedApplicationPath;
    return this;
  }

  @Override
  public AppVersionFactory build() {
    if (set$0 != 0xf
        || this.sandboxPlugin == null
        || this.sharedDirectory == null
        || this.runtimeVersion == null) {
      StringBuilder missing = new StringBuilder();
      if (this.sandboxPlugin == null) {
        missing.append(" sandboxPlugin");
      }
      if (this.sharedDirectory == null) {
        missing.append(" sharedDirectory");
      }
      if (this.runtimeVersion == null) {
        missing.append(" runtimeVersion");
      }
      if ((set$0 & 1) == 0) {
        missing.append(" defaultToNativeUrlStreamHandler");
      }
      if ((set$0 & 2) == 0) {
        missing.append(" forceUrlfetchUrlStreamHandler");
      }
      if ((set$0 & 4) == 0) {
        missing.append(" ignoreDaemonThreads");
      }
      if ((set$0 & 8) == 0) {
        missing.append(" useEnvVarsFromAppInfo");
      }
      throw new IllegalStateException("Missing required properties:" + missing);
    }
    return new AppVersionFactory(
        this.sandboxPlugin,
        this.sharedDirectory,
        this.runtimeVersion,
        this.defaultToNativeUrlStreamHandler,
        this.forceUrlfetchUrlStreamHandler,
        this.ignoreDaemonThreads,
        this.useEnvVarsFromAppInfo,
        this.fixedApplicationPath);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy