Package com.google.api.gax.rpc
Class LibraryMetadata
java.lang.Object
com.google.api.gax.rpc.LibraryMetadata
A context object that contains information about the GAPIC library.
For internal use only.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the artifact name of the client library.static LibraryMetadataempty()booleanisEmpty()static LibraryMetadata.Builderabstract StringReturns the repository of the client library.abstract Stringversion()Returns the version of the client library.
-
Constructor Details
-
LibraryMetadata
public LibraryMetadata()
-
-
Method Details
-
repository
Returns the repository of the client library.Example: "googleapis/google-cloud-java". This maps to the
gcp.client.repoattribute.- Returns:
- the repository, or
nullif not set
-
artifactName
Returns the artifact name of the client library.Example: "google-cloud-vision". This maps to the
gcp.client.artifactattribute.- Returns:
- the artifact name, or
nullif not set
-
version
Returns the version of the client library.Example:
"2.74.1". This maps to thegcp.client.versionattribute.- Returns:
- the version, or
nullif not set
-
empty
-
isEmpty
public boolean isEmpty() -
newBuilder
-