From 0b4359631fade7bb66f93558a813dcee301ded74 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 16 May 2022 19:31:43 -0700 Subject: [PATCH 1/3] feat!: Update library to use Node 12 --- .kokoro/continuous/node10/common.cfg | 34 ---------- .kokoro/continuous/node10/docs.cfg | 4 -- .kokoro/continuous/node10/lint.cfg | 4 -- .kokoro/continuous/node10/samples-test.cfg | 7 --- .kokoro/continuous/node10/system-test.cfg | 7 --- .kokoro/continuous/node10/test.cfg | 9 --- .kokoro/continuous/node8/common.cfg | 24 -------- .kokoro/continuous/node8/test.cfg | 0 .kokoro/presubmit/node10/common.cfg | 34 ---------- .kokoro/presubmit/node10/docs.cfg | 4 -- .kokoro/presubmit/node10/lint.cfg | 4 -- .kokoro/presubmit/node10/samples-test.cfg | 7 --- .kokoro/presubmit/node10/system-test.cfg | 7 --- .kokoro/presubmit/node10/test.cfg | 0 .kokoro/presubmit/node8/common.cfg | 24 -------- .kokoro/presubmit/node8/test.cfg | 0 package.json | 10 +-- protos/protos.d.ts | 56 +++++++++-------- protos/protos.js | 72 ++++++++++++++-------- protos/protos.json | 7 +++ samples/package.json | 2 +- 21 files changed, 91 insertions(+), 225 deletions(-) delete mode 100644 .kokoro/continuous/node10/common.cfg delete mode 100644 .kokoro/continuous/node10/docs.cfg delete mode 100644 .kokoro/continuous/node10/lint.cfg delete mode 100644 .kokoro/continuous/node10/samples-test.cfg delete mode 100644 .kokoro/continuous/node10/system-test.cfg delete mode 100644 .kokoro/continuous/node10/test.cfg delete mode 100644 .kokoro/continuous/node8/common.cfg delete mode 100644 .kokoro/continuous/node8/test.cfg delete mode 100644 .kokoro/presubmit/node10/common.cfg delete mode 100644 .kokoro/presubmit/node10/docs.cfg delete mode 100644 .kokoro/presubmit/node10/lint.cfg delete mode 100644 .kokoro/presubmit/node10/samples-test.cfg delete mode 100644 .kokoro/presubmit/node10/system-test.cfg delete mode 100644 .kokoro/presubmit/node10/test.cfg delete mode 100644 .kokoro/presubmit/node8/common.cfg delete mode 100644 .kokoro/presubmit/node8/test.cfg diff --git a/.kokoro/continuous/node10/common.cfg b/.kokoro/continuous/node10/common.cfg deleted file mode 100644 index f6f5e24b..00000000 --- a/.kokoro/continuous/node10/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-translate/.kokoro/trampoline_v2.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/test.sh" -} diff --git a/.kokoro/continuous/node10/docs.cfg b/.kokoro/continuous/node10/docs.cfg deleted file mode 100644 index b753504a..00000000 --- a/.kokoro/continuous/node10/docs.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/docs.sh" -} diff --git a/.kokoro/continuous/node10/lint.cfg b/.kokoro/continuous/node10/lint.cfg deleted file mode 100644 index fa894d7e..00000000 --- a/.kokoro/continuous/node10/lint.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/lint.sh" -} diff --git a/.kokoro/continuous/node10/samples-test.cfg b/.kokoro/continuous/node10/samples-test.cfg deleted file mode 100644 index 48f7fb13..00000000 --- a/.kokoro/continuous/node10/samples-test.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Download resources for system tests (service account key, etc.) -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/samples-test.sh" -} diff --git a/.kokoro/continuous/node10/system-test.cfg b/.kokoro/continuous/node10/system-test.cfg deleted file mode 100644 index 6685d6a6..00000000 --- a/.kokoro/continuous/node10/system-test.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Download resources for system tests (service account key, etc.) -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/system-test.sh" -} diff --git a/.kokoro/continuous/node10/test.cfg b/.kokoro/continuous/node10/test.cfg deleted file mode 100644 index 609c0cf0..00000000 --- a/.kokoro/continuous/node10/test.cfg +++ /dev/null @@ -1,9 +0,0 @@ -# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} diff --git a/.kokoro/continuous/node8/common.cfg b/.kokoro/continuous/node8/common.cfg deleted file mode 100644 index 4f675449..00000000 --- a/.kokoro/continuous/node8/common.cfg +++ /dev/null @@ -1,24 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-translate/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/test.sh" -} diff --git a/.kokoro/continuous/node8/test.cfg b/.kokoro/continuous/node8/test.cfg deleted file mode 100644 index e69de29b..00000000 diff --git a/.kokoro/presubmit/node10/common.cfg b/.kokoro/presubmit/node10/common.cfg deleted file mode 100644 index f6f5e24b..00000000 --- a/.kokoro/presubmit/node10/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-translate/.kokoro/trampoline_v2.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/test.sh" -} diff --git a/.kokoro/presubmit/node10/docs.cfg b/.kokoro/presubmit/node10/docs.cfg deleted file mode 100644 index b753504a..00000000 --- a/.kokoro/presubmit/node10/docs.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/docs.sh" -} diff --git a/.kokoro/presubmit/node10/lint.cfg b/.kokoro/presubmit/node10/lint.cfg deleted file mode 100644 index fa894d7e..00000000 --- a/.kokoro/presubmit/node10/lint.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/lint.sh" -} diff --git a/.kokoro/presubmit/node10/samples-test.cfg b/.kokoro/presubmit/node10/samples-test.cfg deleted file mode 100644 index 48f7fb13..00000000 --- a/.kokoro/presubmit/node10/samples-test.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Download resources for system tests (service account key, etc.) -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/samples-test.sh" -} diff --git a/.kokoro/presubmit/node10/system-test.cfg b/.kokoro/presubmit/node10/system-test.cfg deleted file mode 100644 index 6685d6a6..00000000 --- a/.kokoro/presubmit/node10/system-test.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Download resources for system tests (service account key, etc.) -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/system-test.sh" -} diff --git a/.kokoro/presubmit/node10/test.cfg b/.kokoro/presubmit/node10/test.cfg deleted file mode 100644 index e69de29b..00000000 diff --git a/.kokoro/presubmit/node8/common.cfg b/.kokoro/presubmit/node8/common.cfg deleted file mode 100644 index 4f675449..00000000 --- a/.kokoro/presubmit/node8/common.cfg +++ /dev/null @@ -1,24 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-translate/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-translate/.kokoro/test.sh" -} diff --git a/.kokoro/presubmit/node8/test.cfg b/.kokoro/presubmit/node8/test.cfg deleted file mode 100644 index e69de29b..00000000 diff --git a/package.json b/package.json index dcb86186..d5f7d665 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=10" + "node": ">=12.0.0" }, "repository": "googleapis/nodejs-translate", "main": "build/src/index.js", @@ -51,7 +51,7 @@ "@google-cloud/promisify": "^2.0.0", "arrify": "^2.0.0", "extend": "^3.0.2", - "google-gax": "^2.24.1", + "google-gax": "^3.0.1", "is-html": "^2.0.0", "protobufjs": "^6.8.8" }, @@ -65,16 +65,16 @@ "c8": "^7.0.0", "codecov": "^3.0.2", "google-auth-library": "^6.0.0", - "gts": "^3.0.0", + "gts": "^3.1.0", "http2spy": "^2.0.0", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", "linkinator": "^2.0.0", - "mocha": "^8.0.0", + "mocha": "^9.2.2", "pack-n-play": "^1.0.0-2", "proxyquire": "^2.0.1", "sinon": "^14.0.0", - "typescript": "^3.8.3" + "typescript": "^4.6.4" } } diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 23bf0162..6c57dc21 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -190,70 +190,70 @@ export namespace google { namespace TranslationService { /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateText}. * @param error Error, if any * @param [response] TranslateTextResponse */ type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateTextResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|detectLanguage}. * @param error Error, if any * @param [response] DetectLanguageResponse */ type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3.DetectLanguageResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|getSupportedLanguages}. * @param error Error, if any * @param [response] SupportedLanguages */ type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3.SupportedLanguages) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateDocument}. * @param error Error, if any * @param [response] TranslateDocumentResponse */ type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateDocumentResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateText}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateDocument}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#createGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|createGlossary}. * @param error Error, if any * @param [response] Operation */ type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|listGlossaries}. * @param error Error, if any * @param [response] ListGlossariesResponse */ type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3.ListGlossariesResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#getGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|getGlossary}. * @param error Error, if any * @param [response] Glossary */ type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3.Glossary) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|deleteGlossary}. * @param error Error, if any * @param [response] Operation */ @@ -4596,70 +4596,70 @@ export namespace google { namespace TranslationService { /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateText}. * @param error Error, if any * @param [response] TranslateTextResponse */ type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateTextResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|detectLanguage}. * @param error Error, if any * @param [response] DetectLanguageResponse */ type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.DetectLanguageResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getSupportedLanguages}. * @param error Error, if any * @param [response] SupportedLanguages */ type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.SupportedLanguages) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateDocument}. * @param error Error, if any * @param [response] TranslateDocumentResponse */ type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateDocumentResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateText}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateDocument}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#createGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|createGlossary}. * @param error Error, if any * @param [response] Operation */ type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|listGlossaries}. * @param error Error, if any * @param [response] ListGlossariesResponse */ type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.ListGlossariesResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getGlossary}. * @param error Error, if any * @param [response] Glossary */ type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.Glossary) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|deleteGlossary}. * @param error Error, if any * @param [response] Operation */ @@ -11284,6 +11284,9 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -11321,6 +11324,9 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + /** FieldOptions deprecated. */ public deprecated: boolean; @@ -13032,35 +13038,35 @@ export namespace google { namespace Operations { /** - * Callback as used by {@link google.longrunning.Operations#listOperations}. + * Callback as used by {@link google.longrunning.Operations|listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; /** - * Callback as used by {@link google.longrunning.Operations#getOperation}. + * Callback as used by {@link google.longrunning.Operations|getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. * @param error Error, if any * @param [response] Empty */ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * Callback as used by {@link google.longrunning.Operations|waitOperation}. * @param error Error, if any * @param [response] Operation */ diff --git a/protos/protos.js b/protos/protos.js index 214151b6..e199eb60 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -99,7 +99,7 @@ }; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateText}. * @memberof google.cloud.translation.v3.TranslationService * @typedef TranslateTextCallback * @type {function} @@ -132,7 +132,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|detectLanguage}. * @memberof google.cloud.translation.v3.TranslationService * @typedef DetectLanguageCallback * @type {function} @@ -165,7 +165,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|getSupportedLanguages}. * @memberof google.cloud.translation.v3.TranslationService * @typedef GetSupportedLanguagesCallback * @type {function} @@ -198,7 +198,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateDocument}. * @memberof google.cloud.translation.v3.TranslationService * @typedef TranslateDocumentCallback * @type {function} @@ -231,7 +231,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateText}. * @memberof google.cloud.translation.v3.TranslationService * @typedef BatchTranslateTextCallback * @type {function} @@ -264,7 +264,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateDocument}. * @memberof google.cloud.translation.v3.TranslationService * @typedef BatchTranslateDocumentCallback * @type {function} @@ -297,7 +297,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#createGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|createGlossary}. * @memberof google.cloud.translation.v3.TranslationService * @typedef CreateGlossaryCallback * @type {function} @@ -330,7 +330,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|listGlossaries}. * @memberof google.cloud.translation.v3.TranslationService * @typedef ListGlossariesCallback * @type {function} @@ -363,7 +363,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#getGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|getGlossary}. * @memberof google.cloud.translation.v3.TranslationService * @typedef GetGlossaryCallback * @type {function} @@ -396,7 +396,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService#deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService|deleteGlossary}. * @memberof google.cloud.translation.v3.TranslationService * @typedef DeleteGlossaryCallback * @type {function} @@ -11358,7 +11358,7 @@ }; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateText}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef TranslateTextCallback * @type {function} @@ -11391,7 +11391,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|detectLanguage}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef DetectLanguageCallback * @type {function} @@ -11424,7 +11424,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getSupportedLanguages}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef GetSupportedLanguagesCallback * @type {function} @@ -11457,7 +11457,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateDocument}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef TranslateDocumentCallback * @type {function} @@ -11490,7 +11490,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateText}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef BatchTranslateTextCallback * @type {function} @@ -11523,7 +11523,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateDocument}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef BatchTranslateDocumentCallback * @type {function} @@ -11556,7 +11556,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#createGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|createGlossary}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef CreateGlossaryCallback * @type {function} @@ -11589,7 +11589,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|listGlossaries}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef ListGlossariesCallback * @type {function} @@ -11622,7 +11622,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getGlossary}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef GetGlossaryCallback * @type {function} @@ -11655,7 +11655,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|deleteGlossary}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef DeleteGlossaryCallback * @type {function} @@ -29384,6 +29384,7 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -29440,6 +29441,14 @@ */ FieldOptions.prototype.lazy = false; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -29516,6 +29525,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -29573,6 +29584,9 @@ case 5: message.lazy = reader.bool(); break; + case 15: + message.unverifiedLazy = reader.bool(); + break; case 3: message.deprecated = reader.bool(); break; @@ -29656,6 +29670,9 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -29741,6 +29758,8 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -29828,6 +29847,7 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; + object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -29842,6 +29862,8 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -33751,7 +33773,7 @@ }; /** - * Callback as used by {@link google.longrunning.Operations#listOperations}. + * Callback as used by {@link google.longrunning.Operations|listOperations}. * @memberof google.longrunning.Operations * @typedef ListOperationsCallback * @type {function} @@ -33784,7 +33806,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#getOperation}. + * Callback as used by {@link google.longrunning.Operations|getOperation}. * @memberof google.longrunning.Operations * @typedef GetOperationCallback * @type {function} @@ -33817,7 +33839,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. * @memberof google.longrunning.Operations * @typedef DeleteOperationCallback * @type {function} @@ -33850,7 +33872,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. * @memberof google.longrunning.Operations * @typedef CancelOperationCallback * @type {function} @@ -33883,7 +33905,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * Callback as used by {@link google.longrunning.Operations|waitOperation}. * @memberof google.longrunning.Operations * @typedef WaitOperationCallback * @type {function} diff --git a/protos/protos.json b/protos/protos.json index c43468de..a399379f 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -3375,6 +3375,13 @@ "default": false } }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, "deprecated": { "type": "bool", "id": 3, diff --git a/samples/package.json b/samples/package.json index af48c3f9..e8409e37 100644 --- a/samples/package.json +++ b/samples/package.json @@ -8,7 +8,7 @@ "!test/" ], "engines": { - "node": ">=10" + "node": ">=12.0.0" }, "scripts": { "test": "mocha --recursive --timeout 240000" From e61e39fa053451d8d6f6b371db768be111d83f94 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 17 May 2022 02:33:01 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .github/sync-repo-settings.yaml | 2 +- .github/workflows/ci.yaml | 2 +- protos/protos.d.ts | 56 ++++++++++++------------- protos/protos.js | 72 ++++++++++++--------------------- protos/protos.json | 7 ---- 5 files changed, 52 insertions(+), 87 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 1b362683..d1e8b5e6 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -9,9 +9,9 @@ branchProtectionRules: - "ci/kokoro: System test" - docs - lint - - test (10) - test (12) - test (14) + - test (16) - cla/google - windows - OwlBot Post Processor diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25251dbb..f447b84a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [10, 12, 14] + node: [12, 14, 16] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 6c57dc21..23bf0162 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -190,70 +190,70 @@ export namespace google { namespace TranslationService { /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateText}. * @param error Error, if any * @param [response] TranslateTextResponse */ type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateTextResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#detectLanguage}. * @param error Error, if any * @param [response] DetectLanguageResponse */ type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3.DetectLanguageResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#getSupportedLanguages}. * @param error Error, if any * @param [response] SupportedLanguages */ type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3.SupportedLanguages) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateDocument}. * @param error Error, if any * @param [response] TranslateDocumentResponse */ type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateDocumentResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateText}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateDocument}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|createGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#createGlossary}. * @param error Error, if any * @param [response] Operation */ type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#listGlossaries}. * @param error Error, if any * @param [response] ListGlossariesResponse */ type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3.ListGlossariesResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|getGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#getGlossary}. * @param error Error, if any * @param [response] Glossary */ type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3.Glossary) => void; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#deleteGlossary}. * @param error Error, if any * @param [response] Operation */ @@ -4596,70 +4596,70 @@ export namespace google { namespace TranslationService { /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateText}. * @param error Error, if any * @param [response] TranslateTextResponse */ type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateTextResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#detectLanguage}. * @param error Error, if any * @param [response] DetectLanguageResponse */ type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.DetectLanguageResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getSupportedLanguages}. * @param error Error, if any * @param [response] SupportedLanguages */ type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.SupportedLanguages) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateDocument}. * @param error Error, if any * @param [response] TranslateDocumentResponse */ type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateDocumentResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateText}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateDocument}. * @param error Error, if any * @param [response] Operation */ type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|createGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#createGlossary}. * @param error Error, if any * @param [response] Operation */ type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#listGlossaries}. * @param error Error, if any * @param [response] ListGlossariesResponse */ type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.ListGlossariesResponse) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getGlossary}. * @param error Error, if any * @param [response] Glossary */ type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.Glossary) => void; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#deleteGlossary}. * @param error Error, if any * @param [response] Operation */ @@ -11284,9 +11284,6 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); - /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -11324,9 +11321,6 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; - /** FieldOptions deprecated. */ public deprecated: boolean; @@ -13038,35 +13032,35 @@ export namespace google { namespace Operations { /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. + * Callback as used by {@link google.longrunning.Operations#listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. + * Callback as used by {@link google.longrunning.Operations#getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. * @param error Error, if any * @param [response] Empty */ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * Callback as used by {@link google.longrunning.Operations#waitOperation}. * @param error Error, if any * @param [response] Operation */ diff --git a/protos/protos.js b/protos/protos.js index e199eb60..214151b6 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -99,7 +99,7 @@ }; /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateText}. * @memberof google.cloud.translation.v3.TranslationService * @typedef TranslateTextCallback * @type {function} @@ -132,7 +132,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#detectLanguage}. * @memberof google.cloud.translation.v3.TranslationService * @typedef DetectLanguageCallback * @type {function} @@ -165,7 +165,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#getSupportedLanguages}. * @memberof google.cloud.translation.v3.TranslationService * @typedef GetSupportedLanguagesCallback * @type {function} @@ -198,7 +198,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|translateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateDocument}. * @memberof google.cloud.translation.v3.TranslationService * @typedef TranslateDocumentCallback * @type {function} @@ -231,7 +231,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateText}. * @memberof google.cloud.translation.v3.TranslationService * @typedef BatchTranslateTextCallback * @type {function} @@ -264,7 +264,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateDocument}. * @memberof google.cloud.translation.v3.TranslationService * @typedef BatchTranslateDocumentCallback * @type {function} @@ -297,7 +297,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|createGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#createGlossary}. * @memberof google.cloud.translation.v3.TranslationService * @typedef CreateGlossaryCallback * @type {function} @@ -330,7 +330,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#listGlossaries}. * @memberof google.cloud.translation.v3.TranslationService * @typedef ListGlossariesCallback * @type {function} @@ -363,7 +363,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|getGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#getGlossary}. * @memberof google.cloud.translation.v3.TranslationService * @typedef GetGlossaryCallback * @type {function} @@ -396,7 +396,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3.TranslationService|deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3.TranslationService#deleteGlossary}. * @memberof google.cloud.translation.v3.TranslationService * @typedef DeleteGlossaryCallback * @type {function} @@ -11358,7 +11358,7 @@ }; /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateText}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef TranslateTextCallback * @type {function} @@ -11391,7 +11391,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|detectLanguage}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#detectLanguage}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef DetectLanguageCallback * @type {function} @@ -11424,7 +11424,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getSupportedLanguages}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getSupportedLanguages}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef GetSupportedLanguagesCallback * @type {function} @@ -11457,7 +11457,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|translateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateDocument}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef TranslateDocumentCallback * @type {function} @@ -11490,7 +11490,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateText}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateText}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef BatchTranslateTextCallback * @type {function} @@ -11523,7 +11523,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|batchTranslateDocument}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateDocument}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef BatchTranslateDocumentCallback * @type {function} @@ -11556,7 +11556,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|createGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#createGlossary}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef CreateGlossaryCallback * @type {function} @@ -11589,7 +11589,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|listGlossaries}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#listGlossaries}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef ListGlossariesCallback * @type {function} @@ -11622,7 +11622,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|getGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getGlossary}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef GetGlossaryCallback * @type {function} @@ -11655,7 +11655,7 @@ */ /** - * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService|deleteGlossary}. + * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#deleteGlossary}. * @memberof google.cloud.translation.v3beta1.TranslationService * @typedef DeleteGlossaryCallback * @type {function} @@ -29384,7 +29384,6 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -29441,14 +29440,6 @@ */ FieldOptions.prototype.lazy = false; - /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.unverifiedLazy = false; - /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -29525,8 +29516,6 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -29584,9 +29573,6 @@ case 5: message.lazy = reader.bool(); break; - case 15: - message.unverifiedLazy = reader.bool(); - break; case 3: message.deprecated = reader.bool(); break; @@ -29670,9 +29656,6 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -29758,8 +29741,6 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -29847,7 +29828,6 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; - object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -29862,8 +29842,6 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -33773,7 +33751,7 @@ }; /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. + * Callback as used by {@link google.longrunning.Operations#listOperations}. * @memberof google.longrunning.Operations * @typedef ListOperationsCallback * @type {function} @@ -33806,7 +33784,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. + * Callback as used by {@link google.longrunning.Operations#getOperation}. * @memberof google.longrunning.Operations * @typedef GetOperationCallback * @type {function} @@ -33839,7 +33817,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. * @memberof google.longrunning.Operations * @typedef DeleteOperationCallback * @type {function} @@ -33872,7 +33850,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. * @memberof google.longrunning.Operations * @typedef CancelOperationCallback * @type {function} @@ -33905,7 +33883,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * Callback as used by {@link google.longrunning.Operations#waitOperation}. * @memberof google.longrunning.Operations * @typedef WaitOperationCallback * @type {function} diff --git a/protos/protos.json b/protos/protos.json index a399379f..c43468de 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -3375,13 +3375,6 @@ "default": false } }, - "unverifiedLazy": { - "type": "bool", - "id": 15, - "options": { - "default": false - } - }, "deprecated": { "type": "bool", "id": 3, From 9faf862f6e8418a257cb58926cc64b514ae9b949 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Tue, 17 May 2022 00:37:13 -0700 Subject: [PATCH 3/3] add error type --- system-test/translate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-test/translate.ts b/system-test/translate.ts index 7c4ce3b4..9b456dd7 100644 --- a/system-test/translate.ts +++ b/system-test/translate.ts @@ -200,7 +200,7 @@ describe('translate', () => { parent: `projects/${projectId}`, }); } catch (_err) { - err = _err; + err = _err as Error; } assert(err); assert(