Skip to content

Commit

Permalink
Merge pull request googleapis#3558 from googleapis/nodejs-media-trans…
Browse files Browse the repository at this point in the history
…lation-migration

migrate code from googleapis/nodejs-media-translation
  • Loading branch information
sofisl committed Nov 16, 2022
2 parents 419948b + d406534 commit 6b3fca4
Show file tree
Hide file tree
Showing 44 changed files with 19,623 additions and 0 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"packages/google-cloud-iap": "2.0.3",
"packages/google-cloud-iot": "3.1.2",
"packages/google-cloud-language": "5.1.2",
"packages/google-cloud-mediatranslation": "3.0.5",
"packages/google-cloud-lifesciences": "2.1.2",
"packages/google-cloud-memcache": "2.1.4",
"packages/google-cloud-metastore": "3.1.2",
Expand Down
21 changes: 21 additions & 0 deletions packages/google-cloud-mediatranslation/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/mediatranslation/(.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-mediatranslation/$1

7 changes: 7 additions & 0 deletions packages/google-cloud-mediatranslation/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
samples/generated/
3 changes: 3 additions & 0 deletions packages/google-cloud-mediatranslation/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/gts"
}
4 changes: 4 additions & 0 deletions packages/google-cloud-mediatranslation/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ts text eol=lf
*.js text eol=lf
protos/* linguist-generated
**/api-extractor.json linguist-language=JSON-with-Comments
14 changes: 14 additions & 0 deletions packages/google-cloud-mediatranslation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**/*.log
**/node_modules
.coverage
coverage
.nyc_output
docs/
out/
build/
system-test/secrets.js
system-test/*key.json
*.lock
.DS_Store
package-lock.json
__pycache__
55 changes: 55 additions & 0 deletions packages/google-cloud-mediatranslation/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

'use strict';

module.exports = {
opts: {
readme: './README.md',
package: './package.json',
template: './node_modules/jsdoc-fresh',
recurse: true,
verbose: true,
destination: './docs/'
},
plugins: [
'plugins/markdown',
'jsdoc-region-tag'
],
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'build/src',
'protos'
],
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/media-translation',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-cloud-mediatranslation/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000,
"recursive": true
}
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}
if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}
if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}
module.exports = config
24 changes: 24 additions & 0 deletions packages/google-cloud-mediatranslation/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"report-dir": "./.coverage",
"reporter": ["text", "lcov"],
"exclude": [
"**/*-test",
"**/.coverage",
"**/apis",
"**/benchmark",
"**/conformance",
"**/docs",
"**/samples",
"**/scripts",
"**/protos",
"**/test",
"**/*.d.ts",
".jsdoc.js",
"**/.jsdoc.js",
"karma.conf.js",
"webpack-tests.config.js",
"webpack.config.js"
],
"exclude-after-remap": false,
"all": true
}
6 changes: 6 additions & 0 deletions packages/google-cloud-mediatranslation/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
17 changes: 17 additions & 0 deletions packages/google-cloud-mediatranslation/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

module.exports = {
...require('gts/.prettierrc.json')
}
16 changes: 16 additions & 0 deletions packages/google-cloud-mediatranslation/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/media-translation/latest",
"api_id": "mediatranslation.googleapis.com",
"distribution_name": "@google-cloud/media-translation",
"release_level": "stable",
"default_version": "v1beta1",
"language": "nodejs",
"name_pretty": "Cloud Media Translation",
"repo": "googleapis/google-cloud-node",
"product_documentation": "https://cloud.google.com/translate/media/docs/",
"requires_billing": true,
"name": "mediatranslation",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559749",
"api_shortname": "mediatranslation",
"library_type": "GAPIC_AUTO"
}
177 changes: 177 additions & 0 deletions packages/google-cloud-mediatranslation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# Changelog

## [3.0.5](https://github.com/googleapis/nodejs-media-translation/compare/v3.0.4...v3.0.5) (2022-11-11)


