Class PackageName (1.14.0)

public class PackageName implements ResourceName

Inheritance

Object > PackageName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String repository, String package_)

public static String format(String project, String location, String repository, String package_)
Parameters
NameDescription
projectString
locationString
repositoryString
package_String
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String repository, String package_)

public static PackageName of(String project, String location, String repository, String package_)
Parameters
NameDescription
projectString
locationString
repositoryString
package_String
Returns
TypeDescription
PackageName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<PackageName> values)

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

Constructors

PackageName()

protected PackageName()

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>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getPackage()

public String getPackage()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

getRepository()

public String getRepository()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides