Google Cloud Debugger v2 API - Class Controller2.Controller2Client (3.2.0)

public class Controller2.Controller2Client : ClientBase<Controller2.Controller2Client>

Reference documentation and code samples for the Google Cloud Debugger v2 API class Controller2.Controller2Client.

Client for Controller2

Inheritance

object > ClientBase > ClientBaseController2Controller2Client > Controller2.Controller2Client

Namespace

Google.Cloud.Debugger.V2

Assembly

Google.Cloud.Debugger.V2.dll

Constructors

Controller2Client()

protected Controller2Client()

Protected parameterless constructor to allow creation of test doubles.

Controller2Client(CallInvoker)

public Controller2Client(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

Controller2Client(ChannelBase)

public Controller2Client(ChannelBase channel)

Creates a new client for Controller2

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

Controller2Client(ClientBaseConfiguration)

protected Controller2Client(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

ListActiveBreakpoints(ListActiveBreakpointsRequest, CallOptions)

public virtual ListActiveBreakpointsResponse ListActiveBreakpoints(ListActiveBreakpointsRequest request, CallOptions options)

Returns the list of all active breakpoints for the debuggee.

The breakpoint specification (location, condition, and expressions fields) is semantically immutable, although the field values may change. For example, an agent may update the location line number to reflect the actual line where the breakpoint was set, but this doesn't change the breakpoint semantics.

This means that an agent does not need to check if a breakpoint has changed when it encounters the same breakpoint on a successive call. Moreover, an agent should remember the breakpoints that are completed until the controller removes them from the active list to avoid setting those breakpoints again.

Parameters
NameDescription
requestListActiveBreakpointsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListActiveBreakpointsResponse

The response received from the server.

ListActiveBreakpoints(ListActiveBreakpointsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListActiveBreakpointsResponse ListActiveBreakpoints(ListActiveBreakpointsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all active breakpoints for the debuggee.

The breakpoint specification (location, condition, and expressions fields) is semantically immutable, although the field values may change. For example, an agent may update the location line number to reflect the actual line where the breakpoint was set, but this doesn't change the breakpoint semantics.

This means that an agent does not need to check if a breakpoint has changed when it encounters the same breakpoint on a successive call. Moreover, an agent should remember the breakpoints that are completed until the controller removes them from the active list to avoid setting those breakpoints again.

Parameters
NameDescription
requestListActiveBreakpointsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListActiveBreakpointsResponse

The response received from the server.

ListActiveBreakpointsAsync(ListActiveBreakpointsRequest, CallOptions)

public virtual AsyncUnaryCall<ListActiveBreakpointsResponse> ListActiveBreakpointsAsync(ListActiveBreakpointsRequest request, CallOptions options)

Returns the list of all active breakpoints for the debuggee.

The breakpoint specification (location, condition, and expressions fields) is semantically immutable, although the field values may change. For example, an agent may update the location line number to reflect the actual line where the breakpoint was set, but this doesn't change the breakpoint semantics.

This means that an agent does not need to check if a breakpoint has changed when it encounters the same breakpoint on a successive call. Moreover, an agent should remember the breakpoints that are completed until the controller removes them from the active list to avoid setting those breakpoints again.

Parameters
NameDescription
requestListActiveBreakpointsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListActiveBreakpointsResponse

The call object.

ListActiveBreakpointsAsync(ListActiveBreakpointsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListActiveBreakpointsResponse> ListActiveBreakpointsAsync(ListActiveBreakpointsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all active breakpoints for the debuggee.

The breakpoint specification (location, condition, and expressions fields) is semantically immutable, although the field values may change. For example, an agent may update the location line number to reflect the actual line where the breakpoint was set, but this doesn't change the breakpoint semantics.

This means that an agent does not need to check if a breakpoint has changed when it encounters the same breakpoint on a successive call. Moreover, an agent should remember the breakpoints that are completed until the controller removes them from the active list to avoid setting those breakpoints again.

Parameters
NameDescription
requestListActiveBreakpointsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListActiveBreakpointsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Controller2.Controller2Client NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
Controller2Controller2Client
Overrides

RegisterDebuggee(RegisterDebuggeeRequest, CallOptions)

public virtual RegisterDebuggeeResponse RegisterDebuggee(RegisterDebuggeeRequest request, CallOptions options)

Registers the debuggee with the controller service.

All agents attached to the same application must call this method with exactly the same request content to get back the same stable debuggee_id. Agents should call this method again whenever google.rpc.Code.NOT_FOUND is returned from any controller method.

This protocol allows the controller service to disable debuggees, recover from data loss, or change the debuggee_id format. Agents must handle debuggee_id value changing upon re-registration.

Parameters
NameDescription
requestRegisterDebuggeeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RegisterDebuggeeResponse

The response received from the server.

RegisterDebuggee(RegisterDebuggeeRequest, Metadata, DateTime?, CancellationToken)

public virtual RegisterDebuggeeResponse RegisterDebuggee(RegisterDebuggeeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Registers the debuggee with the controller service.

All agents attached to the same application must call this method with exactly the same request content to get back the same stable debuggee_id. Agents should call this method again whenever google.rpc.Code.NOT_FOUND is returned from any controller method.

This protocol allows the controller service to disable debuggees, recover from data loss, or change the debuggee_id format. Agents must handle debuggee_id value changing upon re-registration.

Parameters
NameDescription
requestRegisterDebuggeeRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
RegisterDebuggeeResponse

The response received from the server.

RegisterDebuggeeAsync(RegisterDebuggeeRequest, CallOptions)

public virtual AsyncUnaryCall<RegisterDebuggeeResponse> RegisterDebuggeeAsync(RegisterDebuggeeRequest request, CallOptions options)

Registers the debuggee with the controller service.

All agents attached to the same application must call this method with exactly the same request content to get back the same stable debuggee_id. Agents should call this method again whenever google.rpc.Code.NOT_FOUND is returned from any controller method.

This protocol allows the controller service to disable debuggees, recover from data loss, or change the debuggee_id format. Agents must handle debuggee_id value changing upon re-registration.

Parameters
NameDescription
requestRegisterDebuggeeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallRegisterDebuggeeResponse

The call object.

RegisterDebuggeeAsync(RegisterDebuggeeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<RegisterDebuggeeResponse> RegisterDebuggeeAsync(RegisterDebuggeeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Registers the debuggee with the controller service.

All agents attached to the same application must call this method with exactly the same request content to get back the same stable debuggee_id. Agents should call this method again whenever google.rpc.Code.NOT_FOUND is returned from any controller method.

This protocol allows the controller service to disable debuggees, recover from data loss, or change the debuggee_id format. Agents must handle debuggee_id value changing upon re-registration.

Parameters
NameDescription
requestRegisterDebuggeeRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallRegisterDebuggeeResponse

The call object.

UpdateActiveBreakpoint(UpdateActiveBreakpointRequest, CallOptions)

public virtual UpdateActiveBreakpointResponse UpdateActiveBreakpoint(UpdateActiveBreakpointRequest request, CallOptions options)

Updates the breakpoint state or mutable fields. The entire Breakpoint message must be sent back to the controller service.

Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the location, condition and expressions fields should not alter the breakpoint semantics. These may only make changes such as canonicalizing a value or snapping the location to the correct line of code.

Parameters
NameDescription
requestUpdateActiveBreakpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
UpdateActiveBreakpointResponse

The response received from the server.

UpdateActiveBreakpoint(UpdateActiveBreakpointRequest, Metadata, DateTime?, CancellationToken)

public virtual UpdateActiveBreakpointResponse UpdateActiveBreakpoint(UpdateActiveBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the breakpoint state or mutable fields. The entire Breakpoint message must be sent back to the controller service.

Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the location, condition and expressions fields should not alter the breakpoint semantics. These may only make changes such as canonicalizing a value or snapping the location to the correct line of code.

Parameters
NameDescription
requestUpdateActiveBreakpointRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
UpdateActiveBreakpointResponse

The response received from the server.

UpdateActiveBreakpointAsync(UpdateActiveBreakpointRequest, CallOptions)

public virtual AsyncUnaryCall<UpdateActiveBreakpointResponse> UpdateActiveBreakpointAsync(UpdateActiveBreakpointRequest request, CallOptions options)

Updates the breakpoint state or mutable fields. The entire Breakpoint message must be sent back to the controller service.

Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the location, condition and expressions fields should not alter the breakpoint semantics. These may only make changes such as canonicalizing a value or snapping the location to the correct line of code.

Parameters
NameDescription
requestUpdateActiveBreakpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallUpdateActiveBreakpointResponse

The call object.

UpdateActiveBreakpointAsync(UpdateActiveBreakpointRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UpdateActiveBreakpointResponse> UpdateActiveBreakpointAsync(UpdateActiveBreakpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the breakpoint state or mutable fields. The entire Breakpoint message must be sent back to the controller service.

Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the location, condition and expressions fields should not alter the breakpoint semantics. These may only make changes such as canonicalizing a value or snapping the location to the correct line of code.

Parameters
NameDescription
requestUpdateActiveBreakpointRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallUpdateActiveBreakpointResponse

The call object.