public sealed class LanguageServiceClientImpl : LanguageServiceClient
Reference documentation and code samples for the Google Cloud Natural Language v1 API class LanguageServiceClientImpl.
LanguageService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.dll
Remarks
Provides text analysis operations such as sentiment analysis and entity recognition.
Constructors
LanguageServiceClientImpl(LanguageService.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 | LanguageService.LanguageServiceClient The underlying gRPC client. |
settings | LanguageServiceSettings The base LanguageServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override LanguageService.LanguageServiceClient GrpcClient { get; }
The underlying gRPC LanguageService client
Property Value | |
---|---|
Type | Description |
LanguageService.LanguageServiceClient |
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, salience, mentions for each entity, and other properties.
Parameters | |
---|---|
Name | Description |
request | AnalyzeEntitiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnalyzeEntitiesResponse | The RPC response. |
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, salience, mentions for each entity, and other properties.
Parameters | |
---|---|
Name | Description |
request | AnalyzeEntitiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnalyzeEntitiesResponse> | A Task containing the RPC response. |
AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest, CallSettings)
public override AnalyzeEntitySentimentResponse AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest request, CallSettings callSettings = null)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
Parameters | |
---|---|
Name | Description |
request | AnalyzeEntitySentimentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnalyzeEntitySentimentResponse | The RPC response. |
AnalyzeEntitySentimentAsync(AnalyzeEntitySentimentRequest, CallSettings)
public override Task<AnalyzeEntitySentimentResponse> AnalyzeEntitySentimentAsync(AnalyzeEntitySentimentRequest request, CallSettings callSettings = null)
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
Parameters | |
---|---|
Name | Description |
request | AnalyzeEntitySentimentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnalyzeEntitySentimentResponse> | A Task containing the RPC response. |
AnalyzeSentiment(AnalyzeSentimentRequest, CallSettings)
public override AnalyzeSentimentResponse AnalyzeSentiment(AnalyzeSentimentRequest request, CallSettings callSettings = null)
Analyzes the sentiment of the provided text.
Parameters | |
---|---|
Name | Description |
request | AnalyzeSentimentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse | The RPC response. |
AnalyzeSentimentAsync(AnalyzeSentimentRequest, CallSettings)
public override Task<AnalyzeSentimentResponse> AnalyzeSentimentAsync(AnalyzeSentimentRequest request, CallSettings callSettings = null)
Analyzes the sentiment of the provided text.
Parameters | |
---|---|
Name | Description |
request | AnalyzeSentimentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnalyzeSentimentResponse> | A Task containing the RPC response. |
AnalyzeSyntax(AnalyzeSyntaxRequest, CallSettings)
public override AnalyzeSyntaxResponse AnalyzeSyntax(AnalyzeSyntaxRequest request, CallSettings callSettings = null)
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
Parameters | |
---|---|
Name | Description |
request | AnalyzeSyntaxRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse | The RPC response. |
AnalyzeSyntaxAsync(AnalyzeSyntaxRequest, CallSettings)
public override Task<AnalyzeSyntaxResponse> AnalyzeSyntaxAsync(AnalyzeSyntaxRequest request, CallSettings callSettings = null)
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
Parameters | |
---|---|
Name | Description |
request | AnalyzeSyntaxRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnalyzeSyntaxResponse> | A Task containing the RPC response. |
AnnotateText(AnnotateTextRequest, CallSettings)
public override AnnotateTextResponse AnnotateText(AnnotateTextRequest request, CallSettings callSettings = null)
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
Parameters | |
---|---|
Name | Description |
request | AnnotateTextRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnnotateTextResponse | The RPC response. |
AnnotateTextAsync(AnnotateTextRequest, CallSettings)
public override Task<AnnotateTextResponse> AnnotateTextAsync(AnnotateTextRequest request, CallSettings callSettings = null)
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
Parameters | |
---|---|
Name | Description |
request | AnnotateTextRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnnotateTextResponse> | A Task containing the RPC response. |
ClassifyText(ClassifyTextRequest, CallSettings)
public override ClassifyTextResponse ClassifyText(ClassifyTextRequest request, CallSettings callSettings = null)
Classifies a document into categories.
Parameters | |
---|---|
Name | Description |
request | ClassifyTextRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ClassifyTextResponse | The RPC response. |
ClassifyTextAsync(ClassifyTextRequest, CallSettings)
public override Task<ClassifyTextResponse> ClassifyTextAsync(ClassifyTextRequest request, CallSettings callSettings = null)
Classifies a document into categories.
Parameters | |
---|---|
Name | Description |
request | ClassifyTextRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ClassifyTextResponse> | A Task containing the RPC response. |