public final class RuntimeEnvironment extends GenericJson
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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RuntimeEnvironment() |
Modifier and Type | Method and Description |
---|---|
RuntimeEnvironment |
clone() |
List<String> |
getAdditionalExperiments()
Additional experiment flags for the job.
|
Map<String,String> |
getAdditionalUserLabels()
Additional user labels to be specified for the job.
|
Boolean |
getBypassTempDirValidation()
Whether to bypass the safety checks for the job's temporary directory.
|
String |
getIpConfiguration()
Configuration for VM IPs.
|
String |
getKmsKeyName()
Optional.
|
String |
getMachineType()
The machine type to use for the job.
|
Integer |
getMaxWorkers()
The maximum number of Google Compute Engine instances to be made available to your pipeline
during execution, from 1 to 1000.
|
String |
getNetwork()
Network to which VMs will be assigned.
|
Integer |
getNumWorkers()
The initial number of Google Compute Engine instnaces for the job.
|
String |
getServiceAccountEmail()
The email address of the service account to run the job as.
|
String |
getSubnetwork()
Subnetwork to which VMs will be assigned, if desired.
|
String |
getTempLocation()
The Cloud Storage path to use for temporary files.
|
String |
getWorkerRegion()
The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones)
in which worker processing should occur, e.g.
|
String |
getWorkerZone()
The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
which worker processing should occur, e.g.
|
String |
getZone()
The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones
/regions-zones) for launching worker instances to run your pipeline.
|
RuntimeEnvironment |
set(String fieldName,
Object value) |
RuntimeEnvironment |
setAdditionalExperiments(List<String> additionalExperiments)
Additional experiment flags for the job.
|
RuntimeEnvironment |
setAdditionalUserLabels(Map<String,String> additionalUserLabels)
Additional user labels to be specified for the job.
|
RuntimeEnvironment |
setBypassTempDirValidation(Boolean bypassTempDirValidation)
Whether to bypass the safety checks for the job's temporary directory.
|
RuntimeEnvironment |
setIpConfiguration(String ipConfiguration)
Configuration for VM IPs.
|
RuntimeEnvironment |
setKmsKeyName(String kmsKeyName)
Optional.
|
RuntimeEnvironment |
setMachineType(String machineType)
The machine type to use for the job.
|
RuntimeEnvironment |
setMaxWorkers(Integer maxWorkers)
The maximum number of Google Compute Engine instances to be made available to your pipeline
during execution, from 1 to 1000.
|
RuntimeEnvironment |
setNetwork(String network)
Network to which VMs will be assigned.
|
RuntimeEnvironment |
setNumWorkers(Integer numWorkers)
The initial number of Google Compute Engine instnaces for the job.
|
RuntimeEnvironment |
setServiceAccountEmail(String serviceAccountEmail)
The email address of the service account to run the job as.
|
RuntimeEnvironment |
setSubnetwork(String subnetwork)
Subnetwork to which VMs will be assigned, if desired.
|
RuntimeEnvironment |
setTempLocation(String tempLocation)
The Cloud Storage path to use for temporary files.
|
RuntimeEnvironment |
setWorkerRegion(String workerRegion)
The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones)
in which worker processing should occur, e.g.
|
RuntimeEnvironment |
setWorkerZone(String workerZone)
The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
which worker processing should occur, e.g.
|
RuntimeEnvironment |
setZone(String zone)
The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones
/regions-zones) for launching worker instances to run your pipeline.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<String> getAdditionalExperiments()
null
for nonepublic RuntimeEnvironment setAdditionalExperiments(List<String> additionalExperiments)
additionalExperiments
- additionalExperiments or null
for nonepublic Map<String,String> getAdditionalUserLabels()
null
for nonepublic RuntimeEnvironment setAdditionalUserLabels(Map<String,String> additionalUserLabels)
additionalUserLabels
- additionalUserLabels or null
for nonepublic Boolean getBypassTempDirValidation()
null
for nonepublic RuntimeEnvironment setBypassTempDirValidation(Boolean bypassTempDirValidation)
bypassTempDirValidation
- bypassTempDirValidation or null
for nonepublic String getIpConfiguration()
null
for nonepublic RuntimeEnvironment setIpConfiguration(String ipConfiguration)
ipConfiguration
- ipConfiguration or null
for nonepublic String getKmsKeyName()
null
for nonepublic RuntimeEnvironment setKmsKeyName(String kmsKeyName)
kmsKeyName
- kmsKeyName or null
for nonepublic String getMachineType()
null
for nonepublic RuntimeEnvironment setMachineType(String machineType)
machineType
- machineType or null
for nonepublic Integer getMaxWorkers()
null
for nonepublic RuntimeEnvironment setMaxWorkers(Integer maxWorkers)
maxWorkers
- maxWorkers or null
for nonepublic String getNetwork()
null
for nonepublic RuntimeEnvironment setNetwork(String network)
network
- network or null
for nonepublic Integer getNumWorkers()
null
for nonepublic RuntimeEnvironment setNumWorkers(Integer numWorkers)
numWorkers
- numWorkers or null
for nonepublic String getServiceAccountEmail()
null
for nonepublic RuntimeEnvironment setServiceAccountEmail(String serviceAccountEmail)
serviceAccountEmail
- serviceAccountEmail or null
for nonepublic String getSubnetwork()
null
for nonepublic RuntimeEnvironment setSubnetwork(String subnetwork)
subnetwork
- subnetwork or null
for nonepublic String getTempLocation()
null
for nonepublic RuntimeEnvironment setTempLocation(String tempLocation)
tempLocation
- tempLocation or null
for nonepublic String getWorkerRegion()
null
for nonepublic RuntimeEnvironment setWorkerRegion(String workerRegion)
workerRegion
- workerRegion or null
for nonepublic String getWorkerZone()
null
for nonepublic RuntimeEnvironment setWorkerZone(String workerZone)
workerZone
- workerZone or null
for nonepublic String getZone()
null
for nonepublic RuntimeEnvironment setZone(String zone)
zone
- zone or null
for nonepublic RuntimeEnvironment set(String fieldName, Object value)
set
in class GenericJson
public RuntimeEnvironment clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.