Class ApiSpecName (0.29.0)

public class ApiSpecName implements ResourceName

Inheritance

Object > ApiSpecName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String api, String version, String spec)

public static String format(String project, String location, String api, String version, String spec)
Parameters
NameDescription
projectString
locationString
apiString
versionString
specString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String api, String version, String spec)

public static ApiSpecName of(String project, String location, String api, String version, String spec)
Parameters
NameDescription
projectString
locationString
apiString
versionString
specString
Returns
TypeDescription
ApiSpecName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<ApiSpecName> values)

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

Constructors

ApiSpecName()

protected ApiSpecName()

Methods

equals(Object o)

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

getApi()

public String getApi()
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

getSpec()

public String getSpec()
Returns
TypeDescription
String

getVersion()

public String getVersion()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides