Class GcpOptions.GcpUserCredentialsFactory
java.lang.Object
org.apache.beam.sdk.extensions.gcp.options.GcpOptions.GcpUserCredentialsFactory
- All Implemented Interfaces:
DefaultValueFactory<com.google.auth.Credentials>
- Enclosing interface:
GcpOptions
public static class GcpOptions.GcpUserCredentialsFactory
extends Object
implements DefaultValueFactory<com.google.auth.Credentials>
Attempts to load the GCP credentials. See
CredentialFactory.getCredential() for more
details.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.auth.Credentialscreate(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory.
-
Constructor Details
-
GcpUserCredentialsFactory
public GcpUserCredentialsFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactoryCreates a default value for a getter marked withDefault.InstanceFactory.- Specified by:
createin interfaceDefaultValueFactory<com.google.auth.Credentials>- Parameters:
options- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-