Cloud API Registry v1beta API - Class CloudApiRegistry.CloudApiRegistryClient (1.0.0-beta01)

public class CloudApiRegistry.CloudApiRegistryClient : ClientBase<CloudApiRegistry.CloudApiRegistryClient>

Reference documentation and code samples for the Cloud API Registry v1beta API class CloudApiRegistry.CloudApiRegistryClient.

Client for CloudApiRegistry

Inheritance

object > ClientBase > ClientBaseCloudApiRegistryCloudApiRegistryClient > CloudApiRegistry.CloudApiRegistryClient

Namespace

Google.Cloud.ApiRegistry.V1Beta

Assembly

Google.Cloud.ApiRegistry.V1Beta.dll

Constructors

CloudApiRegistryClient()

protected CloudApiRegistryClient()

Protected parameterless constructor to allow creation of test doubles.

CloudApiRegistryClient(CallInvoker)

public CloudApiRegistryClient(CallInvoker callInvoker)

Creates a new client for CloudApiRegistry that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

CloudApiRegistryClient(ChannelBase)

public CloudApiRegistryClient(ChannelBase channel)

Creates a new client for CloudApiRegistry

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

CloudApiRegistryClient(ClientBaseConfiguration)

protected CloudApiRegistryClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

GetMcpServer(GetMcpServerRequest, CallOptions)

public virtual McpServer GetMcpServer(GetMcpServerRequest request, CallOptions options)

Gets a single McpServer.

Parameters
Name Description
request GetMcpServerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
McpServer

The response received from the server.

GetMcpServer(GetMcpServerRequest, Metadata, DateTime?, CancellationToken)

public virtual McpServer GetMcpServer(GetMcpServerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a single McpServer.

Parameters
Name Description
request GetMcpServerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
McpServer

The response received from the server.

GetMcpServerAsync(GetMcpServerRequest, CallOptions)

public virtual AsyncUnaryCall<McpServer> GetMcpServerAsync(GetMcpServerRequest request, CallOptions options)

Gets a single McpServer.

Parameters
Name Description
request GetMcpServerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallMcpServer

The call object.

GetMcpServerAsync(GetMcpServerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<McpServer> GetMcpServerAsync(GetMcpServerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a single McpServer.

Parameters
Name Description
request GetMcpServerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallMcpServer

The call object.

GetMcpTool(GetMcpToolRequest, CallOptions)

public virtual McpTool GetMcpTool(GetMcpToolRequest request, CallOptions options)

Gets a single McpTool.

Parameters
Name Description
request GetMcpToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
McpTool

The response received from the server.

GetMcpTool(GetMcpToolRequest, Metadata, DateTime?, CancellationToken)

public virtual McpTool GetMcpTool(GetMcpToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a single McpTool.

Parameters
Name Description
request GetMcpToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
McpTool

The response received from the server.

GetMcpToolAsync(GetMcpToolRequest, CallOptions)

public virtual AsyncUnaryCall<McpTool> GetMcpToolAsync(GetMcpToolRequest request, CallOptions options)

Gets a single McpTool.

Parameters
Name Description
request GetMcpToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallMcpTool

The call object.

GetMcpToolAsync(GetMcpToolRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<McpTool> GetMcpToolAsync(GetMcpToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a single McpTool.

Parameters
Name Description
request GetMcpToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallMcpTool

The call object.

ListMcpServers(ListMcpServersRequest, CallOptions)

public virtual ListMcpServersResponse ListMcpServers(ListMcpServersRequest request, CallOptions options)

Lists McpServers in a given Project.

Parameters
Name Description
request ListMcpServersRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListMcpServersResponse

The response received from the server.

ListMcpServers(ListMcpServersRequest, Metadata, DateTime?, CancellationToken)

public virtual ListMcpServersResponse ListMcpServers(ListMcpServersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists McpServers in a given Project.

Parameters
Name Description
request ListMcpServersRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListMcpServersResponse

The response received from the server.

ListMcpServersAsync(ListMcpServersRequest, CallOptions)

public virtual AsyncUnaryCall<ListMcpServersResponse> ListMcpServersAsync(ListMcpServersRequest request, CallOptions options)

Lists McpServers in a given Project.

Parameters
Name Description
request ListMcpServersRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListMcpServersResponse

The call object.

ListMcpServersAsync(ListMcpServersRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListMcpServersResponse> ListMcpServersAsync(ListMcpServersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists McpServers in a given Project.

Parameters
Name Description
request ListMcpServersRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListMcpServersResponse

The call object.

ListMcpTools(ListMcpToolsRequest, CallOptions)

public virtual ListMcpToolsResponse ListMcpTools(ListMcpToolsRequest request, CallOptions options)

Lists McpTools in a given McpServer.

Parameters
Name Description
request ListMcpToolsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListMcpToolsResponse

The response received from the server.

ListMcpTools(ListMcpToolsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListMcpToolsResponse ListMcpTools(ListMcpToolsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists McpTools in a given McpServer.

Parameters
Name Description
request ListMcpToolsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListMcpToolsResponse

The response received from the server.

ListMcpToolsAsync(ListMcpToolsRequest, CallOptions)

public virtual AsyncUnaryCall<ListMcpToolsResponse> ListMcpToolsAsync(ListMcpToolsRequest request, CallOptions options)

Lists McpTools in a given McpServer.

Parameters
Name Description
request ListMcpToolsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListMcpToolsResponse

The call object.

ListMcpToolsAsync(ListMcpToolsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListMcpToolsResponse> ListMcpToolsAsync(ListMcpToolsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists McpTools in a given McpServer.

Parameters
Name Description
request ListMcpToolsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListMcpToolsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override CloudApiRegistry.CloudApiRegistryClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
CloudApiRegistryCloudApiRegistryClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ApiRegistry.V1Beta.CloudApiRegistry.CloudApiRegistryClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)