Class AssetName (0.26.0)

public class AssetName implements ResourceName

Inheritance

Object > AssetName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String asset)

public static String format(String project, String location, String asset)
Parameters
NameDescription
projectString
locationString
assetString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String asset)

public static AssetName of(String project, String location, String asset)
Parameters
NameDescription
projectString
locationString
assetString
Returns
TypeDescription
AssetName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<AssetName> values)

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

Constructors

AssetName()

protected AssetName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getAsset()

public String getAsset()
Returns
TypeDescription
String

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides