google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20170323'
28
+ REVISION = '20170327'
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,25 +22,116 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1beta1
24
24
 
25
- # Alternative hypotheses (a.k.a. n-best list).
26
- class SpeechRecognitionAlternative
25
+ # The top-level message sent by the client for the `SyncRecognize` method.
26
+ class SyncRecognizeRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
30
- # indicates an estimated greater likelihood that the recognized words are
31
- # correct. This field is typically provided only for the top hypothesis, and
32
- # only for `is_final=true` results. Clients should not rely on the
33
- # `confidence` field as it is not guaranteed to be accurate, or even set, in
34
- # any of the results.
35
- # The default of 0.0 is a sentinel value indicating `confidence` was not set.
36
- # Corresponds to the JSON property `confidence`
37
- # @return [Float]
38
- attr_accessor :confidence
29
+ # Provides information to the recognizer that specifies how to process the
30
+ # request.
31
+ # Corresponds to the JSON property `config`
32
+ # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
33
+ attr_accessor :config
39
34
 
40
- # *Output-only* Transcript text representing the words that the user spoke.
41
- # Corresponds to the JSON property `transcript`
35
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
36
+ # Either `content` or `uri` must be supplied. Supplying both or neither
37
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
38
+ # [audio limits](https://cloud.google.com/speech/limits#content).
39
+ # Corresponds to the JSON property `audio`
40
+ # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
41
+ attr_accessor :audio
42
+
43
+ def initialize(**args)
44
+ update!(**args)
45
+ end
46
+
47
+ # Update properties of this object
48
+ def update!(**args)
49
+ @config = args[:config] if args.key?(:config)
50
+ @audio = args[:audio] if args.key?(:audio)
51
+ end
52
+ end
53
+
54
+ # The only message returned to the client by `SyncRecognize`. method. It
55
+ # contains the result as zero or more sequential `SpeechRecognitionResult`
56
+ # messages.
57
+ class SyncRecognizeResponse
58
+ include Google::Apis::Core::Hashable
59
+
60
+ # *Output-only* Sequential list of transcription results corresponding to
61
+ # sequential portions of audio.
62
+ # Corresponds to the JSON property `results`
63
+ # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
64
+ attr_accessor :results
65
+
66
+ def initialize(**args)
67
+ update!(**args)
68
+ end
69
+
70
+ # Update properties of this object
71
+ def update!(**args)
72
+ @results = args[:results] if args.key?(:results)
73
+ end
74
+ end
75
+
76
+ # The `Status` type defines a logical error model that is suitable for different
77
+ # programming environments, including REST APIs and RPC APIs. It is used by
78
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
79
+ # - Simple to use and understand for most users
80
+ # - Flexible enough to meet unexpected needs
81
+ # # Overview
82
+ # The `Status` message contains three pieces of data: error code, error message,
83
+ # and error details. The error code should be an enum value of
84
+ # google.rpc.Code, but it may accept additional error codes if needed. The
85
+ # error message should be a developer-facing English message that helps
86
+ # developers *understand* and *resolve* the error. If a localized user-facing
87
+ # error message is needed, put the localized message in the error details or
88
+ # localize it in the client. The optional error details may contain arbitrary
89
+ # information about the error. There is a predefined set of error detail types
90
+ # in the package `google.rpc` which can be used for common error conditions.
91
+ # # Language mapping
92
+ # The `Status` message is the logical representation of the error model, but it
93
+ # is not necessarily the actual wire format. When the `Status` message is
94
+ # exposed in different client libraries and different wire protocols, it can be
95
+ # mapped differently. For example, it will likely be mapped to some exceptions
96
+ # in Java, but more likely mapped to some error codes in C.
97
+ # # Other uses
98
+ # The error model and the `Status` message can be used in a variety of
99
+ # environments, either with or without APIs, to provide a
100
+ # consistent developer experience across different environments.
101
+ # Example uses of this error model include:
102
+ # - Partial errors. If a service needs to return partial errors to the client,
103
+ # it may embed the `Status` in the normal response to indicate the partial
104
+ # errors.
105
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
106
+ # have a `Status` message for error reporting purpose.
107
+ # - Batch operations. If a client uses batch request and batch response, the
108
+ # `Status` message should be used directly inside batch response, one for
109
+ # each error sub-response.
110
+ # - Asynchronous operations. If an API call embeds asynchronous operation
111
+ # results in its response, the status of those operations should be
112
+ # represented directly using the `Status` message.
113
+ # - Logging. If some API errors are stored in logs, the message `Status` could
114
+ # be used directly after any stripping needed for security/privacy reasons.
115
+ class Status
116
+ include Google::Apis::Core::Hashable
117
+
118
+ # A list of messages that carry the error details. There will be a
119
+ # common set of message types for APIs to use.
120
+ # Corresponds to the JSON property `details`
121
+ # @return [Array<Hash<String,Object>>]
122
+ attr_accessor :details
123
+
124
+ # The status code, which should be an enum value of google.rpc.Code.
125
+ # Corresponds to the JSON property `code`
126
+ # @return [Fixnum]
127
+ attr_accessor :code
128
+
129
+ # A developer-facing error message, which should be in English. Any
130
+ # user-facing error message should be localized and sent in the
131
+ # google.rpc.Status.details field, or localized by the client.
132
+ # Corresponds to the JSON property `message`
42
133
  # @return [String]
43
- attr_accessor :transcript
134
+ attr_accessor :message
44
135
 
45
136
  def initialize(**args)
46
137
  update!(**args)
@@ -48,8 +139,53 @@ module Google
48
139
 
49
140
  # Update properties of this object
50
141
  def update!(**args)
51
- @confidence = args[:confidence] if args.key?(:confidence)
52
- @transcript = args[:transcript] if args.key?(:transcript)
142
+ @details = args[:details] if args.key?(:details)
143
+ @code = args[:code] if args.key?(:code)
144
+ @message = args[:message] if args.key?(:message)
145
+ end
146
+ end
147
+
148
+ # A generic empty message that you can re-use to avoid defining duplicated
149
+ # empty messages in your APIs. A typical example is to use it as the request
150
+ # or the response type of an API method. For instance:
151
+ # service Foo `
152
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
153
+ # `
154
+ # The JSON representation for `Empty` is empty JSON object ````.
155
+ class Empty
156
+ include Google::Apis::Core::Hashable
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ end
165
+ end
166
+
167
+ # The response message for Operations.ListOperations.
168
+ class ListOperationsResponse
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The standard List next-page token.
172
+ # Corresponds to the JSON property `nextPageToken`
173
+ # @return [String]
174
+ attr_accessor :next_page_token
175
+
176
+ # A list of operations that matches the specified filter in the request.
177
+ # Corresponds to the JSON property `operations`
178
+ # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
179
+ attr_accessor :operations
180
+
181
+ def initialize(**args)
182
+ update!(**args)
183
+ end
184
+
185
+ # Update properties of this object
186
+ def update!(**args)
187
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
188
+ @operations = args[:operations] if args.key?(:operations)
53
189
  end
54
190
  end
55
191
 
@@ -78,19 +214,25 @@ module Google
78
214
  end
79
215
  end
80
216
 
81
- # The response message for Operations.ListOperations.
82
- class ListOperationsResponse
217
+ # Alternative hypotheses (a.k.a. n-best list).
218
+ class SpeechRecognitionAlternative
83
219
  include Google::Apis::Core::Hashable
84
220
 
85
- # The standard List next-page token.
86
- # Corresponds to the JSON property `nextPageToken`
87
- # @return [String]
88
- attr_accessor :next_page_token
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
89
231
 
90
- # A list of operations that matches the specified filter in the request.
91
- # Corresponds to the JSON property `operations`
92
- # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
93
- attr_accessor :operations
232
+ # *Output-only* Transcript text representing the words that the user spoke.
233
+ # Corresponds to the JSON property `transcript`
234
+ # @return [String]
235
+ attr_accessor :transcript
94
236
 
95
237
  def initialize(**args)
96
238
  update!(**args)
@@ -98,8 +240,8 @@ module Google
98
240
 
99
241
  # Update properties of this object
100
242
  def update!(**args)
101
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
102
- @operations = args[:operations] if args.key?(:operations)
243
+ @confidence = args[:confidence] if args.key?(:confidence)
244
+ @transcript = args[:transcript] if args.key?(:transcript)
103
245
  end
104
246
  end
105
247
 
@@ -163,6 +305,7 @@ module Google
163
305
  # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
164
306
  # pure binary representation, whereas JSON representations use base64.
165
307
  # Corresponds to the JSON property `content`
308
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
166
309
  # @return [String]
167
310
  attr_accessor :content
168
311
 
@@ -192,6 +335,14 @@ module Google
192
335
  class Operation
193
336
  include Google::Apis::Core::Hashable
194
337
 
338
+ # Service-specific metadata associated with the operation. It typically
339
+ # contains progress information and common metadata such as create time.
340
+ # Some services might not provide such metadata. Any method that returns a
341
+ # long-running operation should document the metadata type, if any.
342
+ # Corresponds to the JSON property `metadata`
343
+ # @return [Hash<String,Object>]
344
+ attr_accessor :metadata
345
+
195
346
  # If the value is `false`, it means the operation is still in progress.
196
347
  # If true, the operation is completed, and either `error` or `response` is
197
348
  # available.
