Skip to main content
Google Cloud
Documentation Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
Related sites
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Console Sign in
  • Documentation
Overview Guides Reference Samples
Contact Us Start free
Google Cloud
  • Documentation
    • Overview
    • Guides
    • Reference
    • Samples
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Related sites
    • More
  • Console
  • Contact Us
  • Start free
  • Overview
  • Library reference docs
  • Cloud Natural Language API C++ Client Library
  • In-Depth Topics
    • Environment Variables
    • How to Override the Authentication Credentials
    • How to Override the Default Endpoint
    • Override Retry, Backoff, and Idempotency Policies
    • Override language_v1::LanguageServiceClient Retry Policies
    • Override language_v2::LanguageServiceClient Retry Policies
  • Modules
    • Cloud Natural Language API Configuration Options
  • Namespaces
    • google::cloud::language
      • Overview
    • google::cloud::language_mocks
      • Overview
    • google::cloud::language_v1
      • Overview
      • Classes
        • LanguageServiceClient
          • Overview
          • Constructors
            • LanguageServiceClient(LanguageServiceClient const &)
            • LanguageServiceClient(LanguageServiceClient &&)
            • LanguageServiceClient(std::shared_ptr< LanguageServiceConnection >, Options)
          • Operators
            • operator=(LanguageServiceClient const &)
            • operator=(LanguageServiceClient &&)
            • operator==(LanguageServiceClient const &, LanguageServiceClient const &)
            • operator!=(LanguageServiceClient const &, LanguageServiceClient const &)
          • Functions
            • AnalyzeSentiment(google::cloud::language::v1::Document const &, google::cloud::language::v1::EncodingType, Options)
            • AnalyzeSentiment(google::cloud::language::v1::Document const &, Options)
            • AnalyzeSentiment(google::cloud::language::v1::AnalyzeSentimentRequest const &, Options)
            • AnalyzeEntities(google::cloud::language::v1::Document const &, google::cloud::language::v1::EncodingType, Options)
            • AnalyzeEntities(google::cloud::language::v1::Document const &, Options)
            • AnalyzeEntities(google::cloud::language::v1::AnalyzeEntitiesRequest const &, Options)
            • AnalyzeEntitySentiment(google::cloud::language::v1::Document const &, google::cloud::language::v1::EncodingType, Options)
            • AnalyzeEntitySentiment(google::cloud::language::v1::Document const &, Options)
            • AnalyzeEntitySentiment(google::cloud::language::v1::AnalyzeEntitySentimentRequest const &, Options)
            • AnalyzeSyntax(google::cloud::language::v1::Document const &, google::cloud::language::v1::EncodingType, Options)
            • AnalyzeSyntax(google::cloud::language::v1::Document const &, Options)
            • AnalyzeSyntax(google::cloud::language::v1::AnalyzeSyntaxRequest const &, Options)
            • ClassifyText(google::cloud::language::v1::Document const &, Options)
            • ClassifyText(google::cloud::language::v1::ClassifyTextRequest const &, Options)
            • ModerateText(google::cloud::language::v1::Document const &, Options)
            • ModerateText(google::cloud::language::v1::ModerateTextRequest const &, Options)
            • AnnotateText(google::cloud::language::v1::Document const &, google::cloud::language::v1::AnnotateTextRequest::Features const &, google::cloud::language::v1::EncodingType, Options)
            • AnnotateText(google::cloud::language::v1::Document const &, google::cloud::language::v1::AnnotateTextRequest::Features const &, Options)
            • AnnotateText(google::cloud::language::v1::AnnotateTextRequest const &, Options)
        • LanguageServiceConnection
          • Overview
          • Functions
            • virtual options()
            • virtual AnalyzeSentiment(google::cloud::language::v1::AnalyzeSentimentRequest const &)
            • virtual AnalyzeEntities(google::cloud::language::v1::AnalyzeEntitiesRequest const &)
            • virtual AnalyzeEntitySentiment(google::cloud::language::v1::AnalyzeEntitySentimentRequest const &)
            • virtual AnalyzeSyntax(google::cloud::language::v1::AnalyzeSyntaxRequest const &)
            • virtual ClassifyText(google::cloud::language::v1::ClassifyTextRequest const &)
            • virtual ModerateText(google::cloud::language::v1::ModerateTextRequest const &)
            • virtual AnnotateText(google::cloud::language::v1::AnnotateTextRequest const &)
        • LanguageServiceConnectionIdempotencyPolicy
          • Overview
          • Functions
            • virtual clone() const
            • virtual AnalyzeSentiment(google::cloud::language::v1::AnalyzeSentimentRequest const &)
            • virtual AnalyzeEntities(google::cloud::language::v1::AnalyzeEntitiesRequest const &)
            • virtual AnalyzeEntitySentiment(google::cloud::language::v1::AnalyzeEntitySentimentRequest const &)
            • virtual AnalyzeSyntax(google::cloud::language::v1::AnalyzeSyntaxRequest const &)
            • virtual ClassifyText(google::cloud::language::v1::ClassifyTextRequest const &)
            • virtual ModerateText(google::cloud::language::v1::ModerateTextRequest const &)
            • virtual AnnotateText(google::cloud::language::v1::AnnotateTextRequest const &)
        • LanguageServiceLimitedErrorCountRetryPolicy
          • Overview
          • Constructors
            • LanguageServiceLimitedErrorCountRetryPolicy(int)
            • LanguageServiceLimitedErrorCountRetryPolicy(LanguageServiceLimitedErrorCountRetryPolicy &&)
            • LanguageServiceLimitedErrorCountRetryPolicy(LanguageServiceLimitedErrorCountRetryPolicy const &)
          • Functions
            • maximum_failures() const
            • virtual OnFailure(Status const &)
            • virtual IsExhausted() const
            • virtual IsPermanentFailure(Status const &) const
            • virtual clone() const
          • Types
            • BaseType
        • LanguageServiceLimitedTimeRetryPolicy
          • Overview
          • Constructors
            • LanguageServiceLimitedTimeRetryPolicy(std::chrono::duration< DurationRep, DurationPeriod >)
            • LanguageServiceLimitedTimeRetryPolicy(LanguageServiceLimitedTimeRetryPolicy &&)
            • LanguageServiceLimitedTimeRetryPolicy(LanguageServiceLimitedTimeRetryPolicy const &)
          • Functions
            • maximum_duration() const
            • virtual OnFailure(Status const &)
            • virtual IsExhausted() const
            • virtual IsPermanentFailure(Status const &) const
            • virtual clone() const
          • Types
            • BaseType
        • LanguageServiceRetryPolicy
          • Overview
          • Functions
            • clone() const
            • OnFailure(Status const &)
            • OnFailure(Status const &)
            • IsExhausted() const
            • IsExhausted() const
            • IsPermanentFailure(Status const &) const
            • IsPermanentFailure(Status const &) const
      • Structs
        • LanguageServiceBackoffPolicyOption
          • Overview
          • Types
            • Type
        • LanguageServiceConnectionIdempotencyPolicyOption
          • Overview
          • Types
            • Type
        • LanguageServiceRetryPolicyOption
          • Overview
          • Types
            • Type
      • Functions
        • MakeLanguageServiceConnection(Options)
        • MakeDefaultLanguageServiceConnectionIdempotencyPolicy()
    • google::cloud::language_v1_mocks
      • Overview
      • Classes
        • MockLanguageServiceConnection
          • Overview
          • Functions
            • virtual options()
            • virtual AnalyzeSentiment(google::cloud::language::v1::AnalyzeSentimentRequest const &)
            • virtual AnalyzeEntities(google::cloud::language::v1::AnalyzeEntitiesRequest const &)
            • virtual AnalyzeEntitySentiment(google::cloud::language::v1::AnalyzeEntitySentimentRequest const &)
            • virtual AnalyzeSyntax(google::cloud::language::v1::AnalyzeSyntaxRequest const &)
            • virtual ClassifyText(google::cloud::language::v1::ClassifyTextRequest const &)
            • virtual ModerateText(google::cloud::language::v1::ModerateTextRequest const &)
            • virtual AnnotateText(google::cloud::language::v1::AnnotateTextRequest const &)
    • google::cloud::language_v2
      • Overview
      • Classes
        • LanguageServiceClient
          • Overview
          • Constructors
            • LanguageServiceClient(LanguageServiceClient const &)
            • LanguageServiceClient(LanguageServiceClient &&)
            • LanguageServiceClient(std::shared_ptr< LanguageServiceConnection >, Options)
          • Operators
            • operator=(LanguageServiceClient const &)
            • operator=(LanguageServiceClient &&)
            • operator==(LanguageServiceClient const &, LanguageServiceClient const &)
            • operator!=(LanguageServiceClient const &, LanguageServiceClient const &)
          • Functions
            • AnalyzeSentiment(google::cloud::language::v2::Document const &, google::cloud::language::v2::EncodingType, Options)
            • AnalyzeSentiment(google::cloud::language::v2::Document const &, Options)
            • AnalyzeSentiment(google::cloud::language::v2::AnalyzeSentimentRequest const &, Options)
            • AnalyzeEntities(google::cloud::language::v2::Document const &, google::cloud::language::v2::EncodingType, Options)
            • AnalyzeEntities(google::cloud::language::v2::Document const &, Options)
            • AnalyzeEntities(google::cloud::language::v2::AnalyzeEntitiesRequest const &, Options)
            • ClassifyText(google::cloud::language::v2::Document const &, Options)
            • ClassifyText(google::cloud::language::v2::ClassifyTextRequest const &, Options)
            • ModerateText(google::cloud::language::v2::Document const &, Options)
            • ModerateText(google::cloud::language::v2::ModerateTextRequest const &, Options)
            • AnnotateText(google::cloud::language::v2::Document const &, google::cloud::language::v2::AnnotateTextRequest::Features const &, google::cloud::language::v2::EncodingType, Options)
            • AnnotateText(google::cloud::language::v2::Document const &, google::cloud::language::v2::AnnotateTextRequest::Features const &, Options)
            • AnnotateText(google::cloud::language::v2::AnnotateTextRequest const &, Options)
        • LanguageServiceConnection
          • Overview
          • Functions
            • virtual options()
            • virtual AnalyzeSentiment(google::cloud::language::v2::AnalyzeSentimentRequest const &)
            • virtual AnalyzeEntities(google::cloud::language::v2::AnalyzeEntitiesRequest const &)
            • virtual ClassifyText(google::cloud::language::v2::ClassifyTextRequest const &)
            • virtual ModerateText(google::cloud::language::v2::ModerateTextRequest const &)
            • virtual AnnotateText(google::cloud::language::v2::AnnotateTextRequest const &)
        • LanguageServiceConnectionIdempotencyPolicy
          • Overview
          • Functions
            • virtual clone() const
            • virtual AnalyzeSentiment(google::cloud::language::v2::AnalyzeSentimentRequest const &)
            • virtual AnalyzeEntities(google::cloud::language::v2::AnalyzeEntitiesRequest const &)
            • virtual ClassifyText(google::cloud::language::v2::ClassifyTextRequest const &)
            • virtual ModerateText(google::cloud::language::v2::ModerateTextRequest const &)
            • virtual AnnotateText(google::cloud::language::v2::AnnotateTextRequest const &)
        • LanguageServiceLimitedErrorCountRetryPolicy
          • Overview
          • Constructors
            • LanguageServiceLimitedErrorCountRetryPolicy(int)
            • LanguageServiceLimitedErrorCountRetryPolicy(LanguageServiceLimitedErrorCountRetryPolicy &&)
            • LanguageServiceLimitedErrorCountRetryPolicy(LanguageServiceLimitedErrorCountRetryPolicy const &)
          • Functions
            • maximum_failures() const
            • virtual OnFailure(Status const &)
            • virtual IsExhausted() const
            • virtual IsPermanentFailure(Status const &) const
            • virtual clone() const
          • Types
            • BaseType
        • LanguageServiceLimitedTimeRetryPolicy
          • Overview
          • Constructors
            • LanguageServiceLimitedTimeRetryPolicy(std::chrono::duration< DurationRep, DurationPeriod >)
            • LanguageServiceLimitedTimeRetryPolicy(LanguageServiceLimitedTimeRetryPolicy &&)
            • LanguageServiceLimitedTimeRetryPolicy(LanguageServiceLimitedTimeRetryPolicy const &)
          • Functions
            • maximum_duration() const
            • virtual OnFailure(Status const &)
            • virtual IsExhausted() const
            • virtual IsPermanentFailure(Status const &) const
            • virtual clone() const
          • Types
            • BaseType
        • LanguageServiceRetryPolicy
          • Overview
          • Functions
            • clone() const
            • OnFailure(Status const &)
            • OnFailure(Status const &)
            • IsExhausted() const
            • IsExhausted() const
            • IsPermanentFailure(Status const &) const
            • IsPermanentFailure(Status const &) const
      • Structs
        • LanguageServiceBackoffPolicyOption
          • Overview
          • Types
            • Type
        • LanguageServiceConnectionIdempotencyPolicyOption
          • Overview
          • Types
            • Type
        • LanguageServiceRetryPolicyOption
          • Overview
          • Types
            • Type
      • Functions
        • MakeLanguageServiceConnection(Options)
        • MakeDefaultLanguageServiceConnectionIdempotencyPolicy()
    • google::cloud::language_v2_mocks
      • Overview
      • Classes
        • MockLanguageServiceConnection
          • Overview
          • Functions
            • virtual options()
            • virtual AnalyzeSentiment(google::cloud::language::v2::AnalyzeSentimentRequest const &)
            • virtual AnalyzeEntities(google::cloud::language::v2::AnalyzeEntitiesRequest const &)
            • virtual ClassifyText(google::cloud::language::v2::ClassifyTextRequest const &)
            • virtual ModerateText(google::cloud::language::v2::ModerateTextRequest const &)
            • virtual AnnotateText(google::cloud::language::v2::AnnotateTextRequest const &)
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
  • Home
  • Documentation
  • Reference

