google-cloud-speech-v1p1beta1 0.1.1 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,133 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 V1p1beta1
24
+ # A set of words or phrases that represents a common concept likely to appear
25
+ # in your audio, for example a list of passenger ship names. CustomClass items
26
+ # can be substituted into placeholders that you set in PhraseSet phrases.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # The resource name of the custom class.
30
+ # @!attribute [rw] custom_class_id
31
+ # @return [::String]
32
+ # If this custom class is a resource, the custom_class_id is the resource id
33
+ # of the CustomClass.
34
+ # @!attribute [rw] items
35
+ # @return [::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass::ClassItem>]
36
+ # A collection of class items.
37
+ class CustomClass
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+
41
+ # An item of the class.
42
+ # @!attribute [rw] value
43
+ # @return [::String]
44
+ # The class item's value.
45
+ class ClassItem
46
+ include ::Google::Protobuf::MessageExts
47
+ extend ::Google::Protobuf::MessageExts::ClassMethods
48
+ end
49
+ end
50
+
51
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
52
+ # in the results.
53
+ # @!attribute [rw] name
54
+ # @return [::String]
55
+ # The resource name of the phrase set.
56
+ # @!attribute [rw] phrases
57
+ # @return [::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet::Phrase>]
58
+ # A list of word and phrases.
59
+ # @!attribute [rw] boost
60
+ # @return [::Float]
61
+ # Hint Boost. Positive value will increase the probability that a specific
62
+ # phrase will be recognized over other similar sounding phrases. The higher
63
+ # the boost, the higher the chance of false positive recognition as well.
64
+ # Negative boost values would correspond to anti-biasing. Anti-biasing is not
65
+ # enabled, so negative boost will simply be ignored. Though `boost` can
66
+ # accept a wide range of positive values, most use cases are best served with
67
+ # values between 0 (exclusive) and 20. We recommend using a binary search
68
+ # approach to finding the optimal value for your use case. Speech recognition
69
+ # will skip PhraseSets with a boost value of 0.
70
+ class PhraseSet
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+
74
+ # A phrases containing words and phrase "hints" so that
75
+ # the speech recognition is more likely to recognize them. This can be used
76
+ # to improve the accuracy for specific words and phrases, for example, if
77
+ # specific commands are typically spoken by the user. This can also be used
78
+ # to add additional words to the vocabulary of the recognizer. See
79
+ # [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
80
+ #
81
+ # List items can also include pre-built or custom classes containing groups
82
+ # of words that represent common concepts that occur in natural language. For
83
+ # example, rather than providing a phrase hint for every month of the
84
+ # year (e.g. "i was born in january", "i was born in febuary", ...), use the
85
+ # pre-built `$MONTH` class improves the likelihood of correctly transcribing
86
+ # audio that includes months (e.g. "i was born in $month").
87
+ # To refer to pre-built classes, use the class' symbol prepended with `$`
88
+ # e.g. `$MONTH`. To refer to custom classes that were defined inline in the
89
+ # request, set the class's `custom_class_id` to a string unique to all class
90
+ # resources and inline classes. Then use the class' id wrapped in $`{...}`
91
+ # e.g. "$\\{my-months}". To refer to custom classes resources, use the class'
92
+ # id wrapped in `${}` (e.g. `${my-months}`).
93
+ # @!attribute [rw] value
94
+ # @return [::String]
95
+ # The phrase itself.
96
+ # @!attribute [rw] boost
97
+ # @return [::Float]
98
+ # Hint Boost. Overrides the boost set at the phrase set level.
99
+ # Positive value will increase the probability that a specific phrase will
100
+ # be recognized over other similar sounding phrases. The higher the boost,
101
+ # the higher the chance of false positive recognition as well. Negative
102
+ # boost values would correspond to anti-biasing. Anti-biasing is not
103
+ # enabled, so negative boost will simply be ignored. Though `boost` can
104
+ # accept a wide range of positive values, most use cases are best served
105
+ # with values between 0 and 20. We recommend using a binary search approach
106
+ # to finding the optimal value for your use case. Speech recognition
107
+ # will skip PhraseSets with a boost value of 0.
108
+ class Phrase
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+ end
113
+
114
+ # Speech adaptation configuration.
115
+ # @!attribute [rw] phrase_sets
116
+ # @return [::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>]
117
+ # A collection of phrase sets. To specify the hints inline, leave the
118
+ # phrase set's `name` blank and fill in the rest of its fields. Any
119
+ # phrase set can use any custom class.
120
+ # @!attribute [rw] custom_classes
121
+ # @return [::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>]
122
+ # A collection of custom classes. To specify the classes inline, leave the
123
+ # class' `name` blank and fill in the rest of its fields, giving it a unique
124
+ # `custom_class_id`. Refer to the inline defined class in phrase hints by its
125
+ # `custom_class_id`.
126
+ class SpeechAdaptation
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
@@ -22,26 +22,26 @@ module Google
22
22
  # This resource represents a long-running operation that is the result of a
23
23
  # network API call.
24
24
  # @!attribute [rw] name
25
- # @return [String]
25
+ # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
28
  # `name` should have the format of `operations/some/unique/name`.
29
29
  # @!attribute [rw] metadata
30
- # @return [Google::Protobuf::Any]
30
+ # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
32
32
  # contains progress information and common metadata such as create time.
33
33
  # Some services might not provide such metadata. Any method that returns a
34
34
  # long-running operation should document the metadata type, if any.
35
35
  # @!attribute [rw] done
36
- # @return [Boolean]
36
+ # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
38
  # If true, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
- # @return [Google::Rpc::Status]
41
+ # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
43
  # @!attribute [rw] response
44
- # @return [Google::Protobuf::Any]
44
+ # @return [::Google::Protobuf::Any]
45
45
  # The normal response of the operation in case of success. If the original
46
46
  # method returns no data on success, such as `Delete`, the response is
47
47
  # `google.protobuf.Empty`. If the original method is standard
@@ -51,65 +51,65 @@ module Google
51
51
  # is `TakeSnapshot()`, the inferred response type is
52
52
  # `TakeSnapshotResponse`.
53
53
  class Operation
54
- include Google::Protobuf::MessageExts
55
- extend Google::Protobuf::MessageExts::ClassMethods
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
 
58
58
  # The request message for Operations.GetOperation.
59
59
  # @!attribute [rw] name
60
- # @return [String]
60
+ # @return [::String]
61
61
  # The name of the operation resource.
62
62
  class GetOperationRequest
63
- include Google::Protobuf::MessageExts
64
- extend Google::Protobuf::MessageExts::ClassMethods
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
65
  end
66
66
 
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
- # @return [String]
69
+ # @return [::String]
70
70
  # The name of the operation collection.
71
71
  # @!attribute [rw] filter
72
- # @return [String]
72
+ # @return [::String]
73
73
  # The standard list filter.
74
74
  # @!attribute [rw] page_size
75
- # @return [Integer]
75
+ # @return [::Integer]
76
76
  # The standard list page size.
77
77
  # @!attribute [rw] page_token
78
- # @return [String]
78
+ # @return [::String]
79
79
  # The standard list page token.
80
80
  class ListOperationsRequest
81
- include Google::Protobuf::MessageExts
82
- extend Google::Protobuf::MessageExts::ClassMethods
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
83
  end
84
84
 
85
85
  # The response message for Operations.ListOperations.
86
86
  # @!attribute [rw] operations
87
- # @return [Array<Google::Longrunning::Operation>]
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
88
  # A list of operations that matches the specified filter in the request.
89
89
  # @!attribute [rw] next_page_token
90
- # @return [String]
90
+ # @return [::String]
91
91
  # The standard List next-page token.
92
92
  class ListOperationsResponse
93
- include Google::Protobuf::MessageExts
94
- extend Google::Protobuf::MessageExts::ClassMethods
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
95
  end
