Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
fix: make request optional in all cases (#687)
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: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2021
1 parent 62c48ca commit 621dc99
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
32 changes: 16 additions & 16 deletions src/v3/translation_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export class TranslationServiceClient {
// -- Service calls --
// -------------------
translateText(
request: protos.google.cloud.translation.v3.ITranslateTextRequest,
request?: protos.google.cloud.translation.v3.ITranslateTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -474,7 +474,7 @@ export class TranslationServiceClient {
* const [response] = await client.translateText(request);
*/
translateText(
request: protos.google.cloud.translation.v3.ITranslateTextRequest,
request?: protos.google.cloud.translation.v3.ITranslateTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -517,7 +517,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.translateText(request, options, callback);
}
detectLanguage(
request: protos.google.cloud.translation.v3.IDetectLanguageRequest,
request?: protos.google.cloud.translation.v3.IDetectLanguageRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -599,7 +599,7 @@ export class TranslationServiceClient {
* const [response] = await client.detectLanguage(request);
*/
detectLanguage(
request: protos.google.cloud.translation.v3.IDetectLanguageRequest,
request?: protos.google.cloud.translation.v3.IDetectLanguageRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -642,7 +642,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.detectLanguage(request, options, callback);
}
getSupportedLanguages(
request: protos.google.cloud.translation.v3.IGetSupportedLanguagesRequest,
request?: protos.google.cloud.translation.v3.IGetSupportedLanguagesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -724,7 +724,7 @@ export class TranslationServiceClient {
* const [response] = await client.getSupportedLanguages(request);
*/
getSupportedLanguages(
request: protos.google.cloud.translation.v3.IGetSupportedLanguagesRequest,
request?: protos.google.cloud.translation.v3.IGetSupportedLanguagesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -770,7 +770,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.getSupportedLanguages(request, options, callback);
}
getGlossary(
request: protos.google.cloud.translation.v3.IGetGlossaryRequest,
request?: protos.google.cloud.translation.v3.IGetGlossaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -815,7 +815,7 @@ export class TranslationServiceClient {
* const [response] = await client.getGlossary(request);
*/
getGlossary(
request: protos.google.cloud.translation.v3.IGetGlossaryRequest,
request?: protos.google.cloud.translation.v3.IGetGlossaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -857,7 +857,7 @@ export class TranslationServiceClient {
}

batchTranslateText(
request: protos.google.cloud.translation.v3.IBatchTranslateTextRequest,
request?: protos.google.cloud.translation.v3.IBatchTranslateTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -969,7 +969,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
batchTranslateText(
request: protos.google.cloud.translation.v3.IBatchTranslateTextRequest,
request?: protos.google.cloud.translation.v3.IBatchTranslateTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1054,7 +1054,7 @@ export class TranslationServiceClient {
>;
}
createGlossary(
request: protos.google.cloud.translation.v3.ICreateGlossaryRequest,
request?: protos.google.cloud.translation.v3.ICreateGlossaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1113,7 +1113,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
createGlossary(
request: protos.google.cloud.translation.v3.ICreateGlossaryRequest,
request?: protos.google.cloud.translation.v3.ICreateGlossaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1198,7 +1198,7 @@ export class TranslationServiceClient {
>;
}
deleteGlossary(
request: protos.google.cloud.translation.v3.IDeleteGlossaryRequest,
request?: protos.google.cloud.translation.v3.IDeleteGlossaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1256,7 +1256,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
deleteGlossary(
request: protos.google.cloud.translation.v3.IDeleteGlossaryRequest,
request?: protos.google.cloud.translation.v3.IDeleteGlossaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1341,7 +1341,7 @@ export class TranslationServiceClient {
>;
}
listGlossaries(
request: protos.google.cloud.translation.v3.IListGlossariesRequest,
request?: protos.google.cloud.translation.v3.IListGlossariesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1405,7 +1405,7 @@ export class TranslationServiceClient {
* for more details and examples.
*/
listGlossaries(
request: protos.google.cloud.translation.v3.IListGlossariesRequest,
request?: protos.google.cloud.translation.v3.IListGlossariesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
40 changes: 20 additions & 20 deletions src/v3beta1/translation_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export class TranslationServiceClient {
// -- Service calls --
// -------------------
translateText(
request: protos.google.cloud.translation.v3beta1.ITranslateTextRequest,
request?: protos.google.cloud.translation.v3beta1.ITranslateTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -493,7 +493,7 @@ export class TranslationServiceClient {
* const [response] = await client.translateText(request);
*/
translateText(
request: protos.google.cloud.translation.v3beta1.ITranslateTextRequest,
request?: protos.google.cloud.translation.v3beta1.ITranslateTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -536,7 +536,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.translateText(request, options, callback);
}
detectLanguage(
request: protos.google.cloud.translation.v3beta1.IDetectLanguageRequest,
request?: protos.google.cloud.translation.v3beta1.IDetectLanguageRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -621,7 +621,7 @@ export class TranslationServiceClient {
* const [response] = await client.detectLanguage(request);
*/
detectLanguage(
request: protos.google.cloud.translation.v3beta1.IDetectLanguageRequest,
request?: protos.google.cloud.translation.v3beta1.IDetectLanguageRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -667,7 +667,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.detectLanguage(request, options, callback);
}
getSupportedLanguages(
request: protos.google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest,
request?: protos.google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -749,7 +749,7 @@ export class TranslationServiceClient {
* const [response] = await client.getSupportedLanguages(request);
*/
getSupportedLanguages(
request: protos.google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest,
request?: protos.google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -795,7 +795,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.getSupportedLanguages(request, options, callback);
}
translateDocument(
request: protos.google.cloud.translation.v3beta1.ITranslateDocumentRequest,
request?: protos.google.cloud.translation.v3beta1.ITranslateDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -904,7 +904,7 @@ export class TranslationServiceClient {
* const [response] = await client.translateDocument(request);
*/
translateDocument(
request: protos.google.cloud.translation.v3beta1.ITranslateDocumentRequest,
request?: protos.google.cloud.translation.v3beta1.ITranslateDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -950,7 +950,7 @@ export class TranslationServiceClient {
return this.innerApiCalls.translateDocument(request, options, callback);
}
getGlossary(
request: protos.google.cloud.translation.v3beta1.IGetGlossaryRequest,
request?: protos.google.cloud.translation.v3beta1.IGetGlossaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -999,7 +999,7 @@ export class TranslationServiceClient {
* const [response] = await client.getGlossary(request);
*/
getGlossary(
request: protos.google.cloud.translation.v3beta1.IGetGlossaryRequest,
request?: protos.google.cloud.translation.v3beta1.IGetGlossaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1043,7 +1043,7 @@ export class TranslationServiceClient {
}

batchTranslateText(
request: protos.google.cloud.translation.v3beta1.IBatchTranslateTextRequest,
request?: protos.google.cloud.translation.v3beta1.IBatchTranslateTextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1155,7 +1155,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
batchTranslateText(
request: protos.google.cloud.translation.v3beta1.IBatchTranslateTextRequest,
request?: protos.google.cloud.translation.v3beta1.IBatchTranslateTextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1240,7 +1240,7 @@ export class TranslationServiceClient {
>;
}
batchTranslateDocument(
request: protos.google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest,
request?: protos.google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1345,7 +1345,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
batchTranslateDocument(
request: protos.google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest,
request?: protos.google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1434,7 +1434,7 @@ export class TranslationServiceClient {
>;
}
createGlossary(
request: protos.google.cloud.translation.v3beta1.ICreateGlossaryRequest,
request?: protos.google.cloud.translation.v3beta1.ICreateGlossaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1493,7 +1493,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
createGlossary(
request: protos.google.cloud.translation.v3beta1.ICreateGlossaryRequest,
request?: protos.google.cloud.translation.v3beta1.ICreateGlossaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1578,7 +1578,7 @@ export class TranslationServiceClient {
>;
}
deleteGlossary(
request: protos.google.cloud.translation.v3beta1.IDeleteGlossaryRequest,
request?: protos.google.cloud.translation.v3beta1.IDeleteGlossaryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1636,7 +1636,7 @@ export class TranslationServiceClient {
* const [response] = await operation.promise();
*/
deleteGlossary(
request: protos.google.cloud.translation.v3beta1.IDeleteGlossaryRequest,
request?: protos.google.cloud.translation.v3beta1.IDeleteGlossaryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1721,7 +1721,7 @@ export class TranslationServiceClient {
>;
}
listGlossaries(
request: protos.google.cloud.translation.v3beta1.IListGlossariesRequest,
request?: protos.google.cloud.translation.v3beta1.IListGlossariesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1798,7 +1798,7 @@ export class TranslationServiceClient {
* for more details and examples.
*/
listGlossaries(
request: protos.google.cloud.translation.v3beta1.IListGlossariesRequest,
request?: protos.google.cloud.translation.v3beta1.IListGlossariesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down

0 comments on commit 621dc99

Please sign in to comment.