@InternalApi public class GaxProperties extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getGaxVersion()
Returns the current version of GAX.
|
static String |
getJavaVersion()
Returns the version of the running JVM
|
static String |
getLibraryVersion(Class<?> libraryClass)
Returns the version of the library that the
libraryClass belongs to |
static String |
getLibraryVersion(Class<?> libraryClass,
String propertyName)
Returns the version of the library that the
libraryClass belongs to, or a property
value in dependencies.properties resource file instead, if the version was not found. |
public static String getLibraryVersion(Class<?> libraryClass)
libraryClass belongs topublic static String getLibraryVersion(Class<?> libraryClass, String propertyName)
libraryClass belongs to, or a property
value in dependencies.properties resource file instead, if the version was not found. The
method is doing I/O operations and is potentially inefficient, the values returned by this
method are expected to be cached.public static String getJavaVersion()
public static String getGaxVersion()