@@ -262,25 +413,17 @@ module Google
262
413
  # @return [Google::Apis::SpeechV1beta1::Status]
263
414
  attr_accessor :error
264
415
 
265
- # Service-specific metadata associated with the operation. It typically
266
- # contains progress information and common metadata such as create time.
267
- # Some services might not provide such metadata. Any method that returns a
268
- # long-running operation should document the metadata type, if any.
269
- # Corresponds to the JSON property `metadata`
270
- # @return [Hash<String,Object>]
271
- attr_accessor :metadata
272
-
273
416
  def initialize(**args)
274
417
  update!(**args)
275
418
  end
276
419
 
277
420
  # Update properties of this object
278
421
  def update!(**args)
422
+ @metadata = args[:metadata] if args.key?(:metadata)
279
423
  @done = args[:done] if args.key?(:done)
280
424
  @response = args[:response] if args.key?(:response)
281
425
  @name = args[:name] if args.key?(:name)
282
426
  @error = args[:error] if args.key?(:error)
283
- @metadata = args[:metadata] if args.key?(:metadata)
284
427
  end
285
428
  end
286
429
 
@@ -299,15 +442,6 @@ module Google
299
442
  # @return [Fixnum]
300
443
  attr_accessor :max_alternatives
301
444
 
302
- # *Required* Sample rate in Hertz of the audio data sent in all
303
- # `RecognitionAudio` messages. Valid values are: 8000-48000.
304
- # 16000 is optimal. For best results, set the sampling rate of the audio
305
- # source to 16000 Hz. If that's not possible, use the native sample rate of
306
- # the audio source (instead of re-sampling).
307
- # Corresponds to the JSON property `sampleRate`
308
- # @return [Fixnum]
309
- attr_accessor :sample_rate
310
-
311
445
  # *Optional* The language of the supplied audio as a BCP-47 language tag.
312
446
  # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
313
447
  # If omitted, defaults to "en-US". See
@@ -317,11 +451,14 @@ module Google
317
451
  # @return [String]
318
452
  attr_accessor :language_code
319
453
 
320
- # Provides "hints" to the speech recognizer to favor specific words and phrases
321
- # in the results.
322
- # Corresponds to the JSON property `speechContext`
323
- # @return [Google::Apis::SpeechV1beta1::SpeechContext]
324
- attr_accessor :speech_context
454
+ # *Required* Sample rate in Hertz of the audio data sent in all
455
+ # `RecognitionAudio` messages. Valid values are: 8000-48000.
456
+ # 16000 is optimal. For best results, set the sampling rate of the audio
457
+ # source to 16000 Hz. If that's not possible, use the native sample rate of
458
+ # the audio source (instead of re-sampling).
459
+ # Corresponds to the JSON property `sampleRate`
460
+ # @return [Fixnum]
461
+ attr_accessor :sample_rate
325
462
 
326
463
  # *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
327
464
  # Corresponds to the JSON property `encoding`
@@ -337,6 +474,12 @@ module Google
337
474
  attr_accessor :profanity_filter
338
475
  alias_method :profanity_filter?, :profanity_filter
339
476
 
477
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
478
+ # in the results.
479
+ # Corresponds to the JSON property `speechContext`
480
+ # @return [Google::Apis::SpeechV1beta1::SpeechContext]
481
+ attr_accessor :speech_context
482
+
340
483
  def initialize(**args)
341
484
  update!(**args)
342
485
  end
@@ -344,153 +487,11 @@ module Google
344
487
  # Update properties of this object
345
488
  def update!(**args)
346
489
  @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
347
- @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
348
490
  @language_code = args[:language_code] if args.key?(:language_code)
349
- @speech_context = args[:speech_context] if args.key?(:speech_context)
491
+ @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
350
492
  @encoding = args[:encoding] if args.key?(:encoding)
351
493
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
352
- end
353
- end
354
-
355
- # The top-level message sent by the client for the `SyncRecognize` method.
356
- class SyncRecognizeRequest
357
- include Google::Apis::Core::Hashable
358
-
359
- # Provides information to the recognizer that specifies how to process the
360
- # request.
361
- # Corresponds to the JSON property `config`
362
- # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
363
- attr_accessor :config
364
-
365
- # Contains audio data in the encoding specified in the `RecognitionConfig`.
366
- # Either `content` or `uri` must be supplied. Supplying both or neither
367
- # returns google.rpc.Code.INVALID_ARGUMENT. See
368
- # [audio limits](https://cloud.google.com/speech/limits#content).
369
- # Corresponds to the JSON property `audio`
370
- # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
371
- attr_accessor :audio
372
-
373
- def initialize(**args)
374
- update!(**args)
375
- end
376
-
377
- # Update properties of this object
378
- def update!(**args)
379
- @config = args[:config] if args.key?(:config)
380
- @audio = args[:audio] if args.key?(:audio)
381
- end
382
- end
383
-
384
- # The `Status` type defines a logical error model that is suitable for different
385
- # programming environments, including REST APIs and RPC APIs. It is used by
386
- # [gRPC](https://github.com/grpc). The error model is designed to be:
387
- # - Simple to use and understand for most users
388
- # - Flexible enough to meet unexpected needs
389
- # # Overview
390
- # The `Status` message contains three pieces of data: error code, error message,
391
- # and error details. The error code should be an enum value of
392
- # google.rpc.Code, but it may accept additional error codes if needed. The
393
- # error message should be a developer-facing English message that helps
394
- # developers *understand* and *resolve* the error. If a localized user-facing
395
- # error message is needed, put the localized message in the error details or
396
- # localize it in the client. The optional error details may contain arbitrary
397
- # information about the error. There is a predefined set of error detail types
398
- # in the package `google.rpc` which can be used for common error conditions.
399
- # # Language mapping
400
- # The `Status` message is the logical representation of the error model, but it
401
- # is not necessarily the actual wire format. When the `Status` message is
402
- # exposed in different client libraries and different wire protocols, it can be
403
- # mapped differently. For example, it will likely be mapped to some exceptions
404
- # in Java, but more likely mapped to some error codes in C.
405
- # # Other uses
406
- # The error model and the `Status` message can be used in a variety of
407
- # environments, either with or without APIs, to provide a
408
- # consistent developer experience across different environments.
409
- # Example uses of this error model include:
410
- # - Partial errors. If a service needs to return partial errors to the client,
411
- # it may embed the `Status` in the normal response to indicate the partial
412
- # errors.
413
- # - Workflow errors. A typical workflow has multiple steps. Each step may
414
- # have a `Status` message for error reporting purpose.
415
- # - Batch operations. If a client uses batch request and batch response, the
416
- # `Status` message should be used directly inside batch response, one for
417
- # each error sub-response.
418
- # - Asynchronous operations. If an API call embeds asynchronous operation
419
- # results in its response, the status of those operations should be
420
- # represented directly using the `Status` message.
421
- # - Logging. If some API errors are stored in logs, the message `Status` could
422
- # be used directly after any stripping needed for security/privacy reasons.
423
- class Status
424
- include Google::Apis::Core::Hashable
425
-
426
- # A list of messages that carry the error details. There will be a
427
- # common set of message types for APIs to use.
428
- # Corresponds to the JSON property `details`
429
- # @return [Array<Hash<String,Object>>]
430
- attr_accessor :details
431
-
432
- # The status code, which should be an enum value of google.rpc.Code.
433
- # Corresponds to the JSON property `code`
434
- # @return [Fixnum]
435
- attr_accessor :code
436
-
437
- # A developer-facing error message, which should be in English. Any
438
- # user-facing error message should be localized and sent in the
439
- # google.rpc.Status.details field, or localized by the client.
440
- # Corresponds to the JSON property `message`
441
- # @return [String]
442
- attr_accessor :message
443
-
444
- def initialize(**args)
445
- update!(**args)
446
- end
447
-
448
- # Update properties of this object
449
- def update!(**args)
450
- @details = args[:details] if args.key?(:details)
451
- @code = args[:code] if args.key?(:code)
452
- @message = args[:message] if args.key?(:message)
453
- end
454
- end
455
-
456
- # The only message returned to the client by `SyncRecognize`. method. It
457
- # contains the result as zero or more sequential `SpeechRecognitionResult`
458
- # messages.
459
- class SyncRecognizeResponse
460
- include Google::Apis::Core::Hashable
461
-
462
- # *Output-only* Sequential list of transcription results corresponding to
463
- # sequential portions of audio.
464
- # Corresponds to the JSON property `results`
465
- # @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
466
- attr_accessor :results
467
-
468
- def initialize(**args)
469
- update!(**args)
470
- end
471
-
472
- # Update properties of this object
473
- def update!(**args)
474
- @results = args[:results] if args.key?(:results)
475
- end
476
- end
477
-
478
- # A generic empty message that you can re-use to avoid defining duplicated
479
- # empty messages in your APIs. A typical example is to use it as the request
480
- # or the response type of an API method. For instance:
481
- # service Foo `
482
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
483
- # `
484
- # The JSON representation for `Empty` is empty JSON object ````.
485
- class Empty
486
- include Google::Apis::Core::Hashable
487
-
488
- def initialize(**args)
489
- update!(**args)
490
- end
491
-
492
- # Update properties of this object
493
- def update!(**args)
494
+ @speech_context = args[:speech_context] if args.key?(:speech_context)
494
495
  end
495
496
  end
496
497
  end