google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- 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 +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -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/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- 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 +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- 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.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- 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/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/speech/
|
26
26
|
module SpeechV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170522'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,171 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SpeechV1beta1
|
24
24
|
|
25
|
-
# This resource represents a long-running operation that is the result of a
|
26
|
-
# network API call.
|
27
|
-
class Operation
|
28
|
-
include Google::Apis::Core::Hashable
|
29
|
-
|
30
|
-
# If the value is `false`, it means the operation is still in progress.
|
31
|
-
# If true, the operation is completed, and either `error` or `response` is
|
32
|
-
# available.
|
33
|
-
# Corresponds to the JSON property `done`
|
34
|
-
# @return [Boolean]
|
35
|
-
attr_accessor :done
|
36
|
-
alias_method :done?, :done
|
37
|
-
|
38
|
-
# The normal response of the operation in case of success. If the original
|
39
|
-
# method returns no data on success, such as `Delete`, the response is
|
40
|
-
# `google.protobuf.Empty`. If the original method is standard
|
41
|
-
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
42
|
-
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
43
|
-
# is the original method name. For example, if the original method name
|
44
|
-
# is `TakeSnapshot()`, the inferred response type is
|
45
|
-
# `TakeSnapshotResponse`.
|
46
|
-
# Corresponds to the JSON property `response`
|
47
|
-
# @return [Hash<String,Object>]
|
48
|
-
attr_accessor :response
|
49
|
-
|
50
|
-
# The server-assigned name, which is only unique within the same service that
|
51
|
-
# originally returns it. If you use the default HTTP mapping, the
|
52
|
-
# `name` should have the format of `operations/some/unique/name`.
|
53
|
-
# Corresponds to the JSON property `name`
|
54
|
-
# @return [String]
|
55
|
-
attr_accessor :name
|
56
|
-
|
57
|
-
# The `Status` type defines a logical error model that is suitable for different
|
58
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
59
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
60
|
-
# - Simple to use and understand for most users
|
61
|
-
# - Flexible enough to meet unexpected needs
|
62
|
-
# # Overview
|
63
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
64
|
-
# and error details. The error code should be an enum value of
|
65
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
66
|
-
# error message should be a developer-facing English message that helps
|
67
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
68
|
-
# error message is needed, put the localized message in the error details or
|
69
|
-
# localize it in the client. The optional error details may contain arbitrary
|
70
|
-
# information about the error. There is a predefined set of error detail types
|
71
|
-
# in the package `google.rpc` which can be used for common error conditions.
|
72
|
-
# # Language mapping
|
73
|
-
# The `Status` message is the logical representation of the error model, but it
|
74
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
75
|
-
# exposed in different client libraries and different wire protocols, it can be
|
76
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
77
|
-
# in Java, but more likely mapped to some error codes in C.
|
78
|
-
# # Other uses
|
79
|
-
# The error model and the `Status` message can be used in a variety of
|
80
|
-
# environments, either with or without APIs, to provide a
|
81
|
-
# consistent developer experience across different environments.
|
82
|
-
# Example uses of this error model include:
|
83
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
84
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
85
|
-
# errors.
|
86
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
87
|
-
# have a `Status` message for error reporting purpose.
|
88
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
89
|
-
# `Status` message should be used directly inside batch response, one for
|
90
|
-
# each error sub-response.
|
91
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
92
|
-
# results in its response, the status of those operations should be
|
93
|
-
# represented directly using the `Status` message.
|
94
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
95
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
96
|
-
# Corresponds to the JSON property `error`
|
97
|
-
# @return [Google::Apis::SpeechV1beta1::Status]
|
98
|
-
attr_accessor :error
|
99
|
-
|
100
|
-
# Service-specific metadata associated with the operation. It typically
|
101
|
-
# contains progress information and common metadata such as create time.
|
102
|
-
# Some services might not provide such metadata. Any method that returns a
|
103
|
-
# long-running operation should document the metadata type, if any.
|
104
|
-
# Corresponds to the JSON property `metadata`
|
105
|
-
# @return [Hash<String,Object>]
|
106
|
-
attr_accessor :metadata
|
107
|
-
|
108
|
-
def initialize(**args)
|
109
|
-
update!(**args)
|
110
|
-
end
|
111
|
-
|
112
|
-
# Update properties of this object
|
113
|
-
def update!(**args)
|
114
|
-
@done = args[:done] if args.key?(:done)
|
115
|
-
@response = args[:response] if args.key?(:response)
|
116
|
-
@name = args[:name] if args.key?(:name)
|
117
|
-
@error = args[:error] if args.key?(:error)
|
118
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
# Provides information to the recognizer that specifies how to process the
|
123
|
-
# request.
|
124
|
-
class RecognitionConfig
|
125
|
-
include Google::Apis::Core::Hashable
|
126
|
-
|
127
|
-
# *Optional* Maximum number of recognition hypotheses to be returned.
|
128
|
-
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
129
|
-
# within each `SpeechRecognitionResult`.
|
130
|
-
# The server may return fewer than `max_alternatives`.
|
131
|
-
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
|
132
|
-
# one. If omitted, will return a maximum of one.
|
133
|
-
# Corresponds to the JSON property `maxAlternatives`
|
134
|
-
# @return [Fixnum]
|
135
|
-
attr_accessor :max_alternatives
|
136
|
-
|
137
|
-
# *Required* Sample rate in Hertz of the audio data sent in all
|
138
|
-
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
139
|
-
# 16000 is optimal. For best results, set the sampling rate of the audio
|
140
|
-
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
141
|
-
# the audio source (instead of re-sampling).
|
142
|
-
# Corresponds to the JSON property `sampleRate`
|
143
|
-
# @return [Fixnum]
|
144
|
-
attr_accessor :sample_rate
|
145
|
-
|
146
|
-
# *Optional* The language of the supplied audio as a BCP-47 language tag.
|
147
|
-
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
148
|
-
# If omitted, defaults to "en-US". See
|
149
|
-
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
150
|
-
# for a list of the currently supported language codes.
|
151
|
-
# Corresponds to the JSON property `languageCode`
|
152
|
-
# @return [String]
|
153
|
-
attr_accessor :language_code
|
154
|
-
|
155
|
-
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
156
|
-
# in the results.
|
157
|
-
# Corresponds to the JSON property `speechContext`
|
158
|
-
# @return [Google::Apis::SpeechV1beta1::SpeechContext]
|
159
|
-
attr_accessor :speech_context
|
160
|
-
|
161
|
-
# *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
|
162
|
-
# Corresponds to the JSON property `encoding`
|
163
|
-
# @return [String]
|
164
|
-
attr_accessor :encoding
|
165
|
-
|
166
|
-
# *Optional* If set to `true`, the server will attempt to filter out
|
167
|
-
# profanities, replacing all but the initial character in each filtered word
|
168
|
-
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
169
|
-
# won't be filtered out.
|
170
|
-
# Corresponds to the JSON property `profanityFilter`
|
171
|
-
# @return [Boolean]
|
172
|
-
attr_accessor :profanity_filter
|
173
|
-
alias_method :profanity_filter?, :profanity_filter
|
174
|
-
|
175
|
-
def initialize(**args)
|
176
|
-
update!(**args)
|
177
|
-
end
|
178
|
-
|
179
|
-
# Update properties of this object
|
180
|
-
def update!(**args)
|
181
|
-
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
|
182
|
-
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
183
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
184
|
-
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
185
|
-
@encoding = args[:encoding] if args.key?(:encoding)
|
186
|
-
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
25
|
# The top-level message sent by the client for the `SyncRecognize` method.
|
191
26
|
class SyncRecognizeRequest
|
192
27
|
include Google::Apis::Core::Hashable
|
@@ -230,7 +65,7 @@ module Google
|
|
230
65
|
# error message is needed, put the localized message in the error details or
|
231
66
|
# localize it in the client. The optional error details may contain arbitrary
|
232
67
|
# information about the error. There is a predefined set of error detail types
|
233
|
-
# in the package `google.rpc`
|
68
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
234
69
|
# # Language mapping
|
235
70
|
# The `Status` message is the logical representation of the error model, but it
|
236
71
|
# is not necessarily the actual wire format. When the `Status` message is
|
@@ -246,7 +81,7 @@ module Google
|
|
246
81
|
# it may embed the `Status` in the normal response to indicate the partial
|
247
82
|
# errors.
|
248
83
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
249
|
-
# have a `Status` message for error reporting
|
84
|
+
# have a `Status` message for error reporting.
|
250
85
|
# - Batch operations. If a client uses batch request and batch response, the
|
251
86
|
# `Status` message should be used directly inside batch response, one for
|
252
87
|
# each error sub-response.
|
@@ -258,13 +93,6 @@ module Google
|
|
258
93
|
class Status
|
259
94
|
include Google::Apis::Core::Hashable
|
260
95
|
|
261
|
-
# A developer-facing error message, which should be in English. Any
|
262
|
-
# user-facing error message should be localized and sent in the
|
263
|
-
# google.rpc.Status.details field, or localized by the client.
|
264
|
-
# Corresponds to the JSON property `message`
|
265
|
-
# @return [String]
|
266
|
-
attr_accessor :message
|
267
|
-
|
268
96
|
# A list of messages that carry the error details. There will be a
|
269
97
|
# common set of message types for APIs to use.
|
270
98
|
# Corresponds to the JSON property `details`
|
@@ -276,15 +104,22 @@ module Google
|
|
276
104
|
# @return [Fixnum]
|
277
105
|
attr_accessor :code
|
278
106
|
|
107
|
+
# A developer-facing error message, which should be in English. Any
|
108
|
+
# user-facing error message should be localized and sent in the
|
109
|
+
# google.rpc.Status.details field, or localized by the client.
|
110
|
+
# Corresponds to the JSON property `message`
|
111
|
+
# @return [String]
|
112
|
+
attr_accessor :message
|
113
|
+
|
279
114
|
def initialize(**args)
|
280
115
|
update!(**args)
|
281
116
|
end
|
282
117
|
|
283
118
|
# Update properties of this object
|
284
119
|
def update!(**args)
|
285
|
-
@message = args[:message] if args.key?(:message)
|
286
120
|
@details = args[:details] if args.key?(:details)
|
287
121
|
@code = args[:code] if args.key?(:code)
|
122
|
+
@message = args[:message] if args.key?(:message)
|
288
123
|
end
|
289
124
|
end
|
290
125
|
|
@@ -329,25 +164,19 @@ module Google
|
|
329
164
|
end
|
330
165
|
end
|
331
166
|
|
332
|
-
#
|
333
|
-
class
|
167
|
+
# The response message for Operations.ListOperations.
|
168
|
+
class ListOperationsResponse
|
334
169
|
include Google::Apis::Core::Hashable
|
335
170
|
|
336
|
-
#
|
337
|
-
#
|
338
|
-
# correct. This field is typically provided only for the top hypothesis, and
|
339
|
-
# only for `is_final=true` results. Clients should not rely on the
|
340
|
-
# `confidence` field as it is not guaranteed to be accurate, or even set, in
|
341
|
-
# any of the results.
|
342
|
-
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
343
|
-
# Corresponds to the JSON property `confidence`
|
344
|
-
# @return [Float]
|
345
|
-
attr_accessor :confidence
|
346
|
-
|
347
|
-
# *Output-only* Transcript text representing the words that the user spoke.
|
348
|
-
# Corresponds to the JSON property `transcript`
|
171
|
+
# The standard List next-page token.
|
172
|
+
# Corresponds to the JSON property `nextPageToken`
|
349
173
|
# @return [String]
|
350
|
-
attr_accessor :
|
174
|
+
attr_accessor :next_page_token
|
175
|
+
|
176
|
+
# A list of operations that matches the specified filter in the request.
|
177
|
+
# Corresponds to the JSON property `operations`
|
178
|
+
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
179
|
+
attr_accessor :operations
|
351
180
|
|
352
181
|
def initialize(**args)
|
353
182
|
update!(**args)
|
@@ -355,8 +184,8 @@ module Google
|
|
355
184
|
|
356
185
|
# Update properties of this object
|
357
186
|
def update!(**args)
|
358
|
-
@
|
359
|
-
@
|
187
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
188
|
+
@operations = args[:operations] if args.key?(:operations)
|
360
189
|
end
|
361
190
|
end
|
362
191
|
|
@@ -385,19 +214,25 @@ module Google
|
|
385
214
|
end
|
386
215
|
end
|
387
216
|
|
388
|
-
#
|
389
|
-
class
|
217
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
218
|
+
class SpeechRecognitionAlternative
|
390
219
|
include Google::Apis::Core::Hashable
|
391
220
|
|
392
|
-
# The
|
393
|
-
#
|
394
|
-
#
|
395
|
-
|
221
|
+
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
|
222
|
+
# indicates an estimated greater likelihood that the recognized words are
|
223
|
+
# correct. This field is typically provided only for the top hypothesis, and
|
224
|
+
# only for `is_final=true` results. Clients should not rely on the
|
225
|
+
# `confidence` field as it is not guaranteed to be accurate, or even set, in
|
226
|
+
# any of the results.
|
227
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
228
|
+
# Corresponds to the JSON property `confidence`
|
229
|
+
# @return [Float]
|
230
|
+
attr_accessor :confidence
|
396
231
|
|
397
|
-
#
|
398
|
-
# Corresponds to the JSON property `
|
399
|
-
# @return [
|
400
|
-
attr_accessor :
|
232
|
+
# *Output-only* Transcript text representing the words that the user spoke.
|
233
|
+
# Corresponds to the JSON property `transcript`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :transcript
|
401
236
|
|
402
237
|
def initialize(**args)
|
403
238
|
update!(**args)
|
@@ -405,8 +240,8 @@ module Google
|
|
405
240
|
|
406
241
|
# Update properties of this object
|
407
242
|
def update!(**args)
|
408
|
-
@
|
409
|
-
@
|
243
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
244
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
410
245
|
end
|
411
246
|
end
|
412
247
|
|
@@ -430,6 +265,42 @@ module Google
|
|
430
265
|
end
|
431
266
|
end
|
432
267
|
|
268
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
269
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
270
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
271
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
272
|
+
class RecognitionAudio
|
273
|
+
include Google::Apis::Core::Hashable
|
274
|
+
|
275
|
+
# The audio data bytes encoded as specified in
|
276
|
+
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
277
|
+
# pure binary representation, whereas JSON representations use base64.
|
278
|
+
# Corresponds to the JSON property `content`
|
279
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :content
|
282
|
+
|
283
|
+
# URI that points to a file that contains audio data bytes as specified in
|
284
|
+
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
285
|
+
# supported, which must be specified in the following format:
|
286
|
+
# `gs://bucket_name/object_name` (other URI formats return
|
287
|
+
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
288
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
289
|
+
# Corresponds to the JSON property `uri`
|
290
|
+
# @return [String]
|
291
|
+
attr_accessor :uri
|
292
|
+
|
293
|
+
def initialize(**args)
|
294
|
+
update!(**args)
|
295
|
+
end
|
296
|
+
|
297
|
+
# Update properties of this object
|
298
|
+
def update!(**args)
|
299
|
+
@content = args[:content] if args.key?(:content)
|
300
|
+
@uri = args[:uri] if args.key?(:uri)
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
433
304
|
# The top-level message sent by the client for the `AsyncRecognize` method.
|
434
305
|
class AsyncRecognizeRequest
|
435
306
|
include Google::Apis::Core::Hashable
|
@@ -459,30 +330,155 @@ module Google
|
|
459
330
|
end
|
460
331
|
end
|
461
332
|
|
462
|
-
#
|
463
|
-
#
|
464
|
-
|
465
|
-
# [audio limits](https://cloud.google.com/speech/limits#content).
|
466
|
-
class RecognitionAudio
|
333
|
+
# This resource represents a long-running operation that is the result of a
|
334
|
+
# network API call.
|
335
|
+
class Operation
|
467
336
|
include Google::Apis::Core::Hashable
|
468
337
|
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
# Corresponds to the JSON property `
|
473
|
-
#
|
338
|
+
# If the value is `false`, it means the operation is still in progress.
|
339
|
+
# If true, the operation is completed, and either `error` or `response` is
|
340
|
+
# available.
|
341
|
+
# Corresponds to the JSON property `done`
|
342
|
+
# @return [Boolean]
|
343
|
+
attr_accessor :done
|
344
|
+
alias_method :done?, :done
|
345
|
+
|
346
|
+
# The normal response of the operation in case of success. If the original
|
347
|
+
# method returns no data on success, such as `Delete`, the response is
|
348
|
+
# `google.protobuf.Empty`. If the original method is standard
|
349
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
350
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
351
|
+
# is the original method name. For example, if the original method name
|
352
|
+
# is `TakeSnapshot()`, the inferred response type is
|
353
|
+
# `TakeSnapshotResponse`.
|
354
|
+
# Corresponds to the JSON property `response`
|
355
|
+
# @return [Hash<String,Object>]
|
356
|
+
attr_accessor :response
|
357
|
+
|
358
|
+
# The server-assigned name, which is only unique within the same service that
|
359
|
+
# originally returns it. If you use the default HTTP mapping, the
|
360
|
+
# `name` should have the format of `operations/some/unique/name`.
|
361
|
+
# Corresponds to the JSON property `name`
|
474
362
|
# @return [String]
|
475
|
-
attr_accessor :
|
363
|
+
attr_accessor :name
|
476
364
|
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
365
|
+
# The `Status` type defines a logical error model that is suitable for different
|
366
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
367
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
368
|
+
# - Simple to use and understand for most users
|
369
|
+
# - Flexible enough to meet unexpected needs
|
370
|
+
# # Overview
|
371
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
372
|
+
# and error details. The error code should be an enum value of
|
373
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
374
|
+
# error message should be a developer-facing English message that helps
|
375
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
376
|
+
# error message is needed, put the localized message in the error details or
|
377
|
+
# localize it in the client. The optional error details may contain arbitrary
|
378
|
+
# information about the error. There is a predefined set of error detail types
|
379
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
380
|
+
# # Language mapping
|
381
|
+
# The `Status` message is the logical representation of the error model, but it
|
382
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
383
|
+
# exposed in different client libraries and different wire protocols, it can be
|
384
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
385
|
+
# in Java, but more likely mapped to some error codes in C.
|
386
|
+
# # Other uses
|
387
|
+
# The error model and the `Status` message can be used in a variety of
|
388
|
+
# environments, either with or without APIs, to provide a
|
389
|
+
# consistent developer experience across different environments.
|
390
|
+
# Example uses of this error model include:
|
391
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
392
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
393
|
+
# errors.
|
394
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
395
|
+
# have a `Status` message for error reporting.
|
396
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
397
|
+
# `Status` message should be used directly inside batch response, one for
|
398
|
+
# each error sub-response.
|
399
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
400
|
+
# results in its response, the status of those operations should be
|
401
|
+
# represented directly using the `Status` message.
|
402
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
403
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
404
|
+
# Corresponds to the JSON property `error`
|
405
|
+
# @return [Google::Apis::SpeechV1beta1::Status]
|
406
|
+
attr_accessor :error
|
407
|
+
|
408
|
+
# Service-specific metadata associated with the operation. It typically
|
409
|
+
# contains progress information and common metadata such as create time.
|
410
|
+
# Some services might not provide such metadata. Any method that returns a
|
411
|
+
# long-running operation should document the metadata type, if any.
|
412
|
+
# Corresponds to the JSON property `metadata`
|
413
|
+
# @return [Hash<String,Object>]
|
414
|
+
attr_accessor :metadata
|
415
|
+
|
416
|
+
def initialize(**args)
|
417
|
+
update!(**args)
|
418
|
+
end
|
419
|
+
|
420
|
+
# Update properties of this object
|
421
|
+
def update!(**args)
|
422
|
+
@done = args[:done] if args.key?(:done)
|
423
|
+
@response = args[:response] if args.key?(:response)
|
424
|
+
@name = args[:name] if args.key?(:name)
|
425
|
+
@error = args[:error] if args.key?(:error)
|
426
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
# Provides information to the recognizer that specifies how to process the
|
431
|
+
# request.
|
432
|
+
class RecognitionConfig
|
433
|
+
include Google::Apis::Core::Hashable
|
434
|
+
|
435
|
+
# *Optional* Maximum number of recognition hypotheses to be returned.
|
436
|
+
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
437
|
+
# within each `SpeechRecognitionResult`.
|
438
|
+
# The server may return fewer than `max_alternatives`.
|
439
|
+
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
|
440
|
+
# one. If omitted, will return a maximum of one.
|
441
|
+
# Corresponds to the JSON property `maxAlternatives`
|
442
|
+
# @return [Fixnum]
|
443
|
+
attr_accessor :max_alternatives
|
444
|
+
|
445
|
+
# *Required* Sample rate in Hertz of the audio data sent in all
|
446
|
+
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
447
|
+
# 16000 is optimal. For best results, set the sampling rate of the audio
|
448
|
+
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
449
|
+
# the audio source (instead of re-sampling).
|
450
|
+
# Corresponds to the JSON property `sampleRate`
|
451
|
+
# @return [Fixnum]
|
452
|
+
attr_accessor :sample_rate
|
453
|
+
|
454
|
+
# *Optional* The language of the supplied audio as a BCP-47 language tag.
|
455
|
+
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
456
|
+
# If omitted, defaults to "en-US". See
|
457
|
+
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
458
|
+
# for a list of the currently supported language codes.
|
459
|
+
# Corresponds to the JSON property `languageCode`
|
484
460
|
# @return [String]
|
485
|
-
attr_accessor :
|
461
|
+
attr_accessor :language_code
|
462
|
+
|
463
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
464
|
+
# in the results.
|
465
|
+
# Corresponds to the JSON property `speechContext`
|
466
|
+
# @return [Google::Apis::SpeechV1beta1::SpeechContext]
|
467
|
+
attr_accessor :speech_context
|
468
|
+
|
469
|
+
# *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
|
470
|
+
# Corresponds to the JSON property `encoding`
|
471
|
+
# @return [String]
|
472
|
+
attr_accessor :encoding
|
473
|
+
|
474
|
+
# *Optional* If set to `true`, the server will attempt to filter out
|
475
|
+
# profanities, replacing all but the initial character in each filtered word
|
476
|
+
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
477
|
+
# won't be filtered out.
|
478
|
+
# Corresponds to the JSON property `profanityFilter`
|
479
|
+
# @return [Boolean]
|
480
|
+
attr_accessor :profanity_filter
|
481
|
+
alias_method :profanity_filter?, :profanity_filter
|
486
482
|
|
487
483
|
def initialize(**args)
|
488
484
|
update!(**args)
|
@@ -490,8 +486,12 @@ module Google
|
|
490
486
|
|
491
487
|
# Update properties of this object
|
492
488
|
def update!(**args)
|
493
|
-
@
|
494
|
-
@
|
489
|
+
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
|
490
|
+
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
491
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
492
|
+
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
493
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
494
|
+
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
495
495
|
end
|
496
496
|
end
|
497
497
|
end
|