From 873258eae4b121200de771ea5b60a4941dfbeb22 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:22:21 +0000 Subject: [PATCH] fix: make request optional in all cases (#588) ... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0 Committer: @miraleung PiperOrigin-RevId: 380641501 Source-Link: https://github.com/googleapis/googleapis/commit/076f7e9f0b258bdb54338895d7251b202e8f0de3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892 --- .../src/v1/language_service_client.ts | 24 +++++++++---------- .../src/v1beta2/language_service_client.ts | 24 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/packages/google-cloud-language/src/v1/language_service_client.ts b/packages/google-cloud-language/src/v1/language_service_client.ts index dfe030c87ac..e842b0d62a2 100644 --- a/packages/google-cloud-language/src/v1/language_service_client.ts +++ b/packages/google-cloud-language/src/v1/language_service_client.ts @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< diff --git a/packages/google-cloud-language/src/v1beta2/language_service_client.ts b/packages/google-cloud-language/src/v1beta2/language_service_client.ts index 3ca35e8d152..4fc97c86c9a 100644 --- a/packages/google-cloud-language/src/v1beta2/language_service_client.ts +++ b/packages/google-cloud-language/src/v1beta2/language_service_client.ts @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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< @@ -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< [ @@ -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<