google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- 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.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- 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 +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- 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 +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.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 +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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 +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -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 = '20170705'
|
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,181 +22,10 @@ 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` that 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.
|
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
|
193
28
|
|
194
|
-
# Provides information to the recognizer that specifies how to process the
|
195
|
-
# request.
|
196
|
-
# Corresponds to the JSON property `config`
|
197
|
-
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
198
|
-
attr_accessor :config
|
199
|
-
|
200
29
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
201
30
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
202
31
|
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
@@ -205,28 +34,11 @@ module Google
|
|
205
34
|
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
206
35
|
attr_accessor :audio
|
207
36
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
def update!(**args)
|
214
|
-
@config = args[:config] if args.key?(:config)
|
215
|
-
@audio = args[:audio] if args.key?(:audio)
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
# The only message returned to the client by `SyncRecognize`. method. It
|
220
|
-
# contains the result as zero or more sequential `SpeechRecognitionResult`
|
221
|
-
# messages.
|
222
|
-
class SyncRecognizeResponse
|
223
|
-
include Google::Apis::Core::Hashable
|
224
|
-
|
225
|
-
# *Output-only* Sequential list of transcription results corresponding to
|
226
|
-
# sequential portions of audio.
|
227
|
-
# Corresponds to the JSON property `results`
|
228
|
-
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
229
|
-
attr_accessor :results
|
37
|
+
# Provides information to the recognizer that specifies how to process the
|
38
|
+
# request.
|
39
|
+
# Corresponds to the JSON property `config`
|
40
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
41
|
+
attr_accessor :config
|
230
42
|
|
231
43
|
def initialize(**args)
|
232
44
|
update!(**args)
|
@@ -234,7 +46,8 @@ module Google
|
|
234
46
|
|
235
47
|
# Update properties of this object
|
236
48
|
def update!(**args)
|
237
|
-
@
|
49
|
+
@audio = args[:audio] if args.key?(:audio)
|
50
|
+
@config = args[:config] if args.key?(:config)
|
238
51
|
end
|
239
52
|
end
|
240
53
|
|
@@ -280,6 +93,11 @@ module Google
|
|
280
93
|
class Status
|
281
94
|
include Google::Apis::Core::Hashable
|
282
95
|
|
96
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
97
|
+
# Corresponds to the JSON property `code`
|
98
|
+
# @return [Fixnum]
|
99
|
+
attr_accessor :code
|
100
|
+
|
283
101
|
# A developer-facing error message, which should be in English. Any
|
284
102
|
# user-facing error message should be localized and sent in the
|
285
103
|
# google.rpc.Status.details field, or localized by the client.
|
@@ -293,20 +111,37 @@ module Google
|
|
293
111
|
# @return [Array<Hash<String,Object>>]
|
294
112
|
attr_accessor :details
|
295
113
|
|
296
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
297
|
-
# Corresponds to the JSON property `code`
|
298
|
-
# @return [Fixnum]
|
299
|
-
attr_accessor :code
|
300
|
-
|
301
114
|
def initialize(**args)
|
302
115
|
update!(**args)
|
303
116
|
end
|
304
117
|
|
305
118
|
# Update properties of this object
|
306
119
|
def update!(**args)
|
120
|
+
@code = args[:code] if args.key?(:code)
|
307
121
|
@message = args[:message] if args.key?(:message)
|
308
122
|
@details = args[:details] if args.key?(:details)
|
309
|
-
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# The only message returned to the client by `SyncRecognize`. method. It
|
127
|
+
# contains the result as zero or more sequential `SpeechRecognitionResult`
|
128
|
+
# messages.
|
129
|
+
class SyncRecognizeResponse
|
130
|
+
include Google::Apis::Core::Hashable
|
131
|
+
|
132
|
+
# *Output-only* Sequential list of transcription results corresponding to
|
133
|
+
# sequential portions of audio.
|
134
|
+
# Corresponds to the JSON property `results`
|
135
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
136
|
+
attr_accessor :results
|
137
|
+
|
138
|
+
def initialize(**args)
|
139
|
+
update!(**args)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Update properties of this object
|
143
|
+
def update!(**args)
|
144
|
+
@results = args[:results] if args.key?(:results)
|
310
145
|
end
|
311
146
|
end
|
312
147
|
|
@@ -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
|
-
#
|
339
|
-
|
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
|
171
|
+
# A list of operations that matches the specified filter in the request.
|
172
|
+
# Corresponds to the JSON property `operations`
|
173
|
+
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
174
|
+
attr_accessor :operations
|
346
175
|
|
347
|
-
#
|
348
|
-
# Corresponds to the JSON property `
|
176
|
+
# The standard List next-page token.
|
177
|
+
# Corresponds to the JSON property `nextPageToken`
|
349
178
|
# @return [String]
|
350
|
-
attr_accessor :
|
179
|
+
attr_accessor :next_page_token
|
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
|
+
@operations = args[:operations] if args.key?(:operations)
|
188
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
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
|
-
#
|
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 `
|
232
|
+
# *Output-only* Transcript text representing the words that the user spoke.
|
233
|
+
# Corresponds to the JSON property `transcript`
|
399
234
|
# @return [String]
|
400
|
-
attr_accessor :
|
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,35 @@ module Google
|
|
430
265
|
end
|
431
266
|
end
|
432
267
|
|
268
|
+
# The top-level message sent by the client for the `AsyncRecognize` method.
|
269
|
+
class AsyncRecognizeRequest
|
270
|
+
include Google::Apis::Core::Hashable
|
271
|
+
|
272
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
273
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
274
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
275
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
276
|
+
# Corresponds to the JSON property `audio`
|
277
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
278
|
+
attr_accessor :audio
|
279
|
+
|
280
|
+
# Provides information to the recognizer that specifies how to process the
|
281
|
+
# request.
|
282
|
+
# Corresponds to the JSON property `config`
|
283
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
284
|
+
attr_accessor :config
|
285
|
+
|
286
|
+
def initialize(**args)
|
287
|
+
update!(**args)
|
288
|
+
end
|
289
|
+
|
290
|
+
# Update properties of this object
|
291
|
+
def update!(**args)
|
292
|
+
@audio = args[:audio] if args.key?(:audio)
|
293
|
+
@config = args[:config] if args.key?(:config)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
433
297
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
434
298
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
435
299
|
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
@@ -466,23 +330,88 @@ module Google
|
|
466
330
|
end
|
467
331
|
end
|
468
332
|
|
469
|
-
#
|
470
|
-
|
333
|
+
# This resource represents a long-running operation that is the result of a
|
334
|
+
# network API call.
|
335
|
+
class Operation
|
471
336
|
include Google::Apis::Core::Hashable
|
472
337
|
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
|
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
|
478
345
|
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
#
|
485
|
-
|
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`
|
362
|
+
# @return [String]
|
363
|
+
attr_accessor :name
|
364
|
+
|
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
|
486
415
|
|
487
416
|
def initialize(**args)
|
488
417
|
update!(**args)
|
@@ -490,8 +419,79 @@ module Google
|
|
490
419
|
|
491
420
|
# Update properties of this object
|
492
421
|
def update!(**args)
|
493
|
-
@
|
494
|
-
@
|
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* The language of the supplied audio as a BCP-47 language tag.
|
436
|
+
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
437
|
+
# If omitted, defaults to "en-US". See
|
438
|
+
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
439
|
+
# for a list of the currently supported language codes.
|
440
|
+
# Corresponds to the JSON property `languageCode`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :language_code
|
443
|
+
|
444
|
+
# *Required* Sample rate in Hertz of the audio data sent in all
|
445
|
+
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
446
|
+
# 16000 is optimal. For best results, set the sampling rate of the audio
|
447
|
+
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
448
|
+
# the audio source (instead of re-sampling).
|
449
|
+
# Corresponds to the JSON property `sampleRate`
|
450
|
+
# @return [Fixnum]
|
451
|
+
attr_accessor :sample_rate
|
452
|
+
|
453
|
+
# *Optional* If set to `true`, the server will attempt to filter out
|
454
|
+
# profanities, replacing all but the initial character in each filtered word
|
455
|
+
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
456
|
+
# won't be filtered out.
|
457
|
+
# Corresponds to the JSON property `profanityFilter`
|
458
|
+
# @return [Boolean]
|
459
|
+
attr_accessor :profanity_filter
|
460
|
+
alias_method :profanity_filter?, :profanity_filter
|
461
|
+
|
462
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
463
|
+
# in the results.
|
464
|
+
# Corresponds to the JSON property `speechContext`
|
465
|
+
# @return [Google::Apis::SpeechV1beta1::SpeechContext]
|
466
|
+
attr_accessor :speech_context
|
467
|
+
|
468
|
+
# *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
|
469
|
+
# Corresponds to the JSON property `encoding`
|
470
|
+
# @return [String]
|
471
|
+
attr_accessor :encoding
|
472
|
+
|
473
|
+
# *Optional* Maximum number of recognition hypotheses to be returned.
|
474
|
+
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
475
|
+
# within each `SpeechRecognitionResult`.
|
476
|
+
# The server may return fewer than `max_alternatives`.
|
477
|
+
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
|
478
|
+
# one. If omitted, will return a maximum of one.
|
479
|
+
# Corresponds to the JSON property `maxAlternatives`
|
480
|
+
# @return [Fixnum]
|
481
|
+
attr_accessor :max_alternatives
|
482
|
+
|
483
|
+
def initialize(**args)
|
484
|
+
update!(**args)
|
485
|
+
end
|
486
|
+
|
487
|
+
# Update properties of this object
|
488
|
+
def update!(**args)
|
489
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
490
|
+
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
491
|
+
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
492
|
+
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
493
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
494
|
+
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
|
495
495
|
end
|
496
496
|
end
|
497
497
|
end
|