Class GeneratedCatalog
- java.lang.Object
-
- com.google.ads.googleads.lib.catalog.GeneratedCatalog
-
- All Implemented Interfaces:
ApiCatalog
@Generated("GoogleAdsCatalogAnnotationProcessor") public class GeneratedCatalog extends java.lang.Object implements ApiCatalog
-
-
Constructor Summary
Constructors Constructor Description GeneratedCatalog(com.google.common.collect.ImmutableSet<Version> versions)Creates a new constant catalog from a known collection of versions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleAdsAllVersionscreateAllVersionsClient(com.google.api.gax.rpc.TransportChannelProvider provider, com.google.auth.Credentials credentials)Instantiates a new GoogleAdsAllVersions object for the given TransportChannelProvider and Credentials.static GeneratedCataloggetDefault()Returns a ApiCatalog implementation which reflects the current state of the library.VersiongetLatestVersion()Returns the most recent API version available.java.util.SortedSet<Version>getSupportedVersions()Returns all API versions available in the current catalog.
-
-
-
Constructor Detail
-
GeneratedCatalog
public GeneratedCatalog(com.google.common.collect.ImmutableSet<Version> versions)
Creates a new constant catalog from a known collection of versions.
-
-
Method Detail
-
getDefault
public static GeneratedCatalog getDefault()
Description copied from interface:ApiCatalogReturns a ApiCatalog implementation which reflects the current state of the library.
-
getSupportedVersions
public java.util.SortedSet<Version> getSupportedVersions()
Description copied from interface:ApiCatalogReturns all API versions available in the current catalog.- Specified by:
getSupportedVersionsin interfaceApiCatalog
-
getLatestVersion
public Version 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
-
-