Skip to content

Commit

Permalink
samples: remove samples and update readme (#746)
Browse files Browse the repository at this point in the history
* 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
anguillanneuf and gcf-owl-bot[bot] authored Nov 9, 2022
1 parent 30d1ea2 commit 87c39bd
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 345 deletions.
10 changes: 0 additions & 10 deletions java-mediatranslation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ use this Media Translation API Client Library.



## Samples

Samples are in the [`samples/`](https://github.com/googleapis/java-mediatranslation/tree/main/samples) directory.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Translate From File | [source code](https://github.com/googleapis/java-mediatranslation/blob/main/samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromFile.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-mediatranslation&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromFile.java) |
| Translate From Mic | [source code](https://github.com/googleapis/java-mediatranslation/blob/main/samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromMic.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-mediatranslation&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromMic.java) |



## Troubleshooting

Expand Down
51 changes: 2 additions & 49 deletions java-mediatranslation/samples/snippets/README.md
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.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 87c39bd

Please sign in to comment.