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