com.google.api.services.dataflow.model.TaskRunnerSettings Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2016-04-08 17:16:44 UTC)
* on 2016-04-27 at 00:23:15 UTC
* Modify at your own risk.
*/
package com.google.api.services.dataflow.model;
/**
* Taskrunner configuration settings.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TaskRunnerSettings extends com.google.api.client.json.GenericJson {
/**
* Also send taskrunner log info to stderr?
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean alsologtostderr;
/**
* Location on the worker for task-specific subdirectories.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String baseTaskDir;
/**
* The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access
* Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it
* supplies the base URL to use for resolving these relative URLs. The normative algorithm used is
* defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value
* is "http://www.googleapis.com/"
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String baseUrl;
/**
* Store preprocessing commands in this file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String commandlinesFileName;
/**
* Do we continue taskrunner if an exception is hit?
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean continueOnException;
/**
* API version of endpoint, e.g. "v1b3"
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String dataflowApiVersion;
/**
* Command to launch the worker harness.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String harnessCommand;
/**
* Suggested backend language.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String languageHint;
/**
* Directory on the VM to store logs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String logDir;
/**
* Send taskrunner log into to Google Compute Engine VM serial console?
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean logToSerialconsole;
/**
* Indicates where to put logs. If this is not specified, the logs will not be uploaded. The
* supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
* bucket.storage.googleapis.com/{object}
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String logUploadLocation;
/**
* OAuth2 scopes to be requested by the taskrunner in order to access the dataflow API.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List oauthScopes;
/**
* Settings to pass to the parallel worker harness.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private WorkerSettings parallelWorkerSettings;
/**
* Streaming worker main class name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String streamingWorkerMainClass;
/**
* The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String taskGroup;
/**
* The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String taskUser;
/**
* The prefix of the resources the taskrunner should use for temporary storage. The supported
* resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
* bucket.storage.googleapis.com/{object}
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String tempStoragePrefix;
/**
* ID string of VM.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String vmId;
/**
* Store the workflow in this file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String workflowFileName;
/**
* Also send taskrunner log info to stderr?
* @return value or {@code null} for none
*/
public java.lang.Boolean getAlsologtostderr() {
return alsologtostderr;
}
/**
* Also send taskrunner log info to stderr?
* @param alsologtostderr alsologtostderr or {@code null} for none
*/
public TaskRunnerSettings setAlsologtostderr(java.lang.Boolean alsologtostderr) {
this.alsologtostderr = alsologtostderr;
return this;
}
/**
* Location on the worker for task-specific subdirectories.
* @return value or {@code null} for none
*/
public java.lang.String getBaseTaskDir() {
return baseTaskDir;
}
/**
* Location on the worker for task-specific subdirectories.
* @param baseTaskDir baseTaskDir or {@code null} for none
*/
public TaskRunnerSettings setBaseTaskDir(java.lang.String baseTaskDir) {
this.baseTaskDir = baseTaskDir;
return this;
}
/**
* The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access
* Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it
* supplies the base URL to use for resolving these relative URLs. The normative algorithm used is
* defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value
* is "http://www.googleapis.com/"
* @return value or {@code null} for none
*/
public java.lang.String getBaseUrl() {
return baseUrl;
}
/**
* The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access
* Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it
* supplies the base URL to use for resolving these relative URLs. The normative algorithm used is
* defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value
* is "http://www.googleapis.com/"
* @param baseUrl baseUrl or {@code null} for none
*/
public TaskRunnerSettings setBaseUrl(java.lang.String baseUrl) {
this.baseUrl = baseUrl;
return this;
}
/**
* Store preprocessing commands in this file.
* @return value or {@code null} for none
*/
public java.lang.String getCommandlinesFileName() {
return commandlinesFileName;
}
/**
* Store preprocessing commands in this file.
* @param commandlinesFileName commandlinesFileName or {@code null} for none
*/
public TaskRunnerSettings setCommandlinesFileName(java.lang.String commandlinesFileName) {
this.commandlinesFileName = commandlinesFileName;
return this;
}
/**
* Do we continue taskrunner if an exception is hit?
* @return value or {@code null} for none
*/
public java.lang.Boolean getContinueOnException() {
return continueOnException;
}
/**
* Do we continue taskrunner if an exception is hit?
* @param continueOnException continueOnException or {@code null} for none
*/
public TaskRunnerSettings setContinueOnException(java.lang.Boolean continueOnException) {
this.continueOnException = continueOnException;
return this;
}
/**
* API version of endpoint, e.g. "v1b3"
* @return value or {@code null} for none
*/
public java.lang.String getDataflowApiVersion() {
return dataflowApiVersion;
}
/**
* API version of endpoint, e.g. "v1b3"
* @param dataflowApiVersion dataflowApiVersion or {@code null} for none
*/
public TaskRunnerSettings setDataflowApiVersion(java.lang.String dataflowApiVersion) {
this.dataflowApiVersion = dataflowApiVersion;
return this;
}
/**
* Command to launch the worker harness.
* @return value or {@code null} for none
*/
public java.lang.String getHarnessCommand() {
return harnessCommand;
}
/**
* Command to launch the worker harness.
* @param harnessCommand harnessCommand or {@code null} for none
*/
public TaskRunnerSettings setHarnessCommand(java.lang.String harnessCommand) {
this.harnessCommand = harnessCommand;
return this;
}
/**
* Suggested backend language.
* @return value or {@code null} for none
*/
public java.lang.String getLanguageHint() {
return languageHint;
}
/**
* Suggested backend language.
* @param languageHint languageHint or {@code null} for none
*/
public TaskRunnerSettings setLanguageHint(java.lang.String languageHint) {
this.languageHint = languageHint;
return this;
}
/**
* Directory on the VM to store logs.
* @return value or {@code null} for none
*/
public java.lang.String getLogDir() {
return logDir;
}
/**
* Directory on the VM to store logs.
* @param logDir logDir or {@code null} for none
*/
public TaskRunnerSettings setLogDir(java.lang.String logDir) {
this.logDir = logDir;
return this;
}
/**
* Send taskrunner log into to Google Compute Engine VM serial console?
* @return value or {@code null} for none
*/
public java.lang.Boolean getLogToSerialconsole() {
return logToSerialconsole;
}
/**
* Send taskrunner log into to Google Compute Engine VM serial console?
* @param logToSerialconsole logToSerialconsole or {@code null} for none
*/
public TaskRunnerSettings setLogToSerialconsole(java.lang.Boolean logToSerialconsole) {
this.logToSerialconsole = logToSerialconsole;
return this;
}
/**
* Indicates where to put logs. If this is not specified, the logs will not be uploaded. The
* supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
* bucket.storage.googleapis.com/{object}
* @return value or {@code null} for none
*/
public java.lang.String getLogUploadLocation() {
return logUploadLocation;
}
/**
* Indicates where to put logs. If this is not specified, the logs will not be uploaded. The
* supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
* bucket.storage.googleapis.com/{object}
* @param logUploadLocation logUploadLocation or {@code null} for none
*/
public TaskRunnerSettings setLogUploadLocation(java.lang.String logUploadLocation) {
this.logUploadLocation = logUploadLocation;
return this;
}
/**
* OAuth2 scopes to be requested by the taskrunner in order to access the dataflow API.
* @return value or {@code null} for none
*/
public java.util.List getOauthScopes() {
return oauthScopes;
}
/**
* OAuth2 scopes to be requested by the taskrunner in order to access the dataflow API.
* @param oauthScopes oauthScopes or {@code null} for none
*/
public TaskRunnerSettings setOauthScopes(java.util.List oauthScopes) {
this.oauthScopes = oauthScopes;
return this;
}
/**
* Settings to pass to the parallel worker harness.
* @return value or {@code null} for none
*/
public WorkerSettings getParallelWorkerSettings() {
return parallelWorkerSettings;
}
/**
* Settings to pass to the parallel worker harness.
* @param parallelWorkerSettings parallelWorkerSettings or {@code null} for none
*/
public TaskRunnerSettings setParallelWorkerSettings(WorkerSettings parallelWorkerSettings) {
this.parallelWorkerSettings = parallelWorkerSettings;
return this;
}
/**
* Streaming worker main class name.
* @return value or {@code null} for none
*/
public java.lang.String getStreamingWorkerMainClass() {
return streamingWorkerMainClass;
}
/**
* Streaming worker main class name.
* @param streamingWorkerMainClass streamingWorkerMainClass or {@code null} for none
*/
public TaskRunnerSettings setStreamingWorkerMainClass(java.lang.String streamingWorkerMainClass) {
this.streamingWorkerMainClass = streamingWorkerMainClass;
return this;
}
/**
* The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel".
* @return value or {@code null} for none
*/
public java.lang.String getTaskGroup() {
return taskGroup;
}
/**
* The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel".
* @param taskGroup taskGroup or {@code null} for none
*/
public TaskRunnerSettings setTaskGroup(java.lang.String taskGroup) {
this.taskGroup = taskGroup;
return this;
}
/**
* The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root".
* @return value or {@code null} for none
*/
public java.lang.String getTaskUser() {
return taskUser;
}
/**
* The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root".
* @param taskUser taskUser or {@code null} for none
*/
public TaskRunnerSettings setTaskUser(java.lang.String taskUser) {
this.taskUser = taskUser;
return this;
}
/**
* The prefix of the resources the taskrunner should use for temporary storage. The supported
* resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
* bucket.storage.googleapis.com/{object}
* @return value or {@code null} for none
*/
public java.lang.String getTempStoragePrefix() {
return tempStoragePrefix;
}
/**
* The prefix of the resources the taskrunner should use for temporary storage. The supported
* resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
* bucket.storage.googleapis.com/{object}
* @param tempStoragePrefix tempStoragePrefix or {@code null} for none
*/
public TaskRunnerSettings setTempStoragePrefix(java.lang.String tempStoragePrefix) {
this.tempStoragePrefix = tempStoragePrefix;
return this;
}
/**
* ID string of VM.
* @return value or {@code null} for none
*/
public java.lang.String getVmId() {
return vmId;
}
/**
* ID string of VM.
* @param vmId vmId or {@code null} for none
*/
public TaskRunnerSettings setVmId(java.lang.String vmId) {
this.vmId = vmId;
return this;
}
/**
* Store the workflow in this file.
* @return value or {@code null} for none
*/
public java.lang.String getWorkflowFileName() {
return workflowFileName;
}
/**
* Store the workflow in this file.
* @param workflowFileName workflowFileName or {@code null} for none
*/
public TaskRunnerSettings setWorkflowFileName(java.lang.String workflowFileName) {
this.workflowFileName = workflowFileName;
return this;
}
@Override
public TaskRunnerSettings set(String fieldName, Object value) {
return (TaskRunnerSettings) super.set(fieldName, value);
}
@Override
public TaskRunnerSettings clone() {
return (TaskRunnerSettings) super.clone();
}
}