Class VersionName (1.31.0)

public class VersionName implements ResourceName

Inheritance

Object > VersionName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

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

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

isParsableFrom(String formattedString)

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

newBuilder()

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

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

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

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<VersionName> values)

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

Constructors

VersionName() (deprecated)

protected VersionName()

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

getVersion()

public String getVersion()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides