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.Credentials
create
(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory
.
-
Constructor Details
-
GoogleAdsCredentialsFactory
public GoogleAdsCredentialsFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<@Nullable com.google.auth.Credentials>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-