Skip to content

Commit

Permalink
feat: [speech] add translation_config in RecognitionConfig message (
Browse files Browse the repository at this point in the history
#10659)

* feat: add `translation_config` in `RecognitionConfig` message

Enables specifying target language to perform automatic translation to.

PiperOrigin-RevId: 621862394

Source-Link: googleapis/googleapis@9deb78b

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f109618460c3c2ad1c19f0ff6f59c451c2fc830e
Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6ImYxMDk2MTg0NjBjM2MyYWQxYzE5ZjBmZjZmNTljNDUxYzJmYzgzMGUifQ==

* 🦉 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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 4, 2024
1 parent c5cd79c commit 2e05371
Show file tree
Hide file tree
Showing 10 changed files with 1,527 additions and 449 deletions.
4 changes: 2 additions & 2 deletions java-speech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.34.0</version>
<version>26.36.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -231,7 +231,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.33.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.35.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.TranslationConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.TranslationConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.UndeleteCustomClassRequest",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public com.google.cloud.speech.v2.InlineResultOrBuilder getInlineResultOrBuilder
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return The uri.
*/
@java.lang.Override
Expand All @@ -352,7 +352,7 @@ public java.lang.String getUri() {
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return The bytes for uri.
*/
@java.lang.Override
Expand Down Expand Up @@ -381,7 +381,7 @@ public com.google.protobuf.ByteString getUriBytes() {
* <code>.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* google/cloud/speech/v2/cloud_speech.proto;l=1421
* @return Whether the transcript field is set.
*/
@java.lang.Override
Expand All @@ -399,7 +399,7 @@ public boolean hasTranscript() {
* <code>.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* google/cloud/speech/v2/cloud_speech.proto;l=1421
* @return The transcript.
*/
@java.lang.Override
Expand Down Expand Up @@ -1766,7 +1766,7 @@ public com.google.cloud.speech.v2.InlineResultOrBuilder getInlineResultOrBuilder
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return The uri.
*/
@java.lang.Deprecated
Expand All @@ -1791,7 +1791,7 @@ public java.lang.String getUri() {
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return The bytes for uri.
*/
@java.lang.Deprecated
Expand All @@ -1816,7 +1816,7 @@ public com.google.protobuf.ByteString getUriBytes() {
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @param value The uri to set.
* @return This builder for chaining.
*/
Expand All @@ -1840,7 +1840,7 @@ public Builder setUri(java.lang.String value) {
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand All @@ -1860,7 +1860,7 @@ public Builder clearUri() {
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
Expand Down Expand Up @@ -1893,7 +1893,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
* </code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* google/cloud/speech/v2/cloud_speech.proto;l=1421
* @return Whether the transcript field is set.
*/
@java.lang.Deprecated
Expand All @@ -1911,7 +1911,7 @@ public boolean hasTranscript() {
* </code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* google/cloud/speech/v2/cloud_speech.proto;l=1421
* @return The transcript.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public interface BatchRecognizeFileResultOrBuilder
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return The uri.
*/
@java.lang.Deprecated
Expand All @@ -190,7 +190,7 @@ public interface BatchRecognizeFileResultOrBuilder
* <code>string uri = 1 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* google/cloud/speech/v2/cloud_speech.proto;l=1418
* @return The bytes for uri.
*/
@java.lang.Deprecated
Expand All @@ -206,7 +206,7 @@ public interface BatchRecognizeFileResultOrBuilder
* <code>.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* google/cloud/speech/v2/cloud_speech.proto;l=1421
* @return Whether the transcript field is set.
*/
@java.lang.Deprecated
Expand All @@ -221,7 +221,7 @@ public interface BatchRecognizeFileResultOrBuilder
* <code>.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];</code>
*
* @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* google/cloud/speech/v2/cloud_speech.proto;l=1421
* @return The transcript.
*/
@java.lang.Deprecated
Expand Down
Loading

0 comments on commit 2e05371

Please sign in to comment.