google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20170609'
28
+ REVISION = '20170705'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,181 +22,10 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1beta1
24
24
 
25
- # This resource represents a long-running operation that is the result of a
26
- # network API call.
27
- class Operation
28
- include Google::Apis::Core::Hashable
29
-
30
- # If the value is `false`, it means the operation is still in progress.
31
- # If true, the operation is completed, and either `error` or `response` is
32
- # available.
33
- # Corresponds to the JSON property `done`
34
- # @return [Boolean]
35
- attr_accessor :done
36
- alias_method :done?, :done
37
-
38
- # The normal response of the operation in case of success. If the original
39
- # method returns no data on success, such as `Delete`, the response is
40
- # `google.protobuf.Empty`. If the original method is standard
41
- # `Get`/`Create`/`Update`, the response should be the resource. For other
42
- # methods, the response should have the type `XxxResponse`, where `Xxx`
43
- # is the original method name. For example, if the original method name
44
- # is `TakeSnapshot()`, the inferred response type is
45
- # `TakeSnapshotResponse`.
46
- # Corresponds to the JSON property `response`
47
- # @return [Hash<String,Object>]
48
- attr_accessor :response
49
-
50
- # The server-assigned name, which is only unique within the same service that
51
- # originally returns it. If you use the default HTTP mapping, the
52
- # `name` should have the format of `operations/some/unique/name`.
53
- # Corresponds to the JSON property `name`
54
- # @return [String]
55
- attr_accessor :name
56
-
57
- # The `Status` type defines a logical error model that is suitable for different
58
- # programming environments, including REST APIs and RPC APIs. It is used by
59
- # [gRPC](https://github.com/grpc). The error model is designed to be:
60
- # - Simple to use and understand for most users
61
- # - Flexible enough to meet unexpected needs
62
- # # Overview
63
- # The `Status` message contains three pieces of data: error code, error message,
64
- # and error details. The error code should be an enum value of
65
- # google.rpc.Code, but it may accept additional error codes if needed. The
66
- # error message should be a developer-facing English message that helps
67
- # developers *understand* and *resolve* the error. If a localized user-facing
68
- # error message is needed, put the localized message in the error details or
69
- # localize it in the client. The optional error details may contain arbitrary
70
- # information about the error. There is a predefined set of error detail types
71
- # in the package `google.rpc` that can be used for common error conditions.
72
- # # Language mapping
73
- # The `Status` message is the logical representation of the error model, but it
74
- # is not necessarily the actual wire format. When the `Status` message is
75
- # exposed in different client libraries and different wire protocols, it can be
76
- # mapped differently. For example, it will likely be mapped to some exceptions
77
- # in Java, but more likely mapped to some error codes in C.
78
- # # Other uses
79
- # The error model and the `Status` message can be used in a variety of
80
- # environments, either with or without APIs, to provide a
81
- # consistent developer experience across different environments.
82
- # Example uses of this error model include:
83
- # - Partial errors. If a service needs to return partial errors to the client,
84
- # it may embed the `Status` in the normal response to indicate the partial
85
- # errors.
86
- # - Workflow errors. A typical workflow has multiple steps. Each step may
87
- # have a `Status` message for error reporting.
88
- # - Batch operations. If a client uses batch request and batch response, the
89
- # `Status` message should be used directly inside batch response, one for
90
- # each error sub-response.
91
- # - Asynchronous operations. If an API call embeds asynchronous operation
92
- # results in its response, the status of those operations should be
93
- # represented directly using the `Status` message.
94
- # - Logging. If some API errors are stored in logs, the message `Status` could
95
- # be used directly after any stripping needed for security/privacy reasons.
96
- # Corresponds to the JSON property `error`
97
- # @return [Google::Apis::SpeechV1beta1::Status]
98
- attr_accessor :error
99
-
100
- # Service-specific metadata associated with the operation. It typically
101
- # contains progress information and common metadata such as create time.
102
- # Some services might not provide such metadata. Any method that returns a
103
- # long-running operation should document the metadata type, if any.
104
- # Corresponds to the JSON property `metadata`
105
- # @return [Hash<String,Object>]
106
- attr_accessor :metadata
107
-
108
- def initialize(**args)
109
- update!(**args)
110
- end
111
-
112
- # Update properties of this object
113
- def update!(**args)
114
- @done = args[:done] if args.key?(:done)
115
- @response = args[:response] if args.key?(:response)
116
- @name = args[:name] if args.key?(:name)
117
- @error = args[:error] if args.key?(:error)
118
- @metadata = args[:metadata] if args.key?(:metadata)
119
- end
120
- end
121
-
122
- # Provides information to the recognizer that specifies how to process the
123
- # request.
124
- class RecognitionConfig
125
- include Google::Apis::Core::Hashable
126
-
127
- # *Optional* Maximum number of recognition hypotheses to be returned.
128
- # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
129
- # within each `SpeechRecognitionResult`.
130
- # The server may return fewer than `max_alternatives`.
131
- # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
132
- # one. If omitted, will return a maximum of one.
133
- # Corresponds to the JSON property `maxAlternatives`
134
- # @return [Fixnum]
135
- attr_accessor :max_alternatives
136
-
137
- # *Required* Sample rate in Hertz of the audio data sent in all
138
- # `RecognitionAudio` messages. Valid values are: 8000-48000.
139
- # 16000 is optimal. For best results, set the sampling rate of the audio
140
- # source to 16000 Hz. If that's not possible, use the native sample rate of
141
- # the audio source (instead of re-sampling).
142
- # Corresponds to the JSON property `sampleRate`
143
- # @return [Fixnum]
144
- attr_accessor :sample_rate
145
-
146
- # *Optional* The language of the supplied audio as a BCP-47 language tag.
147
- # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
148
- # If omitted, defaults to "en-US". See
149
- # [Language Support](https://cloud.google.com/speech/docs/languages)
150
- # for a list of the currently supported language codes.
151
- # Corresponds to the JSON property `languageCode`
152
- # @return [String]
153
- attr_accessor :language_code
154
-
155
- # Provides "hints" to the speech recognizer to favor specific words and phrases
156
- # in the results.
157
- # Corresponds to the JSON property `speechContext`
158
- # @return [Google::Apis::SpeechV1beta1::SpeechContext]
159
- attr_accessor :speech_context
160
-
161
- # *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
162
- # Corresponds to the JSON property `encoding`
163
- # @return [String]
164
- attr_accessor :encoding
165
-
166
- # *Optional* If set to `true`, the server will attempt to filter out
167
- # profanities, replacing all but the initial character in each filtered word
168
- # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
169
- # won't be filtered out.
170
- # Corresponds to the JSON property `profanityFilter`
171
- # @return [Boolean]
172
- attr_accessor :profanity_filter
173
- alias_method :profanity_filter?, :profanity_filter
174
-
175
- def initialize(**args)
176
- update!(**args)
177
- end
178
-
179
- # Update properties of this object
180
- def update!(**args)
181
- @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
182
- @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
183
- @language_code = args[:language_code] if args.key?(:language_code)
184
- @speech_context = args[:speech_context] if args.key?(:speech_context)
185
- @encoding = args[:encoding] if args.key?(:encoding)
186
- @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
187
- end
188
- end
189
-
190
25
  # The top-level message sent by the client for the `SyncRecognize` method.
191
26
  class SyncRecognizeRequest
192
27
  include Google::Apis::Core::Hashable
193
28
 
194
- # Provides information to the recognizer that specifies how to process the
195
- # request.
196
- # Corresponds to the JSON property `config`
197
- # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
198
- attr_accessor :config
199
-
200
29
  # Contains audio data in the encoding specified in the `RecognitionConfig`.
201
30
  # Either `content` or `uri` must be supplied. Supplying both or neither
202
31
  # returns google.rpc.Code.INVALID_ARGUMENT. See
@@ -205,28 +34,11 @@ module Google
205
34
  # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
206
35
  attr_accessor :audio
207
36
 
208
- def initialize(**args)
209
- update!(**args)
210
- end
211
-
212
- # Update properties of this object
213
- def update!(**args)
214
- @config = args[:config] if args.key?(:config)
215
- @audio = args[:audio] if args.key?(:audio)
216
- end
217
- end
218
-
219
- # The only message returned to the client by `SyncRecognize`. method. It
220
- # contains the result as zero or more sequential `SpeechRecognitionResult`
221
- # messages.
222
- class SyncRecognizeResponse
223
- include Google::Apis::Core::Hashable
224
-
225
- # *Output-only* Sequential list of transcription results corresponding to
226
- # sequential portions of audio.
227
- # Corresponds to the JSON property `results`
228
- # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
229
- attr_accessor :results
37
+ # Provides information to the recognizer that specifies how to process the
38
+ # request.
39
+ # Corresponds to the JSON property `config`
40
+ # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
41
+ attr_accessor :config
230
42
 
