Skip to content
Permalink
Browse files
feat: add result_end_time to SpeechRecognitionResult (#741)
* feat: add result_end_time to SpeechRecognitionResult

PiperOrigin-RevId: 413728495

Source-Link: googleapis/googleapis@10f96cb

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f464864292eb6b055f1e1d8408aff87817cca64c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjQ2NDg2NDI5MmViNmIwNTVmMWUxZDg0MDhhZmY4NzgxN2NjYTY0YyJ9

* 🦉 Updates from OwlBot

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] committed Dec 6, 2021
1 parent 02d0088 commit 9d13751da45b6b32d513d58c270dda523a722e4d
Showing with 11,347 additions and 564 deletions.
  1. +3 −1 google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java
  2. +75 −18 google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java
  3. +2 −0 google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java
  4. +1,970 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java
  5. +129 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java
  6. +542 −0 ...google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java
  7. +70 −0 ...oud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java
  8. +2,086 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java
  9. +123 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java
  10. +1,569 −21 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java
  11. +257 −0 ...o-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java
  12. +1,842 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java
  13. +209 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
  14. +119 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
  15. +20 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java
  16. +148 −128 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java
  17. +481 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
  18. +67 −0 ...le-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java
  19. +145 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java
  20. +21 −21 ...o-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java
  21. +6 −6 ...cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java
  22. +115 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java
  23. +19 −0 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java
  24. +88 −6 proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto
  25. +140 −0 proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto
  26. +49 −21 ...ud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java
  27. +14 −6 ...-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java
  28. +49 −21 ...loud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java
  29. +14 −6 ...ch-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java
  30. +49 −21 ...ud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java
  31. +14 −6 ...-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java
  32. +14 −21 ...loud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java
  33. +4 −6 ...ch-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java
  34. +14 −21 ...cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java
  35. +4 −6 ...ech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java
  36. +49 −21 ...e-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java
  37. +14 −6 ...peech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java
  38. +49 −21 ...ud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java
  39. +14 −6 ...-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java
  40. +49 −21 ...-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java
  41. +14 −6 ...eech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java
  42. +20 −15 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java
  43. +30 −31 ...gle-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java
  44. +6 −6 ...-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java
  45. +31 −30 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java
  46. +288 −0 ...oud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
  47. +38 −0 ...h-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java
  48. +72 −12 ...ud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java
  49. +18 −3 ...-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java
  50. +72 −12 ...loud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java
  51. +18 −3 ...ch-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java
  52. +10 −6 proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto
  53. +76 −26 ...cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
  54. +8 −3 proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto
