# Interface IClientServiceRequest&lt;TResponse&gt; (1.73.0)

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

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest-1)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Requests.IClientServiceRequest-1)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Requests.IClientServiceRequest-1)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Requests.IClientServiceRequest-1)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Requests.IClientServiceRequest-1)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Requests.IClientServiceRequest-1)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Requests.IClientServiceRequest-1)

    public interface IClientServiceRequest<TResponse> : IClientServiceRequest

A client service request which inherits from [IClientServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest) and represents a specific
service request with the given response type. It supports both sync and async execution to get the response.

## Inherited Members

[IClientServiceRequest.MethodName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_MethodName) [IClientServiceRequest.RestPath](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_RestPath) [IClientServiceRequest.HttpMethod](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_HttpMethod) [IClientServiceRequest.RequestParameters](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_RequestParameters) [IClientServiceRequest.Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_Service) [IClientServiceRequest.CreateRequest(bool?)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_CreateRequest_System_Nullable_System_Boolean__) [IClientServiceRequest.ExecuteAsStreamAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_ExecuteAsStreamAsync) [IClientServiceRequest.ExecuteAsStreamAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_ExecuteAsStreamAsync_System_Threading_CancellationToken_) [IClientServiceRequest.ExecuteAsStream()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.IClientServiceRequest#Google_Apis_Requests_IClientServiceRequest_ExecuteAsStream)

## Namespace

[Google.Apis.Requests](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests)

## Assembly

Google.Apis.dll

| ## Type Parameter ||
|---|---|
| **Name** | **Description** |
| `TResponse` |   |

## Methods

### Execute()

    TResponse Execute()

Executes the request and returns the result object.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TResponse` |   |

### ExecuteAsync()

    Task<TResponse> ExecuteAsync()

Executes the request asynchronously and returns the result object.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1` |   |

### ExecuteAsync(CancellationToken)

    Task<TResponse> ExecuteAsync(CancellationToken cancellationToken)

Executes the request asynchronously and returns the result object.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A cancellation token to cancel operation. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1` |   |

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)