Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.options
Class GcpOptions.GcpUserCredentialsFactory
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.options.GcpOptions.GcpUserCredentialsFactory
-
- All Implemented Interfaces:
- DefaultValueFactory<Credential>
- Enclosing interface:
- GcpOptions
public static class GcpOptions.GcpUserCredentialsFactory extends Object implements DefaultValueFactory<Credential>
Attempts to load the GCP credentials. SeeCredentialFactory.getCredential()
for more details.
-
-
Constructor Summary
Constructors Constructor and Description GcpUserCredentialsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Credential
create(PipelineOptions options)
Creates a default value for a getter marked withDefault.InstanceFactory
.
-
-
-
Method Detail
-
create
public Credential create(PipelineOptions options)
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<Credential>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
-