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 document outlines the \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e object, which acts as an interface defining virtual methods for various operations within the \u003ccode\u003eLanguageServiceClient\u003c/code\u003e, facilitating custom behavior in testing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e interface is available in multiple versions, ranging from 2.11.0 up to the latest release candidate 2.37.0-rc, with version 2.14.0 being the primary focus of the document.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create concrete instances of \u003ccode\u003eLanguageServiceConnection\u003c/code\u003e using \u003ccode\u003eMakeLanguageServiceConnection()\u003c/code\u003e or mock them using \u003ccode\u003elanguage_v1_mocks::MockLanguageServiceConnection\u003c/code\u003e for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe interface defines virtual methods such as \u003ccode\u003eAnalyzeSentiment\u003c/code\u003e, \u003ccode\u003eAnalyzeEntities\u003c/code\u003e, \u003ccode\u003eAnalyzeEntitySentiment\u003c/code\u003e, \u003ccode\u003eAnalyzeSyntax\u003c/code\u003e, \u003ccode\u003eClassifyText\u003c/code\u003e, \u003ccode\u003eModerateText\u003c/code\u003e, and \u003ccode\u003eAnnotateText\u003c/code\u003e, all of which take a specific request type and return a corresponding response type.\u003c/p\u003e\n"],["\u003cp\u003eEach virtual method, including \u003ccode\u003eoptions\u003c/code\u003e, requires input parameters in the form of a \u003ccode\u003erequest\u003c/code\u003e object specific to the method's function, which can be used to define the scope of a request, for instance, \u003ccode\u003egoogle::cloud::language::v1::AnalyzeSentimentRequest const &\u003c/code\u003e is needed for the virtual method \u003ccode\u003eAnalyzeSentiment\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]