public interface GcpOptions extends GoogleApiDebugOptions, PipelineOptions
These options defer to the application default credentials for authentication. See the Google Auth Library for alternative mechanisms for creating credentials.
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
GcpOptions.DefaultProjectFactory
Attempts to infer the default project based upon the environment this application is executing
 within. 
 | 
static class  | 
GcpOptions.GcpTempLocationFactory
Returns  
PipelineOptions.getTempLocation() as the default GCP temp location. | 
static class  | 
GcpOptions.GcpUserCredentialsFactory
Attempts to load the GCP credentials. 
 | 
GoogleApiDebugOptions.GoogleApiTracerPipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.NoOpMetricsSink, PipelineOptions.UserAgentFactory| Modifier and Type | Method and Description | 
|---|---|
java.lang.Class<? extends CredentialFactory> | 
getCredentialFactoryClass()
The class of the credential factory that should be created and used to create credentials. 
 | 
com.google.auth.Credentials | 
getGcpCredential()
The credential instance that should be used to authenticate against GCP services. 
 | 
java.lang.String | 
getGcpTempLocation()
A GCS path for storing temporary files in GCP. 
 | 
java.lang.String | 
getProject()
Project id to use when launching jobs. 
 | 
java.lang.String | 
getZone()
GCP availability zone for
 operations. 
 | 
void | 
setCredentialFactoryClass(java.lang.Class<? extends CredentialFactory> credentialFactoryClass)  | 
void | 
setGcpCredential(com.google.auth.Credentials value)  | 
void | 
setGcpTempLocation(java.lang.String value)  | 
void | 
setProject(java.lang.String value)  | 
void | 
setZone(java.lang.String value)  | 
getGoogleApiTrace, setGoogleApiTraceas, getJobName, getMetricsHttpSinkUrl, getMetricsPushPeriod, getMetricsSink, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setMetricsHttpSinkUrl, setMetricsPushPeriod, setMetricsSink, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgentpopulateDisplayData@Default.InstanceFactory(value=GcpOptions.DefaultProjectFactory.class) java.lang.String getProject()
void setProject(java.lang.String value)
java.lang.String getZone()
Default is set on a per-service basis.
void setZone(java.lang.String value)
@Default.Class(value=GcpCredentialFactory.class) java.lang.Class<? extends CredentialFactory> getCredentialFactoryClass()
void setCredentialFactoryClass(java.lang.Class<? extends CredentialFactory> credentialFactoryClass)
@Default.InstanceFactory(value=GcpOptions.GcpUserCredentialsFactory.class) com.google.auth.Credentials getGcpCredential()
void setGcpCredential(com.google.auth.Credentials value)
@Default.InstanceFactory(value=GcpOptions.GcpTempLocationFactory.class) @Nullable java.lang.String getGcpTempLocation()
Its default to PipelineOptions.getTempLocation().
void setGcpTempLocation(java.lang.String value)