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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eUntypedResourceName\u003c/code\u003e API is 2.46.1, and the content provides links to documentation for this version and many older versions, dating back to 2.1.2.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUntypedResourceName\u003c/code\u003e is a Java class that implements the \u003ccode\u003eResourceName\u003c/code\u003e interface and is designed to handle resource names with unknown or unexpected formats.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers static methods \u003ccode\u003eisParsableFrom\u003c/code\u003e, \u003ccode\u003eof\u003c/code\u003e, and \u003ccode\u003eparse\u003c/code\u003e to check if a string is a valid resource name, convert from a \u003ccode\u003eResourceName\u003c/code\u003e object, and create an \u003ccode\u003eUntypedResourceName\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eInstance methods in the \u003ccode\u003eUntypedResourceName\u003c/code\u003e class allow retrieval of field values either individually through \u003ccode\u003egetFieldValue\u003c/code\u003e or collectively as a map with \u003ccode\u003egetFieldValuesMap\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUntypedResourceName\u003c/code\u003e inherits several methods from the base \u003ccode\u003eObject\u003c/code\u003e class, including \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e, which can be used to compare and represent instances of the class.\u003c/p\u003e\n"]]],[],null,["# Class UntypedResourceName (2.52.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.52.0 (latest)](/java/docs/reference/api-common/latest/com.google.api.resourcenames.UntypedResourceName)\n- [2.51.2](/java/docs/reference/api-common/2.51.2/com.google.api.resourcenames.UntypedResourceName)\n- [2.50.0](/java/docs/reference/api-common/2.50.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.49.0](/java/docs/reference/api-common/2.49.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.48.0](/java/docs/reference/api-common/2.48.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.46.1](/java/docs/reference/api-common/2.46.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.45.0](/java/docs/reference/api-common/2.45.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.44.0](/java/docs/reference/api-common/2.44.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.43.0](/java/docs/reference/api-common/2.43.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.42.1](/java/docs/reference/api-common/2.42.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.41.0](/java/docs/reference/api-common/2.41.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.40.0](/java/docs/reference/api-common/2.40.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.38.0](/java/docs/reference/api-common/2.38.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.37.1](/java/docs/reference/api-common/2.37.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.36.0](/java/docs/reference/api-common/2.36.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.35.0](/java/docs/reference/api-common/2.35.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.34.0](/java/docs/reference/api-common/2.34.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.33.0](/java/docs/reference/api-common/2.33.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.32.0](/java/docs/reference/api-common/2.32.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.31.1](/java/docs/reference/api-common/2.31.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.30.0](/java/docs/reference/api-common/2.30.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.29.1](/java/docs/reference/api-common/2.29.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.28.0](/java/docs/reference/api-common/2.28.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.26.0](/java/docs/reference/api-common/2.26.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.25.0](/java/docs/reference/api-common/2.25.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.24.0](/java/docs/reference/api-common/2.24.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.22.0](/java/docs/reference/api-common/2.22.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.21.0](/java/docs/reference/api-common/2.21.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.20.0](/java/docs/reference/api-common/2.20.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.19.0](/java/docs/reference/api-common/2.19.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.18.0](/java/docs/reference/api-common/2.18.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.17.1](/java/docs/reference/api-common/2.17.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.16.0](/java/docs/reference/api-common/2.16.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.15.1](/java/docs/reference/api-common/2.15.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.14.1](/java/docs/reference/api-common/2.14.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.13.1](/java/docs/reference/api-common/2.13.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.7.0](/java/docs/reference/api-common/2.7.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.6.3](/java/docs/reference/api-common/2.6.3/com.google.api.resourcenames.UntypedResourceName)\n- [2.5.0](/java/docs/reference/api-common/2.5.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.4.0](/java/docs/reference/api-common/2.4.0/com.google.api.resourcenames.UntypedResourceName)\n- [2.3.1](/java/docs/reference/api-common/2.3.1/com.google.api.resourcenames.UntypedResourceName)\n- [2.1.2](/java/docs/reference/api-common/2.1.2/com.google.api.resourcenames.UntypedResourceName) \n\n public class UntypedResourceName implements ResourceName\n\nA class to represent a [ResourceName](/java/docs/reference/api-common/latest/com.google.api.resourcenames.ResourceName) with an unknown format. This class in intended to\nsupport the case of a resource name string in an unexpected format - generated resource name\nclasses with known formats should be preferred where possible. \n\nInheritance\n-----------\n\n[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e UntypedResourceName \n\nImplements\n----------\n\n[ResourceName](/java/docs/reference/api-common/latest/com.google.api.resourcenames.ResourceName) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### isParsableFrom(String formattedString)\n\n public static boolean isParsableFrom(String formattedString)\n\n### of(ResourceName resourceName)\n\n public static UntypedResourceName of(ResourceName resourceName)\n\n### parse(String formattedString)\n\n public static UntypedResourceName parse(String formattedString)\n\nMethods\n-------\n\n### equals(Object o)\n\n public boolean equals(Object o)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getFieldValue(String fieldName)\n\n public String getFieldValue(String fieldName)\n\nReturn the String value of the field with name fieldName. Returns null if the fieldName was not\nfound.\n\n### getFieldValuesMap()\n\n public Map\u003cString,String\u003e getFieldValuesMap()\n\nReturn the map of each field name to its value.\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]