This interface defines virtual methods for each of the user-facing overload sets in LanguageServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type LanguageServiceClient.
[[["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-14 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e object, which is used with \u003ccode\u003eLanguageServiceClient\u003c/code\u003e for the Google Cloud Natural Language API v2.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e interface allows for the injection of custom behavior in testing, such as with a Google Mock object, by defining virtual methods for user-facing overload sets in \u003ccode\u003eLanguageServiceClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers a range of versions, from 2.11.0 up to 2.37.0-rc, with each version linking to the respective documentation for the \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e class includes virtual functions for various language processing operations, such as \u003ccode\u003eAnalyzeSentiment\u003c/code\u003e, \u003ccode\u003eAnalyzeEntities\u003c/code\u003e, \u003ccode\u003eClassifyText\u003c/code\u003e, \u003ccode\u003eModerateText\u003c/code\u003e, and \u003ccode\u003eAnnotateText\u003c/code\u003e, all accepting a corresponding request object and returning a \u003ccode\u003eStatusOr\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]