231
43
  def initialize(**args)
232
44
  update!(**args)
@@ -234,7 +46,8 @@ module Google
234
46
 
235
47
  # Update properties of this object
236
48
  def update!(**args)
237
- @results = args[:results] if args.key?(:results)
49
+ @audio = args[:audio] if args.key?(:audio)
50
+ @config = args[:config] if args.key?(:config)
238
51
  end
239
52
  end
240
53
 
@@ -280,6 +93,11 @@ module Google
280
93
  class Status
281
94
  include Google::Apis::Core::Hashable
282
95
 
96
+ # The status code, which should be an enum value of google.rpc.Code.
97
+ # Corresponds to the JSON property `code`
98
+ # @return [Fixnum]
99
+ attr_accessor :code
100
+
283
101
  # A developer-facing error message, which should be in English. Any
284
102
  # user-facing error message should be localized and sent in the
285
103
  # google.rpc.Status.details field, or localized by the client.
@@ -293,20 +111,37 @@ module Google
293
111
  # @return [Array<Hash<String,Object>>]
294
112
  attr_accessor :details
295
113
 
296
- # The status code, which should be an enum value of google.rpc.Code.
297
- # Corresponds to the JSON property `code`
298
- # @return [Fixnum]
299
- attr_accessor :code
300
-
301
114
  def initialize(**args)
302
115
  update!(**args)
303
116
  end
304
117
 
305
118
  # Update properties of this object
306
119
  def update!(**args)
120
+ @code = args[:code] if args.key?(:code)
307
121
  @message = args[:message] if args.key?(:message)
308
122
  @details = args[:details] if args.key?(:details)
309
- @code = args[:code] if args.key?(:code)
123
+ end
124
+ end
125
+
126
+ # The only message returned to the client by `SyncRecognize`. method. It
127
+ # contains the result as zero or more sequential `SpeechRecognitionResult`
128
+ # messages.
129
+ class SyncRecognizeResponse
130
+ include Google::Apis::Core::Hashable
131
+
132
+ # *Output-only* Sequential list of transcription results corresponding to
133
+ # sequential portions of audio.
134
+ # Corresponds to the JSON property `results`
135
+ # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
136
+ attr_accessor :results
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ @results = args[:results] if args.key?(:results)
310
145
  end
311
146
  end
312
147
 
@@ -329,25 +164,19 @@ module Google
329
164
  end
330
165
  end
331
166
 
332
- # Alternative hypotheses (a.k.a. n-best list).
333
- class SpeechRecognitionAlternative
167
+ # The response message for Operations.ListOperations.
168
+ class ListOperationsResponse
334
169
  include Google::Apis::Core::Hashable
335
170
 
336
- # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
337
- # indicates an estimated greater likelihood that the recognized words are
338
- # correct. This field is typically provided only for the top hypothesis, and
339
- # only for `is_final=true` results. Clients should not rely on the
340
- # `confidence` field as it is not guaranteed to be accurate, or even set, in
341
- # any of the results.
342
- # The default of 0.0 is a sentinel value indicating `confidence` was not set.
343
- # Corresponds to the JSON property `confidence`
344
- # @return [Float]
345
- attr_accessor :confidence
171
+ # A list of operations that matches the specified filter in the request.
172
+ # Corresponds to the JSON property `operations`
173
+ # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
174
+ attr_accessor :operations
346
175
 
347
- # *Output-only* Transcript text representing the words that the user spoke.
348
- # Corresponds to the JSON property `transcript`
176
+ # The standard List next-page token.
177
+ # Corresponds to the JSON property `nextPageToken`
349
178
  # @return [String]
350
- attr_accessor :transcript
179
+ attr_accessor :next_page_token
351
180
 
352
181
  def initialize(**args)
353
182
  update!(**args)
@@ -355,8 +184,8 @@ module Google
355
184
 
356
185
  # Update properties of this object
357
186
  def update!(**args)
358
- @confidence = args[:confidence] if args.key?(:confidence)
359
- @transcript = args[:transcript] if args.key?(:transcript)
187
+ @operations = args[:operations] if args.key?(:operations)
188
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
360
189
  end
361
190
  end
362
191
 
@@ -385,19 +214,25 @@ module Google
385
214
  end
386
215
  end
387
216
 
388
- # The response message for Operations.ListOperations.
389
- class ListOperationsResponse
217
+ # Alternative hypotheses (a.k.a. n-best list).
218
+ class SpeechRecognitionAlternative
390
219
  include Google::Apis::Core::Hashable
391
220
 
392
- # A list of operations that matches the specified filter in the request.
393
- # Corresponds to the JSON property `operations`
394
- # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
395
- attr_accessor :operations
221
+ # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
222
+ # indicates an estimated greater likelihood that the recognized words are
223
+ # correct. This field is typically provided only for the top hypothesis, and
224
+ # only for `is_final=true` results. Clients should not rely on the
225
+ # `confidence` field as it is not guaranteed to be accurate, or even set, in
226
+ # any of the results.
227
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
228
+ # Corresponds to the JSON property `confidence`
229
+ # @return [Float]
230
+ attr_accessor :confidence
396
231
 
397
- # The standard List next-page token.
398
- # Corresponds to the JSON property `nextPageToken`
232
+ # *Output-only* Transcript text representing the words that the user spoke.
233
+ # Corresponds to the JSON property `transcript`
399
234
  # @return [String]
400
- attr_accessor :next_page_token
235
+ attr_accessor :transcript
401
236
 
402
237
  def initialize(**args)
403
238
  update!(**args)
@@ -405,8 +240,8 @@ module Google
405
240
 
406
241
  # Update properties of this object
407
242
  def update!(**args)
408
- @operations = args[:operations] if args.key?(:operations)
409
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
243
+ @confidence = args[:confidence] if args.key?(:confidence)
244
+ @transcript = args[:transcript] if args.key?(:transcript)
410
245
  end
411
246
  end
412
247
 
@@ -430,6 +265,35 @@ module Google
430
265
  end
431
266
  end
432
267
 
268
+ # The top-level message sent by the client for the `AsyncRecognize` method.
269
+ class AsyncRecognizeRequest
270
+ include Google::Apis::Core::Hashable
271
+
272
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
273
+ # Either `content` or `uri` must be supplied. Supplying both or neither
274
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
275
+ # [audio limits](https://cloud.google.com/speech/limits#content).
276
+ # Corresponds to the JSON property `audio`
277
+ # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
278
+ attr_accessor :audio
279
+
280
+ # Provides information to the recognizer that specifies how to process the
281
+ # request.
282
+ # Corresponds to the JSON property `config`
283
+ # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
284
+ attr_accessor :config
285
+
286
+ def initialize(**args)
287
+ update!(**args)
288
+ end
289
+
290
+ # Update properties of this object
291
+ def update!(**args)
292
+ @audio = args[:audio] if args.key?(:audio)
293
+ @config = args[:config] if args.key?(:config)
294
+ end
295
+ end
296
+
433
297
  # Contains audio data in the encoding specified in the `RecognitionConfig`.
434
298
  # Either `content` or `uri` must be supplied. Supplying both or neither
435
299
  # returns google.rpc.Code.INVALID_ARGUMENT. See
@@ -466,23 +330,88 @@ module Google
466
330
  end
