Class SourceName (2.36.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

formatFolderSourceName(String folder, String source)

public static String formatFolderSourceName(String folder, String source)
Parameters
NameDescription
folderString
sourceString
Returns
TypeDescription
String

formatOrganizationSourceName(String organization, String source)

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

formatProjectSourceName(String project, String source)

public static String formatProjectSourceName(String project, String source)
Parameters
NameDescription
projectString
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

newFolderSourceBuilder()

public static SourceName.FolderSourceBuilder newFolderSourceBuilder()
Returns
TypeDescription
SourceName.FolderSourceBuilder

newOrganizationSourceBuilder()

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

newProjectSourceBuilder()

public static SourceName.ProjectSourceBuilder newProjectSourceBuilder()
Returns
TypeDescription
SourceName.ProjectSourceBuilder

of(String organization, String source)

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

ofFolderSourceName(String folder, String source)

public static SourceName ofFolderSourceName(String folder, String source)
Parameters
NameDescription
folderString
sourceString
Returns
TypeDescription
SourceName

ofOrganizationSourceName(String organization, String source)

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

ofProjectSourceName(String project, String source)

public static SourceName ofProjectSourceName(String project, String source)
Parameters
NameDescription
projectString
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>

getFolder()

public String getFolder()
Returns
TypeDescription
String

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getProject()

public String getProject()
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