google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20170501'
28
+ REVISION = '20170522'
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,171 +22,6 @@ 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` which 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 purpose.
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
@@ -230,7 +65,7 @@ module Google
230
65
  # error message is needed, put the localized message in the error details or
231
66
  # localize it in the client. The optional error details may contain arbitrary
232
67
  # information about the error. There is a predefined set of error detail types
233
- # in the package `google.rpc` which can be used for common error conditions.
68
+ # in the package `google.rpc` that can be used for common error conditions.
234
69
  # # Language mapping
235
70
  # The `Status` message is the logical representation of the error model, but it
236
71
  # is not necessarily the actual wire format. When the `Status` message is
@@ -246,7 +81,7 @@ module Google
246
81
  # it may embed the `Status` in the normal response to indicate the partial
247
82
  # errors.
248
83
  # - Workflow errors. A typical workflow has multiple steps. Each step may
249
- # have a `Status` message for error reporting purpose.
84
+ # have a `Status` message for error reporting.
250
85
  # - Batch operations. If a client uses batch request and batch response, the
251
86
  # `Status` message should be used directly inside batch response, one for
252
87
  # each error sub-response.
@@ -258,13 +93,6 @@ module Google
258
93
  class Status
259
94
  include Google::Apis::Core::Hashable
260
95
 
261
- # A developer-facing error message, which should be in English. Any
262
- # user-facing error message should be localized and sent in the
263
- # google.rpc.Status.details field, or localized by the client.
264
- # Corresponds to the JSON property `message`
265
- # @return [String]
266
- attr_accessor :message
267
-
268
96
  # A list of messages that carry the error details. There will be a
269
97
  # common set of message types for APIs to use.
270
98
  # Corresponds to the JSON property `details`
@@ -276,15 +104,22 @@ module Google
276
104
  # @return [Fixnum]
277
105
  attr_accessor :code
278
106
 
107
+ # A developer-facing error message, which should be in English. Any
108
+ # user-facing error message should be localized and sent in the
109
+ # google.rpc.Status.details field, or localized by the client.
110
+ # Corresponds to the JSON property `message`
111
+ # @return [String]
112
+ attr_accessor :message
113
+
279
114
  def initialize(**args)
280
115
  update!(**args)
281
116
  end
282
117
 
283
118
  # Update properties of this object
284
119
  def update!(**args)
285
- @message = args[:message] if args.key?(:message)
286
120
  @details = args[:details] if args.key?(:details)
287
121
  @code = args[:code] if args.key?(:code)
122
+ @message = args[:message] if args.key?(:message)
288
123
  end
289
124
  end
290
125
 
@@ -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
346
-
347
- # *Output-only* Transcript text representing the words that the user spoke.
348
- # Corresponds to the JSON property `transcript`
171
+ # The standard List next-page token.
172
+ # Corresponds to the JSON property `nextPageToken`
349
173
  # @return [String]
350
- attr_accessor :transcript
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
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
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
188
+ @operations = args[:operations] if args.key?(:operations)
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
- # The standard List next-page token.
393
- # Corresponds to the JSON property `nextPageToken`
394
- # @return [String]
395
- 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
396
231
 
397
- # A list of operations that matches the specified filter in the request.
398
- # Corresponds to the JSON property `operations`
399
- # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
400
- 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
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
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
409
- @operations = args[:operations] if args.key?(:operations)
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,42 @@ module Google
430
265
  end
431
266
  end
432
267
 
268
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
269
+ # Either `content` or `uri` must be supplied. Supplying both or neither
270
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
271
+ # [audio limits](https://cloud.google.com/speech/limits#content).
272
+ class RecognitionAudio
273
+ include Google::Apis::Core::Hashable
274
+
275
+ # The audio data bytes encoded as specified in
276
+ # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
277
+ # pure binary representation, whereas JSON representations use base64.
278
+ # Corresponds to the JSON property `content`
279
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
280
+ # @return [String]
281
+ attr_accessor :content
282
+
283
+ # URI that points to a file that contains audio data bytes as specified in
284
+ # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
285
+ # supported, which must be specified in the following format:
286
+ # `gs://bucket_name/object_name` (other URI formats return
287
+ # google.rpc.Code.INVALID_ARGUMENT). For more information, see
288
+ # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
289
+ # Corresponds to the JSON property `uri`
290
+ # @return [String]
291
+ attr_accessor :uri
292
+
293
+ def initialize(**args)
294
+ update!(**args)
295
+ end
296
+
297
+ # Update properties of this object
298
+ def update!(**args)
299
+ @content = args[:content] if args.key?(:content)
300
+ @uri = args[:uri] if args.key?(:uri)
301
+ end
302
+ end
303
+
433
304
  # The top-level message sent by the client for the `AsyncRecognize` method.
