# Google Cloud Trace v1 API - Class TraceService.TraceServiceBase (3.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/3.4.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/3.3.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/3.2.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/3.1.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/3.0.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/2.3.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/2.2.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)

    [BindServiceMethod(typeof(TraceService), "BindService")]
    public abstract class TraceService.TraceServiceBase

Reference documentation and code samples for the Google Cloud Trace v1 API class TraceService.TraceServiceBase.

Base class for server-side implementations of TraceService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TraceService.TraceServiceBase

## Inherited Members

[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.Trace.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1)

## Assembly

Google.Cloud.Trace.V1.dll

## Methods

### GetTrace(GetTraceRequest, ServerCallContext)

    public virtual Task<Trace> GetTrace(GetTraceRequest request, ServerCallContext context)

Gets a single trace by its ID.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.GetTraceRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.Trace` | The response to send back to the client (wrapped by a task). |

### ListTraces(ListTracesRequest, ServerCallContext)

    public virtual Task<ListTracesResponse> ListTraces(ListTracesRequest request, ServerCallContext context)

Returns of a list of traces that match the specified filter conditions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.ListTracesRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.ListTracesResponse` | The response to send back to the client (wrapped by a task). |

### PatchTraces(PatchTracesRequest, ServerCallContext)

    public virtual Task<Empty> PatchTraces(PatchTracesRequest request, ServerCallContext context)

Sends new traces to Stackdriver Trace or updates existing traces. If the ID
of a trace that you send matches that of an existing trace, any fields
in the existing trace and its spans are overwritten by the provided values,
and any new fields provided are merged with the existing trace data. If the
ID does not match, a new trace is created.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.PatchTracesRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |