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
  • Industry solutions
  • Migration
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • SDK, languages, frameworks, and tools
/
Console
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Sign in
  • C++
  • Client libraries
Start free
Overview Guides Reference Samples
Google Cloud Documentation
  • Technology areas
    • More
    • Overview
    • Guides
    • Reference
    • Samples
  • Cross-product tools
    • More
  • Console
  • Overview
  • Library reference docs
  • Agent Registry 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 agentregistry_v1::AgentRegistryClient Retry Policies
    • How to Override the Default Universe Domain
    • Override agentregistry_v1::AgentRegistryClient Universe Domain
  • Modules
    • Agent Registry API Configuration Options
  • Namespaces
    • google::cloud::agentregistry_v1
      • Overview
      • Classes
        • AgentRegistryClient
          • Overview
          • Constructors
            • AgentRegistryClient(AgentRegistryClient const &)
            • AgentRegistryClient(AgentRegistryClient &&)
            • AgentRegistryClient(std::shared_ptr< AgentRegistryConnection >, Options)
          • Operators
            • operator=(AgentRegistryClient const &)
            • operator=(AgentRegistryClient &&)
            • operator==(AgentRegistryClient const &, AgentRegistryClient const &)
            • operator!=(AgentRegistryClient const &, AgentRegistryClient const &)
          • Functions
            • ListAgents(std::string const &, Options)
            • ListAgents(google::cloud::agentregistry::v1::ListAgentsRequest, Options)
            • SearchAgents(std::string const &, Options)
            • SearchAgents(google::cloud::agentregistry::v1::SearchAgentsRequest, Options)
            • GetAgent(std::string const &, Options)
            • GetAgent(google::cloud::agentregistry::v1::GetAgentRequest const &, Options)
            • ListEndpoints(std::string const &, Options)
            • ListEndpoints(google::cloud::agentregistry::v1::ListEndpointsRequest, Options)
            • GetEndpoint(std::string const &, Options)
            • GetEndpoint(google::cloud::agentregistry::v1::GetEndpointRequest const &, Options)
            • ListMcpServers(std::string const &, Options)
            • ListMcpServers(google::cloud::agentregistry::v1::ListMcpServersRequest, Options)
            • SearchMcpServers(std::string const &, Options)
            • SearchMcpServers(google::cloud::agentregistry::v1::SearchMcpServersRequest, Options)
            • GetMcpServer(std::string const &, Options)
            • GetMcpServer(google::cloud::agentregistry::v1::GetMcpServerRequest const &, Options)
            • ListServices(std::string const &, Options)
            • ListServices(google::cloud::agentregistry::v1::ListServicesRequest, Options)
            • GetService(std::string const &, Options)
            • GetService(google::cloud::agentregistry::v1::GetServiceRequest const &, Options)
            • CreateService(std::string const &, google::cloud::agentregistry::v1::Service const &, std::string const &, Options)
            • CreateService(NoAwaitTag, std::string const &, google::cloud::agentregistry::v1::Service const &, std::string const &, Options)
            • CreateService(google::cloud::agentregistry::v1::CreateServiceRequest const &, Options)
            • CreateService(NoAwaitTag, google::cloud::agentregistry::v1::CreateServiceRequest const &, Options)
            • CreateService(google::longrunning::Operation const &, Options)
            • UpdateService(google::cloud::agentregistry::v1::Service const &, google::protobuf::FieldMask const &, Options)
            • UpdateService(NoAwaitTag, google::cloud::agentregistry::v1::Service const &, google::protobuf::FieldMask const &, Options)
            • UpdateService(google::cloud::agentregistry::v1::UpdateServiceRequest const &, Options)
            • UpdateService(NoAwaitTag, google::cloud::agentregistry::v1::UpdateServiceRequest const &, Options)
            • UpdateService(google::longrunning::Operation const &, Options)
            • DeleteService(std::string const &, Options)
            • DeleteService(NoAwaitTag, std::string const &, Options)
            • DeleteService(google::cloud::agentregistry::v1::DeleteServiceRequest const &, Options)
            • DeleteService(NoAwaitTag, google::cloud::agentregistry::v1::DeleteServiceRequest const &, Options)
            • DeleteService(google::longrunning::Operation const &, Options)
            • ListBindings(std::string const &, Options)
            • ListBindings(google::cloud::agentregistry::v1::ListBindingsRequest, Options)
            • GetBinding(std::string const &, Options)
            • GetBinding(google::cloud::agentregistry::v1::GetBindingRequest const &, Options)
            • CreateBinding(std::string const &, google::cloud::agentregistry::v1::Binding const &, std::string const &, Options)
            • CreateBinding(NoAwaitTag, std::string const &, google::cloud::agentregistry::v1::Binding const &, std::string const &, Options)
            • CreateBinding(google::cloud::agentregistry::v1::CreateBindingRequest const &, Options)
            • CreateBinding(NoAwaitTag, google::cloud::agentregistry::v1::CreateBindingRequest const &, Options)
            • CreateBinding(google::longrunning::Operation const &, Options)
            • UpdateBinding(google::cloud::agentregistry::v1::Binding const &, google::protobuf::FieldMask const &, Options)
            • UpdateBinding(NoAwaitTag, google::cloud::agentregistry::v1::Binding const &, google::protobuf::FieldMask const &, Options)
            • UpdateBinding(google::cloud::agentregistry::v1::UpdateBindingRequest const &, Options)
            • UpdateBinding(NoAwaitTag, google::cloud::agentregistry::v1::UpdateBindingRequest const &, Options)
            • UpdateBinding(google::longrunning::Operation const &, Options)
            • DeleteBinding(std::string const &, Options)
            • DeleteBinding(NoAwaitTag, std::string const &, Options)
            • DeleteBinding(google::cloud::agentregistry::v1::DeleteBindingRequest const &, Options)
            • DeleteBinding(NoAwaitTag, google::cloud::agentregistry::v1::DeleteBindingRequest const &, Options)
            • DeleteBinding(google::longrunning::Operation const &, Options)
            • FetchAvailableBindings(std::string const &, Options)
            • FetchAvailableBindings(google::cloud::agentregistry::v1::FetchAvailableBindingsRequest, Options)
            • ListLocations(google::cloud::location::ListLocationsRequest, Options)
            • GetLocation(google::cloud::location::GetLocationRequest const &, Options)
            • ListOperations(std::string const &, std::string const &, Options)
            • ListOperations(google::longrunning::ListOperationsRequest, Options)
            • GetOperation(std::string const &, Options)
            • GetOperation(google::longrunning::GetOperationRequest const &, Options)
            • DeleteOperation(std::string const &, Options)
            • DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
            • CancelOperation(std::string const &, Options)
            • CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
        • AgentRegistryConnection
          • Overview
          • Functions
            • virtual options()
            • virtual ListAgents(google::cloud::agentregistry::v1::ListAgentsRequest)
            • virtual SearchAgents(google::cloud::agentregistry::v1::SearchAgentsRequest)
            • virtual GetAgent(google::cloud::agentregistry::v1::GetAgentRequest const &)
            • virtual ListEndpoints(google::cloud::agentregistry::v1::ListEndpointsRequest)
            • virtual GetEndpoint(google::cloud::agentregistry::v1::GetEndpointRequest const &)
            • virtual ListMcpServers(google::cloud::agentregistry::v1::ListMcpServersRequest)
            • virtual SearchMcpServers(google::cloud::agentregistry::v1::SearchMcpServersRequest)
            • virtual GetMcpServer(google::cloud::agentregistry::v1::GetMcpServerRequest const &)
            • virtual ListServices(google::cloud::agentregistry::v1::ListServicesRequest)
            • virtual GetService(google::cloud::agentregistry::v1::GetServiceRequest const &)
            • virtual CreateService(google::cloud::agentregistry::v1::CreateServiceRequest const &)
            • virtual CreateService(NoAwaitTag, google::cloud::agentregistry::v1::CreateServiceRequest const &)
            • virtual CreateService(google::longrunning::Operation const &)
            • virtual UpdateService(google::cloud::agentregistry::v1::UpdateServiceRequest const &)
            • virtual UpdateService(NoAwaitTag, google::cloud::agentregistry::v1::UpdateServiceRequest const &)
            • virtual UpdateService(google::longrunning::Operation const &)
            • virtual DeleteService(google::cloud::agentregistry::v1::DeleteServiceRequest const &)
            • virtual DeleteService(NoAwaitTag, google::cloud::agentregistry::v1::DeleteServiceRequest const &)
            • virtual DeleteService(google::longrunning::Operation const &)
            • virtual ListBindings(google::cloud::agentregistry::v1::ListBindingsRequest)
            • virtual GetBinding(google::cloud::agentregistry::v1::GetBindingRequest const &)
            • virtual CreateBinding(google::cloud::agentregistry::v1::CreateBindingRequest const &)
            • virtual CreateBinding(NoAwaitTag, google::cloud::agentregistry::v1::CreateBindingRequest const &)
            • virtual CreateBinding(google::longrunning::Operation const &)
            • virtual UpdateBinding(google::cloud::agentregistry::v1::UpdateBindingRequest const &)
            • virtual UpdateBinding(NoAwaitTag, google::cloud::agentregistry::v1::UpdateBindingRequest const &)
            • virtual UpdateBinding(google::longrunning::Operation const &)
            • virtual DeleteBinding(google::cloud::agentregistry::v1::DeleteBindingRequest const &)
            • virtual DeleteBinding(NoAwaitTag, google::cloud::agentregistry::v1::DeleteBindingRequest const &)
            • virtual DeleteBinding(google::longrunning::Operation const &)
            • virtual FetchAvailableBindings(google::cloud::agentregistry::v1::FetchAvailableBindingsRequest)
            • virtual ListLocations(google::cloud::location::ListLocationsRequest)
            • virtual GetLocation(google::cloud::location::GetLocationRequest const &)
            • virtual ListOperations(google::longrunning::ListOperationsRequest)
            • virtual GetOperation(google::longrunning::GetOperationRequest const &)
            • virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)
            • virtual CancelOperation(google::longrunning::CancelOperationRequest const &)
        • AgentRegistryConnectionIdempotencyPolicy
          • Overview
          • Functions
            • virtual clone() const
            • virtual ListAgents(google::cloud::agentregistry::v1::ListAgentsRequest)
            • virtual SearchAgents(google::cloud::agentregistry::v1::SearchAgentsRequest)
            • virtual GetAgent(google::cloud::agentregistry::v1::GetAgentRequest const &)
            • virtual ListEndpoints(google::cloud::agentregistry::v1::ListEndpointsRequest)
            • virtual GetEndpoint(google::cloud::agentregistry::v1::GetEndpointRequest const &)
            • virtual ListMcpServers(google::cloud::agentregistry::v1::ListMcpServersRequest)
            • virtual SearchMcpServers(google::cloud::agentregistry::v1::SearchMcpServersRequest)
            • virtual GetMcpServer(google::cloud::agentregistry::v1::GetMcpServerRequest const &)
            • virtual ListServices(google::cloud::agentregistry::v1::ListServicesRequest)
            • virtual GetService(google::cloud::agentregistry::v1::GetServiceRequest const &)
            • virtual CreateService(google::cloud::agentregistry::v1::CreateServiceRequest const &)
            • virtual UpdateService(google::cloud::agentregistry::v1::UpdateServiceRequest const &)
            • virtual DeleteService(google::cloud::agentregistry::v1::DeleteServiceRequest const &)
            • virtual ListBindings(google::cloud::agentregistry::v1::ListBindingsRequest)
            • virtual GetBinding(google::cloud::agentregistry::v1::GetBindingRequest const &)
            • virtual CreateBinding(google::cloud::agentregistry::v1::CreateBindingRequest const &)
            • virtual UpdateBinding(google::cloud::agentregistry::v1::UpdateBindingRequest const &)
            • virtual DeleteBinding(google::cloud::agentregistry::v1::DeleteBindingRequest const &)
            • virtual FetchAvailableBindings(google::cloud::agentregistry::v1::FetchAvailableBindingsRequest)
            • virtual ListLocations(google::cloud::location::ListLocationsRequest)
            • virtual GetLocation(google::cloud::location::GetLocationRequest const &)
            • virtual ListOperations(google::longrunning::ListOperationsRequest)
            • virtual GetOperation(google::longrunning::GetOperationRequest const &)
            • virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)
            • virtual CancelOperation(google::longrunning::CancelOperationRequest const &)
        • AgentRegistryLimitedErrorCountRetryPolicy
          • Overview
          • Constructors
            • AgentRegistryLimitedErrorCountRetryPolicy(int)
            • AgentRegistryLimitedErrorCountRetryPolicy(AgentRegistryLimitedErrorCountRetryPolicy &&)
            • AgentRegistryLimitedErrorCountRetryPolicy(AgentRegistryLimitedErrorCountRetryPolicy const &)
          • Functions
            • maximum_failures() const
            • virtual OnFailure(Status const &)
            • virtual IsExhausted() const
            • virtual IsPermanentFailure(Status const &) const
            • virtual clone() const
          • Types
            • BaseType
        • AgentRegistryLimitedTimeRetryPolicy
          • Overview
          • Constructors
            • AgentRegistryLimitedTimeRetryPolicy(std::chrono::duration< DurationRep, DurationPeriod >)
            • AgentRegistryLimitedTimeRetryPolicy(AgentRegistryLimitedTimeRetryPolicy &&)
            • AgentRegistryLimitedTimeRetryPolicy(AgentRegistryLimitedTimeRetryPolicy const &)
          • Functions
            • maximum_duration() const
            • virtual OnFailure(Status const &)
            • virtual IsExhausted() const
            • virtual IsPermanentFailure(Status const &) const
            • virtual clone() const
          • Types
            • BaseType
        • AgentRegistryRetryPolicy
          • Overview
          • Functions
            • clone() const
            • OnFailure(Status const &)
            • OnFailure(Status const &)
            • IsExhausted() const
            • IsExhausted() const
            • IsPermanentFailure(Status const &) const
            • IsPermanentFailure(Status const &) const
      • Structs
        • AgentRegistryBackoffPolicyOption
          • Overview
          • Types
            • Type
        • AgentRegistryConnectionIdempotencyPolicyOption
          • Overview
          • Types
            • Type
        • AgentRegistryPollingPolicyOption
          • Overview
          • Types
            • Type
        • AgentRegistryRetryPolicyOption
          • Overview
          • Types
            • Type
      • Functions
        • MakeAgentRegistryConnection(Options)
        • MakeDefaultAgentRegistryConnectionIdempotencyPolicy()
    • google::cloud::agentregistry_v1_mocks
      • Overview
      • Classes
        • MockAgentRegistryConnection
          • Overview
          • Functions
            • virtual options()
            • virtual ListAgents(google::cloud::agentregistry::v1::ListAgentsRequest)
            • virtual SearchAgents(google::cloud::agentregistry::v1::SearchAgentsRequest)
            • virtual GetAgent(google::cloud::agentregistry::v1::GetAgentRequest const &)
            • virtual ListEndpoints(google::cloud::agentregistry::v1::ListEndpointsRequest)
            • virtual GetEndpoint(google::cloud::agentregistry::v1::GetEndpointRequest const &)
            • virtual ListMcpServers(google::cloud::agentregistry::v1::ListMcpServersRequest)
            • virtual SearchMcpServers(google::cloud::agentregistry::v1::SearchMcpServersRequest)
            • virtual GetMcpServer(google::cloud::agentregistry::v1::GetMcpServerRequest const &)
            • virtual ListServices(google::cloud::agentregistry::v1::ListServicesRequest)
            • virtual GetService(google::cloud::agentregistry::v1::GetServiceRequest const &)
            • virtual CreateService(google::cloud::agentregistry::v1::CreateServiceRequest const &)
            • virtual CreateService(NoAwaitTag, google::cloud::agentregistry::v1::CreateServiceRequest const &)
            • virtual CreateService(google::longrunning::Operation const &)
            • virtual UpdateService(google::cloud::agentregistry::v1::UpdateServiceRequest const &)
            • virtual UpdateService(NoAwaitTag, google::cloud::agentregistry::v1::UpdateServiceRequest const &)
            • virtual UpdateService(google::longrunning::Operation const &)
            • virtual DeleteService(google::cloud::agentregistry::v1::DeleteServiceRequest const &)
            • virtual DeleteService(NoAwaitTag, google::cloud::agentregistry::v1::DeleteServiceRequest const &)
            • virtual DeleteService(google::longrunning::Operation const &)
            • virtual ListBindings(google::cloud::agentregistry::v1::ListBindingsRequest)
            • virtual GetBinding(google::cloud::agentregistry::v1::GetBindingRequest const &)
            • virtual CreateBinding(google::cloud::agentregistry::v1::CreateBindingRequest const &)
            • virtual CreateBinding(NoAwaitTag, google::cloud::agentregistry::v1::CreateBindingRequest const &)
            • virtual CreateBinding(google::longrunning::Operation const &)
            • virtual UpdateBinding(google::cloud::agentregistry::v1::UpdateBindingRequest const &)
            • virtual UpdateBinding(NoAwaitTag, google::cloud::agentregistry::v1::UpdateBindingRequest const &)
            • virtual UpdateBinding(google::longrunning::Operation const &)
            • virtual DeleteBinding(google::cloud::agentregistry::v1::DeleteBindingRequest const &)
            • virtual DeleteBinding(NoAwaitTag, google::cloud::agentregistry::v1::DeleteBindingRequest const &)
            • virtual DeleteBinding(google::longrunning::Operation const &)
            • virtual FetchAvailableBindings(google::cloud::agentregistry::v1::FetchAvailableBindingsRequest)
            • virtual ListLocations(google::cloud::location::ListLocationsRequest)
            • virtual GetLocation(google::cloud::location::GetLocationRequest const &)
            • virtual ListOperations(google::longrunning::ListOperationsRequest)
            • virtual GetOperation(google::longrunning::GetOperationRequest const &)
            • virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)
            • virtual CancelOperation(google::longrunning::CancelOperationRequest const &)
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Industry solutions
  • Migration
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • SDK, languages, frameworks, and tools
  • Home
  • Documentation
  • Developer tools
  • C++
  • Client libraries

Namespace google::cloud::agentregistry_v1_mocks (3.7.0-rc) Stay organized with collections Save and categorize content based on your preferences.

Classes

MockAgentRegistryConnection

A class to mock AgentRegistryConnection.

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 2026-06-27 UTC.

  • Products and pricing

    • See all products
    • Google Cloud pricing
    • Google Cloud Marketplace
    • Contact sales
  • Support

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

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

    • Blog
    • Events
    • X (Twitter)
    • Google Cloud on YouTube
    • Google Cloud Tech on YouTube
  • 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
  • 中文 – 简体
  • 日本語
  • 한국어