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
@@ -20,14 +20,14 @@ module Google
20
20
  module Apis
21
21
  # Google Cloud Natural Language API
22
22
  #
23
- # Google Cloud Natural Language API provides natural language understanding
24
- # technologies to developers. Examples include sentiment analysis, entity
25
- # recognition, and text annotations.
23
+ # Provides natural language understanding technologies to developers. Examples
24
+ # include sentiment analysis, entity recognition, entity sentiment analysis, and
25
+ # text annotations.
26
26
  #
27
27
  # @see https://cloud.google.com/natural-language/
28
28
  module LanguageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20170502'
30
+ REVISION = '20170525'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -111,25 +111,25 @@ module Google
111
111
  class AnalyzeSyntaxRequest
112
112
  include Google::Apis::Core::Hashable
113
113
 
114
- # The encoding type used by the API to calculate offsets.
115
- # Corresponds to the JSON property `encodingType`
116
- # @return [String]
117
- attr_accessor :encoding_type
118
-
119
114
  # ################################################################ #
120
115
  # Represents the input to API methods.
121
116
  # Corresponds to the JSON property `document`
122
117
  # @return [Google::Apis::LanguageV1beta1::Document]
123
118
  attr_accessor :document
124
119
 
120
+ # The encoding type used by the API to calculate offsets.
121
+ # Corresponds to the JSON property `encodingType`
122
+ # @return [String]
123
+ attr_accessor :encoding_type
124
+
125
125
  def initialize(**args)
126
126
  update!(**args)
127
127
  end
128
128
 
129
129
  # Update properties of this object
130
130
  def update!(**args)
131
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
132
131
  @document = args[:document] if args.key?(:document)
132
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
133
133
  end
134
134
  end
135
135
 
@@ -171,33 +171,11 @@ module Google
171
171
  class AnalyzeEntitiesResponse
172
172
  include Google::Apis::Core::Hashable
173
173
 
174
- # The language of the text, which will be the same as the language specified
175
- # in the request or, if not specified, the automatically-detected language.
176
- # See Document.language field for more details.
177
- # Corresponds to the JSON property `language`
178
- # @return [String]
179
- attr_accessor :language
180
-
181
174
  # The recognized entities in the input document.
182
175
  # Corresponds to the JSON property `entities`
183
176
  # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
184
177
  attr_accessor :entities
185
178
 
186
- def initialize(**args)
187
- update!(**args)
188
- end
189
-
190
- # Update properties of this object
191
- def update!(**args)
192
- @language = args[:language] if args.key?(:language)
193
- @entities = args[:entities] if args.key?(:entities)
194
- end
195
- end
196
-
197
- # The syntax analysis response message.
198
- class AnalyzeSyntaxResponse
199
- include Google::Apis::Core::Hashable
200
-
201
179
  # The language of the text, which will be the same as the language specified
202
180
  # in the request or, if not specified, the automatically-detected language.
203
181
  # See Document.language field for more details.
@@ -205,25 +183,14 @@ module Google
205
183
  # @return [String]
206
184
  attr_accessor :language
207
185
 
208
- # Sentences in the input document.
209
- # Corresponds to the JSON property `sentences`
210
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
211
- attr_accessor :sentences
212
-
213
- # Tokens, along with their syntactic information, in the input document.
214
- # Corresponds to the JSON property `tokens`
215
- # @return [Array<Google::Apis::LanguageV1beta1::Token>]
216
- attr_accessor :tokens
217
-
218
186
  def initialize(**args)
219
187
  update!(**args)
220
188
  end
221
189
 
222
190
  # Update properties of this object
223
191
  def update!(**args)
192
+ @entities = args[:entities] if args.key?(:entities)
224
193
  @language = args[:language] if args.key?(:language)
225
- @sentences = args[:sentences] if args.key?(:sentences)
226
- @tokens = args[:tokens] if args.key?(:tokens)
227
194
  end
228
195
  end
229
196
 
@@ -279,6 +246,39 @@ module Google
279
246
  end
280
247
  end