@@ -15,7 +15,9 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to Cloud Speech-to-Text API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= SpeechClient =======================
*
@@ -167,7 +167,11 @@ public AdaptationStub getStub() {
* }</pre>
*
* @param parent Required. The parent resource where this phrase set will be created. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets
* <p>`projects/{project}/locations/{location}/phraseSets`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @param phraseSet Required. The phrase set to create.
* @param phraseSetId Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
@@ -203,7 +207,11 @@ public final PhraseSet createPhraseSet(
* }</pre>
*
* @param parent Required. The parent resource where this phrase set will be created. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets
* <p>`projects/{project}/locations/{location}/phraseSets`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @param phraseSet Required. The phrase set to create.
* @param phraseSetId Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
@@ -287,7 +295,11 @@ public final UnaryCallable<CreatePhraseSetRequest, PhraseSet> createPhraseSetCal
* }</pre>
*
* @param name Required. The name of the phrase set to retrieve. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set}
* <p>`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final PhraseSet getPhraseSet(PhraseSetName name) {
@@ -310,7 +322,11 @@ public final PhraseSet getPhraseSet(PhraseSetName name) {
* }</pre>
*
* @param name Required. The name of the phrase set to retrieve. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set}
* <p>`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final PhraseSet getPhraseSet(String name) {
@@ -379,7 +395,11 @@ public final UnaryCallable<GetPhraseSetRequest, PhraseSet> getPhraseSetCallable(
* }</pre>
*
* @param parent Required. The parent, which owns this collection of phrase set. Format:
* projects/{project}/locations/{location}
* <p>`projects/{project}/locations/{location}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) {
@@ -406,7 +426,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) {
* }</pre>
*
* @param parent Required. The parent, which owns this collection of phrase set. Format:
* projects/{project}/locations/{location}
* <p>`projects/{project}/locations/{location}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListPhraseSetPagedResponse listPhraseSet(String parent) {
@@ -518,7 +542,11 @@ public final UnaryCallable<ListPhraseSetRequest, ListPhraseSetResponse> listPhra
*
* @param phraseSet Required. The phrase set to update.
* <p>The phrase set's `name` field is used to identify the set to be updated. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set}
* <p>`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @param updateMask The list of fields to be updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -592,7 +620,7 @@ public final UnaryCallable<UpdatePhraseSetRequest, PhraseSet> updatePhraseSetCal
* }</pre>
*
* @param name Required. The name of the phrase set to delete. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set}
* <p>`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deletePhraseSet(PhraseSetName name) {
@@ -615,7 +643,7 @@ public final void deletePhraseSet(PhraseSetName name) {
* }</pre>
*
* @param name Required. The name of the phrase set to delete. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set}
* <p>`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deletePhraseSet(String name) {
@@ -684,7 +712,11 @@ public final UnaryCallable<DeletePhraseSetRequest, Empty> deletePhraseSetCallabl
* }</pre>
*
* @param parent Required. The parent resource where this custom class will be created. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses
* <p>`projects/{project}/locations/{location}/customClasses`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @param customClass Required. The custom class to create.
* @param customClassId Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
@@ -718,7 +750,11 @@ public final CustomClass createCustomClass(
* }</pre>
*
* @param parent Required. The parent resource where this custom class will be created. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses
* <p>`projects/{project}/locations/{location}/customClasses`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @param customClass Required. The custom class to create.
* @param customClassId Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
@@ -800,7 +836,7 @@ public final UnaryCallable<CreateCustomClassRequest, CustomClass> createCustomCl
* }</pre>
*
* @param name Required. The name of the custom class to retrieve. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class}
* <p>`projects/{project}/locations/{location}/customClasses/{custom_class}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CustomClass getCustomClass(CustomClassName name) {
@@ -823,7 +859,7 @@ public final CustomClass getCustomClass(CustomClassName name) {
* }</pre>
*
* @param name Required. The name of the custom class to retrieve. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class}
* <p>`projects/{project}/locations/{location}/customClasses/{custom_class}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CustomClass getCustomClass(String name) {
@@ -892,7 +928,11 @@ public final UnaryCallable<GetCustomClassRequest, CustomClass> getCustomClassCal
* }</pre>
*
* @param parent Required. The parent, which owns this collection of custom classes. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses
* <p>`projects/{project}/locations/{location}/customClasses`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListCustomClassesPagedResponse listCustomClasses(LocationName parent) {
@@ -919,7 +959,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(LocationName paren
* }</pre>
*
* @param parent Required. The parent, which owns this collection of custom classes. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses
* <p>`projects/{project}/locations/{location}/customClasses`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListCustomClassesPagedResponse listCustomClasses(String parent) {
@@ -1034,7 +1078,12 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
*
* @param customClass Required. The custom class to update.
* <p>The custom class's `name` field is used to identify the custom class to be updated.
* Format: {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class}
* Format:
* <p>`projects/{project}/locations/{location}/customClasses/{custom_class}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @param updateMask The list of fields to be updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1109,7 +1158,11 @@ public final UnaryCallable<UpdateCustomClassRequest, CustomClass> updateCustomCl
* }</pre>
*
* @param name Required. The name of the custom class to delete. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class}
* <p>`projects/{project}/locations/{location}/customClasses/{custom_class}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteCustomClass(CustomClassName name) {
@@ -1134,7 +1187,11 @@ public final void deleteCustomClass(CustomClassName name) {
* }</pre>
*
* @param name Required. The name of the custom class to delete. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class}
* <p>`projects/{project}/locations/{location}/customClasses/{custom_class}`
* <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
* location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints)
* with matching `us` or `eu` location value.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteCustomClass(String name) {
@@ -133,6 +133,8 @@ public void longRunningRecognizeTest() throws Exception {
LongRunningRecognizeResponse.newBuilder()
.addAllResults(new ArrayList<SpeechRecognitionResult>())
.setTotalBilledTime(Duration.newBuilder().build())
.setOutputConfig(TranscriptOutputConfig.newBuilder().build())
.setOutputError(Status.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()

0 comments on commit 9d13751

Please sign in to comment.