public class GoogleAdsAllVersionsCodeGenerator extends Object implements Generator
Example generated code snippets:
public interface GoogleAdsAllVersions {
GoogleAdsVersion getVersion1();
com.google.ads.googleads.v2.services.GoogleAdsVersion getVersion2();
com.google.ads.googleads.v2.services.GoogleAdsVersion getLatestVersion();
}
| Constructor and Description |
|---|
GoogleAdsAllVersionsCodeGenerator(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 GoogleAdsAllVersions interface and writes the file.
|
public GoogleAdsAllVersionsCodeGenerator(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 © 2020. All rights reserved.