96
96
 
97
97
  # The request message for Operations.CancelOperation.
98
98
  # @!attribute [rw] name
99
- # @return [String]
99
+ # @return [::String]
100
100
  # The name of the operation resource to be cancelled.
101
101
  class CancelOperationRequest
102
- include Google::Protobuf::MessageExts
103
- extend Google::Protobuf::MessageExts::ClassMethods
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
104
  end
105
105
 
106
106
  # The request message for Operations.DeleteOperation.
107
107
  # @!attribute [rw] name
108
- # @return [String]
108
+ # @return [::String]
109
109
  # The name of the operation resource to be deleted.
110
110
  class DeleteOperationRequest
111
- include Google::Protobuf::MessageExts
112
- extend Google::Protobuf::MessageExts::ClassMethods
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
115
  # A message representing the message types used by a long-running operation.
@@ -124,7 +124,7 @@ module Google
124
124
  # };
125
125
  # }
126
126
  # @!attribute [rw] response_type
127
- # @return [String]
127
+ # @return [::String]
128
128
  # Required. The message name of the primary return type for this
129
129
  # long-running operation.
130
130
  # This type will be used to deserialize the LRO's response.
@@ -134,7 +134,7 @@ module Google
134
134
  #
135
135
  # Note: Altering this value constitutes a breaking change.
136
136
  # @!attribute [rw] metadata_type
137
- # @return [String]
137
+ # @return [::String]
138
138
  # Required. The message name of the metadata type for this long-running
139
139
  # operation.
140
140
  #
@@ -143,8 +143,8 @@ module Google
143
143
  #
144
144
  # Note: Altering this value constitutes a breaking change.
145
145
  class OperationInfo
146
- include Google::Protobuf::MessageExts
147
- extend Google::Protobuf::MessageExts::ClassMethods
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
148
  end
149
149
  end
150
150
  end
@@ -99,7 +99,7 @@ module Google
99
99
  # "value": "1.212s"
100
100
  # }
101
101
  # @!attribute [rw] type_url
102
- # @return [String]
102
+ # @return [::String]
103
103
  # A URL/resource name that uniquely identifies the type of the serialized
104
104
  # protocol buffer message. This string must contain at least
105
105
  # one "/" character. The last segment of the URL's path must represent
@@ -128,11 +128,11 @@ module Google
128
128
  # Schemes other than `http`, `https` (or the empty scheme) might be
129
129
  # used with implementation specific semantics.
130
130
  # @!attribute [rw] value
131
- # @return [String]
131
+ # @return [::String]
132
132
  # Must be a valid serialized protocol buffer of the above specified type.
133
133
  class Any
134
- include Google::Protobuf::MessageExts
135
- extend Google::Protobuf::MessageExts::ClassMethods
134
+ include ::Google::Protobuf::MessageExts
135
+ extend ::Google::Protobuf::MessageExts::ClassMethods
136
136
  end
137
137
  end
138
138
  end
@@ -78,12 +78,12 @@ module Google
78
78
  # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
79
  # microsecond should be expressed in JSON format as "3.000001s".
80
80
  # @!attribute [rw] seconds
81
- # @return [Integer]
81
+ # @return [::Integer]
82
82
  # Signed seconds of the span of time. Must be from -315,576,000,000
83
83
  # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
84
  # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
85
  # @!attribute [rw] nanos
86
- # @return [Integer]
86
+ # @return [::Integer]
87
87
  # Signed fractions of a second at nanosecond resolution of the span
88
88
  # of time. Durations less than one second are represented with a 0
89
89
  # `seconds` field and a positive or negative `nanos` field. For durations
@@ -91,8 +91,8 @@ module Google
91
91
  # of the same sign as the `seconds` field. Must be from -999,999,999
92
92
  # to +999,999,999 inclusive.
93
93
  class Duration
94
- include Google::Protobuf::MessageExts
95
- extend Google::Protobuf::MessageExts::ClassMethods
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
96
  end
