Class protos.google.cloud.language.v1beta2.LanguageService (4.2.9)

Represents a LanguageService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.language.v1beta2.LanguageService

Package

@google-cloud/language!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new LanguageService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

analyzeEntities(request, callback)

public analyzeEntities(request: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeEntitiesCallback): void;

Calls AnalyzeEntities.

Parameters
NameDescription
request IAnalyzeEntitiesRequest

AnalyzeEntitiesRequest message or plain object

callback google.cloud.language.v1beta2.LanguageService.AnalyzeEntitiesCallback

Node-style callback called with the error, if any, and AnalyzeEntitiesResponse

Returns
TypeDescription
void

analyzeEntities(request)

public analyzeEntities(request: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest): Promise<google.cloud.language.v1beta2.AnalyzeEntitiesResponse>;

Calls AnalyzeEntities.

Parameter
NameDescription
request IAnalyzeEntitiesRequest

AnalyzeEntitiesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.language.v1beta2.AnalyzeEntitiesResponse>

Promise

analyzeEntitySentiment(request, callback)

public analyzeEntitySentiment(request: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentimentCallback): void;

Calls AnalyzeEntitySentiment.

Parameters
NameDescription
request IAnalyzeEntitySentimentRequest

AnalyzeEntitySentimentRequest message or plain object

callback google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentimentCallback

Node-style callback called with the error, if any, and AnalyzeEntitySentimentResponse

Returns
TypeDescription
void

analyzeEntitySentiment(request)

public analyzeEntitySentiment(request: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest): Promise<google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse>;

Calls AnalyzeEntitySentiment.

Parameter
NameDescription
request IAnalyzeEntitySentimentRequest

AnalyzeEntitySentimentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse>

Promise

analyzeSentiment(request, callback)

public analyzeSentiment(request: google.cloud.language.v1beta2.IAnalyzeSentimentRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeSentimentCallback): void;

Calls AnalyzeSentiment.

Parameters
NameDescription
request google.cloud.language.v1beta2.IAnalyzeSentimentRequest

AnalyzeSentimentRequest message or plain object

callback google.cloud.language.v1beta2.LanguageService.AnalyzeSentimentCallback

Node-style callback called with the error, if any, and AnalyzeSentimentResponse

Returns
TypeDescription
void

analyzeSentiment(request)

public analyzeSentiment(request: google.cloud.language.v1beta2.IAnalyzeSentimentRequest): Promise<google.cloud.language.v1beta2.AnalyzeSentimentResponse>;

Calls AnalyzeSentiment.

Parameter
NameDescription
request google.cloud.language.v1beta2.IAnalyzeSentimentRequest

AnalyzeSentimentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.language.v1beta2.AnalyzeSentimentResponse>

Promise

analyzeSyntax(request, callback)

public analyzeSyntax(request: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeSyntaxCallback): void;

Calls AnalyzeSyntax.

Parameters
NameDescription
request IAnalyzeSyntaxRequest

AnalyzeSyntaxRequest message or plain object

callback google.cloud.language.v1beta2.LanguageService.AnalyzeSyntaxCallback

Node-style callback called with the error, if any, and AnalyzeSyntaxResponse

Returns
TypeDescription
void

analyzeSyntax(request)

public analyzeSyntax(request: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest): Promise<google.cloud.language.v1beta2.AnalyzeSyntaxResponse>;

Calls AnalyzeSyntax.

Parameter
NameDescription
request IAnalyzeSyntaxRequest

AnalyzeSyntaxRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.language.v1beta2.AnalyzeSyntaxResponse>

Promise

annotateText(request, callback)

public annotateText(request: google.cloud.language.v1beta2.IAnnotateTextRequest, callback: google.cloud.language.v1beta2.LanguageService.AnnotateTextCallback): void;

Calls AnnotateText.

Parameters
NameDescription
request IAnnotateTextRequest

AnnotateTextRequest message or plain object

callback google.cloud.language.v1beta2.LanguageService.AnnotateTextCallback

Node-style callback called with the error, if any, and AnnotateTextResponse

Returns
TypeDescription
void

annotateText(request)

public annotateText(request: google.cloud.language.v1beta2.IAnnotateTextRequest): Promise<google.cloud.language.v1beta2.AnnotateTextResponse>;

Calls AnnotateText.

Parameter
NameDescription
request IAnnotateTextRequest

AnnotateTextRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.language.v1beta2.AnnotateTextResponse>

Promise

classifyText(request, callback)

public classifyText(request: google.cloud.language.v1beta2.IClassifyTextRequest, callback: google.cloud.language.v1beta2.LanguageService.ClassifyTextCallback): void;

Calls ClassifyText.

Parameters
NameDescription
request IClassifyTextRequest

ClassifyTextRequest message or plain object

callback google.cloud.language.v1beta2.LanguageService.ClassifyTextCallback

Node-style callback called with the error, if any, and ClassifyTextResponse

Returns
TypeDescription
void

classifyText(request)

public classifyText(request: google.cloud.language.v1beta2.IClassifyTextRequest): Promise<google.cloud.language.v1beta2.ClassifyTextResponse>;

Calls ClassifyText.

Parameter
NameDescription
request IClassifyTextRequest

ClassifyTextRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.language.v1beta2.ClassifyTextResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LanguageService;

Creates new LanguageService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
LanguageService

RPC service. Useful where requests and/or responses are streamed.