Class SourceName (2.54.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
Name Description
organization String
source String
Returns
Type Description
String

formatFolderSourceName(String folder, String source)

public static String formatFolderSourceName(String folder, String source)
Parameters
Name Description
folder String
source String
Returns
Type Description
String

formatOrganizationSourceName(String organization, String source)

public static String formatOrganizationSourceName(String organization, String source)
Parameters
Name Description
organization String
source String
Returns
Type Description
String

formatProjectSourceName(String project, String source)

public static String formatProjectSourceName(String project, String source)
Parameters
Name Description
project String
source String
Returns
Type Description
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
boolean

newBuilder()

public static SourceName.Builder newBuilder()
Returns
Type Description
SourceName.Builder

newFolderSourceBuilder()

public static SourceName.FolderSourceBuilder newFolderSourceBuilder()
Returns
Type Description
SourceName.FolderSourceBuilder

newOrganizationSourceBuilder()

public static SourceName.Builder newOrganizationSourceBuilder()
Returns
Type Description
SourceName.Builder

newProjectSourceBuilder()

public static SourceName.ProjectSourceBuilder newProjectSourceBuilder()
Returns
Type Description
SourceName.ProjectSourceBuilder

of(String organization, String source)

public static SourceName of(String organization, String source)
Parameters
Name Description
organization String
source String
Returns
Type Description
SourceName

ofFolderSourceName(String folder, String source)

public static SourceName ofFolderSourceName(String folder, String source)
Parameters
Name Description
folder String
source String
Returns
Type Description
SourceName

ofOrganizationSourceName(String organization, String source)

public static SourceName ofOrganizationSourceName(String organization, String source)
Parameters
Name Description
organization String
source String
Returns
Type Description
SourceName

ofProjectSourceName(String project, String source)

public static SourceName ofProjectSourceName(String project, String source)
Parameters
Name Description
project String
source String
Returns
Type Description
SourceName

parse(String formattedString)

public static SourceName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
SourceName

parseList(List<String> formattedStrings)

public static List<SourceName> parseList(List<String> formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description
List<SourceName>

toStringList(List<SourceName> values)

public static List<String> toStringList(List<SourceName> values)
Parameter
Name Description
values List<SourceName>
Returns
Type Description
List<String>

Constructors

SourceName() (deprecated)

protected SourceName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
Type Description
Map<String,String>

getFolder()

public String getFolder()
Returns
Type Description
String

getOrganization()

public String getOrganization()
Returns
Type Description
String

getProject()

public String getProject()
Returns
Type Description
String

getSource()

public String getSource()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public SourceName.Builder toBuilder()
Returns
Type Description
SourceName.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides