Skip to content

Commit 390ed67

Browse files
fix: failing tests for LRO check methods (#784)
* fix: failing tests for LRO check methods Updated gapic-generator-typescript to v2.1.1. Committer: @alexander-fenster PiperOrigin-RevId: 387841814 Source-Link: googleapis/googleapis@f973532 Source-Link: googleapis/googleapis-gen@acb489d * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0898988 commit 390ed67

File tree

7 files changed

+143
-10
lines changed

7 files changed

+143
-10
lines changed

packages/google-cloud-node/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto

+10
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ message RecognizeResponse {
650650
// Sequential list of transcription results corresponding to
651651
// sequential portions of audio.
652652
repeated SpeechRecognitionResult results = 2;
653+
654+
// When available, billed audio seconds for the corresponding request.
655+
google.protobuf.Duration total_billed_time = 3;
653656
}
654657

655658
// The only message returned to the client by the `LongRunningRecognize` method.
@@ -662,6 +665,9 @@ message LongRunningRecognizeResponse {
662665
// sequential portions of audio.
663666
repeated SpeechRecognitionResult results = 2;
664667

668+
// When available, billed audio seconds for the corresponding request.
669+
google.protobuf.Duration total_billed_time = 3;
670+
665671
// Original output config if present in the request.
666672
TranscriptOutputConfig output_config = 6;
667673

@@ -768,6 +774,10 @@ message StreamingRecognizeResponse {
768774

769775
// Indicates the type of speech event.
770776
SpeechEventType speech_event_type = 4;
777+
778+
// When available, billed audio seconds for the stream.
779+
// Set only if this is the last response in the stream.
780+
google.protobuf.Duration total_billed_time = 5;
771781
}
772782

773783
// A streaming speech recognition result corresponding to a portion of the audio

packages/google-cloud-node/protos/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto

+4-4
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ message CreatePhraseSetRequest {
135135
}
136136
];
137137

138-
// The ID to use for the phrase set, which will become the final
138+
// Required. The ID to use for the phrase set, which will become the final
139139
// component of the phrase set's resource name.
140140
//
141141
// This value should be 4-63 characters, and valid characters
142142
// are /[a-z][0-9]-/.
143-
string phrase_set_id = 2;
143+
string phrase_set_id = 2 [(google.api.field_behavior) = REQUIRED];
144144

145145
// Required. The phrase set to create.
146146
PhraseSet phrase_set = 3 [(google.api.field_behavior) = REQUIRED];
@@ -233,12 +233,12 @@ message CreateCustomClassRequest {
233233
}
234234
];
235235

236-
// The ID to use for the custom class, which will become the final
236+
// Required. The ID to use for the custom class, which will become the final
237237
// component of the custom class' resource name.
238238
//
239239
// This value should be 4-63 characters, and valid characters
240240
// are /[a-z][0-9]-/.
241-
string custom_class_id = 2;
241+
string custom_class_id = 2 [(google.api.field_behavior) = REQUIRED];
242242

243243
// Required. The custom class to create.
244244
CustomClass custom_class = 3 [(google.api.field_behavior) = REQUIRED];

packages/google-cloud-node/protos/google/cloud/speech/v1p1beta1/resource.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ message SpeechAdaptation {
122122
repeated PhraseSet phrase_sets = 1;
123123

124124
// A collection of phrase set resource names to use.
125-
repeated string phrase_set_references = 2;
125+
repeated string phrase_set_references = 2 [(google.api.resource_reference) = {
126+
type: "speech.googleapis.com/PhraseSet"
127+
}];
126128

127129
// A collection of custom classes. To specify the classes inline, leave the
128130
// class' `name` blank and fill in the rest of its fields, giving it a unique

packages/google-cloud-node/protos/protos.d.ts

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)