Class DataSourceName (2.15.0)

public class DataSourceName implements ResourceName

Inheritance

Object > DataSourceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String dataSource)

public static String format(String project, String dataSource)
Parameters
NameDescription
projectString
dataSourceString
Returns
TypeDescription
String

formatProjectDataSourceName(String project, String dataSource)

public static String formatProjectDataSourceName(String project, String dataSource)
Parameters
NameDescription
projectString
dataSourceString
Returns
TypeDescription
String

formatProjectLocationDataSourceName(String project, String location, String dataSource)

public static String formatProjectLocationDataSourceName(String project, String location, String dataSource)
Parameters
NameDescription
projectString
locationString
dataSourceString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

newProjectDataSourceBuilder()

public static DataSourceName.Builder newProjectDataSourceBuilder()
Returns
TypeDescription
DataSourceName.Builder

newProjectLocationDataSourceBuilder()

public static DataSourceName.ProjectLocationDataSourceBuilder newProjectLocationDataSourceBuilder()
Returns
TypeDescription
DataSourceName.ProjectLocationDataSourceBuilder

of(String project, String dataSource)

public static DataSourceName of(String project, String dataSource)
Parameters
NameDescription
projectString
dataSourceString
Returns
TypeDescription
DataSourceName

ofProjectDataSourceName(String project, String dataSource)

public static DataSourceName ofProjectDataSourceName(String project, String dataSource)
Parameters
NameDescription
projectString
dataSourceString
Returns
TypeDescription
DataSourceName

ofProjectLocationDataSourceName(String project, String location, String dataSource)

public static DataSourceName ofProjectLocationDataSourceName(String project, String location, String dataSource)
Parameters
NameDescription
projectString
locationString
dataSourceString
Returns
TypeDescription
DataSourceName

parse(String formattedString)

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

Constructors

DataSourceName()

protected DataSourceName()

Methods

equals(Object o)

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

getDataSource()

public String getDataSource()
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 DataSourceName.Builder toBuilder()
Returns
TypeDescription
DataSourceName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides