google-api-client 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/language_v1beta2/service.rb'
|
16
|
+
require 'google/apis/language_v1beta2/classes.rb'
|
17
|
+
require 'google/apis/language_v1beta2/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Cloud Natural Language API
|
22
|
+
#
|
23
|
+
# Provides natural language understanding technologies to developers. Examples
|
24
|
+
# include sentiment analysis, entity recognition, entity sentiment analysis, and
|
25
|
+
# text annotations.
|
26
|
+
#
|
27
|
+
# @see https://cloud.google.com/natural-language/
|
28
|
+
module LanguageV1beta2
|
29
|
+
VERSION = 'V1beta2'
|
30
|
+
REVISION = '20170809'
|
31
|
+
|
32
|
+
# Apply machine learning models to reveal the structure and meaning of text
|
33
|
+
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
34
|
+
|
35
|
+
# View and manage your data across Google Cloud Platform services
|
36
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,824 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module LanguageV1beta2
|
24
|
+
|
25
|
+
# The entity analysis request message.
|
26
|
+
class AnalyzeEntitiesRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# ################################################################ #
|
30
|
+
# Represents the input to API methods.
|
31
|
+
# Corresponds to the JSON property `document`
|
32
|
+
# @return [Google::Apis::LanguageV1beta2::Document]
|
33
|
+
attr_accessor :document
|
34
|
+
|
35
|
+
# The encoding type used by the API to calculate offsets.
|
36
|
+
# Corresponds to the JSON property `encodingType`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :encoding_type
|
39
|
+
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@document = args[:document] if args.key?(:document)
|
47
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# The entity analysis response message.
|
52
|
+
class AnalyzeEntitiesResponse
|
53
|
+
include Google::Apis::Core::Hashable
|
54
|
+
|
55
|
+
# The recognized entities in the input document.
|
56
|
+
# Corresponds to the JSON property `entities`
|
57
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Entity>]
|
58
|
+
attr_accessor :entities
|
59
|
+
|
60
|
+
# The language of the text, which will be the same as the language specified
|
61
|
+
# in the request or, if not specified, the automatically-detected language.
|
62
|
+
# See Document.language field for more details.
|
63
|
+
# Corresponds to the JSON property `language`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :language
|
66
|
+
|
67
|
+
def initialize(**args)
|
68
|
+
update!(**args)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Update properties of this object
|
72
|
+
def update!(**args)
|
73
|
+
@entities = args[:entities] if args.key?(:entities)
|
74
|
+
@language = args[:language] if args.key?(:language)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# The entity-level sentiment analysis request message.
|
79
|
+
class AnalyzeEntitySentimentRequest
|
80
|
+
include Google::Apis::Core::Hashable
|
81
|
+
|
82
|
+
# ################################################################ #
|
83
|
+
# Represents the input to API methods.
|
84
|
+
# Corresponds to the JSON property `document`
|
85
|
+
# @return [Google::Apis::LanguageV1beta2::Document]
|
86
|
+
attr_accessor :document
|
87
|
+
|
88
|
+
# The encoding type used by the API to calculate offsets.
|
89
|
+
# Corresponds to the JSON property `encodingType`
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :encoding_type
|
92
|
+
|
93
|
+
def initialize(**args)
|
94
|
+
update!(**args)
|
95
|
+
end
|
96
|
+
|
97
|
+
# Update properties of this object
|
98
|
+
def update!(**args)
|
99
|
+
@document = args[:document] if args.key?(:document)
|
100
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# The entity-level sentiment analysis response message.
|
105
|
+
class AnalyzeEntitySentimentResponse
|
106
|
+
include Google::Apis::Core::Hashable
|
107
|
+
|
108
|
+
# The recognized entities in the input document with associated sentiments.
|
109
|
+
# Corresponds to the JSON property `entities`
|
110
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Entity>]
|
111
|
+
attr_accessor :entities
|
112
|
+
|
113
|
+
# The language of the text, which will be the same as the language specified
|
114
|
+
# in the request or, if not specified, the automatically-detected language.
|
115
|
+
# See Document.language field for more details.
|
116
|
+
# Corresponds to the JSON property `language`
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :language
|
119
|
+
|
120
|
+
def initialize(**args)
|
121
|
+
update!(**args)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Update properties of this object
|
125
|
+
def update!(**args)
|
126
|
+
@entities = args[:entities] if args.key?(:entities)
|
127
|
+
@language = args[:language] if args.key?(:language)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# The sentiment analysis request message.
|
132
|
+
class AnalyzeSentimentRequest
|
133
|
+
include Google::Apis::Core::Hashable
|
134
|
+
|
135
|
+
# ################################################################ #
|
136
|
+
# Represents the input to API methods.
|
137
|
+
# Corresponds to the JSON property `document`
|
138
|
+
# @return [Google::Apis::LanguageV1beta2::Document]
|
139
|
+
attr_accessor :document
|
140
|
+
|
141
|
+
# The encoding type used by the API to calculate sentence offsets for the
|
142
|
+
# sentence sentiment.
|
143
|
+
# Corresponds to the JSON property `encodingType`
|
144
|
+
# @return [String]
|
145
|
+
attr_accessor :encoding_type
|
146
|
+
|
147
|
+
def initialize(**args)
|
148
|
+
update!(**args)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Update properties of this object
|
152
|
+
def update!(**args)
|
153
|
+
@document = args[:document] if args.key?(:document)
|
154
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# The sentiment analysis response message.
|
159
|
+
class AnalyzeSentimentResponse
|
160
|
+
include Google::Apis::Core::Hashable
|
161
|
+
|
162
|
+
# Represents the feeling associated with the entire text or entities in
|
163
|
+
# the text.
|
164
|
+
# Corresponds to the JSON property `documentSentiment`
|
165
|
+
# @return [Google::Apis::LanguageV1beta2::Sentiment]
|
166
|
+
attr_accessor :document_sentiment
|
167
|
+
|
168
|
+
# The language of the text, which will be the same as the language specified
|
169
|
+
# in the request or, if not specified, the automatically-detected language.
|
170
|
+
# See Document.language field for more details.
|
171
|
+
# Corresponds to the JSON property `language`
|
172
|
+
# @return [String]
|
173
|
+
attr_accessor :language
|
174
|
+
|
175
|
+
# The sentiment for all the sentences in the document.
|
176
|
+
# Corresponds to the JSON property `sentences`
|
177
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Sentence>]
|
178
|
+
attr_accessor :sentences
|
179
|
+
|
180
|
+
def initialize(**args)
|
181
|
+
update!(**args)
|
182
|
+
end
|
183
|
+
|
184
|
+
# Update properties of this object
|
185
|
+
def update!(**args)
|
186
|
+
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
187
|
+
@language = args[:language] if args.key?(:language)
|
188
|
+
@sentences = args[:sentences] if args.key?(:sentences)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# The syntax analysis request message.
|
193
|
+
class AnalyzeSyntaxRequest
|
194
|
+
include Google::Apis::Core::Hashable
|
195
|
+
|
196
|
+
# ################################################################ #
|
197
|
+
# Represents the input to API methods.
|
198
|
+
# Corresponds to the JSON property `document`
|
199
|
+
# @return [Google::Apis::LanguageV1beta2::Document]
|
200
|
+
attr_accessor :document
|
201
|
+
|
202
|
+
# The encoding type used by the API to calculate offsets.
|
203
|
+
# Corresponds to the JSON property `encodingType`
|
204
|
+
# @return [String]
|
205
|
+
attr_accessor :encoding_type
|
206
|
+
|
207
|
+
def initialize(**args)
|
208
|
+
update!(**args)
|
209
|
+
end
|
210
|
+
|
211
|
+
# Update properties of this object
|
212
|
+
def update!(**args)
|
213
|
+
@document = args[:document] if args.key?(:document)
|
214
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# The syntax analysis response message.
|
219
|
+
class AnalyzeSyntaxResponse
|
220
|
+
include Google::Apis::Core::Hashable
|
221
|
+
|
222
|
+
# The language of the text, which will be the same as the language specified
|
223
|
+
# in the request or, if not specified, the automatically-detected language.
|
224
|
+
# See Document.language field for more details.
|
225
|
+
# Corresponds to the JSON property `language`
|
226
|
+
# @return [String]
|
227
|
+
attr_accessor :language
|
228
|
+
|
229
|
+
# Sentences in the input document.
|
230
|
+
# Corresponds to the JSON property `sentences`
|
231
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Sentence>]
|
232
|
+
attr_accessor :sentences
|
233
|
+
|
234
|
+
# Tokens, along with their syntactic information, in the input document.
|
235
|
+
# Corresponds to the JSON property `tokens`
|
236
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Token>]
|
237
|
+
attr_accessor :tokens
|
238
|
+
|
239
|
+
def initialize(**args)
|
240
|
+
update!(**args)
|
241
|
+
end
|
242
|
+
|
243
|
+
# Update properties of this object
|
244
|
+
def update!(**args)
|
245
|
+
@language = args[:language] if args.key?(:language)
|
246
|
+
@sentences = args[:sentences] if args.key?(:sentences)
|
247
|
+
@tokens = args[:tokens] if args.key?(:tokens)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
# The request message for the text annotation API, which can perform multiple
|
252
|
+
# analysis types (sentiment, entities, and syntax) in one call.
|
253
|
+
class AnnotateTextRequest
|
254
|
+
include Google::Apis::Core::Hashable
|
255
|
+
|
256
|
+
# ################################################################ #
|
257
|
+
# Represents the input to API methods.
|
258
|
+
# Corresponds to the JSON property `document`
|
259
|
+
# @return [Google::Apis::LanguageV1beta2::Document]
|
260
|
+
attr_accessor :document
|
261
|
+
|
262
|
+
# The encoding type used by the API to calculate offsets.
|
263
|
+
# Corresponds to the JSON property `encodingType`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :encoding_type
|
266
|
+
|
267
|
+
# All available features for sentiment, syntax, and semantic analysis.
|
268
|
+
# Setting each one to true will enable that specific analysis for the input.
|
269
|
+
# Corresponds to the JSON property `features`
|
270
|
+
# @return [Google::Apis::LanguageV1beta2::Features]
|
271
|
+
attr_accessor :features
|
272
|
+
|
273
|
+
def initialize(**args)
|
274
|
+
update!(**args)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Update properties of this object
|
278
|
+
def update!(**args)
|
279
|
+
@document = args[:document] if args.key?(:document)
|
280
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
281
|
+
@features = args[:features] if args.key?(:features)
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# The text annotations response message.
|
286
|
+
class AnnotateTextResponse
|
287
|
+
include Google::Apis::Core::Hashable
|
288
|
+
|
289
|
+
# Represents the feeling associated with the entire text or entities in
|
290
|
+
# the text.
|
291
|
+
# Corresponds to the JSON property `documentSentiment`
|
292
|
+
# @return [Google::Apis::LanguageV1beta2::Sentiment]
|
293
|
+
attr_accessor :document_sentiment
|
294
|
+
|
295
|
+
# Entities, along with their semantic information, in the input document.
|
296
|
+
# Populated if the user enables
|
297
|
+
# AnnotateTextRequest.Features.extract_entities.
|
298
|
+
# Corresponds to the JSON property `entities`
|
299
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Entity>]
|
300
|
+
attr_accessor :entities
|
301
|
+
|
302
|
+
# The language of the text, which will be the same as the language specified
|
303
|
+
# in the request or, if not specified, the automatically-detected language.
|
304
|
+
# See Document.language field for more details.
|
305
|
+
# Corresponds to the JSON property `language`
|
306
|
+
# @return [String]
|
307
|
+
attr_accessor :language
|
308
|
+
|
309
|
+
# Sentences in the input document. Populated if the user enables
|
310
|
+
# AnnotateTextRequest.Features.extract_syntax.
|
311
|
+
# Corresponds to the JSON property `sentences`
|
312
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Sentence>]
|
313
|
+
attr_accessor :sentences
|
314
|
+
|
315
|
+
# Tokens, along with their syntactic information, in the input document.
|
316
|
+
# Populated if the user enables
|
317
|
+
# AnnotateTextRequest.Features.extract_syntax.
|
318
|
+
# Corresponds to the JSON property `tokens`
|
319
|
+
# @return [Array<Google::Apis::LanguageV1beta2::Token>]
|
320
|
+
attr_accessor :tokens
|
321
|
+
|
322
|
+
def initialize(**args)
|
323
|
+
update!(**args)
|
324
|
+
end
|
325
|
+
|
326
|
+
# Update properties of this object
|
327
|
+
def update!(**args)
|
328
|
+
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
329
|
+
@entities = args[:entities] if args.key?(:entities)
|
330
|
+
@language = args[:language] if args.key?(:language)
|
331
|
+
@sentences = args[:sentences] if args.key?(:sentences)
|
332
|
+
@tokens = args[:tokens] if args.key?(:tokens)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
# Represents dependency parse tree information for a token.
|
337
|
+
class DependencyEdge
|
338
|
+
include Google::Apis::Core::Hashable
|
339
|
+
|
340
|
+
# Represents the head of this token in the dependency tree.
|
341
|
+
# This is the index of the token which has an arc going to this token.
|
342
|
+
# The index is the position of the token in the array of tokens returned
|
343
|
+
# by the API method. If this token is a root token, then the
|
344
|
+
# `head_token_index` is its own index.
|
345
|
+
# Corresponds to the JSON property `headTokenIndex`
|
346
|
+
# @return [Fixnum]
|
347
|
+
attr_accessor :head_token_index
|
348
|
+
|
349
|
+
# The parse label for the token.
|
350
|
+
# Corresponds to the JSON property `label`
|
351
|
+
# @return [String]
|
352
|
+
attr_accessor :label
|
353
|
+
|
354
|
+
def initialize(**args)
|
355
|
+
update!(**args)
|
356
|
+
end
|
357
|
+
|
358
|
+
# Update properties of this object
|
359
|
+
def update!(**args)
|
360
|
+
@head_token_index = args[:head_token_index] if args.key?(:head_token_index)
|
361
|
+
@label = args[:label] if args.key?(:label)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# ################################################################ #
|
366
|
+
# Represents the input to API methods.
|
367
|
+
class Document
|
368
|
+
include Google::Apis::Core::Hashable
|
369
|
+
|
370
|
+
# The content of the input in string format.
|
371
|
+
# Corresponds to the JSON property `content`
|
372
|
+
# @return [String]
|
373
|
+
attr_accessor :content
|
374
|
+
|
375
|
+
# The Google Cloud Storage URI where the file content is located.
|
376
|
+
# This URI must be of the form: gs://bucket_name/object_name. For more
|
377
|
+
# details, see https://cloud.google.com/storage/docs/reference-uris.
|
378
|
+
# NOTE: Cloud Storage object versioning is not supported.
|
379
|
+
# Corresponds to the JSON property `gcsContentUri`
|
380
|
+
# @return [String]
|
381
|
+
attr_accessor :gcs_content_uri
|
382
|
+
|
383
|
+
# The language of the document (if not specified, the language is
|
384
|
+
# automatically detected). Both ISO and BCP-47 language codes are
|
385
|
+
# accepted.<br>
|
386
|
+
# [Language Support](/natural-language/docs/languages)
|
387
|
+
# lists currently supported languages for each API method.
|
388
|
+
# If the language (either specified by the caller or automatically detected)
|
389
|
+
# is not supported by the called API method, an `INVALID_ARGUMENT` error
|
390
|
+
# is returned.
|
391
|
+
# Corresponds to the JSON property `language`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :language
|
394
|
+
|
395
|
+
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
|
396
|
+
# returns an `INVALID_ARGUMENT` error.
|
397
|
+
# Corresponds to the JSON property `type`
|
398
|
+
# @return [String]
|
399
|
+
attr_accessor :type
|
400
|
+
|
401
|
+
def initialize(**args)
|
402
|
+
update!(**args)
|
403
|
+
end
|
404
|
+
|
405
|
+
# Update properties of this object
|
406
|
+
def update!(**args)
|
407
|
+
@content = args[:content] if args.key?(:content)
|
408
|
+
@gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
|
409
|
+
@language = args[:language] if args.key?(:language)
|
410
|
+
@type = args[:type] if args.key?(:type)
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
414
|
+
# Represents a phrase in the text that is a known entity, such as
|
415
|
+
# a person, an organization, or location. The API associates information, such
|
416
|
+
# as salience and mentions, with entities.
|
417
|
+
class Entity
|
418
|
+
include Google::Apis::Core::Hashable
|
419
|
+
|
420
|
+
# The mentions of this entity in the input document. The API currently
|
421
|
+
# supports proper noun mentions.
|
422
|
+
# Corresponds to the JSON property `mentions`
|
423
|
+
# @return [Array<Google::Apis::LanguageV1beta2::EntityMention>]
|
424
|
+
attr_accessor :mentions
|
425
|
+
|
426
|
+
# Metadata associated with the entity.
|
427
|
+
# Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
|
428
|
+
# available. The associated keys are "wikipedia_url" and "mid", respectively.
|
429
|
+
# Corresponds to the JSON property `metadata`
|
430
|
+
# @return [Hash<String,String>]
|
431
|
+
attr_accessor :metadata
|
432
|
+
|
433
|
+
# The representative name for the entity.
|
434
|
+
# Corresponds to the JSON property `name`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :name
|
437
|
+
|
438
|
+
# The salience score associated with the entity in the [0, 1.0] range.
|
439
|
+
# The salience score for an entity provides information about the
|
440
|
+
# importance or centrality of that entity to the entire document text.
|
441
|
+
# Scores closer to 0 are less salient, while scores closer to 1.0 are highly
|
442
|
+
# salient.
|
443
|
+
# Corresponds to the JSON property `salience`
|
444
|
+
# @return [Float]
|
445
|
+
attr_accessor :salience
|
446
|
+
|
447
|
+
# Represents the feeling associated with the entire text or entities in
|
448
|
+
# the text.
|
449
|
+
# Corresponds to the JSON property `sentiment`
|
450
|
+
# @return [Google::Apis::LanguageV1beta2::Sentiment]
|
451
|
+
attr_accessor :sentiment
|
452
|
+
|
453
|
+
# The entity type.
|
454
|
+
# Corresponds to the JSON property `type`
|
455
|
+
# @return [String]
|
456
|
+
attr_accessor :type
|
457
|
+
|
458
|
+
def initialize(**args)
|
459
|
+
update!(**args)
|
460
|
+
end
|
461
|
+
|
462
|
+
# Update properties of this object
|
463
|
+
def update!(**args)
|
464
|
+
@mentions = args[:mentions] if args.key?(:mentions)
|
465
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
466
|
+
@name = args[:name] if args.key?(:name)
|
467
|
+
@salience = args[:salience] if args.key?(:salience)
|
468
|
+
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
469
|
+
@type = args[:type] if args.key?(:type)
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
473
|
+
# Represents a mention for an entity in the text. Currently, proper noun
|
474
|
+
# mentions are supported.
|
475
|
+
class EntityMention
|
476
|
+
include Google::Apis::Core::Hashable
|
477
|
+
|
478
|
+
# Represents the feeling associated with the entire text or entities in
|
479
|
+
# the text.
|
480
|
+
# Corresponds to the JSON property `sentiment`
|
481
|
+
# @return [Google::Apis::LanguageV1beta2::Sentiment]
|
482
|
+
attr_accessor :sentiment
|
483
|
+
|
484
|
+
# Represents an output piece of text.
|
485
|
+
# Corresponds to the JSON property `text`
|
486
|
+
# @return [Google::Apis::LanguageV1beta2::TextSpan]
|
487
|
+
attr_accessor :text
|
488
|
+
|
489
|
+
# The type of the entity mention.
|
490
|
+
# Corresponds to the JSON property `type`
|
491
|
+
# @return [String]
|
492
|
+
attr_accessor :type
|
493
|
+
|
494
|
+
def initialize(**args)
|
495
|
+
update!(**args)
|
496
|
+
end
|
497
|
+
|
498
|
+
# Update properties of this object
|
499
|
+
def update!(**args)
|
500
|
+
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
501
|
+
@text = args[:text] if args.key?(:text)
|
502
|
+
@type = args[:type] if args.key?(:type)
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
# All available features for sentiment, syntax, and semantic analysis.
|
507
|
+
# Setting each one to true will enable that specific analysis for the input.
|
508
|
+
class Features
|
509
|
+
include Google::Apis::Core::Hashable
|
510
|
+
|
511
|
+
# Extract document-level sentiment.
|
512
|
+
# Corresponds to the JSON property `extractDocumentSentiment`
|
513
|
+
# @return [Boolean]
|
514
|
+
attr_accessor :extract_document_sentiment
|
515
|
+
alias_method :extract_document_sentiment?, :extract_document_sentiment
|
516
|
+
|
517
|
+
# Extract entities.
|
518
|
+
# Corresponds to the JSON property `extractEntities`
|
519
|
+
# @return [Boolean]
|
520
|
+
attr_accessor :extract_entities
|
521
|
+
alias_method :extract_entities?, :extract_entities
|
522
|
+
|
523
|
+
# Extract entities and their associated sentiment.
|
524
|
+
# Corresponds to the JSON property `extractEntitySentiment`
|
525
|
+
# @return [Boolean]
|
526
|
+
attr_accessor :extract_entity_sentiment
|
527
|
+
alias_method :extract_entity_sentiment?, :extract_entity_sentiment
|
528
|
+
|
529
|
+
# Extract syntax information.
|
530
|
+
# Corresponds to the JSON property `extractSyntax`
|
531
|
+
# @return [Boolean]
|
532
|
+
attr_accessor :extract_syntax
|
533
|
+
alias_method :extract_syntax?, :extract_syntax
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
542
|
+
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
543
|
+
@extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment)
|
544
|
+
@extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
# Represents part of speech information for a token.
|
549
|
+
class PartOfSpeech
|
550
|
+
include Google::Apis::Core::Hashable
|
551
|
+
|
552
|
+
# The grammatical aspect.
|
553
|
+
# Corresponds to the JSON property `aspect`
|
554
|
+
# @return [String]
|
555
|
+
attr_accessor :aspect
|
556
|
+
|
557
|
+
# The grammatical case.
|
558
|
+
# Corresponds to the JSON property `case`
|
559
|
+
# @return [String]
|
560
|
+
attr_accessor :case
|
561
|
+
|
562
|
+
# The grammatical form.
|
563
|
+
# Corresponds to the JSON property `form`
|
564
|
+
# @return [String]
|
565
|
+
attr_accessor :form
|
566
|
+
|
567
|
+
# The grammatical gender.
|
568
|
+
# Corresponds to the JSON property `gender`
|
569
|
+
# @return [String]
|
570
|
+
attr_accessor :gender
|
571
|
+
|
572
|
+
# The grammatical mood.
|
573
|
+
# Corresponds to the JSON property `mood`
|
574
|
+
# @return [String]
|
575
|
+
attr_accessor :mood
|
576
|
+
|
577
|
+
# The grammatical number.
|
578
|
+
# Corresponds to the JSON property `number`
|
579
|
+
# @return [String]
|
580
|
+
attr_accessor :number
|
581
|
+
|
582
|
+
# The grammatical person.
|
583
|
+
# Corresponds to the JSON property `person`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :person
|
586
|
+
|
587
|
+
# The grammatical properness.
|
588
|
+
# Corresponds to the JSON property `proper`
|
589
|
+
# @return [String]
|
590
|
+
attr_accessor :proper
|
591
|
+
|
592
|
+
# The grammatical reciprocity.
|
593
|
+
# Corresponds to the JSON property `reciprocity`
|
594
|
+
# @return [String]
|
595
|
+
attr_accessor :reciprocity
|
596
|
+
|
597
|
+
# The part of speech tag.
|
598
|
+
# Corresponds to the JSON property `tag`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :tag
|
601
|
+
|
602
|
+
# The grammatical tense.
|
603
|
+
# Corresponds to the JSON property `tense`
|
604
|
+
# @return [String]
|
605
|
+
attr_accessor :tense
|
606
|
+
|
607
|
+
# The grammatical voice.
|
608
|
+
# Corresponds to the JSON property `voice`
|
609
|
+
# @return [String]
|
610
|
+
attr_accessor :voice
|
611
|
+
|
612
|
+
def initialize(**args)
|
613
|
+
update!(**args)
|
614
|
+
end
|
615
|
+
|
616
|
+
# Update properties of this object
|
617
|
+
def update!(**args)
|
618
|
+
@aspect = args[:aspect] if args.key?(:aspect)
|
619
|
+
@case = args[:case] if args.key?(:case)
|
620
|
+
@form = args[:form] if args.key?(:form)
|
621
|
+
@gender = args[:gender] if args.key?(:gender)
|
622
|
+
@mood = args[:mood] if args.key?(:mood)
|
623
|
+
@number = args[:number] if args.key?(:number)
|
624
|
+
@person = args[:person] if args.key?(:person)
|
625
|
+
@proper = args[:proper] if args.key?(:proper)
|
626
|
+
@reciprocity = args[:reciprocity] if args.key?(:reciprocity)
|
627
|
+
@tag = args[:tag] if args.key?(:tag)
|
628
|
+
@tense = args[:tense] if args.key?(:tense)
|
629
|
+
@voice = args[:voice] if args.key?(:voice)
|
630
|
+
end
|
631
|
+
end
|
632
|
+
|
633
|
+
# Represents a sentence in the input document.
|
634
|
+
class Sentence
|
635
|
+
include Google::Apis::Core::Hashable
|
636
|
+
|
637
|
+
# Represents the feeling associated with the entire text or entities in
|
638
|
+
# the text.
|
639
|
+
# Corresponds to the JSON property `sentiment`
|
640
|
+
# @return [Google::Apis::LanguageV1beta2::Sentiment]
|
641
|
+
attr_accessor :sentiment
|
642
|
+
|
643
|
+
# Represents an output piece of text.
|
644
|
+
# Corresponds to the JSON property `text`
|
645
|
+
# @return [Google::Apis::LanguageV1beta2::TextSpan]
|
646
|
+
attr_accessor :text
|
647
|
+
|
648
|
+
def initialize(**args)
|
649
|
+
update!(**args)
|
650
|
+
end
|
651
|
+
|
652
|
+
# Update properties of this object
|
653
|
+
def update!(**args)
|
654
|
+
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
655
|
+
@text = args[:text] if args.key?(:text)
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
659
|
+
# Represents the feeling associated with the entire text or entities in
|
660
|
+
# the text.
|
661
|
+
class Sentiment
|
662
|
+
include Google::Apis::Core::Hashable
|
663
|
+
|
664
|
+
# A non-negative number in the [0, +inf) range, which represents
|
665
|
+
# the absolute magnitude of sentiment regardless of score (positive or
|
666
|
+
# negative).
|
667
|
+
# Corresponds to the JSON property `magnitude`
|
668
|
+
# @return [Float]
|
669
|
+
attr_accessor :magnitude
|
670
|
+
|
671
|
+
# Sentiment score between -1.0 (negative sentiment) and 1.0
|
672
|
+
# (positive sentiment).
|
673
|
+
# Corresponds to the JSON property `score`
|
674
|
+
# @return [Float]
|
675
|
+
attr_accessor :score
|
676
|
+
|
677
|
+
def initialize(**args)
|
678
|
+
update!(**args)
|
679
|
+
end
|
680
|
+
|
681
|
+
# Update properties of this object
|
682
|
+
def update!(**args)
|
683
|
+
@magnitude = args[:magnitude] if args.key?(:magnitude)
|
684
|
+
@score = args[:score] if args.key?(:score)
|
685
|
+
end
|
686
|
+
end
|
687
|
+
|
688
|
+
# The `Status` type defines a logical error model that is suitable for different
|
689
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
690
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
691
|
+
# - Simple to use and understand for most users
|
692
|
+
# - Flexible enough to meet unexpected needs
|
693
|
+
# # Overview
|
694
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
695
|
+
# and error details. The error code should be an enum value of
|
696
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
697
|
+
# error message should be a developer-facing English message that helps
|
698
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
699
|
+
# error message is needed, put the localized message in the error details or
|
700
|
+
# localize it in the client. The optional error details may contain arbitrary
|
701
|
+
# information about the error. There is a predefined set of error detail types
|
702
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
703
|
+
# # Language mapping
|
704
|
+
# The `Status` message is the logical representation of the error model, but it
|
705
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
706
|
+
# exposed in different client libraries and different wire protocols, it can be
|
707
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
708
|
+
# in Java, but more likely mapped to some error codes in C.
|
709
|
+
# # Other uses
|
710
|
+
# The error model and the `Status` message can be used in a variety of
|
711
|
+
# environments, either with or without APIs, to provide a
|
712
|
+
# consistent developer experience across different environments.
|
713
|
+
# Example uses of this error model include:
|
714
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
715
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
716
|
+
# errors.
|
717
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
718
|
+
# have a `Status` message for error reporting.
|
719
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
720
|
+
# `Status` message should be used directly inside batch response, one for
|
721
|
+
# each error sub-response.
|
722
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
723
|
+
# results in its response, the status of those operations should be
|
724
|
+
# represented directly using the `Status` message.
|
725
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
726
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
727
|
+
class Status
|
728
|
+
include Google::Apis::Core::Hashable
|
729
|
+
|
730
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
731
|
+
# Corresponds to the JSON property `code`
|
732
|
+
# @return [Fixnum]
|
733
|
+
attr_accessor :code
|
734
|
+
|
735
|
+
# A list of messages that carry the error details. There is a common set of
|
736
|
+
# message types for APIs to use.
|
737
|
+
# Corresponds to the JSON property `details`
|
738
|
+
# @return [Array<Hash<String,Object>>]
|
739
|
+
attr_accessor :details
|
740
|
+
|
741
|
+
# A developer-facing error message, which should be in English. Any
|
742
|
+
# user-facing error message should be localized and sent in the
|
743
|
+
# google.rpc.Status.details field, or localized by the client.
|
744
|
+
# Corresponds to the JSON property `message`
|
745
|
+
# @return [String]
|
746
|
+
attr_accessor :message
|
747
|
+
|
748
|
+
def initialize(**args)
|
749
|
+
update!(**args)
|
750
|
+
end
|
751
|
+
|
752
|
+
# Update properties of this object
|
753
|
+
def update!(**args)
|
754
|
+
@code = args[:code] if args.key?(:code)
|
755
|
+
@details = args[:details] if args.key?(:details)
|
756
|
+
@message = args[:message] if args.key?(:message)
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
760
|
+
# Represents an output piece of text.
|
761
|
+
class TextSpan
|
762
|
+
include Google::Apis::Core::Hashable
|
763
|
+
|
764
|
+
# The API calculates the beginning offset of the content in the original
|
765
|
+
# document according to the EncodingType specified in the API request.
|
766
|
+
# Corresponds to the JSON property `beginOffset`
|
767
|
+
# @return [Fixnum]
|
768
|
+
attr_accessor :begin_offset
|
769
|
+
|
770
|
+
# The content of the output text.
|
771
|
+
# Corresponds to the JSON property `content`
|
772
|
+
# @return [String]
|
773
|
+
attr_accessor :content
|
774
|
+
|
775
|
+
def initialize(**args)
|
776
|
+
update!(**args)
|
777
|
+
end
|
778
|
+
|
779
|
+
# Update properties of this object
|
780
|
+
def update!(**args)
|
781
|
+
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
782
|
+
@content = args[:content] if args.key?(:content)
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
786
|
+
# Represents the smallest syntactic building block of the text.
|
787
|
+
class Token
|
788
|
+
include Google::Apis::Core::Hashable
|
789
|
+
|
790
|
+
# Represents dependency parse tree information for a token.
|
791
|
+
# Corresponds to the JSON property `dependencyEdge`
|
792
|
+
# @return [Google::Apis::LanguageV1beta2::DependencyEdge]
|
793
|
+
attr_accessor :dependency_edge
|
794
|
+
|
795
|
+
# [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
796
|
+
# Corresponds to the JSON property `lemma`
|
797
|
+
# @return [String]
|
798
|
+
attr_accessor :lemma
|
799
|
+
|
800
|
+
# Represents part of speech information for a token.
|
801
|
+
# Corresponds to the JSON property `partOfSpeech`
|
802
|
+
# @return [Google::Apis::LanguageV1beta2::PartOfSpeech]
|
803
|
+
attr_accessor :part_of_speech
|
804
|
+
|
805
|
+
# Represents an output piece of text.
|
806
|
+
# Corresponds to the JSON property `text`
|
807
|
+
# @return [Google::Apis::LanguageV1beta2::TextSpan]
|
808
|
+
attr_accessor :text
|
809
|
+
|
810
|
+
def initialize(**args)
|
811
|
+
update!(**args)
|
812
|
+
end
|
813
|
+
|
814
|
+
# Update properties of this object
|
815
|
+
def update!(**args)
|
816
|
+
@dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
|
817
|
+
@lemma = args[:lemma] if args.key?(:lemma)
|
818
|
+
@part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
|
819
|
+
@text = args[:text] if args.key?(:text)
|
820
|
+
end
|
821
|
+
end
|
822
|
+
end
|
823
|
+
end
|
824
|
+
end
|