google-api-client 0.9.8 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- 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 +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/accounts/docs/OAuth2
|
26
26
|
module Oauth2V2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160912'
|
29
29
|
|
30
30
|
# Know the list of people in your circles, your age range, and language
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/+/domains/
|
26
26
|
module PlusDomainsV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160917'
|
29
29
|
|
30
30
|
# View your circles and the people and pages in them
|
31
31
|
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/+/api/
|
26
26
|
module PlusV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160917'
|
29
29
|
|
30
30
|
# Know the list of people in your circles, your age range, and language
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
@@ -1165,6 +1165,11 @@ module Google
|
|
1165
1165
|
# @return [Fixnum]
|
1166
1166
|
attr_accessor :solutions
|
1167
1167
|
|
1168
|
+
# IATA country code representing the point of ticketing.
|
1169
|
+
# Corresponds to the JSON property `ticketingCountry`
|
1170
|
+
# @return [String]
|
1171
|
+
attr_accessor :ticketing_country
|
1172
|
+
|
1168
1173
|
def initialize(**args)
|
1169
1174
|
update!(**args)
|
1170
1175
|
end
|
@@ -1177,6 +1182,7 @@ module Google
|
|
1177
1182
|
@sale_country = args[:sale_country] if args.key?(:sale_country)
|
1178
1183
|
@slice = args[:slice] if args.key?(:slice)
|
1179
1184
|
@solutions = args[:solutions] if args.key?(:solutions)
|
1185
|
+
@ticketing_country = args[:ticketing_country] if args.key?(:ticketing_country)
|
1180
1186
|
end
|
1181
1187
|
end
|
1182
1188
|
|
@@ -436,6 +436,7 @@ module Google
|
|
436
436
|
collection :slice, as: 'slice', class: Google::Apis::QpxExpressV1::SliceInput, decorator: Google::Apis::QpxExpressV1::SliceInput::Representation
|
437
437
|
|
438
438
|
property :solutions, as: 'solutions'
|
439
|
+
property :ticketing_country, as: 'ticketingCountry'
|
439
440
|
end
|
440
441
|
end
|
441
442
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
|
27
27
|
module ReplicapoolV1beta2
|
28
28
|
VERSION = 'V1beta2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160512'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -245,6 +245,11 @@ module Google
|
|
245
245
|
# @return [Object]
|
246
246
|
attr_accessor :result
|
247
247
|
|
248
|
+
#
|
249
|
+
# Corresponds to the JSON property `status`
|
250
|
+
# @return [String]
|
251
|
+
attr_accessor :status
|
252
|
+
|
248
253
|
def initialize(**args)
|
249
254
|
update!(**args)
|
250
255
|
end
|
@@ -252,6 +257,7 @@ module Google
|
|
252
257
|
# Update properties of this object
|
253
258
|
def update!(**args)
|
254
259
|
@result = args[:result] if args.key?(:result)
|
260
|
+
@status = args[:status] if args.key?(:status)
|
255
261
|
end
|
256
262
|
end
|
257
263
|
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/sheets/
|
26
26
|
module SheetsV4
|
27
27
|
VERSION = 'V4'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160916'
|
29
29
|
|
30
30
|
# View the files in your Google Drive
|
31
31
|
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
@@ -1972,6 +1972,8 @@ module Google
|
|
1972
1972
|
# The range the values cover, in A1 notation.
|
1973
1973
|
# For output, this range indicates the entire requested range,
|
1974
1974
|
# even though the values will exclude trailing rows and columns.
|
1975
|
+
# When appending values, this field represents the range to search for a
|
1976
|
+
# table, after which values will be appended.
|
1975
1977
|
# Corresponds to the JSON property `range`
|
1976
1978
|
# @return [String]
|
1977
1979
|
attr_accessor :range
|
@@ -2047,6 +2049,39 @@ module Google
|
|
2047
2049
|
end
|
2048
2050
|
end
|
2049
2051
|
|
2052
|
+
# The response when updating a range of values in a spreadsheet.
|
2053
|
+
class AppendValuesResponse
|
2054
|
+
include Google::Apis::Core::Hashable
|
2055
|
+
|
2056
|
+
# The spreadsheet the updates were applied to.
|
2057
|
+
# Corresponds to the JSON property `spreadsheetId`
|
2058
|
+
# @return [String]
|
2059
|
+
attr_accessor :spreadsheet_id
|
2060
|
+
|
2061
|
+
# The range (in A1 notation) of the table that values are being appended to
|
2062
|
+
# (before the values were appended).
|
2063
|
+
# Empty if no table was found.
|
2064
|
+
# Corresponds to the JSON property `tableRange`
|
2065
|
+
# @return [String]
|
2066
|
+
attr_accessor :table_range
|
2067
|
+
|
2068
|
+
# The response when updating a range of values in a spreadsheet.
|
2069
|
+
# Corresponds to the JSON property `updates`
|
2070
|
+
# @return [Google::Apis::SheetsV4::UpdateValuesResponse]
|
2071
|
+
attr_accessor :updates
|
2072
|
+
|
2073
|
+
def initialize(**args)
|
2074
|
+
update!(**args)
|
2075
|
+
end
|
2076
|
+
|
2077
|
+
# Update properties of this object
|
2078
|
+
def update!(**args)
|
2079
|
+
@spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
|
2080
|
+
@table_range = args[:table_range] if args.key?(:table_range)
|
2081
|
+
@updates = args[:updates] if args.key?(:updates)
|
2082
|
+
end
|
2083
|
+
end
|
2084
|
+
|
2050
2085
|
# The format of a cell.
|
2051
2086
|
class CellFormat
|
2052
2087
|
include Google::Apis::Core::Hashable
|
@@ -316,6 +316,12 @@ module Google
|
|
316
316
|
include Google::Apis::Core::JsonObjectSupport
|
317
317
|
end
|
318
318
|
|
319
|
+
class AppendValuesResponse
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
319
325
|
class CellFormat
|
320
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
327
|
|
@@ -1259,6 +1265,16 @@ module Google
|
|
1259
1265
|
end
|
1260
1266
|
end
|
1261
1267
|
|
1268
|
+
class AppendValuesResponse
|
1269
|
+
# @private
|
1270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1271
|
+
property :spreadsheet_id, as: 'spreadsheetId'
|
1272
|
+
property :table_range, as: 'tableRange'
|
1273
|
+
property :updates, as: 'updates', class: Google::Apis::SheetsV4::UpdateValuesResponse, decorator: Google::Apis::SheetsV4::UpdateValuesResponse::Representation
|
1274
|
+
|
1275
|
+
end
|
1276
|
+
end
|
1277
|
+
|
1262
1278
|
class CellFormat
|
1263
1279
|
# @private
|
1264
1280
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -176,6 +176,61 @@ module Google
|
|
176
176
|
execute_or_queue_command(command, &block)
|
177
177
|
end
|
178
178
|
|
179
|
+
# Appends values to a spreadsheet. The input range is used to search for
|
180
|
+
# existing data and find a "table" within that range. Values will be
|
181
|
+
# appended to the next row of the table, starting with the first column of
|
182
|
+
# the table. See the
|
183
|
+
# [guide](/sheets/guides/values#appending_values)
|
184
|
+
# and
|
185
|
+
# [sample code](/sheets/samples/writing#append_values)
|
186
|
+
# for specific details of how tables are detected and data is appended.
|
187
|
+
# The caller must specify the spreadsheet ID, range, and
|
188
|
+
# a valueInputOption. The `valueInputOption` only
|
189
|
+
# controls how the input data will be added to the sheet (column-wise or
|
190
|
+
# row-wise), it does not influence what cell the data starts being written
|
191
|
+
# to.
|
192
|
+
# @param [String] spreadsheet_id
|
193
|
+
# The ID of the spreadsheet to update.
|
194
|
+
# @param [String] range
|
195
|
+
# The A1 notation of a range to search for a logical table of data.
|
196
|
+
# Values will be appended after the last row of the table.
|
197
|
+
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
198
|
+
# @param [String] value_input_option
|
199
|
+
# How the input data should be interpreted.
|
200
|
+
# @param [String] insert_data_option
|
201
|
+
# How the input data should be inserted.
|
202
|
+
# @param [String] quota_user
|
203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
205
|
+
# @param [String] fields
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
207
|
+
# @param [Google::Apis::RequestOptions] options
|
208
|
+
# Request-specific options
|
209
|
+
#
|
210
|
+
# @yield [result, err] Result & error if block supplied
|
211
|
+
# @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
|
212
|
+
# @yieldparam err [StandardError] error object if request failed
|
213
|
+
#
|
214
|
+
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
|
215
|
+
#
|
216
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
217
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
218
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
219
|
+
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
|
220
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
221
|
+
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
222
|
+
command.request_object = value_range_object
|
223
|
+
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
|
224
|
+
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
|
225
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
226
|
+
command.params['range'] = range unless range.nil?
|
227
|
+
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
228
|
+
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
|
229
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
231
|
+
execute_or_queue_command(command, &block)
|
232
|
+
end
|
233
|
+
|
179
234
|
# Sets values in a range of a spreadsheet.
|
180
235
|
# The caller must specify the spreadsheet ID, range, and
|
181
236
|
# a valueInputOption.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/speech_v1beta1/service.rb'
|
16
|
+
require 'google/apis/speech_v1beta1/classes.rb'
|
17
|
+
require 'google/apis/speech_v1beta1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Cloud Speech API
|
22
|
+
#
|
23
|
+
# Google Cloud Speech API.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/speech/
|
26
|
+
module SpeechV1beta1
|
27
|
+
VERSION = 'V1beta1'
|
28
|
+
REVISION = '20160912'
|
29
|
+
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,521 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module SpeechV1beta1
|
24
|
+
|
25
|
+
# The `Status` type defines a logical error model that is suitable for different
|
26
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
27
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
28
|
+
# - Simple to use and understand for most users
|
29
|
+
# - Flexible enough to meet unexpected needs
|
30
|
+
# # Overview
|
31
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
32
|
+
# and error details. The error code should be an enum value of
|
33
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
34
|
+
# error message should be a developer-facing English message that helps
|
35
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
36
|
+
# error message is needed, put the localized message in the error details or
|
37
|
+
# localize it in the client. The optional error details may contain arbitrary
|
38
|
+
# information about the error. There is a predefined set of error detail types
|
39
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
40
|
+
# # Language mapping
|
41
|
+
# The `Status` message is the logical representation of the error model, but it
|
42
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
43
|
+
# exposed in different client libraries and different wire protocols, it can be
|
44
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
45
|
+
# in Java, but more likely mapped to some error codes in C.
|
46
|
+
# # Other uses
|
47
|
+
# The error model and the `Status` message can be used in a variety of
|
48
|
+
# environments, either with or without APIs, to provide a
|
49
|
+
# consistent developer experience across different environments.
|
50
|
+
# Example uses of this error model include:
|
51
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
52
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
53
|
+
# errors.
|
54
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
55
|
+
# have a `Status` message for error reporting purpose.
|
56
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
57
|
+
# `Status` message should be used directly inside batch response, one for
|
58
|
+
# each error sub-response.
|
59
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
60
|
+
# results in its response, the status of those operations should be
|
61
|
+
# represented directly using the `Status` message.
|
62
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
63
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
64
|
+
class Status
|
65
|
+
include Google::Apis::Core::Hashable
|
66
|
+
|
67
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
68
|
+
# Corresponds to the JSON property `code`
|
69
|
+
# @return [Fixnum]
|
70
|
+
attr_accessor :code
|
71
|
+
|
72
|
+
# A list of messages that carry the error details. There will be a
|
73
|
+
# common set of message types for APIs to use.
|
74
|
+
# Corresponds to the JSON property `details`
|
75
|
+
# @return [Array<Hash<String,Object>>]
|
76
|
+
attr_accessor :details
|
77
|
+
|
78
|
+
# A developer-facing error message, which should be in English. Any
|
79
|
+
# user-facing error message should be localized and sent in the
|
80
|
+
# google.rpc.Status.details field, or localized by the client.
|
81
|
+
# Corresponds to the JSON property `message`
|
82
|
+
# @return [String]
|
83
|
+
attr_accessor :message
|
84
|
+
|
85
|
+
def initialize(**args)
|
86
|
+
update!(**args)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Update properties of this object
|
90
|
+
def update!(**args)
|
91
|
+
@code = args[:code] if args.key?(:code)
|
92
|
+
@details = args[:details] if args.key?(:details)
|
93
|
+
@message = args[:message] if args.key?(:message)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
98
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
99
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
100
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
101
|
+
class RecognitionAudio
|
102
|
+
include Google::Apis::Core::Hashable
|
103
|
+
|
104
|
+
# The audio data bytes encoded as specified in
|
105
|
+
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
106
|
+
# pure binary representation, whereas JSON representations use base64.
|
107
|
+
# Corresponds to the JSON property `content`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :content
|
110
|
+
|
111
|
+
# URI that points to a file that contains audio data bytes as specified in
|
112
|
+
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
113
|
+
# supported, which must be specified in the following format:
|
114
|
+
# `gs://bucket_name/object_name` (other URI formats return
|
115
|
+
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
116
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
117
|
+
# Corresponds to the JSON property `uri`
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :uri
|
120
|
+
|
121
|
+
def initialize(**args)
|
122
|
+
update!(**args)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Update properties of this object
|
126
|
+
def update!(**args)
|
127
|
+
@content = args[:content] if args.key?(:content)
|
128
|
+
@uri = args[:uri] if args.key?(:uri)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# This resource represents a long-running operation that is the result of a
|
133
|
+
# network API call.
|
134
|
+
class Operation
|
135
|
+
include Google::Apis::Core::Hashable
|
136
|
+
|
137
|
+
# The `Status` type defines a logical error model that is suitable for different
|
138
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
139
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
140
|
+
# - Simple to use and understand for most users
|
141
|
+
# - Flexible enough to meet unexpected needs
|
142
|
+
# # Overview
|
143
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
144
|
+
# and error details. The error code should be an enum value of
|
145
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
146
|
+
# error message should be a developer-facing English message that helps
|
147
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
148
|
+
# error message is needed, put the localized message in the error details or
|
149
|
+
# localize it in the client. The optional error details may contain arbitrary
|
150
|
+
# information about the error. There is a predefined set of error detail types
|
151
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
152
|
+
# # Language mapping
|
153
|
+
# The `Status` message is the logical representation of the error model, but it
|
154
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
155
|
+
# exposed in different client libraries and different wire protocols, it can be
|
156
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
157
|
+
# in Java, but more likely mapped to some error codes in C.
|
158
|
+
# # Other uses
|
159
|
+
# The error model and the `Status` message can be used in a variety of
|
160
|
+
# environments, either with or without APIs, to provide a
|
161
|
+
# consistent developer experience across different environments.
|
162
|
+
# Example uses of this error model include:
|
163
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
164
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
165
|
+
# errors.
|
166
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
167
|
+
# have a `Status` message for error reporting purpose.
|
168
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
169
|
+
# `Status` message should be used directly inside batch response, one for
|
170
|
+
# each error sub-response.
|
171
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
172
|
+
# results in its response, the status of those operations should be
|
173
|
+
# represented directly using the `Status` message.
|
174
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
175
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
176
|
+
# Corresponds to the JSON property `error`
|
177
|
+
# @return [Google::Apis::SpeechV1beta1::Status]
|
178
|
+
attr_accessor :error
|
179
|
+
|
180
|
+
# If the value is `false`, it means the operation is still in progress.
|
181
|
+
# If true, the operation is completed, and either `error` or `response` is
|
182
|
+
# available.
|
183
|
+
# Corresponds to the JSON property `done`
|
184
|
+
# @return [Boolean]
|
185
|
+
attr_accessor :done
|
186
|
+
alias_method :done?, :done
|
187
|
+
|
188
|
+
# Service-specific metadata associated with the operation. It typically
|
189
|
+
# contains progress information and common metadata such as create time.
|
190
|
+
# Some services might not provide such metadata. Any method that returns a
|
191
|
+
# long-running operation should document the metadata type, if any.
|
192
|
+
# Corresponds to the JSON property `metadata`
|
193
|
+
# @return [Hash<String,Object>]
|
194
|
+
attr_accessor :metadata
|
195
|
+
|
196
|
+
# The normal response of the operation in case of success. If the original
|
197
|
+
# method returns no data on success, such as `Delete`, the response is
|
198
|
+
# `google.protobuf.Empty`. If the original method is standard
|
199
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
200
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
201
|
+
# is the original method name. For example, if the original method name
|
202
|
+
# is `TakeSnapshot()`, the inferred response type is
|
203
|
+
# `TakeSnapshotResponse`.
|
204
|
+
# Corresponds to the JSON property `response`
|
205
|
+
# @return [Hash<String,Object>]
|
206
|
+
attr_accessor :response
|
207
|
+
|
208
|
+
# The server-assigned name, which is only unique within the same service that
|
209
|
+
# originally returns it. If you use the default HTTP mapping, the
|
210
|
+
# `name` should have the format of `operations/some/unique/name`.
|
211
|
+
# Corresponds to the JSON property `name`
|
212
|
+
# @return [String]
|
213
|
+
attr_accessor :name
|
214
|
+
|
215
|
+
def initialize(**args)
|
216
|
+
update!(**args)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Update properties of this object
|
220
|
+
def update!(**args)
|
221
|
+
@error = args[:error] if args.key?(:error)
|
222
|
+
@done = args[:done] if args.key?(:done)
|
223
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
224
|
+
@response = args[:response] if args.key?(:response)
|
225
|
+
@name = args[:name] if args.key?(:name)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
230
|
+
class SpeechRecognitionAlternative
|
231
|
+
include Google::Apis::Core::Hashable
|
232
|
+
|
233
|
+
# [Output-only] Transcript text representing the words that the user spoke.
|
234
|
+
# Corresponds to the JSON property `transcript`
|
235
|
+
# @return [String]
|
236
|
+
attr_accessor :transcript
|
237
|
+
|
238
|
+
# [Output-only] The confidence estimate between 0.0 and 1.0. A higher number
|
239
|
+
# means the system is more confident that the recognition is correct.
|
240
|
+
# This field is typically provided only for the top hypothesis, and only for
|
241
|
+
# `is_final=true` results.
|
242
|
+
# The default of 0.0 is a sentinel value indicating confidence was not set.
|
243
|
+
# Corresponds to the JSON property `confidence`
|
244
|
+
# @return [Float]
|
245
|
+
attr_accessor :confidence
|
246
|
+
|
247
|
+
def initialize(**args)
|
248
|
+
update!(**args)
|
249
|
+
end
|
250
|
+
|
251
|
+
# Update properties of this object
|
252
|
+
def update!(**args)
|
253
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
254
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# The request message for Operations.CancelOperation.
|
259
|
+
class CancelOperationRequest
|
260
|
+
include Google::Apis::Core::Hashable
|
261
|
+
|
262
|
+
def initialize(**args)
|
263
|
+
update!(**args)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Update properties of this object
|
267
|
+
def update!(**args)
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# The `RecognitionConfig` message provides information to the recognizer
|
272
|
+
# that specifies how to process the request.
|
273
|
+
class RecognitionConfig
|
274
|
+
include Google::Apis::Core::Hashable
|
275
|
+
|
276
|
+
# [Optional] Maximum number of recognition hypotheses to be returned.
|
277
|
+
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
278
|
+
# within each `SpeechRecognitionResult`.
|
279
|
+
# The server may return fewer than `max_alternatives`.
|
280
|
+
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
|
281
|
+
# `1`. If omitted, defaults to `1`.
|
282
|
+
# Corresponds to the JSON property `maxAlternatives`
|
283
|
+
# @return [Fixnum]
|
284
|
+
attr_accessor :max_alternatives
|
285
|
+
|
286
|
+
# [Optional] The language of the supplied audio as a BCP-47 language tag.
|
287
|
+
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
288
|
+
# If omitted, defaults to "en-US". See
|
289
|
+
# [Language Support](https://cloud.google.com/speech/docs/best-practices#
|
290
|
+
# language_support)
|
291
|
+
# for a list of the currently supported language codes.
|
292
|
+
# Corresponds to the JSON property `languageCode`
|
293
|
+
# @return [String]
|
294
|
+
attr_accessor :language_code
|
295
|
+
|
296
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
297
|
+
# in the results.
|
298
|
+
# Corresponds to the JSON property `speechContext`
|
299
|
+
# @return [Google::Apis::SpeechV1beta1::SpeechContext]
|
300
|
+
attr_accessor :speech_context
|
301
|
+
|
302
|
+
# [Required] Encoding of audio data sent in all `RecognitionAudio` messages.
|
303
|
+
# Corresponds to the JSON property `encoding`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :encoding
|
306
|
+
|
307
|
+
# [Optional] If set to `true`, the server will attempt to filter out
|
308
|
+
# profanities, replacing all but the initial character in each filtered word
|
309
|
+
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
310
|
+
# won't be filtered out.
|
311
|
+
# Corresponds to the JSON property `profanityFilter`
|
312
|
+
# @return [Boolean]
|
313
|
+
attr_accessor :profanity_filter
|
314
|
+
alias_method :profanity_filter?, :profanity_filter
|
315
|
+
|
316
|
+
# [Required] Sample rate in Hertz of the audio data sent in all
|
317
|
+
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
318
|
+
# 16000 is optimal. For best results, set the sampling rate of the audio
|
319
|
+
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
320
|
+
# the audio source (instead of re-sampling).
|
321
|
+
# Corresponds to the JSON property `sampleRate`
|
322
|
+
# @return [Fixnum]
|
323
|
+
attr_accessor :sample_rate
|
324
|
+
|
325
|
+
# [Optional] The number of interleaved channels in the input audio data.
|
326
|
+
# Valid values for LINEAR16 and FLAC are `1`-`8`.
|
327
|
+
# Valid values for MULAW, AMR and AMR_WB are only `1`.
|
328
|
+
# If `0` or omitted, defaults to one channel (mono).
|
329
|
+
# Corresponds to the JSON property `audioChannels`
|
330
|
+
# @return [Fixnum]
|
331
|
+
attr_accessor :audio_channels
|
332
|
+
|
333
|
+
def initialize(**args)
|
334
|
+
update!(**args)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Update properties of this object
|
338
|
+
def update!(**args)
|
339
|
+
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
|
340
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
341
|
+
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
342
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
343
|
+
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
344
|
+
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
345
|
+
@audio_channels = args[:audio_channels] if args.key?(:audio_channels)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
# `SyncRecognizeRequest` is the top-level message sent by the client for
|
350
|
+
# the `SyncRecognize` method.
|
351
|
+
class SyncRecognizeRequest
|
352
|
+
include Google::Apis::Core::Hashable
|
353
|
+
|
354
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
355
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
356
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
357
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
358
|
+
# Corresponds to the JSON property `audio`
|
359
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
360
|
+
attr_accessor :audio
|
361
|
+
|
362
|
+
# The `RecognitionConfig` message provides information to the recognizer
|
363
|
+
# that specifies how to process the request.
|
364
|
+
# Corresponds to the JSON property `config`
|
365
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
366
|
+
attr_accessor :config
|
367
|
+
|
368
|
+
def initialize(**args)
|
369
|
+
update!(**args)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Update properties of this object
|
373
|
+
def update!(**args)
|
374
|
+
@audio = args[:audio] if args.key?(:audio)
|
375
|
+
@config = args[:config] if args.key?(:config)
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
# A speech recognition result corresponding to a portion of the audio.
|
380
|
+
class SpeechRecognitionResult
|
381
|
+
include Google::Apis::Core::Hashable
|
382
|
+
|
383
|
+
# [Output-only] May contain one or more recognition hypotheses (up to the
|
384
|
+
# maximum specified in `max_alternatives`).
|
385
|
+
# Corresponds to the JSON property `alternatives`
|
386
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative>]
|
387
|
+
attr_accessor :alternatives
|
388
|
+
|
389
|
+
def initialize(**args)
|
390
|
+
update!(**args)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Update properties of this object
|
394
|
+
def update!(**args)
|
395
|
+
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
# The response message for Operations.ListOperations.
|
400
|
+
class ListOperationsResponse
|
401
|
+
include Google::Apis::Core::Hashable
|
402
|
+
|
403
|
+
# The standard List next-page token.
|
404
|
+
# Corresponds to the JSON property `nextPageToken`
|
405
|
+
# @return [String]
|
406
|
+
attr_accessor :next_page_token
|
407
|
+
|
408
|
+
# A list of operations that matches the specified filter in the request.
|
409
|
+
# Corresponds to the JSON property `operations`
|
410
|
+
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
411
|
+
attr_accessor :operations
|
412
|
+
|
413
|
+
def initialize(**args)
|
414
|
+
update!(**args)
|
415
|
+
end
|
416
|
+
|
417
|
+
# Update properties of this object
|
418
|
+
def update!(**args)
|
419
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
420
|
+
@operations = args[:operations] if args.key?(:operations)
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
# `SyncRecognizeResponse` is the only message returned to the client by
|
425
|
+
# `SyncRecognize`. It contains the result as zero or more sequential
|
426
|
+
# `SpeechRecognitionResult` messages.
|
427
|
+
class SyncRecognizeResponse
|
428
|
+
include Google::Apis::Core::Hashable
|
429
|
+
|
430
|
+
# [Output-only] Sequential list of transcription results corresponding to
|
431
|
+
# sequential portions of audio.
|
432
|
+
# Corresponds to the JSON property `results`
|
433
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
434
|
+
attr_accessor :results
|
435
|
+
|
436
|
+
def initialize(**args)
|
437
|
+
update!(**args)
|
438
|
+
end
|
439
|
+
|
440
|
+
# Update properties of this object
|
441
|
+
def update!(**args)
|
442
|
+
@results = args[:results] if args.key?(:results)
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
447
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
448
|
+
# or the response type of an API method. For instance:
|
449
|
+
# service Foo `
|
450
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
451
|
+
# `
|
452
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
453
|
+
class Empty
|
454
|
+
include Google::Apis::Core::Hashable
|
455
|
+
|
456
|
+
def initialize(**args)
|
457
|
+
update!(**args)
|
458
|
+
end
|
459
|
+
|
460
|
+
# Update properties of this object
|
461
|
+
def update!(**args)
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
466
|
+
# in the results.
|
467
|
+
class SpeechContext
|
468
|
+
include Google::Apis::Core::Hashable
|
469
|
+
|
470
|
+
# [Optional] A list of strings containing words and phrases "hints" so that
|
471
|
+
# the speech recognition is more likely to recognize them. This can be used
|
472
|
+
# to improve the accuracy for specific words and phrases, for example, if
|
473
|
+
# specific commands are typically spoken by the user. This can also be used
|
474
|
+
# to add additional words to the vocabulary of the recognizer. See
|
475
|
+
# [usage limits](https://cloud.google.com/speech/limits#content).
|
476
|
+
# Corresponds to the JSON property `phrases`
|
477
|
+
# @return [Array<String>]
|
478
|
+
attr_accessor :phrases
|
479
|
+
|
480
|
+
def initialize(**args)
|
481
|
+
update!(**args)
|
482
|
+
end
|
483
|
+
|
484
|
+
# Update properties of this object
|
485
|
+
def update!(**args)
|
486
|
+
@phrases = args[:phrases] if args.key?(:phrases)
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
490
|
+
# `AsyncRecognizeRequest` is the top-level message sent by the client for
|
491
|
+
# the `AsyncRecognize` method.
|
492
|
+
class AsyncRecognizeRequest
|
493
|
+
include Google::Apis::Core::Hashable
|
494
|
+
|
495
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
496
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
497
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
498
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
499
|
+
# Corresponds to the JSON property `audio`
|
500
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
501
|
+
attr_accessor :audio
|
502
|
+
|
503
|
+
# The `RecognitionConfig` message provides information to the recognizer
|
504
|
+
# that specifies how to process the request.
|
505
|
+
# Corresponds to the JSON property `config`
|
506
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
507
|
+
attr_accessor :config
|
508
|
+
|
509
|
+
def initialize(**args)
|
510
|
+
update!(**args)
|
511
|
+
end
|
512
|
+
|
513
|
+
# Update properties of this object
|
514
|
+
def update!(**args)
|
515
|
+
@audio = args[:audio] if args.key?(:audio)
|
516
|
+
@config = args[:config] if args.key?(:config)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
end
|
520
|
+
end
|
521
|
+
end
|