Class ModelName (3.0.0)

public class ModelName implements ResourceName

Inheritance

Object > ModelName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String model)

public static String format(String project, String location, String model)
Parameters
NameDescription
projectString
locationString
modelString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String model)

public static ModelName of(String project, String location, String model)
Parameters
NameDescription
projectString
locationString
modelString
Returns
TypeDescription
ModelName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<ModelName> values)

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

Constructors

ModelName()

protected ModelName()

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

getModel()

public String getModel()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides