Skip to content

Commit

Permalink
fix: failing tests for LRO check methods (#784)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 2, 2021
1 parent 0898988 commit 390ed67
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ message RecognizeResponse {
// Sequential list of transcription results corresponding to
// sequential portions of audio.
repeated SpeechRecognitionResult results = 2;

// When available, billed audio seconds for the corresponding request.
google.protobuf.Duration total_billed_time = 3;
}

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

// When available, billed audio seconds for the corresponding request.
google.protobuf.Duration total_billed_time = 3;

// Original output config if present in the request.
TranscriptOutputConfig output_config = 6;

Expand Down Expand Up @@ -768,6 +774,10 @@ message StreamingRecognizeResponse {

// Indicates the type of speech event.
SpeechEventType speech_event_type = 4;

// When available, billed audio seconds for the stream.
// Set only if this is the last response in the stream.
google.protobuf.Duration total_billed_time = 5;
}

// A streaming speech recognition result corresponding to a portion of the audio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ message CreatePhraseSetRequest {
}
];

// 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]-/.
string phrase_set_id = 2;
string phrase_set_id = 2 [(google.api.field_behavior) = REQUIRED];

// Required. The phrase set to create.
PhraseSet phrase_set = 3 [(google.api.field_behavior) = REQUIRED];
Expand Down Expand Up @@ -233,12 +233,12 @@ message CreateCustomClassRequest {
}
];

// 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]-/.
string custom_class_id = 2;
string custom_class_id = 2 [(google.api.field_behavior) = REQUIRED];

// Required. The custom class to create.
CustomClass custom_class = 3 [(google.api.field_behavior) = REQUIRED];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ message SpeechAdaptation {
repeated PhraseSet phrase_sets = 1;

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

// A collection of custom classes. To specify the classes inline, leave the
// class' `name` blank and fill in the rest of its fields, giving it a unique
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-node/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 390ed67

Please sign in to comment.