Class DatabaseName (0.19.0)

public class DatabaseName implements ResourceName

Inheritance

Object > DatabaseName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String catalog, String database)

public static String format(String project, String location, String catalog, String database)
Parameters
NameDescription
projectString
locationString
catalogString
databaseString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static DatabaseName.Builder newBuilder()
Returns
TypeDescription
DatabaseName.Builder

of(String project, String location, String catalog, String database)

public static DatabaseName of(String project, String location, String catalog, String database)
Parameters
NameDescription
projectString
locationString
catalogString
databaseString
Returns
TypeDescription
DatabaseName

parse(String formattedString)

public static DatabaseName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
DatabaseName

parseList(List<String> formattedStrings)

public static List<DatabaseName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<DatabaseName>

toStringList(List<DatabaseName> values)

public static List<String> toStringList(List<DatabaseName> values)
Parameter
NameDescription
valuesList<DatabaseName>
Returns
TypeDescription
List<String>

Constructors

DatabaseName() (deprecated)

protected DatabaseName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getCatalog()

public String getCatalog()
Returns
TypeDescription
String

getDatabase()

public String getDatabase()
Returns
TypeDescription
String

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public DatabaseName.Builder toBuilder()
Returns
TypeDescription
DatabaseName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides