[[["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."],[],[],null,["# Cloud Natural Language V1 Client - Class TextSpan (1.0.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.1 (latest)](/php/docs/reference/cloud-language/latest/V1.TextSpan)\n- [1.0.0](/php/docs/reference/cloud-language/1.0.0/V1.TextSpan)\n- [0.34.3](/php/docs/reference/cloud-language/0.34.3/V1.TextSpan)\n- [0.33.0](/php/docs/reference/cloud-language/0.33.0/V1.TextSpan)\n- [0.32.7](/php/docs/reference/cloud-language/0.32.7/V1.TextSpan)\n- [0.31.3](/php/docs/reference/cloud-language/0.31.3/V1.TextSpan)\n- [0.30.2](/php/docs/reference/cloud-language/0.30.2/V1.TextSpan)\n- [0.29.0](/php/docs/reference/cloud-language/0.29.0/V1.TextSpan)\n- [0.28.5](/php/docs/reference/cloud-language/0.28.5/V1.TextSpan) \nReference documentation and code samples for the Cloud Natural Language V1 Client class TextSpan.\n\nRepresents an output piece of text.\n\nGenerated from protobuf message `google.cloud.language.v1.TextSpan`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Language \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getContent\n\nThe content of the output text.\n\n### setContent\n\nThe content of the output text.\n\n### getBeginOffset\n\nThe API calculates the beginning offset of the content in the original\ndocument according to the\n[EncodingType](/php/docs/reference/cloud-language/latest/V1.EncodingType) specified in the API\nrequest.\n\n### setBeginOffset\n\nThe API calculates the beginning offset of the content in the original\ndocument according to the\n[EncodingType](/php/docs/reference/cloud-language/latest/V1.EncodingType) specified in the API\nrequest."]]