Skip to content

Commit

Permalink
fix: make request optional in all cases (#588)
Browse files Browse the repository at this point in the history
... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0

Committer: @miraleung
PiperOrigin-RevId: 380641501

Source-Link: googleapis/googleapis@076f7e9

Source-Link: googleapis/googleapis-gen@27e4c88
  • Loading branch information
gcf-owl-bot[bot] committed Jun 22, 2021
1 parent 585a78e commit 873258e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions packages/google-cloud-language/src/v1/language_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class LanguageServiceClient {
// -- Service calls --
// -------------------
analyzeSentiment(
request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest,
request?: protos.google.cloud.language.v1.IAnalyzeSentimentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -328,7 +328,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeSentiment(request);
*/
analyzeSentiment(
request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest,
request?: protos.google.cloud.language.v1.IAnalyzeSentimentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -365,7 +365,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.analyzeSentiment(request, options, callback);
}
analyzeEntities(
request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest,
request?: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -417,7 +417,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeEntities(request);
*/
analyzeEntities(
request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest,
request?: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -454,7 +454,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.analyzeEntities(request, options, callback);
}
analyzeEntitySentiment(
request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest,
request?: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -508,7 +508,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeEntitySentiment(request);
*/
analyzeEntitySentiment(
request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest,
request?: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -552,7 +552,7 @@ export class LanguageServiceClient {
);
}
analyzeSyntax(
request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest,
request?: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -600,7 +600,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeSyntax(request);
*/
analyzeSyntax(
request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest,
request?: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -635,7 +635,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.analyzeSyntax(request, options, callback);
}
classifyText(
request: protos.google.cloud.language.v1.IClassifyTextRequest,
request?: protos.google.cloud.language.v1.IClassifyTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -679,7 +679,7 @@ export class LanguageServiceClient {
* const [response] = await client.classifyText(request);
*/
classifyText(
request: protos.google.cloud.language.v1.IClassifyTextRequest,
request?: protos.google.cloud.language.v1.IClassifyTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -714,7 +714,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.classifyText(request, options, callback);
}
annotateText(
request: protos.google.cloud.language.v1.IAnnotateTextRequest,
request?: protos.google.cloud.language.v1.IAnnotateTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -763,7 +763,7 @@ export class LanguageServiceClient {
* const [response] = await client.annotateText(request);
*/
annotateText(
request: protos.google.cloud.language.v1.IAnnotateTextRequest,
request?: protos.google.cloud.language.v1.IAnnotateTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class LanguageServiceClient {
// -- Service calls --
// -------------------
analyzeSentiment(
request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -329,7 +329,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeSentiment(request);
*/
analyzeSentiment(
request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -366,7 +366,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.analyzeSentiment(request, options, callback);
}
analyzeEntities(
request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -418,7 +418,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeEntities(request);
*/
analyzeEntities(
request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -455,7 +455,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.analyzeEntities(request, options, callback);
}
analyzeEntitySentiment(
request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -509,7 +509,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeEntitySentiment(request);
*/
analyzeEntitySentiment(
request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -553,7 +553,7 @@ export class LanguageServiceClient {
);
}
analyzeSyntax(
request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -605,7 +605,7 @@ export class LanguageServiceClient {
* const [response] = await client.analyzeSyntax(request);
*/
analyzeSyntax(
request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest,
request?: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -642,7 +642,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.analyzeSyntax(request, options, callback);
}
classifyText(
request: protos.google.cloud.language.v1beta2.IClassifyTextRequest,
request?: protos.google.cloud.language.v1beta2.IClassifyTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -690,7 +690,7 @@ export class LanguageServiceClient {
* const [response] = await client.classifyText(request);
*/
classifyText(
request: protos.google.cloud.language.v1beta2.IClassifyTextRequest,
request?: protos.google.cloud.language.v1beta2.IClassifyTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -727,7 +727,7 @@ export class LanguageServiceClient {
return this.innerApiCalls.classifyText(request, options, callback);
}
annotateText(
request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest,
request?: protos.google.cloud.language.v1beta2.IAnnotateTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -780,7 +780,7 @@ export class LanguageServiceClient {
* const [response] = await client.annotateText(request);
*/
annotateText(
request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest,
request?: protos.google.cloud.language.v1beta2.IAnnotateTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down

0 comments on commit 873258e

Please sign in to comment.