Skip to content

Commit

Permalink
feat: [speech] add API for writing BatchRecognize transcripts in SRT …
Browse files Browse the repository at this point in the history
…and VTT formats (#10414)

- [ ] Regenerate this pull request now.

docs: update field documentation based on field behavior updates

PiperOrigin-RevId: 609024258

Source-Link: https://togithub.com/googleapis/googleapis/commit/4d70a58597dc8288a63741373dff456f32a12652

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/aeb46892d9543cde1b51d9eebf553d9026056292
Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6ImFlYjQ2ODkyZDk1NDNjZGUxYjUxZDllZWJmNTUzZDkwMjYwNTYyOTIifQ==
  • Loading branch information
gcf-owl-bot[bot] authored Feb 29, 2024
1 parent 4ed5b45 commit 73bd736
Show file tree
Hide file tree
Showing 28 changed files with 4,985 additions and 651 deletions.
2 changes: 1 addition & 1 deletion java-speech/README.md
Original file line number Diff line number Diff line change
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.30.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.31.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 @@ -1052,6 +1052,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.NativeOutputFileFormatConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.NativeOutputFileFormatConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.OperationMetadata",
"queryAllDeclaredConstructors": true,
Expand All @@ -1070,6 +1088,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.OutputFormatConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.OutputFormatConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.PhraseSet",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -1349,6 +1385,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.SrtOutputFileFormatConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.SrtOutputFileFormatConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.StreamingRecognitionConfig",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -1628,6 +1682,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.VttOutputFileFormatConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.VttOutputFileFormatConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.speech.v2.WordInfo",
"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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1357
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* @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=1357
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1357
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* @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=1357
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1354
* google/cloud/speech/v2/cloud_speech.proto;l=1406
* @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=1357
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* @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=1357
* google/cloud/speech/v2/cloud_speech.proto;l=1409
* @return The transcript.
*/
@java.lang.Deprecated
Expand Down
Loading

0 comments on commit 73bd736

Please sign in to comment.