Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 08ff216

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.
1 parent 8bfebf0 commit 08ff216

21 files changed

+1222
-235
lines changed

google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ public AdaptationStub getStub() {
170170
* @param parent Required. The parent resource where this phrase set will be created. Format:
171171
* {api_version}/projects/{project}/locations/{location}/phraseSets
172172
* @param phraseSet Required. The phrase set to create.
173-
* @param phraseSetId The ID to use for the phrase set, which will become the final component of
174-
* the phrase set's resource name.
173+
* @param phraseSetId Required. The ID to use for the phrase set, which will become the final
174+
* component of the phrase set's resource name.
175175
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
176176
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
177177
*/
@@ -206,8 +206,8 @@ public final PhraseSet createPhraseSet(
206206
* @param parent Required. The parent resource where this phrase set will be created. Format:
207207
* {api_version}/projects/{project}/locations/{location}/phraseSets
208208
* @param phraseSet Required. The phrase set to create.
209-
* @param phraseSetId The ID to use for the phrase set, which will become the final component of
210-
* the phrase set's resource name.
209+
* @param phraseSetId Required. The ID to use for the phrase set, which will become the final
210+
* component of the phrase set's resource name.
211211
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
212212
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
213213
*/
@@ -687,8 +687,8 @@ public final UnaryCallable<DeletePhraseSetRequest, Empty> deletePhraseSetCallabl
687687
* @param parent Required. The parent resource where this custom class will be created. Format:
688688
* {api_version}/projects/{project}/locations/{location}/customClasses
689689
* @param customClass Required. The custom class to create.
690-
* @param customClassId The ID to use for the custom class, which will become the final component
691-
* of the custom class' resource name.
690+
* @param customClassId Required. The ID to use for the custom class, which will become the final
691+
* component of the custom class' resource name.
692692
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
693693
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
694694
*/
@@ -721,8 +721,8 @@ public final CustomClass createCustomClass(
721721
* @param parent Required. The parent resource where this custom class will be created. Format:
722722
* {api_version}/projects/{project}/locations/{location}/customClasses
723723
* @param customClass Required. The custom class to create.
724-
* @param customClassId The ID to use for the custom class, which will become the final component
725-
* of the custom class' resource name.
724+
* @param customClassId Required. The ID to use for the custom class, which will become the final
725+
* component of the custom class' resource name.
726726
* <p>This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
727727
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
728728
*/

google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.google.longrunning.Operation;
3131
import com.google.protobuf.AbstractMessage;
3232
import com.google.protobuf.Any;
33+
import com.google.protobuf.Duration;
3334
import com.google.rpc.Status;
3435
import io.grpc.StatusRuntimeException;
3536
import java.io.IOException;
@@ -89,6 +90,7 @@ public void recognizeTest() throws Exception {
8990
RecognizeResponse expectedResponse =
9091
RecognizeResponse.newBuilder()
9192
.addAllResults(new ArrayList<SpeechRecognitionResult>())
93+
.setTotalBilledTime(Duration.newBuilder().build())
9294
.build();
9395
mockSpeech.addResponse(expectedResponse);
9496

@@ -130,6 +132,7 @@ public void longRunningRecognizeTest() throws Exception {
130132
LongRunningRecognizeResponse expectedResponse =
131133
LongRunningRecognizeResponse.newBuilder()
132134
.addAllResults(new ArrayList<SpeechRecognitionResult>())
135+
.setTotalBilledTime(Duration.newBuilder().build())
133136
.setOutputConfig(TranscriptOutputConfig.newBuilder().build())
134137
.setOutputError(Status.newBuilder().build())
135138
.build();
@@ -184,6 +187,7 @@ public void streamingRecognizeTest() throws Exception {
184187
StreamingRecognizeResponse.newBuilder()
185188
.setError(Status.newBuilder().build())
186189
.addAllResults(new ArrayList<StreamingRecognitionResult>())
190+
.setTotalBilledTime(Duration.newBuilder().build())
187191
.build();
188192
mockSpeech.addResponse(expectedResponse);
189193
StreamingRecognizeRequest request = StreamingRecognizeRequest.newBuilder().build();

proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ public com.google.protobuf.ByteString getParentBytes() {
198198
*
199199
*
200200
* <pre>
201-
* The ID to use for the custom class, which will become the final
201+
* Required. The ID to use for the custom class, which will become the final
202202
* component of the custom class' resource name.
203203
* This value should be 4-63 characters, and valid characters
204204
* are /[a-z][0-9]-/.
205205
* </pre>
206206
*
207-
* <code>string custom_class_id = 2;</code>
207+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
208208
*
209209
* @return The customClassId.
210210
*/
@@ -224,13 +224,13 @@ public java.lang.String getCustomClassId() {
224224
*
225225
*
226226
* <pre>
227-
* The ID to use for the custom class, which will become the final
227+
* Required. The ID to use for the custom class, which will become the final
228228
* component of the custom class' resource name.
229229
* This value should be 4-63 characters, and valid characters
230230
* are /[a-z][0-9]-/.
231231
* </pre>
232232
*
233-
* <code>string custom_class_id = 2;</code>
233+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
234234
*
235235
* @return The bytes for customClassId.
236236
*/
@@ -795,13 +795,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
795795
*
796796
*
797797
* <pre>
798-
* The ID to use for the custom class, which will become the final
798+
* Required. The ID to use for the custom class, which will become the final
799799
* component of the custom class' resource name.
800800
* This value should be 4-63 characters, and valid characters
801801
* are /[a-z][0-9]-/.
802802
* </pre>
803803
*
804-
* <code>string custom_class_id = 2;</code>
804+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
805805
*
806806
* @return The customClassId.
807807
*/
@@ -820,13 +820,13 @@ public java.lang.String getCustomClassId() {
820820
*
821821
*
822822
* <pre>
823-
* The ID to use for the custom class, which will become the final
823+
* Required. The ID to use for the custom class, which will become the final
824824
* component of the custom class' resource name.
825825
* This value should be 4-63 characters, and valid characters
826826
* are /[a-z][0-9]-/.
827827
* </pre>
828828
*
829-
* <code>string custom_class_id = 2;</code>
829+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
830830
*
831831
* @return The bytes for customClassId.
832832
*/
@@ -845,13 +845,13 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
845845
*
846846
*
847847
* <pre>
848-
* The ID to use for the custom class, which will become the final
848+
* Required. The ID to use for the custom class, which will become the final
849849
* component of the custom class' resource name.
850850
* This value should be 4-63 characters, and valid characters
851851
* are /[a-z][0-9]-/.
852852
* </pre>
853853
*
854-
* <code>string custom_class_id = 2;</code>
854+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
855855
*
856856
* @param value The customClassId to set.
857857
* @return This builder for chaining.
@@ -869,13 +869,13 @@ public Builder setCustomClassId(java.lang.String value) {
869869
*
870870
*
871871
* <pre>
872-
* The ID to use for the custom class, which will become the final
872+
* Required. The ID to use for the custom class, which will become the final
873873
* component of the custom class' resource name.
874874
* This value should be 4-63 characters, and valid characters
875875
* are /[a-z][0-9]-/.
876876
* </pre>
877877
*
878-
* <code>string custom_class_id = 2;</code>
878+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
879879
*
880880
* @return This builder for chaining.
881881
*/
@@ -889,13 +889,13 @@ public Builder clearCustomClassId() {
889889
*
890890
*
891891
* <pre>
892-
* The ID to use for the custom class, which will become the final
892+
* Required. The ID to use for the custom class, which will become the final
893893
* component of the custom class' resource name.
894894
* This value should be 4-63 characters, and valid characters
895895
* are /[a-z][0-9]-/.
896896
* </pre>
897897
*
898-
* <code>string custom_class_id = 2;</code>
898+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
899899
*
900900
* @param value The bytes for customClassId to set.
901901
* @return This builder for chaining.

proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public interface CreateCustomClassRequestOrBuilder
6060
*
6161
*
6262
* <pre>
63-
* The ID to use for the custom class, which will become the final
63+
* Required. The ID to use for the custom class, which will become the final
6464
* component of the custom class' resource name.
6565
* This value should be 4-63 characters, and valid characters
6666
* are /[a-z][0-9]-/.
6767
* </pre>
6868
*
69-
* <code>string custom_class_id = 2;</code>
69+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
7070
*
7171
* @return The customClassId.
7272
*/
@@ -75,13 +75,13 @@ public interface CreateCustomClassRequestOrBuilder
7575
*
7676
*
7777
* <pre>
78-
* The ID to use for the custom class, which will become the final
78+
* Required. The ID to use for the custom class, which will become the final
7979
* component of the custom class' resource name.
8080
* This value should be 4-63 characters, and valid characters
8181
* are /[a-z][0-9]-/.
8282
* </pre>
8383
*
84-
* <code>string custom_class_id = 2;</code>
84+
* <code>string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
8585
*
8686
* @return The bytes for customClassId.
8787
*/

proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ public com.google.protobuf.ByteString getParentBytes() {
198198
*
199199
*
200200
* <pre>
201-
* The ID to use for the phrase set, which will become the final
201+
* Required. The ID to use for the phrase set, which will become the final
202202
* component of the phrase set's resource name.
203203
* This value should be 4-63 characters, and valid characters
204204
* are /[a-z][0-9]-/.
205205
* </pre>
206206
*
207-
* <code>string phrase_set_id = 2;</code>
207+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
208208
*
209209
* @return The phraseSetId.
210210
*/
@@ -224,13 +224,13 @@ public java.lang.String getPhraseSetId() {
224224
*
225225
*
226226
* <pre>
227-
* The ID to use for the phrase set, which will become the final
227+
* Required. The ID to use for the phrase set, which will become the final
228228
* component of the phrase set's resource name.
229229
* This value should be 4-63 characters, and valid characters
230230
* are /[a-z][0-9]-/.
231231
* </pre>
232232
*
233-
* <code>string phrase_set_id = 2;</code>
233+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
234234
*
235235
* @return The bytes for phraseSetId.
236236
*/
@@ -795,13 +795,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
795795
*
796796
*
797797
* <pre>
798-
* The ID to use for the phrase set, which will become the final
798+
* Required. The ID to use for the phrase set, which will become the final
799799
* component of the phrase set's resource name.
800800
* This value should be 4-63 characters, and valid characters
801801
* are /[a-z][0-9]-/.
802802
* </pre>
803803
*
804-
* <code>string phrase_set_id = 2;</code>
804+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
805805
*
806806
* @return The phraseSetId.
807807
*/
@@ -820,13 +820,13 @@ public java.lang.String getPhraseSetId() {
820820
*
821821
*
822822
* <pre>
823-
* The ID to use for the phrase set, which will become the final
823+
* Required. The ID to use for the phrase set, which will become the final
824824
* component of the phrase set's resource name.
825825
* This value should be 4-63 characters, and valid characters
826826
* are /[a-z][0-9]-/.
827827
* </pre>
828828
*
829-
* <code>string phrase_set_id = 2;</code>
829+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
830830
*
831831
* @return The bytes for phraseSetId.
832832
*/
@@ -845,13 +845,13 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
845845
*
846846
*
847847
* <pre>
848-
* The ID to use for the phrase set, which will become the final
848+
* Required. The ID to use for the phrase set, which will become the final
849849
* component of the phrase set's resource name.
850850
* This value should be 4-63 characters, and valid characters
851851
* are /[a-z][0-9]-/.
852852
* </pre>
853853
*
854-
* <code>string phrase_set_id = 2;</code>
854+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
855855
*
856856
* @param value The phraseSetId to set.
857857
* @return This builder for chaining.
@@ -869,13 +869,13 @@ public Builder setPhraseSetId(java.lang.String value) {
869869
*
870870
*
871871
* <pre>
872-
* The ID to use for the phrase set, which will become the final
872+
* Required. The ID to use for the phrase set, which will become the final
873873
* component of the phrase set's resource name.
874874
* This value should be 4-63 characters, and valid characters
875875
* are /[a-z][0-9]-/.
876876
* </pre>
877877
*
878-
* <code>string phrase_set_id = 2;</code>
878+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
879879
*
880880
* @return This builder for chaining.
881881
*/
@@ -889,13 +889,13 @@ public Builder clearPhraseSetId() {
889889
*
890890
*
891891
* <pre>
892-
* The ID to use for the phrase set, which will become the final
892+
* Required. The ID to use for the phrase set, which will become the final
893893
* component of the phrase set's resource name.
894894
* This value should be 4-63 characters, and valid characters
895895
* are /[a-z][0-9]-/.
896896
* </pre>
897897
*
898-
* <code>string phrase_set_id = 2;</code>
898+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
899899
*
900900
* @param value The bytes for phraseSetId to set.
901901
* @return This builder for chaining.

proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public interface CreatePhraseSetRequestOrBuilder
6060
*
6161
*
6262
* <pre>
63-
* The ID to use for the phrase set, which will become the final
63+
* Required. The ID to use for the phrase set, which will become the final
6464
* component of the phrase set's resource name.
6565
* This value should be 4-63 characters, and valid characters
6666
* are /[a-z][0-9]-/.
6767
* </pre>
6868
*
69-
* <code>string phrase_set_id = 2;</code>
69+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
7070
*
7171
* @return The phraseSetId.
7272
*/
@@ -75,13 +75,13 @@ public interface CreatePhraseSetRequestOrBuilder
7575
*
7676
*
7777
* <pre>
78-
* The ID to use for the phrase set, which will become the final
78+
* Required. The ID to use for the phrase set, which will become the final
7979
* component of the phrase set's resource name.
8080
* This value should be 4-63 characters, and valid characters
8181
* are /[a-z][0-9]-/.
8282
* </pre>
8383
*
84-
* <code>string phrase_set_id = 2;</code>
84+
* <code>string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
8585
*
8686
* @return The bytes for phraseSetId.
8787
*/

0 commit comments

Comments
 (0)