97
97
  end
98
98
  end
@@ -29,8 +29,8 @@ module Google
29
29
  #
30
30
  # The JSON representation for `Empty` is empty JSON object `{}`.
31
31
  class Empty
32
- include Google::Protobuf::MessageExts
33
- extend Google::Protobuf::MessageExts::ClassMethods
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
34
  end
35
35
  end
36
36
  end
@@ -102,19 +102,19 @@ module Google
102
102
  # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
103
103
  # ) to obtain a formatter capable of generating timestamps in this format.
104
104
  # @!attribute [rw] seconds
105
- # @return [Integer]
105
+ # @return [::Integer]
106
106
  # Represents seconds of UTC time since Unix epoch
107
107
  # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
108
108
  # 9999-12-31T23:59:59Z inclusive.
109
109
  # @!attribute [rw] nanos
110
- # @return [Integer]
110
+ # @return [::Integer]
111
111
  # Non-negative fractions of a second at nanosecond resolution. Negative
112
112
  # second values with fractions must still have non-negative nanos values
113
113
  # that count forward in time. Must be from 0 to 999,999,999
114
114
  # inclusive.
115
115
  class Timestamp
116
- include Google::Protobuf::MessageExts
117
- extend Google::Protobuf::MessageExts::ClassMethods
116
+ include ::Google::Protobuf::MessageExts
117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
118
118
  end
119
119
  end
120
120
  end
@@ -27,20 +27,20 @@ module Google
27
27
  # You can find out more about this error model and how to work with it in the
28
28
  # [API Design Guide](https://cloud.google.com/apis/design/errors).
29
29
  # @!attribute [rw] code
30
- # @return [Integer]
30
+ # @return [::Integer]
31
31
  # The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
32
32
  # @!attribute [rw] message
33
- # @return [String]
33
+ # @return [::String]
34
34
  # A developer-facing error message, which should be in English. Any
35
35
  # user-facing error message should be localized and sent in the
36
- # {Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
36
+ # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
37
37
  # @!attribute [rw] details
38
- # @return [Array<Google::Protobuf::Any>]
38
+ # @return [::Array<::Google::Protobuf::Any>]
39
39
  # A list of messages that carry the error details. There is a common set of
40
40
  # message types for APIs to use.
41
41
  class Status
42
- include Google::Protobuf::MessageExts
43
- extend Google::Protobuf::MessageExts::ClassMethods
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
44
  end
45
45
  end
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-speech-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -138,19 +166,21 @@ files:
138
166
  - LICENSE.md
139
167
  - README.md
140
168
  - lib/google-cloud-speech-v1p1beta1.rb
141
- - lib/google/cloud/common_resources_pb.rb
142
169
  - lib/google/cloud/speech/v1p1beta1.rb
143
170
  - lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb
144
171
  - lib/google/cloud/speech/v1p1beta1/cloud_speech_services_pb.rb
172
+ - lib/google/cloud/speech/v1p1beta1/resource_pb.rb
145
173
  - lib/google/cloud/speech/v1p1beta1/speech.rb
146
174
  - lib/google/cloud/speech/v1p1beta1/speech/client.rb
147
175
  - lib/google/cloud/speech/v1p1beta1/speech/credentials.rb
148
176
  - lib/google/cloud/speech/v1p1beta1/speech/operations.rb
177
+ - lib/google/cloud/speech/v1p1beta1/speech/paths.rb
149
178
  - lib/google/cloud/speech/v1p1beta1/version.rb
150
179
  - proto_docs/README.md
151
180
  - proto_docs/google/api/field_behavior.rb
152
181
  - proto_docs/google/api/resource.rb
153
182
  - proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb
183
+ - proto_docs/google/cloud/speech/v1p1beta1/resource.rb
154
184
  - proto_docs/google/longrunning/operations.rb
155
185
  - proto_docs/google/protobuf/any.rb
156
186
  - proto_docs/google/protobuf/duration.rb