The API calculates the beginning offset of the content in the original
document according to the
[EncodingType][google.cloud.language.v2.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\u003e\u003ccode\u003eTextSpan\u003c/code\u003e is a class within the Cloud Natural Language v2 API, representing a specific section of text within a document.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextSpan\u003c/code\u003e class 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.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two constructors, one default and another that allows for creating a copy from an existing \u003ccode\u003eTextSpan\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextSpan\u003c/code\u003e contains properties such as \u003ccode\u003eBeginOffset\u003c/code\u003e, which indicates the starting position of the text span, and \u003ccode\u003eContent\u003c/code\u003e, which holds the actual text of the span.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Language.V2\u003c/code\u003e namespace, and the current version for the reference documentation is 1.0.0-beta04, with beta05 being the latest.\u003c/p\u003e\n"]]],[],null,[]]