Class DatabaseName

public class DatabaseName implements ResourceName

Inheritance

Object > DatabaseName

Implements

com.google.api.resourcenames.ResourceName

Constructors

DatabaseName()

protected DatabaseName()

Methods

equals(Object o)

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

format(String project, String instance, String database)

public static String format(String project, String instance, String database)
Parameters
NameDescription
projectString
instanceString
databaseString
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>

getInstance()

public String getInstance()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

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 instance, String database)

public static DatabaseName of(String project, String instance, String database)
Parameters
NameDescription
projectString
instanceString
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>

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toStringList(List<DatabaseName> values)

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