Interface GcpOptions
- All Superinterfaces:
GoogleApiDebugOptions
,HasDisplayData
,PipelineOptions
- All Known Subinterfaces:
BigQueryOptions
,CloudResourceManagerOptions
,DataflowPipelineOptions
,DataflowPipelineWorkerPoolOptions
,DataflowWorkerHarnessOptions
,GcsOptions
,PubsubOptions
,TestBigQueryOptions
,TestDataflowPipelineOptions
,TestPubsubOptions
Options used to configure Google Cloud Platform specific options such as the project and
credentials.
These options defer to the application default credentials for authentication. See the Google Auth Library for alternative mechanisms for creating credentials.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Attempts to infer the default project based upon the environment this application is executing within.static class
EnableStreamingEngine defaults to false unless one of the two experiments is set.static class
Returns the default set of OAuth scopes.static class
ReturnsPipelineOptions.getTempLocation()
as the default GCP temp location.static class
Attempts to load the GCP credentials.Nested classes/interfaces inherited from interface org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions
GoogleApiDebugOptions.GoogleApiTracer
Nested classes/interfaces inherited from interface org.apache.beam.sdk.options.PipelineOptions
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends CredentialFactory> The class of the credential factory that should be created and used to create credentials.GCP Cloud KMS key for Dataflow pipelines and buckets created by GcpTempLocationFactory.com.google.auth.Credentials
The credential instance that should be used to authenticate against GCP services.Controls the OAuth scopes that will be requested when creatingCredentials
with theGcpCredentialFactory
(which is the defaultCredentialFactory
).A GCS path for storing temporary files in GCP.All API requests will be made as the given service account or target service account in an impersonation delegation chain instead of the currently selected account.Project id to use when launching jobs.The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g.The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g.getZone()
Deprecated.UsegetWorkerZone()
instead.boolean
void
setCredentialFactoryClass
(Class<? extends CredentialFactory> credentialFactoryClass) void
setDataflowKmsKey
(String dataflowKmsKey) void
setEnableStreamingEngine
(boolean value) void
setGcpCredential
(com.google.auth.Credentials value) void
setGcpOauthScopes
(List<String> oauthScopes) void
setGcpTempLocation
(String value) void
setImpersonateServiceAccount
(String impersonateServiceAccount) void
setProject
(String value) void
setWorkerRegion
(String workerRegion) void
setWorkerZone
(String workerZone) void
Deprecated.UsesetWorkerZone(java.lang.String)
instead.Methods inherited from interface org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions
getGoogleApiTrace, setGoogleApiTrace
Methods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData
populateDisplayData
Methods inherited from interface org.apache.beam.sdk.options.PipelineOptions
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
-
Field Details
-
STREAMING_ENGINE_EXPERIMENT
Experiment to turn on the Streaming Engine experiment.- See Also:
-
WINDMILL_SERVICE_EXPERIMENT
Deprecated.Use STREAMING_ENGINE_EXPERIMENT instead.- See Also:
-
-
Method Details
-
getProject
Project id to use when launching jobs. -
setProject
-
getZone
Deprecated.UsegetWorkerZone()
instead.GCP availability zone for operations.Default is set on a per-service basis.
-
setZone
Deprecated.UsesetWorkerZone(java.lang.String)
instead. -
getWorkerRegion
String getWorkerRegion()The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive withgetWorkerZone()
. If neither workerRegion nor workerZone is specified, default to same value as region. -
setWorkerRegion
-
getWorkerZone
String getWorkerZone()The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive withgetWorkerRegion()
. If neither workerRegion nor workerZone is specified, the Dataflow service will choose a zone in region based on available capacity. -
setWorkerZone
-
getGcpOauthScopes
Controls the OAuth scopes that will be requested when creatingCredentials
with theGcpCredentialFactory
(which is the defaultCredentialFactory
). If thecredential
orcredential factory
have been set then this field may do nothing. -
setGcpOauthScopes
-
getCredentialFactoryClass
The class of the credential factory that should be created and used to create credentials. If gcpCredential has not been set explicitly, an instance of this class will be constructed and used as a credential factory. -
setCredentialFactoryClass
-
getGcpCredential
The credential instance that should be used to authenticate against GCP services. If no credential has been set explicitly, the default is to use the instance factory that constructs a credential based upon the currently set credentialFactoryClass. -
setGcpCredential
void setGcpCredential(com.google.auth.Credentials value) -
getImpersonateServiceAccount
All API requests will be made as the given service account or target service account in an impersonation delegation chain instead of the currently selected account. You can specify either a single service account as the impersonator, or a comma-separated list of service accounts to create an impersonation delegation chain. -
setImpersonateServiceAccount
-
isEnableStreamingEngine
-
setEnableStreamingEngine
void setEnableStreamingEngine(boolean value) -
getGcpTempLocation
A GCS path for storing temporary files in GCP.Its default to
PipelineOptions.getTempLocation()
. -
setGcpTempLocation
-
getDataflowKmsKey
GCP Cloud KMS key for Dataflow pipelines and buckets created by GcpTempLocationFactory. -
setDataflowKmsKey
-