Class GeneratedCatalog
java.lang.Object
com.google.ads.googleads.lib.catalog.GeneratedCatalog
- All Implemented Interfaces:
ApiCatalog
@Generated("GoogleAdsCatalogAnnotationProcessor")
public class GeneratedCatalog
extends Object
implements ApiCatalog
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedCatalog(com.google.common.collect.ImmutableSet<Version> versions) Creates a new constant catalog from a known collection of versions. -
Method Summary
Modifier and TypeMethodDescriptioncreateAllVersionsClient(com.google.api.gax.rpc.TransportChannelProvider provider, com.google.auth.Credentials credentials) Instantiates a new GoogleAdsAllVersions object for the given TransportChannelProvider and Credentials.static GeneratedCatalogReturns a ApiCatalog implementation which reflects the current state of the library.Returns the most recent API version available.Returns all API versions available in the current catalog.
-
Constructor Details
-
GeneratedCatalog
Creates a new constant catalog from a known collection of versions.
-
-
Method Details
-
getDefault
Description copied from interface:ApiCatalogReturns a ApiCatalog implementation which reflects the current state of the library. -
getSupportedVersions
Description copied from interface:ApiCatalogReturns all API versions available in the current catalog.- Specified by:
getSupportedVersionsin interfaceApiCatalog
-
getLatestVersion
Description copied from interface:ApiCatalogReturns the most recent API version available.- Specified by:
getLatestVersionin interfaceApiCatalog
-
createAllVersionsClient
public GoogleAdsAllVersions createAllVersionsClient(com.google.api.gax.rpc.TransportChannelProvider provider, com.google.auth.Credentials credentials) Description copied from interface:ApiCatalogInstantiates a new GoogleAdsAllVersions object for the given TransportChannelProvider and Credentials. Calling this method multiple times will create multiple instances of GoogleAdsAllVersions.- Specified by:
createAllVersionsClientin interfaceApiCatalog
-