281
248
 
249
+ # The syntax analysis response message.
250
+ class AnalyzeSyntaxResponse
251
+ include Google::Apis::Core::Hashable
252
+
253
+ # The language of the text, which will be the same as the language specified
254
+ # in the request or, if not specified, the automatically-detected language.
255
+ # See Document.language field for more details.
256
+ # Corresponds to the JSON property `language`
257
+ # @return [String]
258
+ attr_accessor :language
259
+
260
+ # Sentences in the input document.
261
+ # Corresponds to the JSON property `sentences`
262
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
263
+ attr_accessor :sentences
264
+
265
+ # Tokens, along with their syntactic information, in the input document.
266
+ # Corresponds to the JSON property `tokens`
267
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
268
+ attr_accessor :tokens
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @language = args[:language] if args.key?(:language)
277
+ @sentences = args[:sentences] if args.key?(:sentences)
278
+ @tokens = args[:tokens] if args.key?(:tokens)
279
+ end
280
+ end
281
+
282
282
  # The request message for the text annotation API, which can perform multiple
283
283
  # analysis types (sentiment, entities, and syntax) in one call.
284
284
  class AnnotateTextRequest
@@ -317,6 +317,19 @@ module Google
317
317
  class AnnotateTextResponse
318
318
  include Google::Apis::Core::Hashable
319
319
 
320
+ # Sentences in the input document. Populated if the user enables
321
+ # AnnotateTextRequest.Features.extract_syntax.
322
+ # Corresponds to the JSON property `sentences`
323
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
324
+ attr_accessor :sentences
325
+
326
+ # Tokens, along with their syntactic information, in the input document.
327
+ # Populated if the user enables
328
+ # AnnotateTextRequest.Features.extract_syntax.
329
+ # Corresponds to the JSON property `tokens`
330
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
331
+ attr_accessor :tokens
332
+
320
333
  # Entities, along with their semantic information, in the input document.
321
334
  # Populated if the user enables
322
335
  # AnnotateTextRequest.Features.extract_entities.
@@ -337,30 +350,17 @@ module Google
337
350
  # @return [String]
338
351
  attr_accessor :language
339
352
 
340
- # Sentences in the input document. Populated if the user enables
341
- # AnnotateTextRequest.Features.extract_syntax.
342
- # Corresponds to the JSON property `sentences`
343
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
344
- attr_accessor :sentences
345
-
346
- # Tokens, along with their syntactic information, in the input document.
347
- # Populated if the user enables
348
- # AnnotateTextRequest.Features.extract_syntax.
349
- # Corresponds to the JSON property `tokens`
350
- # @return [Array<Google::Apis::LanguageV1beta1::Token>]
351
- attr_accessor :tokens
352
-
353
353
  def initialize(**args)
354
354
  update!(**args)
355
355
  end
356
356
 
357
357
  # Update properties of this object
358
358
  def update!(**args)
359
+ @sentences = args[:sentences] if args.key?(:sentences)
360
+ @tokens = args[:tokens] if args.key?(:tokens)
359
361
  @entities = args[:entities] if args.key?(:entities)
360
362
  @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
361
363
  @language = args[:language] if args.key?(:language)
362
- @sentences = args[:sentences] if args.key?(:sentences)
363
- @tokens = args[:tokens] if args.key?(:tokens)
364
364
  end
365
365
  end
366
366
 
@@ -450,11 +450,6 @@ module Google
450
450
  class Token
451
451
  include Google::Apis::Core::Hashable
452
452
 
453
- # Represents part of speech information for a token.
454
- # Corresponds to the JSON property `partOfSpeech`
455
- # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
456
- attr_accessor :part_of_speech
457
-
458
453
  # Represents an output piece of text.
459
454
  # Corresponds to the JSON property `text`
460
455
  # @return [Google::Apis::LanguageV1beta1::TextSpan]
@@ -470,16 +465,21 @@ module Google
470
465
  # @return [String]
471
466
  attr_accessor :lemma
472
467
 
468
+ # Represents part of speech information for a token.
469
+ # Corresponds to the JSON property `partOfSpeech`
470
+ # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
471
+ attr_accessor :part_of_speech
472
+
473
473
  def initialize(**args)
474
474
  update!(**args)
475
475
  end
476
476
 
477
477
  # Update properties of this object
478
478
  def update!(**args)
479
- @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
480
479
  @text = args[:text] if args.key?(:text)
481
480
  @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
482
481
  @lemma = args[:lemma] if args.key?(:lemma)
482
+ @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
483
483
  end
484
484
  end
485
485
 
@@ -497,7 +497,7 @@ module Google
497
497
  # error message is needed, put the localized message in the error details or
498
498
  # localize it in the client. The optional error details may contain arbitrary
499
499
  # information about the error. There is a predefined set of error detail types
500
- # in the package `google.rpc` which can be used for common error conditions.
500
+ # in the package `google.rpc` that can be used for common error conditions.
501
501
  # # Language mapping
502
502
  # The `Status` message is the logical representation of the error model, but it
503
503
  # is not necessarily the actual wire format. When the `Status` message is
@@ -513,7 +513,7 @@ module Google
513
513
  # it may embed the `Status` in the normal response to indicate the partial
514
514
  # errors.
515
515
  # - Workflow errors. A typical workflow has multiple steps. Each step may
516
- # have a `Status` message for error reporting purpose.
516
+ # have a `Status` message for error reporting.
517
517
  # - Batch operations. If a client uses batch request and batch response, the
518
518
  # `Status` message should be used directly inside batch response, one for
519
519
  # each error sub-response.
@@ -525,13 +525,6 @@ module Google
525
525
  class Status
526
526
  include Google::Apis::Core::Hashable
527
527
 
528
- # A developer-facing error message, which should be in English. Any
529
- # user-facing error message should be localized and sent in the
530
- # google.rpc.Status.details field, or localized by the client.
531
- # Corresponds to the JSON property `message`
532
- # @return [String]
533
- attr_accessor :message
534
-
535
528
  # A list of messages that carry the error details. There will be a
536
529
  # common set of message types for APIs to use.
537
530
  # Corresponds to the JSON property `details`
@@ -543,15 +536,22 @@ module Google
543
536
  # @return [Fixnum]
544
537
  attr_accessor :code
545
538
 
539
+ # A developer-facing error message, which should be in English. Any
540
+ # user-facing error message should be localized and sent in the
541
+ # google.rpc.Status.details field, or localized by the client.
542
+ # Corresponds to the JSON property `message`
543
+ # @return [String]
544
+ attr_accessor :message
545
+
546
546
  def initialize(**args)
547
547
  update!(**args)
548
548
  end
549
549
 
550
550
  # Update properties of this object
551
551
  def update!(**args)
552
- @message = args[:message] if args.key?(:message)
553
552
  @details = args[:details] if args.key?(:details)
554
553
  @code = args[:code] if args.key?(:code)
554
+ @message = args[:message] if args.key?(:message)
555
555
  end
556
556
  end
557
557
 
@@ -647,18 +647,6 @@ module Google
647
647
  class Document
648
648
  include Google::Apis::Core::Hashable
649
649
 
650
- # The language of the document (if not specified, the language is
651
- # automatically detected). Both ISO and BCP-47 language codes are
652
- # accepted.<br>
653
- # [Language Support](https://cloud.google.com/natural-language/docs/languages)
654
- # lists currently supported languages for each API method.
655
- # If the language (either specified by the caller or automatically detected)
656
- # is not supported by the called API method, an `INVALID_ARGUMENT` error
657
- # is returned.
658
- # Corresponds to the JSON property `language`
659
- # @return [String]
660
- attr_accessor :language
661
-
662
650
  # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
663
651
  # returns an `INVALID_ARGUMENT` error.
664
652
  # Corresponds to the JSON property `type`
@@ -678,16 +666,28 @@ module Google
678
666
  # @return [String]
679
667
  attr_accessor :gcs_content_uri
680
668
 
669
+ # The language of the document (if not specified, the language is
670
+ # automatically detected). Both ISO and BCP-47 language codes are
671
+ # accepted.<br>
672
+ # [Language Support](/natural-language/docs/languages)
673
+ # lists currently supported languages for each API method.
674
+ # If the language (either specified by the caller or automatically detected)
675
+ # is not supported by the called API method, an `INVALID_ARGUMENT` error
676
+ # is returned.
677
+ # Corresponds to the JSON property `language`
678
+ # @return [String]
679
+ attr_accessor :language
680
+
681
681
  def initialize(**args)
682
682
  update!(**args)
683
683
  end
684
684
 
685
685
  # Update properties of this object
686
686
  def update!(**args)
687
- @language = args[:language] if args.key?(:language)
688
687
  @type = args[:type] if args.key?(:type)
689
688
  @content = args[:content] if args.key?(:content)
690
689
  @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
690
+ @language = args[:language] if args.key?(:language)
691
691
  end
692
692
  end
693
693
 
@@ -46,13 +46,13 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class AnalyzeSyntaxResponse
49
+ class Entity
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Entity
55
+ class AnalyzeSyntaxResponse
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
@@ -157,9 +157,9 @@ module Google
157
157
  class AnalyzeSyntaxRequest
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :encoding_type, as: 'encodingType'
161
160
  property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
162
161
 
162
+ property :encoding_type, as: 'encodingType'
163
163
  end
164
164
  end
165
165
 
@@ -177,20 +177,9 @@ module Google
177
177
  class AnalyzeEntitiesResponse
178
178
  # @private
179
179
  class Representation < Google::Apis::Core::JsonRepresentation
180
- property :language, as: 'language'
181
180
  collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
182
181
 
183
- end
184
- end
185
-
186
- class AnalyzeSyntaxResponse
187
- # @private
188
- class Representation < Google::Apis::Core::JsonRepresentation
189
182
  property :language, as: 'language'
190
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
191
-
192
- collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
193
-
194
183
  end
195
184
  end
196
185
 
@@ -206,6 +195,17 @@ module Google
206
195
  end
207
196
  end
208
197
 
198
+ class AnalyzeSyntaxResponse
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :language, as: 'language'
202
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
203
+
204
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
205
+
206
+ end
207
+ end
208
+
209
209
  class AnnotateTextRequest
210
210
  # @private
211
211
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -220,15 +220,15 @@ module Google
220
220
  class AnnotateTextResponse
221
221
  # @private
222
222
  class Representation < Google::Apis::Core::JsonRepresentation
223
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
224
+
225
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
226
+
223
227
  collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
224
228
 
225
229
  property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
226
230
 
227
231
  property :language, as: 'language'
228
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
229
-
230
- collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
231
-
232
232
  end
233
233
  end
234
234
 
@@ -260,22 +260,22 @@ module Google
260
260
  class Token
261
261
  # @private
262
262
  class Representation < Google::Apis::Core::JsonRepresentation
263
- property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
264
-
265
263
  property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
266
264
 
267
265
  property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
268
266
 
269
267
  property :lemma, as: 'lemma'
268
+ property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
269
+
270
270
  end
271
271
  end
272
272
 
273
273
  class Status
274
274
  # @private
275
275
  class Representation < Google::Apis::Core::JsonRepresentation
276
- property :message, as: 'message'
277
276
  collection :details, as: 'details'
278
277
  property :code, as: 'code'
278
+ property :message, as: 'message'
279
279
  end
280
280
  end
281
281
 
@@ -310,10 +310,10 @@ module Google
310
310
  class Document
311
311
  # @private
312
312
  class Representation < Google::Apis::Core::JsonRepresentation
313
- property :language, as: 'language'
314
313
  property :type, as: 'type'
315
314
  property :content, as: 'content'
316
315
  property :gcs_content_uri, as: 'gcsContentUri'
316
+ property :language, as: 'language'
317
317
  end
318
318
  end
319
319