google-api-client 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/README.md +9 -1
  4. data/api_names.yaml +2 -0
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +8 -0
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +12 -4
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/adsense_v1_4.rb +1 -1
  11. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +13 -5
  14. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  15. data/generated/google/apis/appstate_v1.rb +1 -1
  16. data/generated/google/apis/bigquery_v2.rb +1 -1
  17. data/generated/google/apis/bigquery_v2/classes.rb +186 -0
  18. data/generated/google/apis/bigquery_v2/representations.rb +77 -0
  19. data/generated/google/apis/calendar_v3.rb +1 -1
  20. data/generated/google/apis/civicinfo_v2.rb +1 -1
  21. data/generated/google/apis/civicinfo_v2/classes.rb +10 -4
  22. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  23. data/generated/google/apis/civicinfo_v2/service.rb +6 -1
  24. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  25. data/generated/google/apis/cloudbuild_v1/classes.rb +7 -0
  26. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  27. data/generated/google/apis/compute_beta.rb +1 -1
  28. data/generated/google/apis/compute_v1.rb +1 -1
  29. data/generated/google/apis/content_v2.rb +1 -1
  30. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  31. data/generated/google/apis/datastore_v1beta3/classes.rb +26 -27
  32. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  33. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -2
  34. data/generated/google/apis/dns_v1.rb +1 -1
  35. data/generated/google/apis/dns_v1/classes.rb +1 -1
  36. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  37. data/generated/google/apis/drive_v2.rb +1 -1
  38. data/generated/google/apis/drive_v2/classes.rb +4 -2
  39. data/generated/google/apis/drive_v3.rb +1 -1
  40. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  41. data/generated/google/apis/games_management_v1management.rb +1 -1
  42. data/generated/google/apis/games_v1.rb +1 -1
  43. data/generated/google/apis/genomics_v1.rb +1 -1
  44. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  45. data/generated/google/apis/identitytoolkit_v3/classes.rb +26 -0
  46. data/generated/google/apis/identitytoolkit_v3/representations.rb +4 -0
  47. data/generated/google/apis/language_v1beta1.rb +36 -0
  48. data/generated/google/apis/language_v1beta1/classes.rb +596 -0
  49. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  50. data/generated/google/apis/language_v1beta1/service.rb +154 -0
  51. data/generated/google/apis/monitoring_v3.rb +1 -1
  52. data/generated/google/apis/monitoring_v3/classes.rb +2 -2
  53. data/generated/google/apis/oauth2_v2.rb +1 -1
  54. data/generated/google/apis/plus_domains_v1.rb +1 -1
  55. data/generated/google/apis/plus_v1.rb +1 -1
  56. data/generated/google/apis/sheets_v4.rb +1 -1
  57. data/generated/google/apis/speech_v1beta1.rb +34 -0
  58. data/generated/google/apis/speech_v1beta1/classes.rb +512 -0
  59. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  60. data/generated/google/apis/speech_v1beta1/service.rb +268 -0
  61. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  62. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  63. data/generated/google/apis/vision_v1.rb +1 -1
  64. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  65. data/google-api-client.gemspec +2 -1
  66. data/lib/google/apis/core/base_service.rb +10 -5
  67. data/lib/google/apis/version.rb +1 -1
  68. metadata +20 -12
@@ -680,7 +680,7 @@ module Google
680
680
  # The finite buckets are so-called because both bounds are finite.BucketOptions
681
681
  # describes bucket boundaries in one of three ways. Two describe the boundaries
682
682
  # by giving parameters for a formula to generate boundaries and one gives the
683
- # bucket boundaries explicitly.If bucket_boundaries is not given, then no
683
+ # bucket boundaries explicitly.If bucket_options is not given, then no
684
684
  # bucket_counts may be given.
685
685
  # Corresponds to the JSON property `bucketOptions`
686
686
  # @return [Google::Apis::MonitoringV3::BucketOptions]
