public class AbstractGoogleAdsClientCodeGenerator extends Object implements Generator
Example generated code snippets:
protected abstract GoogleAdsAllVersions getGoogleAdsAllVersions();
...
public GoogleAdsVersion getVersion1() { return getGoogleAdsAllVersions().getVersion1(); }
...
public com.google.ads.googleads.v2.services.GoogleAdsVersion getLatestVersion() {
return getGoogleAdsAllVersions().getLatestVersion();
}
| Constructor and Description |
|---|
AbstractGoogleAdsClientCodeGenerator(Set<Integer> versions,
int latestVersion,
String catalogName,
Messager messager,
Filer filer)
Creates an instance of the generator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate()
Generates the code for the AbstractGoogleAdsClient class and writes the file.
|
public AbstractGoogleAdsClientCodeGenerator(Set<Integer> versions, int latestVersion, String catalogName, Messager messager, Filer filer)
versions - available versions of the Google Ads library.latestVersion - the latest available version of the Google Ads library.catalogName - the catalogName parameter found in the VersionDescriptor annotation that
will be used to namespace the output classname (can be an empty string).messager - the processing environment's messager.filer - the processing environment's filer.Copyright © 2021. All rights reserved.