467
331
  end
468
332
 
469
- # The top-level message sent by the client for the `AsyncRecognize` method.
470
- class AsyncRecognizeRequest
333
+ # This resource represents a long-running operation that is the result of a
334
+ # network API call.
335
+ class Operation
471
336
  include Google::Apis::Core::Hashable
472
337
 
473
- # Provides information to the recognizer that specifies how to process the
474
- # request.
475
- # Corresponds to the JSON property `config`
476
- # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
477
- attr_accessor :config
338
+ # If the value is `false`, it means the operation is still in progress.
339
+ # If true, the operation is completed, and either `error` or `response` is
340
+ # available.
341
+ # Corresponds to the JSON property `done`
342
+ # @return [Boolean]
343
+ attr_accessor :done
344
+ alias_method :done?, :done
478
345
 
479
- # Contains audio data in the encoding specified in the `RecognitionConfig`.
480
- # Either `content` or `uri` must be supplied. Supplying both or neither
481
- # returns google.rpc.Code.INVALID_ARGUMENT. See
482
- # [audio limits](https://cloud.google.com/speech/limits#content).
483
- # Corresponds to the JSON property `audio`
484
- # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
485
- attr_accessor :audio
346
+ # The normal response of the operation in case of success. If the original
347
+ # method returns no data on success, such as `Delete`, the response is
348
+ # `google.protobuf.Empty`. If the original method is standard
349
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
350
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
351
+ # is the original method name. For example, if the original method name
352
+ # is `TakeSnapshot()`, the inferred response type is
353
+ # `TakeSnapshotResponse`.
354
+ # Corresponds to the JSON property `response`
355
+ # @return [Hash<String,Object>]
356
+ attr_accessor :response
357
+
358
+ # The server-assigned name, which is only unique within the same service that
359
+ # originally returns it. If you use the default HTTP mapping, the
360
+ # `name` should have the format of `operations/some/unique/name`.
361
+ # Corresponds to the JSON property `name`
362
+ # @return [String]
363
+ attr_accessor :name
364
+
365
+ # The `Status` type defines a logical error model that is suitable for different
366
+ # programming environments, including REST APIs and RPC APIs. It is used by
367
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
368
+ # - Simple to use and understand for most users
369
+ # - Flexible enough to meet unexpected needs
370
+ # # Overview
371
+ # The `Status` message contains three pieces of data: error code, error message,
372
+ # and error details. The error code should be an enum value of
373
+ # google.rpc.Code, but it may accept additional error codes if needed. The
374
+ # error message should be a developer-facing English message that helps
375
+ # developers *understand* and *resolve* the error. If a localized user-facing
376
+ # error message is needed, put the localized message in the error details or
377
+ # localize it in the client. The optional error details may contain arbitrary
378
+ # information about the error. There is a predefined set of error detail types
379
+ # in the package `google.rpc` that can be used for common error conditions.
380
+ # # Language mapping
381
+ # The `Status` message is the logical representation of the error model, but it
382
+ # is not necessarily the actual wire format. When the `Status` message is
383
+ # exposed in different client libraries and different wire protocols, it can be
384
+ # mapped differently. For example, it will likely be mapped to some exceptions
385
+ # in Java, but more likely mapped to some error codes in C.
386
+ # # Other uses
387
+ # The error model and the `Status` message can be used in a variety of
388
+ # environments, either with or without APIs, to provide a
389
+ # consistent developer experience across different environments.
390
+ # Example uses of this error model include:
391
+ # - Partial errors. If a service needs to return partial errors to the client,
392
+ # it may embed the `Status` in the normal response to indicate the partial
393
+ # errors.
394
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
395
+ # have a `Status` message for error reporting.
396
+ # - Batch operations. If a client uses batch request and batch response, the
397
+ # `Status` message should be used directly inside batch response, one for
398
+ # each error sub-response.
399
+ # - Asynchronous operations. If an API call embeds asynchronous operation
400
+ # results in its response, the status of those operations should be
401
+ # represented directly using the `Status` message.
402
+ # - Logging. If some API errors are stored in logs, the message `Status` could
403
+ # be used directly after any stripping needed for security/privacy reasons.
404
+ # Corresponds to the JSON property `error`
405
+ # @return [Google::Apis::SpeechV1beta1::Status]
406
+ attr_accessor :error
407
+
408
+ # Service-specific metadata associated with the operation. It typically
409
+ # contains progress information and common metadata such as create time.
410
+ # Some services might not provide such metadata. Any method that returns a
411
+ # long-running operation should document the metadata type, if any.
412
+ # Corresponds to the JSON property `metadata`
413
+ # @return [Hash<String,Object>]
414
+ attr_accessor :metadata
486
415
 