### Bug Fixes

* **deps:** Use google-gax v3.5.2 ([#258](https://github.com/googleapis/nodejs-media-translation/issues/258)) ([1e26910](https://github.com/googleapis/nodejs-media-translation/commit/1e2691026bf580a0330d70f0f854987b7f96c865))
* Regenerated protos JS and TS definitions ([#262](https://github.com/googleapis/nodejs-media-translation/issues/262)) ([18948d2](https://github.com/googleapis/nodejs-media-translation/commit/18948d24a7b262db7211e47366cb1fd9f5499df6))

## [3.0.4](https://github.com/googleapis/nodejs-media-translation/compare/v3.0.3...v3.0.4) (2022-09-14)


### Bug Fixes

* Preserve default values in x-goog-request-params header ([#251](https://github.com/googleapis/nodejs-media-translation/issues/251)) ([8257ade](https://github.com/googleapis/nodejs-media-translation/commit/8257ade7fd05bd65161d7a8c156e6c04fc09bfbe))

## [3.0.3](https://github.com/googleapis/nodejs-media-translation/compare/v3.0.2...v3.0.3) (2022-09-01)


### Bug Fixes

* Allow passing gax instance to client constructor ([#249](https://github.com/googleapis/nodejs-media-translation/issues/249)) ([ff9aebb](https://github.com/googleapis/nodejs-media-translation/commit/ff9aebb808d91ce68f967afd73e933bfab1a6f31))
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-media-translation/issues/1553)) ([#248](https://github.com/googleapis/nodejs-media-translation/issues/248)) ([719d39f](https://github.com/googleapis/nodejs-media-translation/commit/719d39f3a38b60ee708af7d620c37982bf9bf834))

## [3.0.2](https://github.com/googleapis/nodejs-media-translation/compare/v3.0.1...v3.0.2) (2022-08-23)


### Bug Fixes

* better support for fallback mode ([#243](https://github.com/googleapis/nodejs-media-translation/issues/243)) ([a0dc4be](https://github.com/googleapis/nodejs-media-translation/commit/a0dc4be632b474ef5fe3a3df3719743fc31b911b))
* change import long to require ([#244](https://github.com/googleapis/nodejs-media-translation/issues/244)) ([31a670e](https://github.com/googleapis/nodejs-media-translation/commit/31a670ed83c2de493a15504422b3c2a09612ef05))
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-media-translation/issues/1546)) ([#247](https://github.com/googleapis/nodejs-media-translation/issues/247)) ([8a11196](https://github.com/googleapis/nodejs-media-translation/commit/8a11196b52832ff61ad709f9f12683185bc6e96a))

## [3.0.1](https://github.com/googleapis/nodejs-media-translation/compare/v3.0.0...v3.0.1) (2022-06-30)


### Bug Fixes

* **docs:** describe fallback rest option ([#233](https://github.com/googleapis/nodejs-media-translation/issues/233)) ([f83d3ed](https://github.com/googleapis/nodejs-media-translation/commit/f83d3ed1a04e4d382071df6202a1b2fb394ee2d0))

## [3.0.0](https://github.com/googleapis/nodejs-media-translation/compare/v2.4.0...v3.0.0) (2022-06-09)


### ⚠ BREAKING CHANGES

* update library to use Node 12 (#225)

### Bug Fixes

* fixes for dynamic routing and streaming descriptors ([#228](https://github.com/googleapis/nodejs-media-translation/issues/228)) ([c1bbe17](https://github.com/googleapis/nodejs-media-translation/commit/c1bbe17e481387dfeda9c842f3d30bbfee11eab6))


### Build System

* update library to use Node 12 ([#225](https://github.com/googleapis/nodejs-media-translation/issues/225)) ([25b13e3](https://github.com/googleapis/nodejs-media-translation/commit/25b13e39949ba1694254f7cb85c07f03314f1ad9))

## [2.4.0](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.3.4...v2.4.0) (2021-09-08)


### Features

* turns on self-signed JWT feature flag ([#176](https://www.github.com/googleapis/nodejs-media-translation/issues/176)) ([26a0d2e](https://www.github.com/googleapis/nodejs-media-translation/commit/26a0d2e7b39176ad27dcfe076c70fc5c90be5159))

### [2.3.4](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.3.3...v2.3.4) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#174](https://www.github.com/googleapis/nodejs-media-translation/issues/174)) ([b90cf10](https://www.github.com/googleapis/nodejs-media-translation/commit/b90cf1034235ab0416011de7a1b77afed5597dfc))

### [2.3.3](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.3.2...v2.3.3) (2021-07-21)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#166](https://www.github.com/googleapis/nodejs-media-translation/issues/166)) ([a1899d2](https://www.github.com/googleapis/nodejs-media-translation/commit/a1899d2f2f7bfa0894c0b1823ce75759638ff91b))

### [2.3.2](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.3.1...v2.3.2) (2021-07-12)


### Bug Fixes

* **deps:** google-gax v2.17.1 ([#164](https://www.github.com/googleapis/nodejs-media-translation/issues/164)) ([6c7caad](https://www.github.com/googleapis/nodejs-media-translation/commit/6c7caadc989cfe0e898ce2034d2fbac71208d888))

### [2.3.1](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.3.0...v2.3.1) (2021-06-30)


### Bug Fixes

* **deps:** google-gax v2.17.0 with mTLS ([#161](https://www.github.com/googleapis/nodejs-media-translation/issues/161)) ([bbd1415](https://www.github.com/googleapis/nodejs-media-translation/commit/bbd141565364bc0bbb15f1240d98683033da3001))

## [2.3.0](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.2.3...v2.3.0) (2021-06-25)


### ⚠ BREAKING CHANGES

* Remove unsupported fields: recognition_result and alternative_source_language_codes. docs: Add more comments for supported audio type (#131)

### Bug Fixes

* **build:** next version should be 2.3.0 ([#158](https://www.github.com/googleapis/nodejs-media-translation/issues/158)) ([1d4f7a0](https://www.github.com/googleapis/nodejs-media-translation/commit/1d4f7a00e3a88ab1581c5e690cad40074738cefb))
* **deps:** require google-gax v2.12.0 ([#139](https://www.github.com/googleapis/nodejs-media-translation/issues/139)) ([bda81f9](https://www.github.com/googleapis/nodejs-media-translation/commit/bda81f920df258677ae4b24b647ee4c17a0ccbef))
* GoogleAdsError missing using generator version after 1.3.0 ([#147](https://www.github.com/googleapis/nodejs-media-translation/issues/147)) ([735843a](https://www.github.com/googleapis/nodejs-media-translation/commit/735843a9bbeb84be9f61a718271bcd81860a5eaa))
* Remove unsupported fields: recognition_result and alternative_source_language_codes. docs: Add more comments for supported audio type ([#131](https://www.github.com/googleapis/nodejs-media-translation/issues/131)) ([cfaeb1c](https://www.github.com/googleapis/nodejs-media-translation/commit/cfaeb1ce0699eaa372d1ed726bd445177dafe546))
* use require() to load JSON protos ([#141](https://www.github.com/googleapis/nodejs-media-translation/issues/141)) ([1bc887c](https://www.github.com/googleapis/nodejs-media-translation/commit/1bc887cb22014d066e2c382a7f8cf7f518ec903d))

### [2.2.3](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.2.2...v2.2.3) (2021-02-04)


### Bug Fixes

* Added check to see if stream has been destroyed before writing result… ([#107](https://www.github.com/googleapis/nodejs-media-translation/issues/107)) ([5922538](https://www.github.com/googleapis/nodejs-media-translation/commit/592253836803d0ee6002a6e4c4d8a48d219f5d92))

### [2.2.2](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.2.1...v2.2.2) (2020-11-25)


### Bug Fixes

* **browser:** check for fetch on window ([c0245c5](https://www.github.com/googleapis/nodejs-media-translation/commit/c0245c54d8c45f1f3171e9066bc7bab3c4162b69))

### [2.2.1](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.2.0...v2.2.1) (2020-11-07)


### Bug Fixes

* do not modify options object, use defaultScopes ([#94](https://www.github.com/googleapis/nodejs-media-translation/issues/94)) ([5c6d930](https://www.github.com/googleapis/nodejs-media-translation/commit/5c6d930f215a55b876fcda36a1c448aca2b92b8f))

## [2.2.0](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.1.0...v2.2.0) (2020-06-28)


### Features

* move ts target to es2018 from es2016 ([#46](https://www.github.com/googleapis/nodejs-media-translation/issues/46)) ([2e5065b](https://www.github.com/googleapis/nodejs-media-translation/commit/2e5065b0ecb6c38148ec31bf8966617bf7d024d9))
* **samples:** demonstrate real-time conversation translation ([#48](https://www.github.com/googleapis/nodejs-media-translation/issues/48)) ([6331d9d](https://www.github.com/googleapis/nodejs-media-translation/commit/6331d9dd361a003c66ab532f904e1ae298ae296f))


### Bug Fixes

* proper fallback option handling ([e0a5f7d](https://www.github.com/googleapis/nodejs-media-translation/commit/e0a5f7de5bd279e302b597ab73406de651d9937b))

## [2.1.0](https://www.github.com/googleapis/nodejs-media-translation/compare/v2.0.0...v2.1.0) (2020-06-04)


### Features

* adds 'single_utterance' to stream from file sample ([#20](https://www.github.com/googleapis/nodejs-media-translation/issues/20)) ([9455e20](https://www.github.com/googleapis/nodejs-media-translation/commit/9455e207de7ff9c9f72936dd3a908b694eee59fe))


### Bug Fixes

* regen protos and tests, formatting ([#39](https://www.github.com/googleapis/nodejs-media-translation/issues/39)) ([684f355](https://www.github.com/googleapis/nodejs-media-translation/commit/684f355cbecec36c18763b59ddec613c0ea097a9))
* remove eslint, update gax, fix generated protos, run the generator ([#24](https://www.github.com/googleapis/nodejs-media-translation/issues/24)) ([3aca62a](https://www.github.com/googleapis/nodejs-media-translation/commit/3aca62aed3a4e49e4892f9ad29c3d0166c57fa56))
* streaming mic sample ([488c235](https://www.github.com/googleapis/nodejs-media-translation/commit/488c23522b31e26b419c9a4cb5829969e9050928))

## [2.0.0](https://www.github.com/googleapis/nodejs-media-translation/compare/v1.0.0...v2.0.0) (2020-04-05)


### ⚠ BREAKING CHANGES

* The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM.

### Features

* adds media translation file, mic samples ([db91593](https://www.github.com/googleapis/nodejs-media-translation/commit/db915930164484cc016dcb5fbe215d9eef00b412))
* drop node8 support ([#17](https://www.github.com/googleapis/nodejs-media-translation/issues/17)) ([b662dc6](https://www.github.com/googleapis/nodejs-media-translation/commit/b662dc61e43c34b1c56f156eb18d0bbf98170e59))

## 1.0.0 (2020-03-24)


### ⚠ BREAKING CHANGES

* initial library generation (#1)

### Features

* initial library generation ([#1](https://www.github.com/googleapis/nodejs-media-translation/issues/1)) ([33bc8b9](https://www.github.com/googleapis/nodejs-media-translation/commit/33bc8b9469fde7f0d55b7445d2f63e772ed76fee))
Loading

0 comments on commit 6b3fca4

Please sign in to comment.