google-cloud-speech-v2 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/speech/v2/cloud_speech_pb.rb +2 -1
- data/lib/google/cloud/speech/v2/locations_metadata_pb.rb +48 -0
- data/lib/google/cloud/speech/v2/speech/client.rb +50 -24
- data/lib/google/cloud/speech/v2/speech/operations.rb +13 -5
- data/lib/google/cloud/speech/v2/speech/rest/client.rb +48 -23
- data/lib/google/cloud/speech/v2/speech/rest/operations.rb +11 -4
- data/lib/google/cloud/speech/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/speech/v2/cloud_speech.rb +9 -2
- data/proto_docs/google/cloud/speech/v2/locations_metadata.rb +120 -0
- metadata +5 -2
@@ -0,0 +1,120 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Speech
|
23
|
+
module V2
|
24
|
+
# Representes a singular feature of a model. If the feature is `recognizer`,
|
25
|
+
# the release_state of the feature represents the release_state of the model
|
26
|
+
# @!attribute [rw] feature
|
27
|
+
# @return [::String]
|
28
|
+
# The name of the feature (Note: the feature can be `recognizer`)
|
29
|
+
# @!attribute [rw] release_state
|
30
|
+
# @return [::String]
|
31
|
+
# The release state of the feature
|
32
|
+
class ModelFeature
|
33
|
+
include ::Google::Protobuf::MessageExts
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
|
+
end
|
36
|
+
|
37
|
+
# Represents the collection of features belonging to a model
|
38
|
+
# @!attribute [rw] model_feature
|
39
|
+
# @return [::Array<::Google::Cloud::Speech::V2::ModelFeature>]
|
40
|
+
# Repeated field that contains all features of the model
|
41
|
+
class ModelFeatures
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
# The metadata about the models in a given region for a specific locale.
|
47
|
+
# Currently this is just the features of the model
|
48
|
+
# @!attribute [rw] model_features
|
49
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Speech::V2::ModelFeatures}]
|
50
|
+
# Map of the model name -> features of that model
|
51
|
+
class ModelMetadata
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
|
55
|
+
# @!attribute [rw] key
|
56
|
+
# @return [::String]
|
57
|
+
# @!attribute [rw] value
|
58
|
+
# @return [::Google::Cloud::Speech::V2::ModelFeatures]
|
59
|
+
class ModelFeaturesEntry
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# The metadata about locales available in a given region. Currently this is
|
66
|
+
# just the models that are available for each locale
|
67
|
+
# @!attribute [rw] models
|
68
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Speech::V2::ModelMetadata}]
|
69
|
+
# Map of locale (language code) -> models
|
70
|
+
class LanguageMetadata
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
|
74
|
+
# @!attribute [rw] key
|
75
|
+
# @return [::String]
|
76
|
+
# @!attribute [rw] value
|
77
|
+
# @return [::Google::Cloud::Speech::V2::ModelMetadata]
|
78
|
+
class ModelsEntry
|
79
|
+
include ::Google::Protobuf::MessageExts
|
80
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# The access metadata for a particular region. This can be applied if the org
|
85
|
+
# policy for the given project disallows a particular region.
|
86
|
+
# @!attribute [rw] constraint_type
|
87
|
+
# @return [::Google::Cloud::Speech::V2::AccessMetadata::ConstraintType]
|
88
|
+
# Describes the different types of constraints that are applied.
|
89
|
+
class AccessMetadata
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
|
93
|
+
# Describes the different types of constraints that can be applied on a
|
94
|
+
# region.
|
95
|
+
module ConstraintType
|
96
|
+
# Unspecified constraint applied.
|
97
|
+
CONSTRAINT_TYPE_UNSPECIFIED = 0
|
98
|
+
|
99
|
+
# The project's org policy disallows the given region.
|
100
|
+
RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT = 1
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Main metadata for the Locations API for STT V2. Currently this is just the
|
105
|
+
# metadata about locales, models, and features
|
106
|
+
# @!attribute [rw] languages
|
107
|
+
# @return [::Google::Cloud::Speech::V2::LanguageMetadata]
|
108
|
+
# Information about available locales, models, and features represented in
|
109
|
+
# the hierarchical structure of locales -> models -> features
|
110
|
+
# @!attribute [rw] access_metadata
|
111
|
+
# @return [::Google::Cloud::Speech::V2::AccessMetadata]
|
112
|
+
# Information about access metadata for the region and given project.
|
113
|
+
class LocationsMetadata
|
114
|
+
include ::Google::Protobuf::MessageExts
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/google/cloud/speech/v2/bindings_override.rb
|
87
87
|
- lib/google/cloud/speech/v2/cloud_speech_pb.rb
|
88
88
|
- lib/google/cloud/speech/v2/cloud_speech_services_pb.rb
|
89
|
+
- lib/google/cloud/speech/v2/locations_metadata_pb.rb
|
89
90
|
- lib/google/cloud/speech/v2/rest.rb
|
90
91
|
- lib/google/cloud/speech/v2/speech.rb
|
91
92
|
- lib/google/cloud/speech/v2/speech/client.rb
|
@@ -100,9 +101,11 @@ files:
|
|
100
101
|
- proto_docs/README.md
|
101
102
|
- proto_docs/google/api/client.rb
|
102
103
|
- proto_docs/google/api/field_behavior.rb
|
104
|
+
- proto_docs/google/api/field_info.rb
|
103
105
|
- proto_docs/google/api/launch_stage.rb
|
104
106
|
- proto_docs/google/api/resource.rb
|
105
107
|
- proto_docs/google/cloud/speech/v2/cloud_speech.rb
|
108
|
+
- proto_docs/google/cloud/speech/v2/locations_metadata.rb
|
106
109
|
- proto_docs/google/longrunning/operations.rb
|
107
110
|
- proto_docs/google/protobuf/any.rb
|
108
111
|
- proto_docs/google/protobuf/duration.rb
|