Namespace google::cloud::language_v1_mocks (2.44.0-rc)

  • 2.44.0-rc (latest)
  • 2.43.0
  • 2.42.0
  • 2.41.0
  • 2.40.0
  • 2.39.0
  • 2.38.0
  • 2.37.0
  • 2.36.0
  • 2.35.0
  • 2.34.0
  • 2.33.0
  • 2.32.0
  • 2.31.0
  • 2.30.0
  • 2.29.0
  • 2.28.0
  • 2.27.0
  • 2.26.0
  • 2.25.1
  • 2.24.0
  • 2.23.0
  • 2.22.1
  • 2.21.0
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.0
  • 2.15.1
  • 2.14.0
  • 2.13.0
  • 2.12.0
  • 2.11.0

Classes

MockLanguageServiceConnection

A class to mock LanguageServiceConnection.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-10 UTC.

  • Why Google

    • Choosing Google Cloud
    • Trust and security
    • Modern Infrastructure Cloud
    • Multicloud
    • Global infrastructure
    • Customers and case studies
    • Analyst reports
    • Whitepapers
  • Products and pricing

    • See all products
    • See all solutions
    • Google Cloud for Startups
    • Google Cloud Marketplace
    • Google Cloud pricing
    • Contact sales
  • Support

    • Community forums
    • Support
    • Release Notes
    • System status
  • Resources

    • GitHub
    • Getting Started with Google Cloud
    • Google Cloud documentation
    • Code samples
    • Cloud Architecture Center
    • Training and Certification
    • Developer Center
  • Engage

    • Blog
    • Events
    • X (Twitter)
    • Google Cloud on YouTube
    • Google Cloud Tech on YouTube
    • Become a Partner
    • Google Cloud Affiliate Program
    • Press Corner
  • About Google
  • Privacy
  • Site terms
  • Google Cloud terms
  • Manage cookies
  • Our third decade of climate action: join us
  • Sign up for the Google Cloud newsletter Subscribe
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어