Package com.google.api.resourcenames
Class UntypedResourceName
java.lang.Object
com.google.api.resourcenames.UntypedResourceName
- All Implemented Interfaces:
ResourceName
A class to represent a
ResourceName with an unknown format. This class in intended to
support the case of a resource name string in an unexpected format - generated resource name
classes with known formats should be preferred where possible.-
Method Summary
Modifier and TypeMethodDescriptionbooleangetFieldValue(String fieldName) Return the String value of the field with name fieldName.Return the map of each field name to its value.inthashCode()static booleanisParsableFrom(String formattedString) static UntypedResourceNameof(ResourceName resourceName) static UntypedResourceNametoString()
-
Method Details
-
of
-
parse
-
isParsableFrom
-
getFieldValuesMap
Description copied from interface:ResourceNameReturn the map of each field name to its value.- Specified by:
getFieldValuesMapin interfaceResourceName
-
getFieldValue
Description copied from interface:ResourceNameReturn the String value of the field with name fieldName. Returns null if the fieldName was not found.- Specified by:
getFieldValuein interfaceResourceName
-
toString
-
equals
-
hashCode
public int hashCode()
-