-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: remove samples and update readme (#746)
* samples: remove samples and update readme * delete files * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
30d1ea2
commit 87c39bd
Showing
6 changed files
with
2 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,3 @@ | ||
[//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[//]: # "To regenerate it, use `python -m synthtool`." | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
# Notice | ||
|
||
# [Cloud Media Translation: Java Samples](https://github.com/googleapis/java-mediatranslation) | ||
|
||
[![Open in Cloud Shell][shell_img]][shell_link] | ||
|
||
|
||
|
||
## Table of Contents | ||
|
||
* [Build the sample](#build-the-sample) | ||
* [Samples](#samples) | ||
|
||
|
||
## Build the sample | ||
|
||
Install [Maven](http://maven.apache.org/). | ||
|
||
Build your project with: | ||
|
||
``` | ||
mvn clean package -DskipTests | ||
``` | ||
|
||
## Samples | ||
|
||
Please follow the [Set Up Your Project](https://cloud.google.com/media-translation/docs/getting-started#set_up_your_project) | ||
steps in the Quickstart doc to create a project and enable the Google Cloud | ||
Media Translation API. Following those steps, make sure that you | ||
[Set Up a Service Account](https://cloud.google.com/media-translation/docs/common/auth#set_up_a_service_account), | ||
and export the following environment variable: | ||
|
||
``` | ||
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json | ||
``` | ||
|
||
After you have authorized, you can translate media. | ||
|
||
|
||
## Run | ||
Run all tests: | ||
``` | ||
mvn clean verify | ||
``` | ||
|
||
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png | ||
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-mediatranslation&page=editor&open_in_editor=samples/snippets/README.md | ||
[product-docs]: https://cloud.google.com/mediatranslation/docs/ | ||
- **11/9/2022:** The non-autogenerated code samples that used to live in this directory have been migrated to a different location: https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/mediatranslation |
Binary file not shown.
98 changes: 0 additions & 98 deletions
98
...lation/samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromFile.java
This file was deleted.
Oops, something went wrong.
132 changes: 0 additions & 132 deletions
132
...slation/samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromMic.java
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
...on/samples/snippets/src/test/java/com/example/mediatranslation/TranslateFromFileTest.java
This file was deleted.
Oops, something went wrong.