Class LibraryMetadata (2.83.0)

public abstract class LibraryMetadata

A context object that contains information about the GAPIC library.

For internal use only.

Inheritance

java.lang.Object > LibraryMetadata

Static Methods

empty()

public static LibraryMetadata empty()
Returns
Type Description
LibraryMetadata

newBuilder()

public static LibraryMetadata.Builder newBuilder()
Returns
Type Description
LibraryMetadata.Builder

Constructors

LibraryMetadata()

public LibraryMetadata()

Methods

artifactName()

public abstract @Nullable String artifactName()

Returns the artifact name of the client library.

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

Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

the artifact name, or null if not set

isEmpty()

public boolean isEmpty()
Returns
Type Description
boolean

repository()

public abstract @Nullable String repository()

Returns the repository of the client library.

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

Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

the repository, or null if not set

version()

public abstract @Nullable String version()

Returns the version of the client library.

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

Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

the version, or null if not set