434
305
  class AsyncRecognizeRequest
435
306
  include Google::Apis::Core::Hashable
@@ -459,30 +330,155 @@ module Google
459
330
  end
460
331
  end
461
332
 
462
- # Contains audio data in the encoding specified in the `RecognitionConfig`.
463
- # Either `content` or `uri` must be supplied. Supplying both or neither
464
- # returns google.rpc.Code.INVALID_ARGUMENT. See
465
- # [audio limits](https://cloud.google.com/speech/limits#content).
466
- class RecognitionAudio
333
+ # This resource represents a long-running operation that is the result of a
334
+ # network API call.
335
+ class Operation
467
336
  include Google::Apis::Core::Hashable
468
337
 
469
- # The audio data bytes encoded as specified in
470
- # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
471
- # pure binary representation, whereas JSON representations use base64.
472
- # Corresponds to the JSON property `content`
473
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
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
345
+
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`
474
362
  # @return [String]
475
- attr_accessor :content
363
+ attr_accessor :name
476
364
 
477
- # URI that points to a file that contains audio data bytes as specified in
478
- # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
479
- # supported, which must be specified in the following format:
480
- # `gs://bucket_name/object_name` (other URI formats return
481
- # google.rpc.Code.INVALID_ARGUMENT). For more information, see
482
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
483
- # Corresponds to the JSON property `uri`
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
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
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* Maximum number of recognition hypotheses to be returned.
436
+ # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
437
+ # within each `SpeechRecognitionResult`.
438
+ # The server may return fewer than `max_alternatives`.
439
+ # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
440
+ # one. If omitted, will return a maximum of one.
441
+ # Corresponds to the JSON property `maxAlternatives`
442
+ # @return [Fixnum]
443
+ attr_accessor :max_alternatives
444
+
445
+ # *Required* Sample rate in Hertz of the audio data sent in all
446
+ # `RecognitionAudio` messages. Valid values are: 8000-48000.
447
+ # 16000 is optimal. For best results, set the sampling rate of the audio
448
+ # source to 16000 Hz. If that's not possible, use the native sample rate of
449
+ # the audio source (instead of re-sampling).
450
+ # Corresponds to the JSON property `sampleRate`
451
+ # @return [Fixnum]
452
+ attr_accessor :sample_rate
453
+
454
+ # *Optional* The language of the supplied audio as a BCP-47 language tag.
455
+ # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
456
+ # If omitted, defaults to "en-US". See
457
+ # [Language Support](https://cloud.google.com/speech/docs/languages)
458
+ # for a list of the currently supported language codes.
459
+ # Corresponds to the JSON property `languageCode`
484
460
  # @return [String]
485
- attr_accessor :uri
461
+ attr_accessor :language_code
462
+
463
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
464
+ # in the results.
465
+ # Corresponds to the JSON property `speechContext`
466
+ # @return [Google::Apis::SpeechV1beta1::SpeechContext]
467
+ attr_accessor :speech_context
468
+
469
+ # *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
470
+ # Corresponds to the JSON property `encoding`
471
+ # @return [String]
472
+ attr_accessor :encoding
473
+
474
+ # *Optional* If set to `true`, the server will attempt to filter out
475
+ # profanities, replacing all but the initial character in each filtered word
476
+ # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
477
+ # won't be filtered out.
478
+ # Corresponds to the JSON property `profanityFilter`
479
+ # @return [Boolean]
480
+ attr_accessor :profanity_filter
481
+ alias_method :profanity_filter?, :profanity_filter
486
482
 
487
483
  def initialize(**args)
488
484
  update!(**args)
@@ -490,8 +486,12 @@ module Google
490
486
 
491
487
  # Update properties of this object
492
488
  def update!(**args)
493
- @content = args[:content] if args.key?(:content)
494
- @uri = args[:uri] if args.key?(:uri)
489
+ @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
490
+ @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
491
+ @language_code = args[:language_code] if args.key?(:language_code)
492
+ @speech_context = args[:speech_context] if args.key?(:speech_context)
493
+ @encoding = args[:encoding] if args.key?(:encoding)
494
+ @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
495
495
  end
496
496
  end
497
497
  end