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 Details

    • GeneratedCatalog

      public GeneratedCatalog(com.google.common.collect.ImmutableSet<Version> versions)
      Creates a new constant catalog from a known collection of versions.
  • Method Details

    • getDefault

      public static GeneratedCatalog getDefault()
      Description copied from interface: ApiCatalog
      Returns a ApiCatalog implementation which reflects the current state of the library.
    • getSupportedVersions

      public SortedSet<Version> getSupportedVersions()
      Description copied from interface: ApiCatalog
      Returns all API versions available in the current catalog.
      Specified by:
      getSupportedVersions in interface ApiCatalog
    • getLatestVersion

      public Version getLatestVersion()
      Description copied from interface: ApiCatalog
      Returns the most recent API version available.
      Specified by:
      getLatestVersion in interface ApiCatalog
    • createAllVersionsClient

      public GoogleAdsAllVersions createAllVersionsClient(com.google.api.gax.rpc.TransportChannelProvider provider, com.google.auth.Credentials credentials)
      Description copied from interface: ApiCatalog
      Instantiates a new GoogleAdsAllVersions object for the given TransportChannelProvider and Credentials. Calling this method multiple times will create multiple instances of GoogleAdsAllVersions.
      Specified by:
      createAllVersionsClient in interface ApiCatalog