google-api-client 0.11.3 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/api_names.yaml +32317 -34465
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
- data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
- data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +825 -817
- data/generated/google/apis/appengine_v1/representations.rb +185 -184
- data/generated/google/apis/appengine_v1/service.rb +220 -216
- 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 +9 -7
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
- data/generated/google/apis/civicinfo_v2/service.rb +8 -8
- data/generated/google/apis/classroom_v1.rb +24 -24
- data/generated/google/apis/classroom_v1/classes.rb +381 -381
- data/generated/google/apis/classroom_v1/representations.rb +108 -108
- data/generated/google/apis/classroom_v1/service.rb +503 -503
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
- data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
- data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
- data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
- data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +3 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
- data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
- data/generated/google/apis/cloudkms_v1/service.rb +224 -224
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +57 -15
- data/generated/google/apis/compute_beta/representations.rb +30 -14
- data/generated/google/apis/compute_beta/service.rb +52 -52
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +223 -10
- data/generated/google/apis/compute_v1/representations.rb +85 -16
- data/generated/google/apis/compute_v1/service.rb +327 -51
- data/generated/google/apis/container_v1/classes.rb +267 -267
- data/generated/google/apis/container_v1/representations.rb +61 -61
- data/generated/google/apis/container_v1/service.rb +123 -123
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +71 -71
- data/generated/google/apis/content_v2/representations.rb +105 -105
- data/generated/google/apis/content_v2/service.rb +120 -120
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
- data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
- data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
- data/generated/google/apis/dataproc_v1/representations.rb +147 -147
- data/generated/google/apis/dataproc_v1/service.rb +309 -305
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +818 -818
- data/generated/google/apis/datastore_v1/representations.rb +151 -151
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
- data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
- data/generated/google/apis/firebaserules_v1/service.rb +89 -89
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
- data/generated/google/apis/genomics_v1/representations.rb +298 -298
- data/generated/google/apis/genomics_v1/service.rb +1160 -1160
- data/generated/google/apis/groupssettings_v1/service.rb +0 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +235 -235
- data/generated/google/apis/iam_v1/representations.rb +72 -72
- data/generated/google/apis/iam_v1/service.rb +189 -189
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1/classes.rb +220 -220
- data/generated/google/apis/language_v1/representations.rb +81 -81
- data/generated/google/apis/language_v1/service.rb +43 -43
- data/generated/google/apis/language_v1beta1/classes.rb +448 -448
- data/generated/google/apis/language_v1beta1/representations.rb +106 -106
- data/generated/google/apis/language_v1beta1/service.rb +31 -31
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +737 -737
- data/generated/google/apis/logging_v2/representations.rb +120 -120
- data/generated/google/apis/logging_v2/service.rb +479 -479
- data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
- data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
- data/generated/google/apis/logging_v2beta1/service.rb +349 -349
- data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
- data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1285 -1205
- data/generated/google/apis/ml_v1/representations.rb +204 -174
- data/generated/google/apis/ml_v1/service.rb +150 -145
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +880 -880
- data/generated/google/apis/monitoring_v3/representations.rb +154 -154
- data/generated/google/apis/monitoring_v3/service.rb +299 -299
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +524 -509
- data/generated/google/apis/partners_v2/representations.rb +115 -111
- data/generated/google/apis/partners_v2/service.rb +287 -287
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +1150 -1150
- data/generated/google/apis/people_v1/representations.rb +258 -258
- data/generated/google/apis/people_v1/service.rb +7 -7
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
- data/generated/google/apis/pubsub_v1/classes.rb +228 -228
- data/generated/google/apis/pubsub_v1/representations.rb +69 -69
- data/generated/google/apis/pubsub_v1/service.rb +182 -182
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
- data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +94 -94
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
- data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
- data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
- data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
- data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
- data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
- data/generated/google/apis/sheets_v4/representations.rb +324 -324
- data/generated/google/apis/sheets_v4/service.rb +49 -49
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2907 -2907
- data/generated/google/apis/slides_v1/representations.rb +695 -695
- data/generated/google/apis/slides_v1/service.rb +40 -40
- data/generated/google/apis/sourcerepo_v1.rb +7 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
- data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
- data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
- data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
- data/generated/google/apis/spanner_v1/representations.rb +205 -205
- data/generated/google/apis/spanner_v1/service.rb +525 -525
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
- data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
- data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
- data/generated/google/apis/storage_v1/classes.rb +6 -6
- data/generated/google/apis/storage_v1/representations.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
- data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
- data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +46 -46
- data/generated/google/apis/translate_v2/representations.rb +22 -22
- data/generated/google/apis/translate_v2/service.rb +81 -74
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +166 -166
- data/generated/google/apis/vision_v1/service.rb +6 -6
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/core/base_service.rb +6 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -94
- data/dl.rb +0 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
- data/generated/google/apis/appengine_v1beta4.rb +0 -35
- data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
- data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
- data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
- data/generated/google/apis/appengine_v1beta5.rb +0 -40
- data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
- data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
- data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
- data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
- data/generated/google/apis/classroom_v1beta1.rb +0 -49
- data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
- data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
- data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
- data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
- data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
- data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
- data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
- data/generated/google/apis/container_v1beta1.rb +0 -35
- data/generated/google/apis/container_v1beta1/classes.rb +0 -466
- data/generated/google/apis/container_v1beta1/representations.rb +0 -177
- data/generated/google/apis/container_v1beta1/service.rb +0 -394
- data/generated/google/apis/coordinate_v1.rb +0 -37
- data/generated/google/apis/coordinate_v1/classes.rb +0 -669
- data/generated/google/apis/coordinate_v1/representations.rb +0 -321
- data/generated/google/apis/coordinate_v1/service.rb +0 -678
- data/generated/google/apis/datastore_v1beta2.rb +0 -40
- data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
- data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
- data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
- data/generated/google/apis/datastore_v1beta3.rb +0 -38
- data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
- data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
- data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
- data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
- data/generated/google/apis/dfareporting_v2_1.rb +0 -37
- data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
- data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
- data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
- data/generated/google/apis/dfareporting_v2_3.rb +0 -37
- data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
- data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
- data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
- data/generated/google/apis/dfareporting_v2_5.rb +0 -40
- data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
- data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
- data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
- data/generated/google/apis/dfareporting_v2_6.rb +0 -40
- data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
- data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
- data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
- data/generated/google/apis/gan_v1beta1.rb +0 -31
- data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
- data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
- data/generated/google/apis/gan_v1beta1/service.rb +0 -682
- data/generated/google/apis/genomics_v1beta2.rb +0 -46
- data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
- data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
- data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
- data/generated/google/apis/logging_v1beta3.rb +0 -47
- data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
- data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
- data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
- data/generated/google/apis/manager_v1beta2.rb +0 -53
- data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
- data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
- data/generated/google/apis/manager_v1beta2/service.rb +0 -372
- data/generated/google/apis/pubsub_v1beta2.rb +0 -37
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
- data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
- data/generated/google/apis/tracing_v1.rb +0 -40
- data/generated/google/apis/tracing_v1/classes.rb +0 -664
- data/generated/google/apis/tracing_v1/representations.rb +0 -279
- data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -22,69 +22,20 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LanguageV1beta1
|
24
24
|
|
25
|
-
# Represents
|
26
|
-
class
|
25
|
+
# Represents an output piece of text.
|
26
|
+
class TextSpan
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# The
|
30
|
-
# Corresponds to the JSON property `
|
31
|
-
# @return [String]
|
32
|
-
attr_accessor :person
|
33
|
-
|
34
|
-
# The grammatical properness.
|
35
|
-
# Corresponds to the JSON property `proper`
|
36
|
-
# @return [String]
|
37
|
-
attr_accessor :proper
|
38
|
-
|
39
|
-
# The grammatical case.
|
40
|
-
# Corresponds to the JSON property `case`
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :case
|
43
|
-
|
44
|
-
# The grammatical tense.
|
45
|
-
# Corresponds to the JSON property `tense`
|
46
|
-
# @return [String]
|
47
|
-
attr_accessor :tense
|
48
|
-
|
49
|
-
# The grammatical reciprocity.
|
50
|
-
# Corresponds to the JSON property `reciprocity`
|
51
|
-
# @return [String]
|
52
|
-
attr_accessor :reciprocity
|
53
|
-
|
54
|
-
# The grammatical form.
|
55
|
-
# Corresponds to the JSON property `form`
|
56
|
-
# @return [String]
|
57
|
-
attr_accessor :form
|
58
|
-
|
59
|
-
# The grammatical number.
|
60
|
-
# Corresponds to the JSON property `number`
|
61
|
-
# @return [String]
|
62
|
-
attr_accessor :number
|
63
|
-
|
64
|
-
# The grammatical voice.
|
65
|
-
# Corresponds to the JSON property `voice`
|
66
|
-
# @return [String]
|
67
|
-
attr_accessor :voice
|
68
|
-
|
69
|
-
# The grammatical aspect.
|
70
|
-
# Corresponds to the JSON property `aspect`
|
71
|
-
# @return [String]
|
72
|
-
attr_accessor :aspect
|
73
|
-
|
74
|
-
# The grammatical mood.
|
75
|
-
# Corresponds to the JSON property `mood`
|
76
|
-
# @return [String]
|
77
|
-
attr_accessor :mood
|
78
|
-
|
79
|
-
# The part of speech tag.
|
80
|
-
# Corresponds to the JSON property `tag`
|
29
|
+
# The content of the output text.
|
30
|
+
# Corresponds to the JSON property `content`
|
81
31
|
# @return [String]
|
82
|
-
attr_accessor :
|
32
|
+
attr_accessor :content
|
83
33
|
|
84
|
-
# The
|
85
|
-
#
|
86
|
-
#
|
87
|
-
|
34
|
+
# The API calculates the beginning offset of the content in the original
|
35
|
+
# document according to the EncodingType specified in the API request.
|
36
|
+
# Corresponds to the JSON property `beginOffset`
|
37
|
+
# @return [Fixnum]
|
38
|
+
attr_accessor :begin_offset
|
88
39
|
|
89
40
|
def initialize(**args)
|
90
41
|
update!(**args)
|
@@ -92,35 +43,34 @@ module Google
|
|
92
43
|
|
93
44
|
# Update properties of this object
|
94
45
|
def update!(**args)
|
95
|
-
@
|
96
|
-
@
|
97
|
-
@case = args[:case] if args.key?(:case)
|
98
|
-
@tense = args[:tense] if args.key?(:tense)
|
99
|
-
@reciprocity = args[:reciprocity] if args.key?(:reciprocity)
|
100
|
-
@form = args[:form] if args.key?(:form)
|
101
|
-
@number = args[:number] if args.key?(:number)
|
102
|
-
@voice = args[:voice] if args.key?(:voice)
|
103
|
-
@aspect = args[:aspect] if args.key?(:aspect)
|
104
|
-
@mood = args[:mood] if args.key?(:mood)
|
105
|
-
@tag = args[:tag] if args.key?(:tag)
|
106
|
-
@gender = args[:gender] if args.key?(:gender)
|
46
|
+
@content = args[:content] if args.key?(:content)
|
47
|
+
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
107
48
|
end
|
108
49
|
end
|
109
50
|
|
110
|
-
#
|
111
|
-
class
|
51
|
+
# Represents the smallest syntactic building block of the text.
|
52
|
+
class Token
|
112
53
|
include Google::Apis::Core::Hashable
|
113
54
|
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
|
118
|
-
attr_accessor :document
|
55
|
+
# Represents part of speech information for a token.
|
56
|
+
# Corresponds to the JSON property `partOfSpeech`
|
57
|
+
# @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
|
58
|
+
attr_accessor :part_of_speech
|
119
59
|
|
120
|
-
#
|
121
|
-
# Corresponds to the JSON property `
|
60
|
+
# Represents an output piece of text.
|
61
|
+
# Corresponds to the JSON property `text`
|
62
|
+
# @return [Google::Apis::LanguageV1beta1::TextSpan]
|
63
|
+
attr_accessor :text
|
64
|
+
|
65
|
+
# Represents dependency parse tree information for a token.
|
66
|
+
# Corresponds to the JSON property `dependencyEdge`
|
67
|
+
# @return [Google::Apis::LanguageV1beta1::DependencyEdge]
|
68
|
+
attr_accessor :dependency_edge
|
69
|
+
|
70
|
+
# [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
71
|
+
# Corresponds to the JSON property `lemma`
|
122
72
|
# @return [String]
|
123
|
-
attr_accessor :
|
73
|
+
attr_accessor :lemma
|
124
74
|
|
125
75
|
def initialize(**args)
|
126
76
|
update!(**args)
|
@@ -128,32 +78,72 @@ module Google
|
|
128
78
|
|
129
79
|
# Update properties of this object
|
130
80
|
def update!(**args)
|
131
|
-
@
|
132
|
-
@
|
81
|
+
@part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
|
82
|
+
@text = args[:text] if args.key?(:text)
|
83
|
+
@dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
|
84
|
+
@lemma = args[:lemma] if args.key?(:lemma)
|
133
85
|
end
|
134
86
|
end
|
135
87
|
|
136
|
-
# The
|
137
|
-
|
88
|
+
# The `Status` type defines a logical error model that is suitable for different
|
89
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
90
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
91
|
+
# - Simple to use and understand for most users
|
92
|
+
# - Flexible enough to meet unexpected needs
|
93
|
+
# # Overview
|
94
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
95
|
+
# and error details. The error code should be an enum value of
|
96
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
97
|
+
# error message should be a developer-facing English message that helps
|
98
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
99
|
+
# error message is needed, put the localized message in the error details or
|
100
|
+
# localize it in the client. The optional error details may contain arbitrary
|
101
|
+
# information about the error. There is a predefined set of error detail types
|
102
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
103
|
+
# # Language mapping
|
104
|
+
# The `Status` message is the logical representation of the error model, but it
|
105
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
106
|
+
# exposed in different client libraries and different wire protocols, it can be
|
107
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
108
|
+
# in Java, but more likely mapped to some error codes in C.
|
109
|
+
# # Other uses
|
110
|
+
# The error model and the `Status` message can be used in a variety of
|
111
|
+
# environments, either with or without APIs, to provide a
|
112
|
+
# consistent developer experience across different environments.
|
113
|
+
# Example uses of this error model include:
|
114
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
115
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
116
|
+
# errors.
|
117
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
118
|
+
# have a `Status` message for error reporting.
|
119
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
120
|
+
# `Status` message should be used directly inside batch response, one for
|
121
|
+
# each error sub-response.
|
122
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
123
|
+
# results in its response, the status of those operations should be
|
124
|
+
# represented directly using the `Status` message.
|
125
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
126
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
127
|
+
class Status
|
138
128
|
include Google::Apis::Core::Hashable
|
139
129
|
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
|
145
|
-
attr_accessor :language
|
130
|
+
# A list of messages that carry the error details. There will be a
|
131
|
+
# common set of message types for APIs to use.
|
132
|
+
# Corresponds to the JSON property `details`
|
133
|
+
# @return [Array<Hash<String,Object>>]
|
134
|
+
attr_accessor :details
|
146
135
|
|
147
|
-
# The
|
148
|
-
# Corresponds to the JSON property `
|
149
|
-
# @return [
|
150
|
-
attr_accessor :
|
136
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
137
|
+
# Corresponds to the JSON property `code`
|
138
|
+
# @return [Fixnum]
|
139
|
+
attr_accessor :code
|
151
140
|
|
152
|
-
#
|
153
|
-
# the
|
154
|
-
#
|
155
|
-
#
|
156
|
-
|
141
|
+
# A developer-facing error message, which should be in English. Any
|
142
|
+
# user-facing error message should be localized and sent in the
|
143
|
+
# google.rpc.Status.details field, or localized by the client.
|
144
|
+
# Corresponds to the JSON property `message`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :message
|
157
147
|
|
158
148
|
def initialize(**args)
|
159
149
|
update!(**args)
|
@@ -161,27 +151,26 @@ module Google
|
|
161
151
|
|
162
152
|
# Update properties of this object
|
163
153
|
def update!(**args)
|
164
|
-
@
|
165
|
-
@
|
166
|
-
@
|
154
|
+
@details = args[:details] if args.key?(:details)
|
155
|
+
@code = args[:code] if args.key?(:code)
|
156
|
+
@message = args[:message] if args.key?(:message)
|
167
157
|
end
|
168
158
|
end
|
169
159
|
|
170
|
-
#
|
171
|
-
|
160
|
+
# Represents a mention for an entity in the text. Currently, proper noun
|
161
|
+
# mentions are supported.
|
162
|
+
class EntityMention
|
172
163
|
include Google::Apis::Core::Hashable
|
173
164
|
|
174
|
-
#
|
175
|
-
# Corresponds to the JSON property `
|
176
|
-
# @return [
|
177
|
-
attr_accessor :
|
165
|
+
# Represents an output piece of text.
|
166
|
+
# Corresponds to the JSON property `text`
|
167
|
+
# @return [Google::Apis::LanguageV1beta1::TextSpan]
|
168
|
+
attr_accessor :text
|
178
169
|
|
179
|
-
# The
|
180
|
-
#
|
181
|
-
# See Document.language field for more details.
|
182
|
-
# Corresponds to the JSON property `language`
|
170
|
+
# The type of the entity mention.
|
171
|
+
# Corresponds to the JSON property `type`
|
183
172
|
# @return [String]
|
184
|
-
attr_accessor :
|
173
|
+
attr_accessor :type
|
185
174
|
|
186
175
|
def initialize(**args)
|
187
176
|
update!(**args)
|
@@ -189,48 +178,33 @@ module Google
|
|
189
178
|
|
190
179
|
# Update properties of this object
|
191
180
|
def update!(**args)
|
192
|
-
@
|
193
|
-
@
|
181
|
+
@text = args[:text] if args.key?(:text)
|
182
|
+
@type = args[:type] if args.key?(:type)
|
194
183
|
end
|
195
184
|
end
|
196
185
|
|
197
|
-
#
|
198
|
-
#
|
199
|
-
|
200
|
-
class Entity
|
186
|
+
# All available features for sentiment, syntax, and semantic analysis.
|
187
|
+
# Setting each one to true will enable that specific analysis for the input.
|
188
|
+
class Features
|
201
189
|
include Google::Apis::Core::Hashable
|
202
190
|
|
203
|
-
#
|
204
|
-
#
|
205
|
-
#
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
# The representative name for the entity.
|
210
|
-
# Corresponds to the JSON property `name`
|
211
|
-
# @return [String]
|
212
|
-
attr_accessor :name
|
213
|
-
|
214
|
-
# The entity type.
|
215
|
-
# Corresponds to the JSON property `type`
|
216
|
-
# @return [String]
|
217
|
-
attr_accessor :type
|
191
|
+
# Extract syntax information.
|
192
|
+
# Corresponds to the JSON property `extractSyntax`
|
193
|
+
# @return [Boolean]
|
194
|
+
attr_accessor :extract_syntax
|
195
|
+
alias_method :extract_syntax?, :extract_syntax
|
218
196
|
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
|
223
|
-
|
224
|
-
attr_accessor :metadata
|
197
|
+
# Extract document-level sentiment.
|
198
|
+
# Corresponds to the JSON property `extractDocumentSentiment`
|
199
|
+
# @return [Boolean]
|
200
|
+
attr_accessor :extract_document_sentiment
|
201
|
+
alias_method :extract_document_sentiment?, :extract_document_sentiment
|
225
202
|
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
|
230
|
-
|
231
|
-
# Corresponds to the JSON property `salience`
|
232
|
-
# @return [Float]
|
233
|
-
attr_accessor :salience
|
203
|
+
# Extract entities.
|
204
|
+
# Corresponds to the JSON property `extractEntities`
|
205
|
+
# @return [Boolean]
|
206
|
+
attr_accessor :extract_entities
|
207
|
+
alias_method :extract_entities?, :extract_entities
|
234
208
|
|
235
209
|
def initialize(**args)
|
236
210
|
update!(**args)
|
@@ -238,34 +212,26 @@ module Google
|
|
238
212
|
|
239
213
|
# Update properties of this object
|
240
214
|
def update!(**args)
|
241
|
-
@
|
242
|
-
@
|
243
|
-
@
|
244
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
245
|
-
@salience = args[:salience] if args.key?(:salience)
|
215
|
+
@extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
|
216
|
+
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
217
|
+
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
246
218
|
end
|
247
219
|
end
|
248
220
|
|
249
|
-
#
|
250
|
-
class
|
221
|
+
# Represents a sentence in the input document.
|
222
|
+
class Sentence
|
251
223
|
include Google::Apis::Core::Hashable
|
252
224
|
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
|
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
|
225
|
+
# Represents an output piece of text.
|
226
|
+
# Corresponds to the JSON property `text`
|
227
|
+
# @return [Google::Apis::LanguageV1beta1::TextSpan]
|
228
|
+
attr_accessor :text
|
264
229
|
|
265
|
-
#
|
266
|
-
#
|
267
|
-
#
|
268
|
-
|
230
|
+
# Represents the feeling associated with the entire text or entities in
|
231
|
+
# the text.
|
232
|
+
# Corresponds to the JSON property `sentiment`
|
233
|
+
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
234
|
+
attr_accessor :sentiment
|
269
235
|
|
270
236
|
def initialize(**args)
|
271
237
|
update!(**args)
|
@@ -273,33 +239,46 @@ module Google
|
|
273
239
|
|
274
240
|
# Update properties of this object
|
275
241
|
def update!(**args)
|
276
|
-
@
|
277
|
-
@
|
278
|
-
@tokens = args[:tokens] if args.key?(:tokens)
|
242
|
+
@text = args[:text] if args.key?(:text)
|
243
|
+
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
279
244
|
end
|
280
245
|
end
|
281
246
|
|
282
|
-
#
|
283
|
-
#
|
284
|
-
class
|
247
|
+
# ################################################################ #
|
248
|
+
# Represents the input to API methods.
|
249
|
+
class Document
|
285
250
|
include Google::Apis::Core::Hashable
|
286
251
|
|
287
|
-
# The
|
288
|
-
#
|
252
|
+
# The language of the document (if not specified, the language is
|
253
|
+
# automatically detected). Both ISO and BCP-47 language codes are
|
254
|
+
# accepted.<br>
|
255
|
+
# [Language Support](/natural-language/docs/languages)
|
256
|
+
# lists currently supported languages for each API method.
|
257
|
+
# If the language (either specified by the caller or automatically detected)
|
258
|
+
# is not supported by the called API method, an `INVALID_ARGUMENT` error
|
259
|
+
# is returned.
|
260
|
+
# Corresponds to the JSON property `language`
|
289
261
|
# @return [String]
|
290
|
-
attr_accessor :
|
262
|
+
attr_accessor :language
|
291
263
|
|
292
|
-
#
|
293
|
-
#
|
294
|
-
# Corresponds to the JSON property `
|
295
|
-
# @return [
|
296
|
-
attr_accessor :
|
264
|
+
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
|
265
|
+
# returns an `INVALID_ARGUMENT` error.
|
266
|
+
# Corresponds to the JSON property `type`
|
267
|
+
# @return [String]
|
268
|
+
attr_accessor :type
|
297
269
|
|
298
|
-
#
|
299
|
-
#
|
300
|
-
#
|
301
|
-
|
302
|
-
|
270
|
+
# The content of the input in string format.
|
271
|
+
# Corresponds to the JSON property `content`
|
272
|
+
# @return [String]
|
273
|
+
attr_accessor :content
|
274
|
+
|
275
|
+
# The Google Cloud Storage URI where the file content is located.
|
276
|
+
# This URI must be of the form: gs://bucket_name/object_name. For more
|
277
|
+
# details, see https://cloud.google.com/storage/docs/reference-uris.
|
278
|
+
# NOTE: Cloud Storage object versioning is not supported.
|
279
|
+
# Corresponds to the JSON property `gcsContentUri`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :gcs_content_uri
|
303
282
|
|
304
283
|
def initialize(**args)
|
305
284
|
update!(**args)
|
@@ -307,48 +286,37 @@ module Google
|
|
307
286
|
|
308
287
|
# Update properties of this object
|
309
288
|
def update!(**args)
|
310
|
-
@
|
311
|
-
@
|
312
|
-
@
|
289
|
+
@language = args[:language] if args.key?(:language)
|
290
|
+
@type = args[:type] if args.key?(:type)
|
291
|
+
@content = args[:content] if args.key?(:content)
|
292
|
+
@gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
|
313
293
|
end
|
314
294
|
end
|
315
295
|
|
316
|
-
#
|
317
|
-
|
318
|
-
|
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
|
296
|
+
# Represents the feeling associated with the entire text or entities in
|
297
|
+
# the text.
|
298
|
+
class Sentiment
|
299
|
+
include Google::Apis::Core::Hashable
|
332
300
|
|
333
|
-
#
|
334
|
-
#
|
335
|
-
#
|
336
|
-
# Corresponds to the JSON property `
|
337
|
-
# @return [
|
338
|
-
attr_accessor :
|
301
|
+
# DEPRECATED FIELD - This field is being deprecated in
|
302
|
+
# favor of score. Please refer to our documentation at
|
303
|
+
# https://cloud.google.com/natural-language/docs for more information.
|
304
|
+
# Corresponds to the JSON property `polarity`
|
305
|
+
# @return [Float]
|
306
|
+
attr_accessor :polarity
|
339
307
|
|
340
|
-
#
|
341
|
-
#
|
342
|
-
# Corresponds to the JSON property `
|
343
|
-
# @return [
|
344
|
-
attr_accessor :
|
308
|
+
# Sentiment score between -1.0 (negative sentiment) and 1.0
|
309
|
+
# (positive sentiment).
|
310
|
+
# Corresponds to the JSON property `score`
|
311
|
+
# @return [Float]
|
312
|
+
attr_accessor :score
|
345
313
|
|
346
|
-
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
# Corresponds to the JSON property `
|
350
|
-
# @return [
|
351
|
-
attr_accessor :
|
314
|
+
# A non-negative number in the [0, +inf) range, which represents
|
315
|
+
# the absolute magnitude of sentiment regardless of score (positive or
|
316
|
+
# negative).
|
317
|
+
# Corresponds to the JSON property `magnitude`
|
318
|
+
# @return [Float]
|
319
|
+
attr_accessor :magnitude
|
352
320
|
|
353
321
|
def initialize(**args)
|
354
322
|
update!(**args)
|
@@ -356,20 +324,17 @@ module Google
|
|
356
324
|
|
357
325
|
# Update properties of this object
|
358
326
|
def update!(**args)
|
359
|
-
@
|
360
|
-
@
|
361
|
-
@
|
362
|
-
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
363
|
-
@language = args[:language] if args.key?(:language)
|
327
|
+
@polarity = args[:polarity] if args.key?(:polarity)
|
328
|
+
@score = args[:score] if args.key?(:score)
|
329
|
+
@magnitude = args[:magnitude] if args.key?(:magnitude)
|
364
330
|
end
|
365
331
|
end
|
366
332
|
|
367
|
-
# The
|
368
|
-
class
|
333
|
+
# The entity analysis request message.
|
334
|
+
class AnalyzeEntitiesRequest
|
369
335
|
include Google::Apis::Core::Hashable
|
370
336
|
|
371
|
-
# The encoding type used by the API to calculate
|
372
|
-
# sentence sentiment.
|
337
|
+
# The encoding type used by the API to calculate offsets.
|
373
338
|
# Corresponds to the JSON property `encodingType`
|
374
339
|
# @return [String]
|
375
340
|
attr_accessor :encoding_type
|
@@ -391,23 +356,69 @@ module Google
|
|
391
356
|
end
|
392
357
|
end
|
393
358
|
|
394
|
-
# Represents
|
395
|
-
class
|
359
|
+
# Represents part of speech information for a token.
|
360
|
+
class PartOfSpeech
|
396
361
|
include Google::Apis::Core::Hashable
|
397
362
|
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
|
402
|
-
# `head_token_index` is its own index.
|
403
|
-
# Corresponds to the JSON property `headTokenIndex`
|
404
|
-
# @return [Fixnum]
|
405
|
-
attr_accessor :head_token_index
|
363
|
+
# The grammatical reciprocity.
|
364
|
+
# Corresponds to the JSON property `reciprocity`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :reciprocity
|
406
367
|
|
407
|
-
# The
|
408
|
-
# Corresponds to the JSON property `
|
368
|
+
# The grammatical form.
|
369
|
+
# Corresponds to the JSON property `form`
|
409
370
|
# @return [String]
|
410
|
-
attr_accessor :
|
371
|
+
attr_accessor :form
|
372
|
+
|
373
|
+
# The grammatical number.
|
374
|
+
# Corresponds to the JSON property `number`
|
375
|
+
# @return [String]
|
376
|
+
attr_accessor :number
|
377
|
+
|
378
|
+
# The grammatical voice.
|
379
|
+
# Corresponds to the JSON property `voice`
|
380
|
+
# @return [String]
|
381
|
+
attr_accessor :voice
|
382
|
+
|
383
|
+
# The grammatical aspect.
|
384
|
+
# Corresponds to the JSON property `aspect`
|
385
|
+
# @return [String]
|
386
|
+
attr_accessor :aspect
|
387
|
+
|
388
|
+
# The grammatical mood.
|
389
|
+
# Corresponds to the JSON property `mood`
|
390
|
+
# @return [String]
|
391
|
+
attr_accessor :mood
|
392
|
+
|
393
|
+
# The part of speech tag.
|
394
|
+
# Corresponds to the JSON property `tag`
|
395
|
+
# @return [String]
|
396
|
+
attr_accessor :tag
|
397
|
+
|
398
|
+
# The grammatical gender.
|
399
|
+
# Corresponds to the JSON property `gender`
|
400
|
+
# @return [String]
|
401
|
+
attr_accessor :gender
|
402
|
+
|
403
|
+
# The grammatical person.
|
404
|
+
# Corresponds to the JSON property `person`
|
405
|
+
# @return [String]
|
406
|
+
attr_accessor :person
|
407
|
+
|
408
|
+
# The grammatical properness.
|
409
|
+
# Corresponds to the JSON property `proper`
|
410
|
+
# @return [String]
|
411
|
+
attr_accessor :proper
|
412
|
+
|
413
|
+
# The grammatical case.
|
414
|
+
# Corresponds to the JSON property `case`
|
415
|
+
# @return [String]
|
416
|
+
attr_accessor :case
|
417
|
+
|
418
|
+
# The grammatical tense.
|
419
|
+
# Corresponds to the JSON property `tense`
|
420
|
+
# @return [String]
|
421
|
+
attr_accessor :tense
|
411
422
|
|
412
423
|
def initialize(**args)
|
413
424
|
update!(**args)
|
@@ -415,25 +426,35 @@ module Google
|
|
415
426
|
|
416
427
|
# Update properties of this object
|
417
428
|
def update!(**args)
|
418
|
-
@
|
419
|
-
@
|
429
|
+
@reciprocity = args[:reciprocity] if args.key?(:reciprocity)
|
430
|
+
@form = args[:form] if args.key?(:form)
|
431
|
+
@number = args[:number] if args.key?(:number)
|
432
|
+
@voice = args[:voice] if args.key?(:voice)
|
433
|
+
@aspect = args[:aspect] if args.key?(:aspect)
|
434
|
+
@mood = args[:mood] if args.key?(:mood)
|
435
|
+
@tag = args[:tag] if args.key?(:tag)
|
436
|
+
@gender = args[:gender] if args.key?(:gender)
|
437
|
+
@person = args[:person] if args.key?(:person)
|
438
|
+
@proper = args[:proper] if args.key?(:proper)
|
439
|
+
@case = args[:case] if args.key?(:case)
|
440
|
+
@tense = args[:tense] if args.key?(:tense)
|
420
441
|
end
|
421
442
|
end
|
422
443
|
|
423
|
-
#
|
424
|
-
class
|
444
|
+
# The syntax analysis request message.
|
445
|
+
class AnalyzeSyntaxRequest
|
425
446
|
include Google::Apis::Core::Hashable
|
426
447
|
|
427
|
-
# The
|
428
|
-
#
|
429
|
-
# Corresponds to the JSON property `beginOffset`
|
430
|
-
# @return [Fixnum]
|
431
|
-
attr_accessor :begin_offset
|
432
|
-
|
433
|
-
# The content of the output text.
|
434
|
-
# Corresponds to the JSON property `content`
|
448
|
+
# The encoding type used by the API to calculate offsets.
|
449
|
+
# Corresponds to the JSON property `encodingType`
|
435
450
|
# @return [String]
|
436
|
-
attr_accessor :
|
451
|
+
attr_accessor :encoding_type
|
452
|
+
|
453
|
+
# ################################################################ #
|
454
|
+
# Represents the input to API methods.
|
455
|
+
# Corresponds to the JSON property `document`
|
456
|
+
# @return [Google::Apis::LanguageV1beta1::Document]
|
457
|
+
attr_accessor :document
|
437
458
|
|
438
459
|
def initialize(**args)
|
439
460
|
update!(**args)
|
@@ -441,34 +462,32 @@ module Google
|
|
441
462
|
|
442
463
|
# Update properties of this object
|
443
464
|
def update!(**args)
|
444
|
-
@
|
445
|
-
@
|
465
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
466
|
+
@document = args[:document] if args.key?(:document)
|
446
467
|
end
|
447
468
|
end
|
448
469
|
|
449
|
-
#
|
450
|
-
class
|
470
|
+
# The sentiment analysis response message.
|
471
|
+
class AnalyzeSentimentResponse
|
451
472
|
include Google::Apis::Core::Hashable
|
452
473
|
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
|
457
|
-
|
458
|
-
# Represents dependency parse tree information for a token.
|
459
|
-
# Corresponds to the JSON property `dependencyEdge`
|
460
|
-
# @return [Google::Apis::LanguageV1beta1::DependencyEdge]
|
461
|
-
attr_accessor :dependency_edge
|
462
|
-
|
463
|
-
# [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
464
|
-
# Corresponds to the JSON property `lemma`
|
474
|
+
# The language of the text, which will be the same as the language specified
|
475
|
+
# in the request or, if not specified, the automatically-detected language.
|
476
|
+
# See Document.language field for more details.
|
477
|
+
# Corresponds to the JSON property `language`
|
465
478
|
# @return [String]
|
466
|
-
attr_accessor :
|
479
|
+
attr_accessor :language
|
467
480
|
|
468
|
-
#
|
469
|
-
# Corresponds to the JSON property `
|
470
|
-
# @return [Google::Apis::LanguageV1beta1::
|
471
|
-
attr_accessor :
|
481
|
+
# The sentiment for all the sentences in the document.
|
482
|
+
# Corresponds to the JSON property `sentences`
|
483
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
484
|
+
attr_accessor :sentences
|
485
|
+
|
486
|
+
# Represents the feeling associated with the entire text or entities in
|
487
|
+
# the text.
|
488
|
+
# Corresponds to the JSON property `documentSentiment`
|
489
|
+
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
490
|
+
attr_accessor :document_sentiment
|
472
491
|
|
473
492
|
def initialize(**args)
|
474
493
|
update!(**args)
|
@@ -476,72 +495,27 @@ module Google
|
|
476
495
|
|
477
496
|
# Update properties of this object
|
478
497
|
def update!(**args)
|
479
|
-
@
|
480
|
-
@
|
481
|
-
@
|
482
|
-
|
483
|
-
|
484
|
-
end
|
485
|
-
|
486
|
-
# The `Status` type defines a logical error model that is suitable for different
|
487
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
488
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
489
|
-
# - Simple to use and understand for most users
|
490
|
-
# - Flexible enough to meet unexpected needs
|
491
|
-
# # Overview
|
492
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
493
|
-
# and error details. The error code should be an enum value of
|
494
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
495
|
-
# error message should be a developer-facing English message that helps
|
496
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
497
|
-
# error message is needed, put the localized message in the error details or
|
498
|
-
# localize it in the client. The optional error details may contain arbitrary
|
499
|
-
# information about the error. There is a predefined set of error detail types
|
500
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
501
|
-
# # Language mapping
|
502
|
-
# The `Status` message is the logical representation of the error model, but it
|
503
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
504
|
-
# exposed in different client libraries and different wire protocols, it can be
|
505
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
506
|
-
# in Java, but more likely mapped to some error codes in C.
|
507
|
-
# # Other uses
|
508
|
-
# The error model and the `Status` message can be used in a variety of
|
509
|
-
# environments, either with or without APIs, to provide a
|
510
|
-
# consistent developer experience across different environments.
|
511
|
-
# Example uses of this error model include:
|
512
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
513
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
514
|
-
# errors.
|
515
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
516
|
-
# have a `Status` message for error reporting.
|
517
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
518
|
-
# `Status` message should be used directly inside batch response, one for
|
519
|
-
# each error sub-response.
|
520
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
521
|
-
# results in its response, the status of those operations should be
|
522
|
-
# represented directly using the `Status` message.
|
523
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
524
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
525
|
-
class Status
|
526
|
-
include Google::Apis::Core::Hashable
|
527
|
-
|
528
|
-
# A list of messages that carry the error details. There will be a
|
529
|
-
# common set of message types for APIs to use.
|
530
|
-
# Corresponds to the JSON property `details`
|
531
|
-
# @return [Array<Hash<String,Object>>]
|
532
|
-
attr_accessor :details
|
498
|
+
@language = args[:language] if args.key?(:language)
|
499
|
+
@sentences = args[:sentences] if args.key?(:sentences)
|
500
|
+
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
501
|
+
end
|
502
|
+
end
|
533
503
|
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
attr_accessor :code
|
504
|
+
# The entity analysis response message.
|
505
|
+
class AnalyzeEntitiesResponse
|
506
|
+
include Google::Apis::Core::Hashable
|
538
507
|
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
# Corresponds to the JSON property `
|
508
|
+
# The language of the text, which will be the same as the language specified
|
509
|
+
# in the request or, if not specified, the automatically-detected language.
|
510
|
+
# See Document.language field for more details.
|
511
|
+
# Corresponds to the JSON property `language`
|
543
512
|
# @return [String]
|
544
|
-
attr_accessor :
|
513
|
+
attr_accessor :language
|
514
|
+
|
515
|
+
# The recognized entities in the input document.
|
516
|
+
# Corresponds to the JSON property `entities`
|
517
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
|
518
|
+
attr_accessor :entities
|
545
519
|
|
546
520
|
def initialize(**args)
|
547
521
|
update!(**args)
|
@@ -549,60 +523,83 @@ module Google
|
|
549
523
|
|
550
524
|
# Update properties of this object
|
551
525
|
def update!(**args)
|
552
|
-
@
|
553
|
-
@
|
554
|
-
@message = args[:message] if args.key?(:message)
|
526
|
+
@language = args[:language] if args.key?(:language)
|
527
|
+
@entities = args[:entities] if args.key?(:entities)
|
555
528
|
end
|
556
529
|
end
|
557
530
|
|
558
|
-
# Represents a
|
559
|
-
#
|
560
|
-
|
531
|
+
# Represents a phrase in the text that is a known entity, such as
|
532
|
+
# a person, an organization, or location. The API associates information, such
|
533
|
+
# as salience and mentions, with entities.
|
534
|
+
class Entity
|
561
535
|
include Google::Apis::Core::Hashable
|
562
536
|
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
|
537
|
+
# The mentions of this entity in the input document. The API currently
|
538
|
+
# supports proper noun mentions.
|
539
|
+
# Corresponds to the JSON property `mentions`
|
540
|
+
# @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
|
541
|
+
attr_accessor :mentions
|
567
542
|
|
568
|
-
# The
|
543
|
+
# The representative name for the entity.
|
544
|
+
# Corresponds to the JSON property `name`
|
545
|
+
# @return [String]
|
546
|
+
attr_accessor :name
|
547
|
+
|
548
|
+
# The entity type.
|
569
549
|
# Corresponds to the JSON property `type`
|
570
550
|
# @return [String]
|
571
551
|
attr_accessor :type
|
572
552
|
|
553
|
+
# Metadata associated with the entity.
|
554
|
+
# Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
|
555
|
+
# available. The associated keys are "wikipedia_url" and "mid", respectively.
|
556
|
+
# Corresponds to the JSON property `metadata`
|
557
|
+
# @return [Hash<String,String>]
|
558
|
+
attr_accessor :metadata
|
559
|
+
|
560
|
+
# The salience score associated with the entity in the [0, 1.0] range.
|
561
|
+
# The salience score for an entity provides information about the
|
562
|
+
# importance or centrality of that entity to the entire document text.
|
563
|
+
# Scores closer to 0 are less salient, while scores closer to 1.0 are highly
|
564
|
+
# salient.
|
565
|
+
# Corresponds to the JSON property `salience`
|
566
|
+
# @return [Float]
|
567
|
+
attr_accessor :salience
|
568
|
+
|
573
569
|
def initialize(**args)
|
574
570
|
update!(**args)
|
575
571
|
end
|
576
572
|
|
577
573
|
# Update properties of this object
|
578
574
|
def update!(**args)
|
579
|
-
@
|
575
|
+
@mentions = args[:mentions] if args.key?(:mentions)
|
576
|
+
@name = args[:name] if args.key?(:name)
|
580
577
|
@type = args[:type] if args.key?(:type)
|
578
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
579
|
+
@salience = args[:salience] if args.key?(:salience)
|
581
580
|
end
|
582
581
|
end
|
583
582
|
|
584
|
-
#
|
585
|
-
|
586
|
-
class Features
|
583
|
+
# The syntax analysis response message.
|
584
|
+
class AnalyzeSyntaxResponse
|
587
585
|
include Google::Apis::Core::Hashable
|
588
586
|
|
589
|
-
#
|
590
|
-
#
|
591
|
-
#
|
592
|
-
|
593
|
-
|
587
|
+
# The language of the text, which will be the same as the language specified
|
588
|
+
# in the request or, if not specified, the automatically-detected language.
|
589
|
+
# See Document.language field for more details.
|
590
|
+
# Corresponds to the JSON property `language`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :language
|
594
593
|
|
595
|
-
#
|
596
|
-
# Corresponds to the JSON property `
|
597
|
-
# @return [
|
598
|
-
attr_accessor :
|
599
|
-
alias_method :extract_document_sentiment?, :extract_document_sentiment
|
594
|
+
# Sentences in the input document.
|
595
|
+
# Corresponds to the JSON property `sentences`
|
596
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
597
|
+
attr_accessor :sentences
|
600
598
|
|
601
|
-
#
|
602
|
-
# Corresponds to the JSON property `
|
603
|
-
# @return [
|
604
|
-
attr_accessor :
|
605
|
-
alias_method :extract_entities?, :extract_entities
|
599
|
+
# Tokens, along with their syntactic information, in the input document.
|
600
|
+
# Corresponds to the JSON property `tokens`
|
601
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
|
602
|
+
attr_accessor :tokens
|
606
603
|
|
607
604
|
def initialize(**args)
|
608
605
|
update!(**args)
|
@@ -610,26 +607,33 @@ module Google
|
|
610
607
|
|
611
608
|
# Update properties of this object
|
612
609
|
def update!(**args)
|
613
|
-
@
|
614
|
-
@
|
615
|
-
@
|
610
|
+
@language = args[:language] if args.key?(:language)
|
611
|
+
@sentences = args[:sentences] if args.key?(:sentences)
|
612
|
+
@tokens = args[:tokens] if args.key?(:tokens)
|
616
613
|
end
|
617
614
|
end
|
618
615
|
|
619
|
-
#
|
620
|
-
|
616
|
+
# The request message for the text annotation API, which can perform multiple
|
617
|
+
# analysis types (sentiment, entities, and syntax) in one call.
|
618
|
+
class AnnotateTextRequest
|
621
619
|
include Google::Apis::Core::Hashable
|
622
620
|
|
623
|
-
#
|
624
|
-
#
|
625
|
-
#
|
626
|
-
|
621
|
+
# All available features for sentiment, syntax, and semantic analysis.
|
622
|
+
# Setting each one to true will enable that specific analysis for the input.
|
623
|
+
# Corresponds to the JSON property `features`
|
624
|
+
# @return [Google::Apis::LanguageV1beta1::Features]
|
625
|
+
attr_accessor :features
|
627
626
|
|
628
|
-
#
|
629
|
-
# the
|
630
|
-
#
|
631
|
-
|
632
|
-
|
627
|
+
# The encoding type used by the API to calculate offsets.
|
628
|
+
# Corresponds to the JSON property `encodingType`
|
629
|
+
# @return [String]
|
630
|
+
attr_accessor :encoding_type
|
631
|
+
|
632
|
+
# ################################################################ #
|
633
|
+
# Represents the input to API methods.
|
634
|
+
# Corresponds to the JSON property `document`
|
635
|
+
# @return [Google::Apis::LanguageV1beta1::Document]
|
636
|
+
attr_accessor :document
|
633
637
|
|
634
638
|
def initialize(**args)
|
635
639
|
update!(**args)
|
@@ -637,65 +641,69 @@ module Google
|
|
637
641
|
|
638
642
|
# Update properties of this object
|
639
643
|
def update!(**args)
|
640
|
-
@
|
641
|
-
@
|
644
|
+
@features = args[:features] if args.key?(:features)
|
645
|
+
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
646
|
+
@document = args[:document] if args.key?(:document)
|
642
647
|
end
|
643
648
|
end
|
644
649
|
|
645
|
-
#
|
646
|
-
|
647
|
-
class Document
|
650
|
+
# The text annotations response message.
|
651
|
+
class AnnotateTextResponse
|
648
652
|
include Google::Apis::Core::Hashable
|
649
653
|
|
650
|
-
#
|
651
|
-
#
|
652
|
-
#
|
653
|
-
#
|
654
|
-
|
654
|
+
# Tokens, along with their syntactic information, in the input document.
|
655
|
+
# Populated if the user enables
|
656
|
+
# AnnotateTextRequest.Features.extract_syntax.
|
657
|
+
# Corresponds to the JSON property `tokens`
|
658
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
|
659
|
+
attr_accessor :tokens
|
655
660
|
|
656
|
-
#
|
657
|
-
#
|
658
|
-
#
|
659
|
-
|
661
|
+
# Entities, along with their semantic information, in the input document.
|
662
|
+
# Populated if the user enables
|
663
|
+
# AnnotateTextRequest.Features.extract_entities.
|
664
|
+
# Corresponds to the JSON property `entities`
|
665
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
|
666
|
+
attr_accessor :entities
|
660
667
|
|
661
|
-
#
|
662
|
-
#
|
663
|
-
#
|
664
|
-
#
|
665
|
-
|
666
|
-
# @return [String]
|
667
|
-
attr_accessor :gcs_content_uri
|
668
|
+
# Represents the feeling associated with the entire text or entities in
|
669
|
+
# the text.
|
670
|
+
# Corresponds to the JSON property `documentSentiment`
|
671
|
+
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
672
|
+
attr_accessor :document_sentiment
|
668
673
|
|
669
|
-
# The language of the
|
670
|
-
#
|
671
|
-
#
|
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.
|
674
|
+
# The language of the text, which will be the same as the language specified
|
675
|
+
# in the request or, if not specified, the automatically-detected language.
|
676
|
+
# See Document.language field for more details.
|
677
677
|
# Corresponds to the JSON property `language`
|
678
678
|
# @return [String]
|
679
679
|
attr_accessor :language
|
680
680
|
|
681
|
+
# Sentences in the input document. Populated if the user enables
|
682
|
+
# AnnotateTextRequest.Features.extract_syntax.
|
683
|
+
# Corresponds to the JSON property `sentences`
|
684
|
+
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
685
|
+
attr_accessor :sentences
|
686
|
+
|
681
687
|
def initialize(**args)
|
682
688
|
update!(**args)
|
683
689
|
end
|
684
690
|
|
685
691
|
# Update properties of this object
|
686
692
|
def update!(**args)
|
687
|
-
@
|
688
|
-
@
|
689
|
-
@
|
693
|
+
@tokens = args[:tokens] if args.key?(:tokens)
|
694
|
+
@entities = args[:entities] if args.key?(:entities)
|
695
|
+
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
690
696
|
@language = args[:language] if args.key?(:language)
|
697
|
+
@sentences = args[:sentences] if args.key?(:sentences)
|
691
698
|
end
|
692
699
|
end
|
693
700
|
|
694
|
-
# The
|
695
|
-
class
|
701
|
+
# The sentiment analysis request message.
|
702
|
+
class AnalyzeSentimentRequest
|
696
703
|
include Google::Apis::Core::Hashable
|
697
704
|
|
698
|
-
# The encoding type used by the API to calculate offsets
|
705
|
+
# The encoding type used by the API to calculate sentence offsets for the
|
706
|
+
# sentence sentiment.
|
699
707
|
# Corresponds to the JSON property `encodingType`
|
700
708
|
# @return [String]
|
701
709
|
attr_accessor :encoding_type
|
@@ -717,30 +725,23 @@ module Google
|
|
717
725
|
end
|
718
726
|
end
|
719
727
|
|
720
|
-
# Represents
|
721
|
-
|
722
|
-
class Sentiment
|
728
|
+
# Represents dependency parse tree information for a token.
|
729
|
+
class DependencyEdge
|
723
730
|
include Google::Apis::Core::Hashable
|
724
731
|
|
725
|
-
#
|
726
|
-
#
|
727
|
-
#
|
728
|
-
|
729
|
-
# @return [Float]
|
730
|
-
attr_accessor :polarity
|
731
|
-
|
732
|
-
# Sentiment score between -1.0 (negative sentiment) and 1.0
|
733
|
-
# (positive sentiment).
|
734
|
-
# Corresponds to the JSON property `score`
|
735
|
-
# @return [Float]
|
736
|
-
attr_accessor :score
|
732
|
+
# The parse label for the token.
|
733
|
+
# Corresponds to the JSON property `label`
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :label
|
737
736
|
|
738
|
-
#
|
739
|
-
# the
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
743
|
-
|
737
|
+
# Represents the head of this token in the dependency tree.
|
738
|
+
# This is the index of the token which has an arc going to this token.
|
739
|
+
# The index is the position of the token in the array of tokens returned
|
740
|
+
# by the API method. If this token is a root token, then the
|
741
|
+
# `head_token_index` is its own index.
|
742
|
+
# Corresponds to the JSON property `headTokenIndex`
|
743
|
+
# @return [Fixnum]
|
744
|
+
attr_accessor :head_token_index
|
744
745
|
|
745
746
|
def initialize(**args)
|
746
747
|
update!(**args)
|
@@ -748,9 +749,8 @@ module Google
|
|
748
749
|
|
749
750
|
# Update properties of this object
|
750
751
|
def update!(**args)
|
751
|
-
@
|
752
|
-
@
|
753
|
-
@magnitude = args[:magnitude] if args.key?(:magnitude)
|
752
|
+
@label = args[:label] if args.key?(:label)
|
753
|
+
@head_token_index = args[:head_token_index] if args.key?(:head_token_index)
|
754
754
|
end
|
755
755
|
end
|
756
756
|
end
|