@@ -1151,7 +1151,7 @@ module Google
1151
1151
  # The finite buckets are so-called because both bounds are finite.BucketOptions
1152
1152
  # describes bucket boundaries in one of three ways. Two describe the boundaries
1153
1153
  # by giving parameters for a formula to generate boundaries and one gives the
1154
- # bucket boundaries explicitly.If bucket_boundaries is not given, then no
1154
+ # bucket boundaries explicitly.If bucket_options is not given, then no
1155
1155
  # bucket_counts may be given.
1156
1156
  class BucketOptions
1157
1157
  include Google::Apis::Core::Hashable
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20160804'
28
+ REVISION = '20160817'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160815'
28
+ REVISION = '20160830'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160815'
28
+ REVISION = '20160830'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20160815'
28
+ REVISION = '20160826'
29
29
 
30
30
  # View the files in your Google Drive
31
31
  AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
@@ -0,0 +1,34 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/speech_v1beta1/service.rb'
16
+ require 'google/apis/speech_v1beta1/classes.rb'
17
+ require 'google/apis/speech_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Speech API
22
+ #
23
+ # Google Cloud Speech API.
24
+ #
25
+ # @see https://cloud.google.com/speech/
26
+ module SpeechV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20160824'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,512 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module SpeechV1beta1
24
+
25
+ # The `Status` type defines a logical error model that is suitable for different
26
+ # programming environments, including REST APIs and RPC APIs. It is used by
27
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
28
+ # - Simple to use and understand for most users
29
+ # - Flexible enough to meet unexpected needs
30
+ # # Overview
31
+ # The `Status` message contains three pieces of data: error code, error message,
32
+ # and error details. The error code should be an enum value of
33
+ # google.rpc.Code, but it may accept additional error codes if needed. The
34
+ # error message should be a developer-facing English message that helps
35
+ # developers *understand* and *resolve* the error. If a localized user-facing
36
+ # error message is needed, put the localized message in the error details or
37
+ # localize it in the client. The optional error details may contain arbitrary
38
+ # information about the error. There is a predefined set of error detail types
39
+ # in the package `google.rpc` which can be used for common error conditions.
40
+ # # Language mapping
41
+ # The `Status` message is the logical representation of the error model, but it
42
+ # is not necessarily the actual wire format. When the `Status` message is
43
+ # exposed in different client libraries and different wire protocols, it can be
44
+ # mapped differently. For example, it will likely be mapped to some exceptions
45
+ # in Java, but more likely mapped to some error codes in C.
46
+ # # Other uses
47
+ # The error model and the `Status` message can be used in a variety of
48
+ # environments, either with or without APIs, to provide a
49
+ # consistent developer experience across different environments.
50
+ # Example uses of this error model include:
51
+ # - Partial errors. If a service needs to return partial errors to the client,
52
+ # it may embed the `Status` in the normal response to indicate the partial
53
+ # errors.
54
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
55
+ # have a `Status` message for error reporting purpose.
56
+ # - Batch operations. If a client uses batch request and batch response, the
57
+ # `Status` message should be used directly inside batch response, one for
58
+ # each error sub-response.
59
+ # - Asynchronous operations. If an API call embeds asynchronous operation
60
+ # results in its response, the status of those operations should be
61
+ # represented directly using the `Status` message.
62
+ # - Logging. If some API errors are stored in logs, the message `Status` could
63
+ # be used directly after any stripping needed for security/privacy reasons.
64
+ class Status
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # The status code, which should be an enum value of google.rpc.Code.
68
+ # Corresponds to the JSON property `code`
69
+ # @return [Fixnum]
70
+ attr_accessor :code
71
+
72
+ # A list of messages that carry the error details. There will be a
73
+ # common set of message types for APIs to use.
74
+ # Corresponds to the JSON property `details`
75
+ # @return [Array<Hash<String,Object>>]
76
+ attr_accessor :details
77
+
78
+ # A developer-facing error message, which should be in English. Any
79
+ # user-facing error message should be localized and sent in the
80
+ # google.rpc.Status.details field, or localized by the client.
81
+ # Corresponds to the JSON property `message`
82
+ # @return [String]
83
+ attr_accessor :message
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @code = args[:code] if args.key?(:code)
92
+ @details = args[:details] if args.key?(:details)
93
+ @message = args[:message] if args.key?(:message)
94
+ end
95
+ end
96
+
97
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
98
+ # Either `content` or `uri` must be supplied. Supplying both or neither
99
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
100
+ # [audio limits](https://cloud.google.com/speech/limits#content).
101
+ class RecognitionAudio
102
+ include Google::Apis::Core::Hashable
103
+
104
+ # The audio data bytes encoded as specified in
105
+ # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
106
+ # pure binary representation, whereas JSON representations use base64.
107
+ # Corresponds to the JSON property `content`
108
+ # @return [String]
109
+ attr_accessor :content
110
+
111
+ # URI that points to a file that contains audio data bytes as specified in
112
+ # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
113
+ # supported, which must be specified in the following format:
114
+ # `gs://bucket_name/object_name` (other URI formats return
115
+ # google.rpc.Code.INVALID_ARGUMENT). For more information, see
116
+ # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
117
+ # Corresponds to the JSON property `uri`
118
+ # @return [String]
119
+ attr_accessor :uri
120
+
121
+ def initialize(**args)
122
+ update!(**args)
123
+ end
124
+
125
+ # Update properties of this object
126
+ def update!(**args)
127
+ @content = args[:content] if args.key?(:content)
128
+ @uri = args[:uri] if args.key?(:uri)
129
+ end
130
+ end
131
+
132
+ # This resource represents a long-running operation that is the result of a
133
+ # network API call.
134
+ class Operation
135
+ include Google::Apis::Core::Hashable
136
+
137
+ # The `Status` type defines a logical error model that is suitable for different
138
+ # programming environments, including REST APIs and RPC APIs. It is used by
139
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
140
+ # - Simple to use and understand for most users
141
+ # - Flexible enough to meet unexpected needs
142
+ # # Overview
143
+ # The `Status` message contains three pieces of data: error code, error message,
144
+ # and error details. The error code should be an enum value of
145
+ # google.rpc.Code, but it may accept additional error codes if needed. The
146
+ # error message should be a developer-facing English message that helps
147
+ # developers *understand* and *resolve* the error. If a localized user-facing
148
+ # error message is needed, put the localized message in the error details or
149
+ # localize it in the client. The optional error details may contain arbitrary
150
+ # information about the error. There is a predefined set of error detail types
151
+ # in the package `google.rpc` which can be used for common error conditions.
152
+ # # Language mapping
153
+ # The `Status` message is the logical representation of the error model, but it
154
+ # is not necessarily the actual wire format. When the `Status` message is
155
+ # exposed in different client libraries and different wire protocols, it can be
156
+ # mapped differently. For example, it will likely be mapped to some exceptions
157
+ # in Java, but more likely mapped to some error codes in C.
158
+ # # Other uses
159
+ # The error model and the `Status` message can be used in a variety of
160
+ # environments, either with or without APIs, to provide a
161
+ # consistent developer experience across different environments.
162
+ # Example uses of this error model include:
163
+ # - Partial errors. If a service needs to return partial errors to the client,
164
+ # it may embed the `Status` in the normal response to indicate the partial
165
+ # errors.
166
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
167
+ # have a `Status` message for error reporting purpose.
168
+ # - Batch operations. If a client uses batch request and batch response, the
169
+ # `Status` message should be used directly inside batch response, one for
170
+ # each error sub-response.
171
+ # - Asynchronous operations. If an API call embeds asynchronous operation
172
+ # results in its response, the status of those operations should be
173
+ # represented directly using the `Status` message.
174
+ # - Logging. If some API errors are stored in logs, the message `Status` could
175
+ # be used directly after any stripping needed for security/privacy reasons.
176
+ # Corresponds to the JSON property `error`
177
+ # @return [Google::Apis::SpeechV1beta1::Status]
178
+ attr_accessor :error
179
+
180
+ # If the value is `false`, it means the operation is still in progress.
181
+ # If true, the operation is completed, and either `error` or `response` is
182
+ # available.
183
+ # Corresponds to the JSON property `done`
184
+ # @return [Boolean]
185
+ attr_accessor :done
186
+ alias_method :done?, :done
187
+
188
+ # Service-specific metadata associated with the operation. It typically
189
+ # contains progress information and common metadata such as create time.
190
+ # Some services might not provide such metadata. Any method that returns a
191
+ # long-running operation should document the metadata type, if any.
192
+ # Corresponds to the JSON property `metadata`
193
+ # @return [Hash<String,Object>]
194
+ attr_accessor :metadata
195
+
196
+ # The normal response of the operation in case of success. If the original
197
+ # method returns no data on success, such as `Delete`, the response is
198
+ # `google.protobuf.Empty`. If the original method is standard
199
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
200
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
201
+ # is the original method name. For example, if the original method name
202
+ # is `TakeSnapshot()`, the inferred response type is
203
+ # `TakeSnapshotResponse`.
204
+ # Corresponds to the JSON property `response`
205
+ # @return [Hash<String,Object>]
206
+ attr_accessor :response
207
+
208
+ # The server-assigned name, which is only unique within the same service that
209
+ # originally returns it. If you use the default HTTP mapping, the
210
+ # `name` should have the format of `operations/some/unique/name`.
211
+ # Corresponds to the JSON property `name`
212
+ # @return [String]
213
+ attr_accessor :name
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @error = args[:error] if args.key?(:error)
222
+ @done = args[:done] if args.key?(:done)
223
+ @metadata = args[:metadata] if args.key?(:metadata)
224
+ @response = args[:response] if args.key?(:response)
225
+ @name = args[:name] if args.key?(:name)
226
+ end
227
+ end
228
+
229
+ # Alternative hypotheses (a.k.a. n-best list).
230
+ class SpeechRecognitionAlternative
231
+ include Google::Apis::Core::Hashable
232
+
233
+ # [Output-only] Transcript text representing the words that the user spoke.
234
+ # Corresponds to the JSON property `transcript`
235
+ # @return [String]
236
+ attr_accessor :transcript
237
+
238
+ # [Output-only] The confidence estimate between 0.0 and 1.0. A higher number
239
+ # means the system is more confident that the recognition is correct.
240
+ # This field is typically provided only for the top hypothesis, and only for
241
+ # `is_final=true` results.
242
+ # The default of 0.0 is a sentinel value indicating confidence was not set.
243
+ # Corresponds to the JSON property `confidence`
244
+ # @return [Float]
245
+ attr_accessor :confidence
246
+
247
+ def initialize(**args)
248
+ update!(**args)
249
+ end
250
+
251
+ # Update properties of this object
252
+ def update!(**args)
253
+ @transcript = args[:transcript] if args.key?(:transcript)
254
+ @confidence = args[:confidence] if args.key?(:confidence)
255
+ end
256
+ end
257
+
258
+ # The request message for Operations.CancelOperation.
259
+ class CancelOperationRequest
260
+ include Google::Apis::Core::Hashable
261
+
262
+ def initialize(**args)
263
+ update!(**args)
264
+ end
265
+
266
+ # Update properties of this object
267
+ def update!(**args)
268
+ end
269
+ end
270
+
271
+ # The `RecognitionConfig` message provides information to the recognizer
272
+ # that specifies how to process the request.
273
+ class RecognitionConfig
274
+ include Google::Apis::Core::Hashable
275
+
276
+ # [Optional] Maximum number of recognition hypotheses to be returned.
277
+ # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
278
+ # within each `SpeechRecognitionResult`.
279
+ # The server may return fewer than `max_alternatives`.
280
+ # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
281
+ # `1`. If omitted, defaults to `1`.
282
+ # Corresponds to the JSON property `maxAlternatives`
283
+ # @return [Fixnum]
284
+ attr_accessor :max_alternatives
285
+
286
+ # [Optional] The language of the supplied audio as a BCP-47 language tag.
287
+ # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
288
+ # If omitted, defaults to "en-US". See
289
+ # [Language Support](https://cloud.google.com/speech/docs/best-practices#
290
+ # language_support)
291
+ # for a list of the currently supported language codes.
292
+ # Corresponds to the JSON property `languageCode`
293
+ # @return [String]
294
+ attr_accessor :language_code
295
+
296
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
297
+ # in the results.
298
+ # Corresponds to the JSON property `speechContext`
299
+ # @return [Google::Apis::SpeechV1beta1::SpeechContext]
300
+ attr_accessor :speech_context
301
+
302
+ # [Required] Encoding of audio data sent in all `RecognitionAudio` messages.
303
+ # Corresponds to the JSON property `encoding`
304
+ # @return [String]
305
+ attr_accessor :encoding
306
+
307
+ # [Optional] If set to `true`, the server will attempt to filter out
308
+ # profanities, replacing all but the initial character in each filtered word
309
+ # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
310
+ # won't be filtered out.
311
+ # Corresponds to the JSON property `profanityFilter`
312
+ # @return [Boolean]
313
+ attr_accessor :profanity_filter
314
+ alias_method :profanity_filter?, :profanity_filter
315
+
316
+ # [Required] Sample rate in Hertz of the audio data sent in all
317
+ # `RecognitionAudio` messages. Valid values are: 8000-48000.
318
+ # 16000 is optimal. For best results, set the sampling rate of the audio
319
+ # source to 16000 Hz. If that's not possible, use the native sample rate of
320
+ # the audio source (instead of re-sampling).
321
+ # Corresponds to the JSON property `sampleRate`
322
+ # @return [Fixnum]
323
+ attr_accessor :sample_rate
324
+
325
+ def initialize(**args)
326
+ update!(**args)
327
+ end
328
+
329
+ # Update properties of this object
330
+ def update!(**args)
331
+ @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
332
+ @language_code = args[:language_code] if args.key?(:language_code)
333
+ @speech_context = args[:speech_context] if args.key?(:speech_context)
334
+ @encoding = args[:encoding] if args.key?(:encoding)
335
+ @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
336
+ @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
337
+ end
338
+ end
339
+
340
+ # `SyncRecognizeRequest` is the top-level message sent by the client for
341
+ # the `SyncRecognize` method.
342
+ class SyncRecognizeRequest
343
+ include Google::Apis::Core::Hashable
344
+
345
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
346
+ # Either `content` or `uri` must be supplied. Supplying both or neither
347
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
348
+ # [audio limits](https://cloud.google.com/speech/limits#content).
349
+ # Corresponds to the JSON property `audio`
350
+ # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
351
+ attr_accessor :audio
352
+
353
+ # The `RecognitionConfig` message provides information to the recognizer
354
+ # that specifies how to process the request.
355
+ # Corresponds to the JSON property `config`
356
+ # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
357
+ attr_accessor :config
358
+
359
+ def initialize(**args)
360
+ update!(**args)
361
+ end
362
+
363
+ # Update properties of this object
364
+ def update!(**args)
365
+ @audio = args[:audio] if args.key?(:audio)
366
+ @config = args[:config] if args.key?(:config)
367
+ end
368
+ end
369
+
370
+ # A speech recognition result corresponding to a portion of the audio.
371
+ class SpeechRecognitionResult
372
+ include Google::Apis::Core::Hashable
373
+
374
+ # [Output-only] May contain one or more recognition hypotheses (up to the
375
+ # maximum specified in `max_alternatives`).
376
+ # Corresponds to the JSON property `alternatives`
377
+ # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative>]
378
+ attr_accessor :alternatives
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
387
+ end
388
+ end
389
+
390
+ # The response message for Operations.ListOperations.
391
+ class ListOperationsResponse
392
+ include Google::Apis::Core::Hashable
393
+
394
+ # The standard List next-page token.
395
+ # Corresponds to the JSON property `nextPageToken`
396
+ # @return [String]
397
+ attr_accessor :next_page_token
398
+
399
+ # A list of operations that matches the specified filter in the request.
400
+ # Corresponds to the JSON property `operations`
401
+ # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
402
+ attr_accessor :operations
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
411
+ @operations = args[:operations] if args.key?(:operations)
412
+ end
413
+ end
414
+
415
+ # `SyncRecognizeResponse` is the only message returned to the client by
416
+ # `SyncRecognize`. It contains the result as zero or more sequential
417
+ # `SpeechRecognitionResult` messages.
418
+ class SyncRecognizeResponse
419
+ include Google::Apis::Core::Hashable
420
+
421
+ # [Output-only] Sequential list of transcription results corresponding to
422
+ # sequential portions of audio.
423
+ # Corresponds to the JSON property `results`
424
+ # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
425
+ attr_accessor :results
426
+
427
+ def initialize(**args)
428
+ update!(**args)
429
+ end
430
+
431
+ # Update properties of this object
432
+ def update!(**args)
433
+ @results = args[:results] if args.key?(:results)
434
+ end
435
+ end
436
+
437
+ # A generic empty message that you can re-use to avoid defining duplicated
438
+ # empty messages in your APIs. A typical example is to use it as the request
439
+ # or the response type of an API method. For instance:
440
+ # service Foo `
441
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
442
+ # `
443
+ # The JSON representation for `Empty` is empty JSON object ````.
444
+ class Empty
445
+ include Google::Apis::Core::Hashable
446
+
447
+ def initialize(**args)
448
+ update!(**args)
449
+ end
450
+
451
+ # Update properties of this object
452
+ def update!(**args)
453
+ end
454
+ end
455
+
456
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
457
+ # in the results.
458
+ class SpeechContext
459
+ include Google::Apis::Core::Hashable
460
+
461
+ # [Optional] A list of strings containing words and phrases "hints" so that
462
+ # the speech recognition is more likely to recognize them. This can be used
463
+ # to improve the accuracy for specific words and phrases, for example, if
464
+ # specific commands are typically spoken by the user. This can also be used
465
+ # to add additional words to the vocabulary of the recognizer. See
466
+ # [usage limits](https://cloud.google.com/speech/limits#content).
467
+ # Corresponds to the JSON property `phrases`
468
+ # @return [Array<String>]
469
+ attr_accessor :phrases
470
+
471
+ def initialize(**args)
472
+ update!(**args)
473
+ end
474
+
475
+ # Update properties of this object
476
+ def update!(**args)
477
+ @phrases = args[:phrases] if args.key?(:phrases)
478
+ end
479
+ end
480
+
481
+ # `AsyncRecognizeRequest` is the top-level message sent by the client for
482
+ # the `AsyncRecognize` method.
483
+ class AsyncRecognizeRequest
484
+ include Google::Apis::Core::Hashable
485
+
486
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
487
+ # Either `content` or `uri` must be supplied. Supplying both or neither
488
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
489
+ # [audio limits](https://cloud.google.com/speech/limits#content).
490
+ # Corresponds to the JSON property `audio`
491
+ # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
492
+ attr_accessor :audio
493
+
494
+ # The `RecognitionConfig` message provides information to the recognizer
495
+ # that specifies how to process the request.
496
+ # Corresponds to the JSON property `config`
497
+ # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
498
+ attr_accessor :config
499
+
500
+ def initialize(**args)
501
+ update!(**args)
502
+ end
503
+
504
+ # Update properties of this object
505
+ def update!(**args)
506
+ @audio = args[:audio] if args.key?(:audio)
507
+ @config = args[:config] if args.key?(:config)
508
+ end
509
+ end
510
+ end
511
+ end
512
+ end