Class TargetName (1.32.0)

public class TargetName implements ResourceName

Inheritance

Object > TargetName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String target)

public static String format(String project, String location, String target)
Parameters
NameDescription
projectString
locationString
targetString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String target)

public static TargetName of(String project, String location, String target)
Parameters
NameDescription
projectString
locationString
targetString
Returns
TypeDescription
TargetName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<TargetName> values)

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

Constructors

TargetName() (deprecated)

protected TargetName()

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

getProject()

public String getProject()
Returns
TypeDescription
String

getTarget()

public String getTarget()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides