public class CloudApiRegistry.CloudApiRegistryClient : ClientBase<CloudApiRegistry.CloudApiRegistryClient>Reference documentation and code samples for the Cloud API Registry v1 API class CloudApiRegistry.CloudApiRegistryClient.
Client for CloudApiRegistry
Inheritance
object > ClientBase > ClientBaseCloudApiRegistryCloudApiRegistryClient > CloudApiRegistry.CloudApiRegistryClientNamespace
Google.Cloud.ApiRegistry.V1Assembly
Google.Cloud.ApiRegistry.V1.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 |
CallInvokerThe callInvoker to use to make remote calls. |
CloudApiRegistryClient(ChannelBase)
public CloudApiRegistryClient(ChannelBase channel)Creates a new client for CloudApiRegistry
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 |
GetMcpServerRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetMcpServerRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetMcpServerRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetMcpServerRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetMcpToolRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetMcpToolRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetMcpToolRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetMcpToolRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListMcpServersRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListMcpServersRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListMcpServersRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListMcpServersRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListMcpToolsRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListMcpToolsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListMcpToolsRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListMcpToolsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
|