-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add locations metadata proto file (#5565)
* feat: add locations metadata proto file docs: update the list of automatically detected encodings docs: update the maximum number of files that may be included in a BatchRecognizeRequest PiperOrigin-RevId: 653986958 Source-Link: googleapis/googleapis@58cd55f Source-Link: googleapis/googleapis-gen@7d99f9c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiN2Q5OWY5YzFkMWViMTEzZjU5YzAwZDUyZDc0YjJjZTA2YzE4ZWMyYiJ9 * 🦉 Updates from OwlBot post-processor 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
1 parent
506973d
commit 910c9d4
Showing
10 changed files
with
2,775 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
packages/google-cloud-speech/protos/google/cloud/speech/v2/locations_metadata.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Copyright 2024 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.speech.v2; | ||
|
||
option go_package = "cloud.google.com/go/speech/apiv2/speechpb;speechpb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "LocationsMetadataProto"; | ||
option java_package = "com.google.cloud.speech.v2"; | ||
|
||
// Representes a singular feature of a model. If the feature is `recognizer`, | ||
// the release_state of the feature represents the release_state of the model | ||
message ModelFeature { | ||
// The name of the feature (Note: the feature can be `recognizer`) | ||
string feature = 1; | ||
|
||
// The release state of the feature | ||
string release_state = 2; | ||
} | ||
|
||
// Represents the collection of features belonging to a model | ||
message ModelFeatures { | ||
// Repeated field that contains all features of the model | ||
repeated ModelFeature model_feature = 1; | ||
} | ||
|
||
// The metadata about the models in a given region for a specific locale. | ||
// Currently this is just the features of the model | ||
message ModelMetadata { | ||
// Map of the model name -> features of that model | ||
map<string, ModelFeatures> model_features = 1; | ||
} | ||
|
||
// The metadata about locales available in a given region. Currently this is | ||
// just the models that are available for each locale | ||
message LanguageMetadata { | ||
// Map of locale (language code) -> models | ||
map<string, ModelMetadata> models = 1; | ||
} | ||
|
||
// The access metadata for a particular region. This can be applied if the org | ||
// policy for the given project disallows a particular region. | ||
message AccessMetadata { | ||
// Describes the different types of constraints that can be applied on a | ||
// region. | ||
enum ConstraintType { | ||
// Unspecified constraint applied. | ||
CONSTRAINT_TYPE_UNSPECIFIED = 0; | ||
|
||
// The project's org policy disallows the given region. | ||
RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT = 1; | ||
} | ||
|
||
// Describes the different types of constraints that are applied. | ||
ConstraintType constraint_type = 1; | ||
} | ||
|
||
// Main metadata for the Locations API for STT V2. Currently this is just the | ||
// metadata about locales, models, and features | ||
message LocationsMetadata { | ||
// Information about available locales, models, and features represented in | ||
// the hierarchical structure of locales -> models -> features | ||
LanguageMetadata languages = 1; | ||
|
||
// Information about access metadata for the region and given project. | ||
AccessMetadata access_metadata = 2; | ||
} |
Oops, something went wrong.