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"]],[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTextSpan\u003c/code\u003e class is part of the Google Cloud Natural Language v1 API, representing a segment of text output.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eTextSpan\u003c/code\u003e is 3.7.0, with several previous versions available for reference, ranging back to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextSpan\u003c/code\u003e implements multiple 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 has two properties, \u003ccode\u003eBeginOffset\u003c/code\u003e, an integer representing the start position in the source text, and \u003ccode\u003eContent\u003c/code\u003e, a string for the text itself.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextSpan\u003c/code\u003e has two constructors: a default constructor and a copy constructor that allows for creating a \u003ccode\u003eTextSpan\u003c/code\u003e object based on an existing \u003ccode\u003eTextSpan\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,[]]