# Cloud Natural Language v2 API - Class LanguageServiceClientImpl (1.0.0-beta06)

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

- [1.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClientImpl)
- [1.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/1.0.0-beta05/Google.Cloud.Language.V2.LanguageServiceClientImpl)

    public sealed class LanguageServiceClientImpl : LanguageServiceClient

Reference documentation and code samples for the Cloud Natural Language v2 API class LanguageServiceClientImpl.

LanguageService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [LanguageServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient) \> LanguageServiceClientImpl

## Inherited Members

[LanguageServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_DefaultEndpoint) [LanguageServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_DefaultScopes) [LanguageServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ServiceMetadata) [LanguageServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_CreateAsync_System_Threading_CancellationToken_) [LanguageServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_Create) [LanguageServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ShutdownDefaultChannelsAsync) [LanguageServiceClient.AnalyzeSentimentAsync(AnalyzeSentimentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentimentAsync_Google_Cloud_Language_V2_AnalyzeSentimentRequest_System_Threading_CancellationToken_) [LanguageServiceClient.AnalyzeSentiment(Document, EncodingType, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentiment_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_EncodingType_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeSentimentAsync(Document, EncodingType, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentimentAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_EncodingType_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeSentimentAsync(Document, EncodingType, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentimentAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_EncodingType_System_Threading_CancellationToken_) [LanguageServiceClient.AnalyzeSentiment(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentiment_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeSentimentAsync(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentimentAsync_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeSentimentAsync(Document, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentimentAsync_Google_Cloud_Language_V2_Document_System_Threading_CancellationToken_) [LanguageServiceClient.AnalyzeEntitiesAsync(AnalyzeEntitiesRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntitiesAsync_Google_Cloud_Language_V2_AnalyzeEntitiesRequest_System_Threading_CancellationToken_) [LanguageServiceClient.AnalyzeEntities(Document, EncodingType, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntities_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_EncodingType_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeEntitiesAsync(Document, EncodingType, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntitiesAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_EncodingType_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeEntitiesAsync(Document, EncodingType, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntitiesAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_EncodingType_System_Threading_CancellationToken_) [LanguageServiceClient.AnalyzeEntities(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntities_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeEntitiesAsync(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntitiesAsync_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnalyzeEntitiesAsync(Document, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntitiesAsync_Google_Cloud_Language_V2_Document_System_Threading_CancellationToken_) [LanguageServiceClient.ClassifyTextAsync(ClassifyTextRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ClassifyTextAsync_Google_Cloud_Language_V2_ClassifyTextRequest_System_Threading_CancellationToken_) [LanguageServiceClient.ClassifyText(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ClassifyText_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.ClassifyTextAsync(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ClassifyTextAsync_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.ClassifyTextAsync(Document, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ClassifyTextAsync_Google_Cloud_Language_V2_Document_System_Threading_CancellationToken_) [LanguageServiceClient.ModerateTextAsync(ModerateTextRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ModerateTextAsync_Google_Cloud_Language_V2_ModerateTextRequest_System_Threading_CancellationToken_) [LanguageServiceClient.ModerateText(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ModerateText_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.ModerateTextAsync(Document, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ModerateTextAsync_Google_Cloud_Language_V2_Document_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.ModerateTextAsync(Document, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ModerateTextAsync_Google_Cloud_Language_V2_Document_System_Threading_CancellationToken_) [LanguageServiceClient.AnnotateTextAsync(AnnotateTextRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateTextAsync_Google_Cloud_Language_V2_AnnotateTextRequest_System_Threading_CancellationToken_) [LanguageServiceClient.AnnotateText(Document, AnnotateTextRequest.Types.Features, EncodingType, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateText_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_AnnotateTextRequest_Types_Features_Google_Cloud_Language_V2_EncodingType_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnnotateTextAsync(Document, AnnotateTextRequest.Types.Features, EncodingType, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateTextAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_AnnotateTextRequest_Types_Features_Google_Cloud_Language_V2_EncodingType_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnnotateTextAsync(Document, AnnotateTextRequest.Types.Features, EncodingType, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateTextAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_AnnotateTextRequest_Types_Features_Google_Cloud_Language_V2_EncodingType_System_Threading_CancellationToken_) [LanguageServiceClient.AnnotateText(Document, AnnotateTextRequest.Types.Features, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateText_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_AnnotateTextRequest_Types_Features_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnnotateTextAsync(Document, AnnotateTextRequest.Types.Features, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateTextAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_AnnotateTextRequest_Types_Features_Google_Api_Gax_Grpc_CallSettings_) [LanguageServiceClient.AnnotateTextAsync(Document, AnnotateTextRequest.Types.Features, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateTextAsync_Google_Cloud_Language_V2_Document_Google_Cloud_Language_V2_AnnotateTextRequest_Types_Features_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Language.V2.dll

## Remarks

Provides text analysis operations such as sentiment analysis and entity
recognition.

## Constructors

### LanguageServiceClientImpl(LanguageServiceClient, LanguageServiceSettings, ILogger)

    public LanguageServiceClientImpl(LanguageService.LanguageServiceClient grpcClient, LanguageServiceSettings settings, ILogger logger)

Constructs a client wrapper for the LanguageService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageService.LanguageServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceSettings` The base [LanguageServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override LanguageService.LanguageServiceClient GrpcClient { get; }

The underlying gRPC LanguageService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageService.LanguageServiceClient` |   |

**Overrides** [LanguageServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_GrpcClient)

## Methods

### AnalyzeEntities(AnalyzeEntitiesRequest, CallSettings)

    public override AnalyzeEntitiesResponse AnalyzeEntities(AnalyzeEntitiesRequest request, CallSettings callSettings = null)

Finds named entities (currently proper names and common nouns) in the text
along with entity types, probability, mentions for each entity, and
other properties.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeEntitiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeEntitiesResponse` | The RPC response. |

**Overrides** [LanguageServiceClient.AnalyzeEntities(AnalyzeEntitiesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntities_Google_Cloud_Language_V2_AnalyzeEntitiesRequest_Google_Api_Gax_Grpc_CallSettings_)

### AnalyzeEntitiesAsync(AnalyzeEntitiesRequest, CallSettings)

    public override Task<AnalyzeEntitiesResponse> AnalyzeEntitiesAsync(AnalyzeEntitiesRequest request, CallSettings callSettings = null)

Finds named entities (currently proper names and common nouns) in the text
along with entity types, probability, mentions for each entity, and
other properties.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeEntitiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeEntitiesResponse` | A Task containing the RPC response. |

**Overrides** [LanguageServiceClient.AnalyzeEntitiesAsync(AnalyzeEntitiesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeEntitiesAsync_Google_Cloud_Language_V2_AnalyzeEntitiesRequest_Google_Api_Gax_Grpc_CallSettings_)

### AnalyzeSentiment(AnalyzeSentimentRequest, CallSettings)

    public override AnalyzeSentimentResponse AnalyzeSentiment(AnalyzeSentimentRequest request, CallSettings callSettings = null)

Analyzes the sentiment of the provided text.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeSentimentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeSentimentResponse` | The RPC response. |

**Overrides** [LanguageServiceClient.AnalyzeSentiment(AnalyzeSentimentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentiment_Google_Cloud_Language_V2_AnalyzeSentimentRequest_Google_Api_Gax_Grpc_CallSettings_)

### AnalyzeSentimentAsync(AnalyzeSentimentRequest, CallSettings)

    public override Task<AnalyzeSentimentResponse> AnalyzeSentimentAsync(AnalyzeSentimentRequest request, CallSettings callSettings = null)

Analyzes the sentiment of the provided text.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeSentimentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnalyzeSentimentResponse` | A Task containing the RPC response. |

**Overrides** [LanguageServiceClient.AnalyzeSentimentAsync(AnalyzeSentimentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnalyzeSentimentAsync_Google_Cloud_Language_V2_AnalyzeSentimentRequest_Google_Api_Gax_Grpc_CallSettings_)

### AnnotateText(AnnotateTextRequest, CallSettings)

    public override AnnotateTextResponse AnnotateText(AnnotateTextRequest request, CallSettings callSettings = null)

A convenience method that provides all features in one call.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnnotateTextRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnnotateTextResponse` | The RPC response. |

**Overrides** [LanguageServiceClient.AnnotateText(AnnotateTextRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateText_Google_Cloud_Language_V2_AnnotateTextRequest_Google_Api_Gax_Grpc_CallSettings_)

### AnnotateTextAsync(AnnotateTextRequest, CallSettings)

    public override Task<AnnotateTextResponse> AnnotateTextAsync(AnnotateTextRequest request, CallSettings callSettings = null)

A convenience method that provides all features in one call.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnnotateTextRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.AnnotateTextResponse` | A Task containing the RPC response. |

**Overrides** [LanguageServiceClient.AnnotateTextAsync(AnnotateTextRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_AnnotateTextAsync_Google_Cloud_Language_V2_AnnotateTextRequest_Google_Api_Gax_Grpc_CallSettings_)

### ClassifyText(ClassifyTextRequest, CallSettings)

    public override ClassifyTextResponse ClassifyText(ClassifyTextRequest request, CallSettings callSettings = null)

Classifies a document into categories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ClassifyTextRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ClassifyTextResponse` | The RPC response. |

**Overrides** [LanguageServiceClient.ClassifyText(ClassifyTextRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ClassifyText_Google_Cloud_Language_V2_ClassifyTextRequest_Google_Api_Gax_Grpc_CallSettings_)

### ClassifyTextAsync(ClassifyTextRequest, CallSettings)

    public override Task<ClassifyTextResponse> ClassifyTextAsync(ClassifyTextRequest request, CallSettings callSettings = null)

Classifies a document into categories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ClassifyTextRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ClassifyTextResponse` | A Task containing the RPC response. |

**Overrides** [LanguageServiceClient.ClassifyTextAsync(ClassifyTextRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ClassifyTextAsync_Google_Cloud_Language_V2_ClassifyTextRequest_Google_Api_Gax_Grpc_CallSettings_)

### ModerateText(ModerateTextRequest, CallSettings)

    public override ModerateTextResponse ModerateText(ModerateTextRequest request, CallSettings callSettings = null)

Moderates a document for harmful and sensitive categories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ModerateTextRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ModerateTextResponse` | The RPC response. |

**Overrides** [LanguageServiceClient.ModerateText(ModerateTextRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ModerateText_Google_Cloud_Language_V2_ModerateTextRequest_Google_Api_Gax_Grpc_CallSettings_)

### ModerateTextAsync(ModerateTextRequest, CallSettings)

    public override Task<ModerateTextResponse> ModerateTextAsync(ModerateTextRequest request, CallSettings callSettings = null)

Moderates a document for harmful and sensitive categories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ModerateTextRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.ModerateTextResponse` | A Task containing the RPC response. |

**Overrides** [LanguageServiceClient.ModerateTextAsync(ModerateTextRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V2/latest/Google.Cloud.Language.V2.LanguageServiceClient#Google_Cloud_Language_V2_LanguageServiceClient_ModerateTextAsync_Google_Cloud_Language_V2_ModerateTextRequest_Google_Api_Gax_Grpc_CallSettings_)