Stay organized with collections
Save and categorize content based on your preferences.
publicclassTextFormatParseInfoTree
Data structure which is populated with the locations of each field value parsed from the text.
The locations of primary fields values are retrieved by getLocation or
getLocations. The locations of sub message values are within nested
TextFormatParseInfoTrees and are retrieve by getNestedTree or getNestedTrees.
The TextFormatParseInfoTree is created by a Builder.
[[["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."],[],[],null,["# Class TextFormatParseInfoTree (3.19.4)\n\n public class TextFormatParseInfoTree\n\nData structure which is populated with the locations of each field value parsed from the text.\n\nThe locations of primary fields values are retrieved by `getLocation` or `\ngetLocations`. The locations of sub message values are within nested `\nTextFormatParseInfoTree`s and are retrieve by `getNestedTree` or `getNestedTrees`.\n\nThe `TextFormatParseInfoTree` is created by a Builder. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e TextFormatParseInfoTree \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### builder()\n\n public static TextFormatParseInfoTree.Builder builder()\n\nCreate a builder for a `ParseInfoTree`.\n\nMethods\n-------\n\n### getLocation(Descriptors.FieldDescriptor fieldDescriptor, int index)\n\n public TextFormatParseLocation getLocation(Descriptors.FieldDescriptor fieldDescriptor, int index)\n\nGet the location in the source of a field's value.\n\nReturns the [TextFormatParseLocation](/java/docs/reference/protobuf/latest/com.google.protobuf.TextFormatParseLocation) for index-th value of the field in the parsed\ntext.\n\n### getLocations(Descriptors.FieldDescriptor fieldDescriptor)\n\n public List\u003cTextFormatParseLocation\u003e getLocations(Descriptors.FieldDescriptor fieldDescriptor)\n\nRetrieve all the locations of a field.\n\n### getNestedTree(Descriptors.FieldDescriptor fieldDescriptor, int index)\n\n public TextFormatParseInfoTree getNestedTree(Descriptors.FieldDescriptor fieldDescriptor, int index)\n\nReturns the parse info tree for the given field, which must be a message type.\n\n### getNestedTrees(Descriptors.FieldDescriptor fieldDescriptor)\n\n public List\u003cTextFormatParseInfoTree\u003e getNestedTrees(Descriptors.FieldDescriptor fieldDescriptor)\n\nRetrieve a list of all the location information trees for a sub message field."]]