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 documentation for the \u003ccode\u003eTextSpan\u003c/code\u003e class within the Google Cloud Natural Language v1 API, specifically for version 3.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextSpan\u003c/code\u003e represents a piece of text and is used as an output within the API, implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes two constructors: a default constructor \u003ccode\u003eTextSpan()\u003c/code\u003e and one that takes another \u003ccode\u003eTextSpan\u003c/code\u003e object as a parameter, \u003ccode\u003eTextSpan(TextSpan other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextSpan\u003c/code\u003e has two properties: \u003ccode\u003eBeginOffset\u003c/code\u003e, which is an integer representing the starting position of the content in the original document, and \u003ccode\u003eContent\u003c/code\u003e, a string holding the output text itself.\u003c/p\u003e\n"],["\u003cp\u003eThere are ten different versions of the TextSpan documentation accessible, including the latest 3.7.0, and versions 3.6.0 through 2.2.0.\u003c/p\u003e\n"]]],[],null,[]]