Class 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.
    • 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: ApiCatalog
        Returns a ApiCatalog implementation which reflects the current state of the library.
      • getSupportedVersions

        public java.util.SortedSet<Version> getSupportedVersions()
        Description copied from interface: ApiCatalog
        Returns all API versions available in the current catalog.
        Specified by:
        getSupportedVersions 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