3.2.0 (latest) 3.1.0 3.0.0 2.4.0 2.3.0

    public class Debugger2.Debugger2Client : ClientBase<Debugger2.Debugger2Client>

Reference documentation and code samples for the Google Cloud Debugger v2 API class Debugger2.Debugger2Client.

Client for Debugger2

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://github.com/grpc/grpc-dotnet/blob/6e6bcb5a10588f4853cf32aab0195346768a2a36/src/Grpc.Core.Api/ClientBase.cs) \> [ClientBase](https://github.com/grpc/grpc-dotnet/blob/6e6bcb5a10588f4853cf32aab0195346768a2a36/src/Grpc.Core.Api/ClientBase.cs)[Debugger2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Debugger.V2/latest/Google.Cloud.Debugger.V2.Debugger2.md.txt)[Debugger2Client](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Debugger.V2/latest/Google.Cloud.Debugger.V2.Debugger2.Debugger2Client.md.txt) \> Debugger2.Debugger2Client

## Inherited Members

[ClientBase\<Debugger2.Debugger2Client\>.WithHost(string)](https://github.com/grpc/grpc-dotnet/blob/6e6bcb5a10588f4853cf32aab0195346768a2a36/src/Grpc.Core.Api/ClientBase.cs) [ClientBase.CallInvoker](https://github.com/grpc/grpc-dotnet/blob/6e6bcb5a10588f4853cf32aab0195346768a2a36/src/Grpc.Core.Api/ClientBase.cs) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Debugger.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Debugger.V2/latest/Google.Cloud.Debugger.V2.md.txt)

## Assembly

Google.Cloud.Debugger.V2.dll

## Constructors

### Debugger2Client()

    protected Debugger2Client()

Protected parameterless constructor to allow creation of test doubles.

### Debugger2Client(CallInvoker)

    public Debugger2Client(CallInvoker callInvoker)

Creates a new client for Debugger2 that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### Debugger2Client(ChannelBase)

    public Debugger2Client(ChannelBase channel)

Creates a new client for Debugger2

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### Debugger2Client(ClientBaseConfiguration)

    protected Debugger2Client(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### DeleteBreakpoint(DeleteBreakpointRequest, CallOptions)

    public virtual Empty DeleteBreakpoint(DeleteBreakpointRequest request, CallOptions options)

Deletes the breakpoint from the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteBreakpointRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteBreakpoint(DeleteBreakpointRequest, Metadata, DateTime?, CancellationToken)

    public virtual Empty DeleteBreakpoint(DeleteBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the breakpoint from the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteBreakpointRequest` 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** |
| `Empty` | The response received from the server. |

### DeleteBreakpointAsync(DeleteBreakpointRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteBreakpointAsync(DeleteBreakpointRequest request, CallOptions options)

Deletes the breakpoint from the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteBreakpointRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### DeleteBreakpointAsync(DeleteBreakpointRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Empty> DeleteBreakpointAsync(DeleteBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the breakpoint from the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteBreakpointRequest` 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** |
| `AsyncUnaryCallEmpty` | The call object. |

### GetBreakpoint(GetBreakpointRequest, CallOptions)

    public virtual GetBreakpointResponse GetBreakpoint(GetBreakpointRequest request, CallOptions options)

Gets breakpoint information.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetBreakpointRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GetBreakpointResponse` | The response received from the server. |

### GetBreakpoint(GetBreakpointRequest, Metadata, DateTime?, CancellationToken)

    public virtual GetBreakpointResponse GetBreakpoint(GetBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets breakpoint information.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetBreakpointRequest` 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** |
| `GetBreakpointResponse` | The response received from the server. |

### GetBreakpointAsync(GetBreakpointRequest, CallOptions)

    public virtual AsyncUnaryCall<GetBreakpointResponse> GetBreakpointAsync(GetBreakpointRequest request, CallOptions options)

Gets breakpoint information.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetBreakpointRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGetBreakpointResponse` | The call object. |

### GetBreakpointAsync(GetBreakpointRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<GetBreakpointResponse> GetBreakpointAsync(GetBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets breakpoint information.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetBreakpointRequest` 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** |
| `AsyncUnaryCallGetBreakpointResponse` | The call object. |

### ListBreakpoints(ListBreakpointsRequest, CallOptions)

    public virtual ListBreakpointsResponse ListBreakpoints(ListBreakpointsRequest request, CallOptions options)

Lists all breakpoints for the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListBreakpointsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListBreakpointsResponse` | The response received from the server. |

### ListBreakpoints(ListBreakpointsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListBreakpointsResponse ListBreakpoints(ListBreakpointsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all breakpoints for the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListBreakpointsRequest` 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** |
| `ListBreakpointsResponse` | The response received from the server. |

### ListBreakpointsAsync(ListBreakpointsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListBreakpointsResponse> ListBreakpointsAsync(ListBreakpointsRequest request, CallOptions options)

Lists all breakpoints for the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListBreakpointsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListBreakpointsResponse` | The call object. |

### ListBreakpointsAsync(ListBreakpointsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListBreakpointsResponse> ListBreakpointsAsync(ListBreakpointsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all breakpoints for the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListBreakpointsRequest` 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** |
| `AsyncUnaryCallListBreakpointsResponse` | The call object. |

### ListDebuggees(ListDebuggeesRequest, CallOptions)

    public virtual ListDebuggeesResponse ListDebuggees(ListDebuggeesRequest request, CallOptions options)

Lists all the debuggees that the user has access to.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDebuggeesRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListDebuggeesResponse` | The response received from the server. |

### ListDebuggees(ListDebuggeesRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListDebuggeesResponse ListDebuggees(ListDebuggeesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all the debuggees that the user has access to.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDebuggeesRequest` 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** |
| `ListDebuggeesResponse` | The response received from the server. |

### ListDebuggeesAsync(ListDebuggeesRequest, CallOptions)

    public virtual AsyncUnaryCall<ListDebuggeesResponse> ListDebuggeesAsync(ListDebuggeesRequest request, CallOptions options)

Lists all the debuggees that the user has access to.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDebuggeesRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListDebuggeesResponse` | The call object. |

### ListDebuggeesAsync(ListDebuggeesRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListDebuggeesResponse> ListDebuggeesAsync(ListDebuggeesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all the debuggees that the user has access to.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDebuggeesRequest` 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** |
| `AsyncUnaryCallListDebuggeesResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override Debugger2.Debugger2Client NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Debugger2Debugger2Client` |   |

**Overrides** [ClientBase\<Debugger2.Debugger2Client\>.NewInstance(ClientBase.ClientBaseConfiguration)](https://github.com/grpc/grpc-dotnet/blob/6e6bcb5a10588f4853cf32aab0195346768a2a36/src/Grpc.Core.Api/ClientBase.cs)

### SetBreakpoint(SetBreakpointRequest, CallOptions)

    public virtual SetBreakpointResponse SetBreakpoint(SetBreakpointRequest request, CallOptions options)

Sets the breakpoint to the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SetBreakpointRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SetBreakpointResponse` | The response received from the server. |

### SetBreakpoint(SetBreakpointRequest, Metadata, DateTime?, CancellationToken)

    public virtual SetBreakpointResponse SetBreakpoint(SetBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the breakpoint to the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SetBreakpointRequest` 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** |
| `SetBreakpointResponse` | The response received from the server. |

### SetBreakpointAsync(SetBreakpointRequest, CallOptions)

    public virtual AsyncUnaryCall<SetBreakpointResponse> SetBreakpointAsync(SetBreakpointRequest request, CallOptions options)

Sets the breakpoint to the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SetBreakpointRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallSetBreakpointResponse` | The call object. |

### SetBreakpointAsync(SetBreakpointRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SetBreakpointResponse> SetBreakpointAsync(SetBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the breakpoint to the debuggee.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SetBreakpointRequest` 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** |
| `AsyncUnaryCallSetBreakpointResponse` | The call object. |