[[["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-09-04 UTC."],[],[],null,["# Cloud Natural Language V1 Client - Class AnnotateTextRequest (1.0.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.1 (latest)](/php/docs/reference/cloud-language/latest/V1.AnnotateTextRequest)\n- [1.0.0](/php/docs/reference/cloud-language/1.0.0/V1.AnnotateTextRequest)\n- [0.34.3](/php/docs/reference/cloud-language/0.34.3/V1.AnnotateTextRequest)\n- [0.33.0](/php/docs/reference/cloud-language/0.33.0/V1.AnnotateTextRequest)\n- [0.32.7](/php/docs/reference/cloud-language/0.32.7/V1.AnnotateTextRequest)\n- [0.31.3](/php/docs/reference/cloud-language/0.31.3/V1.AnnotateTextRequest)\n- [0.30.2](/php/docs/reference/cloud-language/0.30.2/V1.AnnotateTextRequest)\n- [0.29.0](/php/docs/reference/cloud-language/0.29.0/V1.AnnotateTextRequest)\n- [0.28.5](/php/docs/reference/cloud-language/0.28.5/V1.AnnotateTextRequest) \nReference documentation and code samples for the Cloud Natural Language V1 Client class AnnotateTextRequest.\n\nThe request message for the text annotation API, which can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.\n\nGenerated from protobuf message `google.cloud.language.v1.AnnotateTextRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Language \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDocument\n\nRequired. Input document.\n\n### hasDocument\n\n### clearDocument\n\n### setDocument\n\nRequired. Input document.\n\n### getFeatures\n\nRequired. The enabled features.\n\n### hasFeatures\n\n### clearFeatures\n\n### setFeatures\n\nRequired. The enabled features.\n\n### getEncodingType\n\nThe encoding type used by the API to calculate offsets.\n\n### setEncodingType\n\nThe encoding type used by the API to calculate offsets.\n\n### static::build\n\n### static::buildFromDocumentFeatures"]]