Class LanguageService.LanguageServiceClient (2.2.0)

public class LanguageServiceClient : ClientBase<LanguageService.LanguageServiceClient>

Client for LanguageService

Inheritance

Object > ClientBase > ClientBase<LanguageService.LanguageServiceClient> > LanguageService.LanguageServiceClient

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

LanguageServiceClient()

protected LanguageServiceClient()

Protected parameterless constructor to allow creation of test doubles.

LanguageServiceClient(CallInvoker)

public LanguageServiceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

LanguageServiceClient(Channel)

[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public LanguageServiceClient(Channel channel)

Creates a new client using a channel.

Parameter
Name Description
channel Grpc.Core.Channel

The channel to use to make remote calls.

LanguageServiceClient(ChannelBase)

public LanguageServiceClient(ChannelBase channel)

Creates a new client for LanguageService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

LanguageServiceClient(ClientBase.ClientBaseConfiguration)

protected LanguageServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBase.ClientBaseConfiguration

The client configuration.

Methods

AnalyzeEntities(AnalyzeEntitiesRequest, CallOptions)

public virtual AnalyzeEntitiesResponse AnalyzeEntities(AnalyzeEntitiesRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AnalyzeEntitiesResponse

The response received from the server.

AnalyzeEntities(AnalyzeEntitiesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AnalyzeEntitiesResponse AnalyzeEntities(AnalyzeEntitiesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AnalyzeEntitiesResponse

The response received from the server.

AnalyzeEntitiesAsync(AnalyzeEntitiesRequest, CallOptions)

public virtual AsyncUnaryCall<AnalyzeEntitiesResponse> AnalyzeEntitiesAsync(AnalyzeEntitiesRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeEntitiesResponse>

The call object.

AnalyzeEntitiesAsync(AnalyzeEntitiesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<AnalyzeEntitiesResponse> AnalyzeEntitiesAsync(AnalyzeEntitiesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeEntitiesResponse>

The call object.

AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest, CallOptions)

public virtual AnalyzeEntitySentimentResponse AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AnalyzeEntitySentimentResponse

The response received from the server.

AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AnalyzeEntitySentimentResponse AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AnalyzeEntitySentimentResponse

The response received from the server.

AnalyzeEntitySentimentAsync(AnalyzeEntitySentimentRequest, CallOptions)

public virtual AsyncUnaryCall<AnalyzeEntitySentimentResponse> AnalyzeEntitySentimentAsync(AnalyzeEntitySentimentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeEntitySentimentResponse>

The call object.

AnalyzeEntitySentimentAsync(AnalyzeEntitySentimentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<AnalyzeEntitySentimentResponse> AnalyzeEntitySentimentAsync(AnalyzeEntitySentimentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeEntitySentimentResponse>

The call object.

AnalyzeSentiment(AnalyzeSentimentRequest, CallOptions)

public virtual AnalyzeSentimentResponse AnalyzeSentiment(AnalyzeSentimentRequest request, CallOptions options)

Analyzes the sentiment of the provided text.

Parameters
Name Description
request AnalyzeSentimentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AnalyzeSentimentResponse

The response received from the server.

AnalyzeSentiment(AnalyzeSentimentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AnalyzeSentimentResponse AnalyzeSentiment(AnalyzeSentimentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Analyzes the sentiment of the provided text.

Parameters
Name Description
request AnalyzeSentimentRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AnalyzeSentimentResponse

The response received from the server.

AnalyzeSentimentAsync(AnalyzeSentimentRequest, CallOptions)

public virtual AsyncUnaryCall<AnalyzeSentimentResponse> AnalyzeSentimentAsync(AnalyzeSentimentRequest request, CallOptions options)

Analyzes the sentiment of the provided text.

Parameters
Name Description
request AnalyzeSentimentRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeSentimentResponse>

The call object.

AnalyzeSentimentAsync(AnalyzeSentimentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<AnalyzeSentimentResponse> AnalyzeSentimentAsync(AnalyzeSentimentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Analyzes the sentiment of the provided text.

Parameters
Name Description
request AnalyzeSentimentRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeSentimentResponse>

The call object.

AnalyzeSyntax(AnalyzeSyntaxRequest, CallOptions)

public virtual AnalyzeSyntaxResponse AnalyzeSyntax(AnalyzeSyntaxRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AnalyzeSyntaxResponse

The response received from the server.

AnalyzeSyntax(AnalyzeSyntaxRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AnalyzeSyntaxResponse AnalyzeSyntax(AnalyzeSyntaxRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AnalyzeSyntaxResponse

The response received from the server.

AnalyzeSyntaxAsync(AnalyzeSyntaxRequest, CallOptions)

public virtual AsyncUnaryCall<AnalyzeSyntaxResponse> AnalyzeSyntaxAsync(AnalyzeSyntaxRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeSyntaxResponse>

The call object.

AnalyzeSyntaxAsync(AnalyzeSyntaxRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<AnalyzeSyntaxResponse> AnalyzeSyntaxAsync(AnalyzeSyntaxRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<AnalyzeSyntaxResponse>

The call object.

AnnotateText(AnnotateTextRequest, CallOptions)

public virtual AnnotateTextResponse AnnotateText(AnnotateTextRequest request, CallOptions options)

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Parameters
Name Description
request AnnotateTextRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AnnotateTextResponse

The response received from the server.

AnnotateText(AnnotateTextRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AnnotateTextResponse AnnotateText(AnnotateTextRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Parameters
Name Description
request AnnotateTextRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AnnotateTextResponse

The response received from the server.

AnnotateTextAsync(AnnotateTextRequest, CallOptions)

public virtual AsyncUnaryCall<AnnotateTextResponse> AnnotateTextAsync(AnnotateTextRequest request, CallOptions options)

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Parameters
Name Description
request AnnotateTextRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<AnnotateTextResponse>

The call object.

AnnotateTextAsync(AnnotateTextRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<AnnotateTextResponse> AnnotateTextAsync(AnnotateTextRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Parameters
Name Description
request AnnotateTextRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<AnnotateTextResponse>

The call object.

ClassifyText(ClassifyTextRequest, CallOptions)

public virtual ClassifyTextResponse ClassifyText(ClassifyTextRequest request, CallOptions options)

Classifies a document into categories.

Parameters
Name Description
request ClassifyTextRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ClassifyTextResponse

The response received from the server.

ClassifyText(ClassifyTextRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ClassifyTextResponse ClassifyText(ClassifyTextRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Classifies a document into categories.

Parameters
Name Description
request ClassifyTextRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ClassifyTextResponse

The response received from the server.

ClassifyTextAsync(ClassifyTextRequest, CallOptions)

public virtual AsyncUnaryCall<ClassifyTextResponse> ClassifyTextAsync(ClassifyTextRequest request, CallOptions options)

Classifies a document into categories.

Parameters
Name Description
request ClassifyTextRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCall<ClassifyTextResponse>

The call object.

ClassifyTextAsync(ClassifyTextRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ClassifyTextResponse> ClassifyTextAsync(ClassifyTextRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Classifies a document into categories.

Parameters
Name Description
request ClassifyTextRequest

The request to send to the server.

headers Metadata

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

deadline Nullable<DateTime>

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ClassifyTextResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override LanguageService.LanguageServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBase.ClientBaseConfiguration
Returns
Type Description
LanguageService.LanguageServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Language.V1.LanguageService.LanguageServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)