Class SourceName (2.38.0)

public class SourceName implements ResourceName

Inheritance

Object > SourceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String organization, String source)

public static String format(String organization, String source)
Parameters
NameDescription
organizationString
sourceString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String organization, String source)

public static SourceName of(String organization, String source)
Parameters
NameDescription
organizationString
sourceString
Returns
TypeDescription
SourceName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<SourceName> values)

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

Constructors

SourceName()

protected SourceName()

Methods

equals(Object o)

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

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>

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getSource()

public String getSource()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides