The API calculates the beginning offset of the content in the original
document according to the
[EncodingType][google.cloud.language.v1.EncodingType] specified in the API
request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eTextSpan\u003c/code\u003e class within the Google Cloud Natural Language v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextSpan\u003c/code\u003e class, representing a piece of text, is available in multiple versions, from 2.2.0 up to the latest 3.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextSpan\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it versatile for various text manipulation tasks.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eBeginOffset\u003c/code\u003e and \u003ccode\u003eContent\u003c/code\u003e to help users understand the exact location and content of the output text within the original document.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a basic \u003ccode\u003eTextSpan()\u003c/code\u003e and an overloaded \u003ccode\u003eTextSpan(TextSpan other)\u003c/code\u003e which allows for the cloning of an existing \u003ccode\u003eTextSpan\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]