Skip to content
Permalink
Browse files
feat: add total_billed_time response field
Committer: @cherba
PiperOrigin-RevId: 387131819

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Jul 27 09:49:47 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 4fca877897a4639796bba0731c6f579724d80d72
Source-Link: googleapis/googleapis@4fca877

Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>

fix: phrase_set_id is required field in CreatePhraseSetRequest
fix: custom_class_id is required field in CreateCustomClassRequest.
  • Loading branch information
yoshi-automation committed Aug 10, 2021
1 parent 8bfebf0 commit 08ff21639093413f6bb0f7df7c2747d6a5b8437b
Showing with 1,222 additions and 235 deletions.
  1. +8 −8 google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java
  2. +4 −0 google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java
  3. +14 −14 ...ud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java
  4. +4 −4 ...-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java
  5. +14 −14 ...loud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java
  6. +4 −4 ...ch-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java
  7. +276 −0 ...peech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java
  8. +35 −0 ...1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java
  9. +276 −0 ...gle-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java
  10. +35 −0 ...-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java
  11. +26 −13 ...ogle-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java
  12. +8 −4 ...d-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
  13. +93 −93 ...cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
  14. +68 −64 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java
  15. +10 −8 ...e-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java
  16. +288 −0 ...-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java
  17. +38 −0 ...1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
  18. +10 −0 proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto
  19. +4 −4 ...cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
  20. +3 −1 proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto
  21. +4 −4 synth.metadata
@@ -170,8 +170,8 @@ public AdaptationStub getStub() {
* @param parent Required. The parent resource where this phrase set will be created. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets
* @param phraseSet Required. The phrase set to create.
* @param phraseSetId The ID to use for the phrase set, which will become the final component of
* the phrase set's resource name.
* @param phraseSetId Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -206,8 +206,8 @@ public final PhraseSet createPhraseSet(
* @param parent Required. The parent resource where this phrase set will be created. Format:
* {api_version}/projects/{project}/locations/{location}/phraseSets
* @param phraseSet Required. The phrase set to create.
* @param phraseSetId The ID to use for the phrase set, which will become the final component of
* the phrase set's resource name.
* @param phraseSetId Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -687,8 +687,8 @@ public final UnaryCallable<DeletePhraseSetRequest, Empty> deletePhraseSetCallabl
* @param parent Required. The parent resource where this custom class will be created. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses
* @param customClass Required. The custom class to create.
* @param customClassId The ID to use for the custom class, which will become the final component
* of the custom class' resource name.
* @param customClassId Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -721,8 +721,8 @@ public final CustomClass createCustomClass(
* @param parent Required. The parent resource where this custom class will be created. Format:
* {api_version}/projects/{project}/locations/{location}/customClasses
* @param customClass Required. The custom class to create.
* @param customClassId The ID to use for the custom class, which will become the final component
* of the custom class' resource name.
* @param customClassId Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -30,6 +30,7 @@
import com.google.longrunning.Operation;
import com.google.protobuf.AbstractMessage;
import com.google.protobuf.Any;
import com.google.protobuf.Duration;
import com.google.rpc.Status;
import io.grpc.StatusRuntimeException;
import java.io.IOException;
@@ -89,6 +90,7 @@ public void recognizeTest() throws Exception {
RecognizeResponse expectedResponse =
RecognizeResponse.newBuilder()
.addAllResults(new ArrayList<SpeechRecognitionResult>())
.setTotalBilledTime(Duration.newBuilder().build())
.build();
mockSpeech.addResponse(expectedResponse);

@@ -130,6 +132,7 @@ public void longRunningRecognizeTest() throws Exception {
LongRunningRecognizeResponse expectedResponse =
LongRunningRecognizeResponse.newBuilder()
.addAllResults(new ArrayList<SpeechRecognitionResult>())
.setTotalBilledTime(Duration.newBuilder().build())
.setOutputConfig(TranscriptOutputConfig.newBuilder().build())
.setOutputError(Status.newBuilder().build())
.build();
@@ -184,6 +187,7 @@ public void streamingRecognizeTest() throws Exception {
StreamingRecognizeResponse.newBuilder()
.setError(Status.newBuilder().build())
.addAllResults(new ArrayList<StreamingRecognitionResult>())
.setTotalBilledTime(Duration.newBuilder().build())
.build();
mockSpeech.addResponse(expectedResponse);
StreamingRecognizeRequest request = StreamingRecognizeRequest.newBuilder().build();
@@ -198,13 +198,13 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The customClassId.
*/
@@ -224,13 +224,13 @@ public java.lang.String getCustomClassId() {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for customClassId.
*/
@@ -795,13 +795,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The customClassId.
*/
@@ -820,13 +820,13 @@ public java.lang.String getCustomClassId() {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for customClassId.
*/
@@ -845,13 +845,13 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @param value The customClassId to set.
* @return This builder for chaining.
@@ -869,13 +869,13 @@ public Builder setCustomClassId(java.lang.String value) {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return This builder for chaining.
*/
@@ -889,13 +889,13 @@ public Builder clearCustomClassId() {
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @param value The bytes for customClassId to set.
* @return This builder for chaining.
@@ -60,13 +60,13 @@
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The customClassId.
*/
@@ -75,13 +75,13 @@
*
*
* <pre>
* The ID to use for the custom class, which will become the final
* Required. The ID to use for the custom class, which will become the final
* component of the custom class' resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string custom_class_id = 2;</code>
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for customClassId.
*/
@@ -198,13 +198,13 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The phraseSetId.
*/
@@ -224,13 +224,13 @@ public java.lang.String getPhraseSetId() {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for phraseSetId.
*/
@@ -795,13 +795,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The phraseSetId.
*/
@@ -820,13 +820,13 @@ public java.lang.String getPhraseSetId() {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for phraseSetId.
*/
@@ -845,13 +845,13 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @param value The phraseSetId to set.
* @return This builder for chaining.
@@ -869,13 +869,13 @@ public Builder setPhraseSetId(java.lang.String value) {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return This builder for chaining.
*/
@@ -889,13 +889,13 @@ public Builder clearPhraseSetId() {
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @param value The bytes for phraseSetId to set.
* @return This builder for chaining.
@@ -60,13 +60,13 @@
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The phraseSetId.
*/
@@ -75,13 +75,13 @@
*
*
* <pre>
* The ID to use for the phrase set, which will become the final
* Required. The ID to use for the phrase set, which will become the final
* component of the phrase set's resource name.
* This value should be 4-63 characters, and valid characters
* are /[a-z][0-9]-/.
* </pre>
*
* <code>string phrase_set_id = 2;</code>
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*
* @return The bytes for phraseSetId.
*/

0 comments on commit 08ff216

Please sign in to comment.