Class AssetName (2.59.0)

public class AssetName implements ResourceName

Inheritance

Object > AssetName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String organization, String asset)

public static String format(String organization, String asset)
Parameters
Name Description
organization String
asset String
Returns
Type Description
String

formatFolderAssetName(String folder, String asset)

public static String formatFolderAssetName(String folder, String asset)
Parameters
Name Description
folder String
asset String
Returns
Type Description
String

formatOrganizationAssetName(String organization, String asset)

public static String formatOrganizationAssetName(String organization, String asset)
Parameters
Name Description
organization String
asset String
Returns
Type Description
String

formatProjectAssetName(String project, String asset)

public static String formatProjectAssetName(String project, String asset)
Parameters
Name Description
project String
asset 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 AssetName.Builder newBuilder()
Returns
Type Description
AssetName.Builder

newFolderAssetBuilder()

public static AssetName.FolderAssetBuilder newFolderAssetBuilder()
Returns
Type Description
AssetName.FolderAssetBuilder

newOrganizationAssetBuilder()

public static AssetName.Builder newOrganizationAssetBuilder()
Returns
Type Description
AssetName.Builder

newProjectAssetBuilder()

public static AssetName.ProjectAssetBuilder newProjectAssetBuilder()
Returns
Type Description
AssetName.ProjectAssetBuilder

of(String organization, String asset)

public static AssetName of(String organization, String asset)
Parameters
Name Description
organization String
asset String
Returns
Type Description
AssetName

ofFolderAssetName(String folder, String asset)

public static AssetName ofFolderAssetName(String folder, String asset)
Parameters
Name Description
folder String
asset String
Returns
Type Description
AssetName

ofOrganizationAssetName(String organization, String asset)

public static AssetName ofOrganizationAssetName(String organization, String asset)
Parameters
Name Description
organization String
asset String
Returns
Type Description
AssetName

ofProjectAssetName(String project, String asset)

public static AssetName ofProjectAssetName(String project, String asset)
Parameters
Name Description
project String
asset String
Returns
Type Description
AssetName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<AssetName> values)

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

Constructors

AssetName() (deprecated)

protected AssetName()

Methods

equals(Object o)

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

getAsset()

public String getAsset()
Returns
Type Description
String

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
Type Description
String
Overrides