Class LibraryMetadata

java.lang.Object
com.google.api.gax.rpc.LibraryMetadata

@InternalApi @BetaApi public abstract class LibraryMetadata extends Object
A context object that contains information about the GAPIC library.

For internal use only.

  • Constructor Details

    • LibraryMetadata

      public LibraryMetadata()
  • Method Details

    • repository

      @Nullable public abstract String repository()
      Returns the repository of the client library.

      Example: "googleapis/google-cloud-java". This maps to the gcp.client.repo attribute.

      Returns:
      the repository, or null if not set
    • artifactName

      @Nullable public abstract String artifactName()
      Returns the artifact name of the client library.

      Example: "google-cloud-vision". This maps to the gcp.client.artifact attribute.

      Returns:
      the artifact name, or null if not set
    • version

      @Nullable public abstract String version()
      Returns the version of the client library.

      Example: "2.74.1". This maps to the gcp.client.version attribute.

      Returns:
      the version, or null if not set
    • empty

      public static LibraryMetadata empty()
    • isEmpty

      public boolean isEmpty()
    • newBuilder

      public static LibraryMetadata.Builder newBuilder()