487
416
  def initialize(**args)
488
417
  update!(**args)
@@ -490,8 +419,79 @@ module Google
490
419
 
491
420
  # Update properties of this object
492
421
  def update!(**args)
493
- @config = args[:config] if args.key?(:config)
494
- @audio = args[:audio] if args.key?(:audio)
422
+ @done = args[:done] if args.key?(:done)
423
+ @response = args[:response] if args.key?(:response)
424
+ @name = args[:name] if args.key?(:name)
425
+ @error = args[:error] if args.key?(:error)
426
+ @metadata = args[:metadata] if args.key?(:metadata)
427
+ end
428
+ end
429
+
430
+ # Provides information to the recognizer that specifies how to process the
431
+ # request.
432
+ class RecognitionConfig
433
+ include Google::Apis::Core::Hashable
434
+
435
+ # *Optional* The language of the supplied audio as a BCP-47 language tag.
436
+ # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
437
+ # If omitted, defaults to "en-US". See
438
+ # [Language Support](https://cloud.google.com/speech/docs/languages)
439
+ # for a list of the currently supported language codes.
440
+ # Corresponds to the JSON property `languageCode`
441
+ # @return [String]
442
+ attr_accessor :language_code
443
+
444
+ # *Required* Sample rate in Hertz of the audio data sent in all
445
+ # `RecognitionAudio` messages. Valid values are: 8000-48000.
446
+ # 16000 is optimal. For best results, set the sampling rate of the audio
447
+ # source to 16000 Hz. If that's not possible, use the native sample rate of
448
+ # the audio source (instead of re-sampling).
449
+ # Corresponds to the JSON property `sampleRate`
450
+ # @return [Fixnum]
451
+ attr_accessor :sample_rate
452
+
453
+ # *Optional* If set to `true`, the server will attempt to filter out
454
+ # profanities, replacing all but the initial character in each filtered word
455
+ # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
456
+ # won't be filtered out.
457
+ # Corresponds to the JSON property `profanityFilter`
458
+ # @return [Boolean]
459
+ attr_accessor :profanity_filter
460
+ alias_method :profanity_filter?, :profanity_filter
461
+
462
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
463
+ # in the results.
464
+ # Corresponds to the JSON property `speechContext`
465
+ # @return [Google::Apis::SpeechV1beta1::SpeechContext]
466
+ attr_accessor :speech_context
467
+
468
+ # *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
469
+ # Corresponds to the JSON property `encoding`
470
+ # @return [String]
471
+ attr_accessor :encoding
472
+
473
+ # *Optional* Maximum number of recognition hypotheses to be returned.
474
+ # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
475
+ # within each `SpeechRecognitionResult`.
476
+ # The server may return fewer than `max_alternatives`.
477
+ # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
478
+ # one. If omitted, will return a maximum of one.
479
+ # Corresponds to the JSON property `maxAlternatives`
480
+ # @return [Fixnum]
481
+ attr_accessor :max_alternatives
482
+
483
+ def initialize(**args)
484
+ update!(**args)
485
+ end
486
+
487
+ # Update properties of this object
488
+ def update!(**args)
489
+ @language_code = args[:language_code] if args.key?(:language_code)
490
+ @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
491
+ @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
492
+ @speech_context = args[:speech_context] if args.key?(:speech_context)
493
+ @encoding = args[:encoding] if args.key?(:encoding)
494
+ @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
495
495
  end
496
496
  end
497
497
  end