google-apis-speech_v1p1beta1 0.1.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83477806ed70b65708b6a114474873cfd27fc967561a8475ecc272bf6ee07fd8
|
4
|
+
data.tar.gz: 5c7d67d751f15f4a635be77fd5cf5f57aeb9862b131fdd1dfd545e6a5782b5c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bf123f0d71f86cca6a6e12cf1f9eba51cb101303ed6c9e59aeeb393627aea8b66c039883113917a5ff48b10dd19f7009ffe62fbb662a5c67c2b7d06d4822d5f
|
7
|
+
data.tar.gz: fc14922e2fd728f794f5657adfe1c8c066815828904eb765149c6716e3cef6f6b19d2eaf7e411c2cb478baae6c56eb71b167ecac92fcd0ff0a93960ee394b4b4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-speech_v1p1beta1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-03-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210318
|
6
|
+
|
7
|
+
### v0.5.0 (2021-03-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210311
|
10
|
+
* Regenerated using generator version 0.2.0
|
11
|
+
|
12
|
+
### v0.4.0 (2021-03-04)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.3.0 (2021-02-26)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210218
|
19
|
+
|
20
|
+
### v0.2.0 (2021-02-19)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210209
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -41,6 +41,63 @@ module Google
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
# Message sent by the client for the `CreateCustomClass` method.
|
45
|
+
class CreateCustomClassRequest
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
# A set of words or phrases that represents a common concept likely to appear in
|
49
|
+
# your audio, for example a list of passenger ship names. CustomClass items can
|
50
|
+
# be substituted into placeholders that you set in PhraseSet phrases.
|
51
|
+
# Corresponds to the JSON property `customClass`
|
52
|
+
# @return [Google::Apis::SpeechV1p1beta1::CustomClass]
|
53
|
+
attr_accessor :custom_class
|
54
|
+
|
55
|
+
# The ID to use for the custom class, which will become the final component of
|
56
|
+
# the custom class' resource name. This value should be 4-63 characters, and
|
57
|
+
# valid characters are /a-z-/.
|
58
|
+
# Corresponds to the JSON property `customClassId`
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :custom_class_id
|
61
|
+
|
62
|
+
def initialize(**args)
|
63
|
+
update!(**args)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Update properties of this object
|
67
|
+
def update!(**args)
|
68
|
+
@custom_class = args[:custom_class] if args.key?(:custom_class)
|
69
|
+
@custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Message sent by the client for the `CreatePhraseSet` method.
|
74
|
+
class CreatePhraseSetRequest
|
75
|
+
include Google::Apis::Core::Hashable
|
76
|
+
|
77
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
78
|
+
# in the results.
|
79
|
+
# Corresponds to the JSON property `phraseSet`
|
80
|
+
# @return [Google::Apis::SpeechV1p1beta1::PhraseSet]
|
81
|
+
attr_accessor :phrase_set
|
82
|
+
|
83
|
+
# The ID to use for the phrase set, which will become the final component of the
|
84
|
+
# phrase set's resource name. This value should be 4-63 characters, and valid
|
85
|
+
# characters are /a-z-/.
|
86
|
+
# Corresponds to the JSON property `phraseSetId`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :phrase_set_id
|
89
|
+
|
90
|
+
def initialize(**args)
|
91
|
+
update!(**args)
|
92
|
+
end
|
93
|
+
|
94
|
+
# Update properties of this object
|
95
|
+
def update!(**args)
|
96
|
+
@phrase_set = args[:phrase_set] if args.key?(:phrase_set)
|
97
|
+
@phrase_set_id = args[:phrase_set_id] if args.key?(:phrase_set_id)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
44
101
|
# A set of words or phrases that represents a common concept likely to appear in
|
45
102
|
# your audio, for example a list of passenger ship names. CustomClass items can
|
46
103
|
# be substituted into placeholders that you set in PhraseSet phrases.
|
@@ -75,6 +132,49 @@ module Google
|
|
75
132
|
end
|
76
133
|
end
|
77
134
|
|
135
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
136
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
137
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
138
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
139
|
+
# `Empty` is empty JSON object ````.
|
140
|
+
class Empty
|
141
|
+
include Google::Apis::Core::Hashable
|
142
|
+
|
143
|
+
def initialize(**args)
|
144
|
+
update!(**args)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Update properties of this object
|
148
|
+
def update!(**args)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Message returned to the client by the `ListCustomClasses` method.
|
153
|
+
class ListCustomClassesResponse
|
154
|
+
include Google::Apis::Core::Hashable
|
155
|
+
|
156
|
+
# The custom classes.
|
157
|
+
# Corresponds to the JSON property `customClasses`
|
158
|
+
# @return [Array<Google::Apis::SpeechV1p1beta1::CustomClass>]
|
159
|
+
attr_accessor :custom_classes
|
160
|
+
|
161
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
162
|
+
# field is omitted, there are no subsequent pages.
|
163
|
+
# Corresponds to the JSON property `nextPageToken`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :next_page_token
|
166
|
+
|
167
|
+
def initialize(**args)
|
168
|
+
update!(**args)
|
169
|
+
end
|
170
|
+
|
171
|
+
# Update properties of this object
|
172
|
+
def update!(**args)
|
173
|
+
@custom_classes = args[:custom_classes] if args.key?(:custom_classes)
|
174
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
78
178
|
# The response message for Operations.ListOperations.
|
79
179
|
class ListOperationsResponse
|
80
180
|
include Google::Apis::Core::Hashable
|
@@ -100,6 +200,32 @@ module Google
|
|
100
200
|
end
|
101
201
|
end
|
102
202
|
|
203
|
+
# Message returned to the client by the `ListPhraseSet` method.
|
204
|
+
class ListPhraseSetResponse
|
205
|
+
include Google::Apis::Core::Hashable
|
206
|
+
|
207
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
208
|
+
# field is omitted, there are no subsequent pages.
|
209
|
+
# Corresponds to the JSON property `nextPageToken`
|
210
|
+
# @return [String]
|
211
|
+
attr_accessor :next_page_token
|
212
|
+
|
213
|
+
# The phrase set.
|
214
|
+
# Corresponds to the JSON property `phraseSets`
|
215
|
+
# @return [Array<Google::Apis::SpeechV1p1beta1::PhraseSet>]
|
216
|
+
attr_accessor :phrase_sets
|
217
|
+
|
218
|
+
def initialize(**args)
|
219
|
+
update!(**args)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Update properties of this object
|
223
|
+
def update!(**args)
|
224
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
225
|
+
@phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
103
229
|
# Describes the progress of a long-running `LongRunningRecognize` call. It is
|
104
230
|
# included in the `metadata` field of the `Operation` returned by the `
|
105
231
|
# GetOperation` call of the `google::longrunning::Operations` service.
|
@@ -111,6 +237,11 @@ module Google
|
|
111
237
|
# @return [String]
|
112
238
|
attr_accessor :last_update_time
|
113
239
|
|
240
|
+
# Specifies an optional destination for the recognition results.
|
241
|
+
# Corresponds to the JSON property `outputConfig`
|
242
|
+
# @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]
|
243
|
+
attr_accessor :output_config
|
244
|
+
|
114
245
|
# Approximate percentage of audio processed thus far. Guaranteed to be 100 when
|
115
246
|
# the audio is fully processed and the results are available.
|
116
247
|
# Corresponds to the JSON property `progressPercent`
|
@@ -135,6 +266,7 @@ module Google
|
|
135
266
|
# Update properties of this object
|
136
267
|
def update!(**args)
|
137
268
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
269
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
138
270
|
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
|
139
271
|
@start_time = args[:start_time] if args.key?(:start_time)
|
140
272
|
@uri = args[:uri] if args.key?(:uri)
|
@@ -159,6 +291,11 @@ module Google
|
|
159
291
|
# @return [Google::Apis::SpeechV1p1beta1::RecognitionConfig]
|
160
292
|
attr_accessor :config
|
161
293
|
|
294
|
+
# Specifies an optional destination for the recognition results.
|
295
|
+
# Corresponds to the JSON property `outputConfig`
|
296
|
+
# @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]
|
297
|
+
attr_accessor :output_config
|
298
|
+
|
162
299
|
def initialize(**args)
|
163
300
|
update!(**args)
|
164
301
|
end
|
@@ -167,6 +304,7 @@ module Google
|
|
167
304
|
def update!(**args)
|
168
305
|
@audio = args[:audio] if args.key?(:audio)
|
169
306
|
@config = args[:config] if args.key?(:config)
|
307
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
170
308
|
end
|
171
309
|
end
|
172
310
|
|
@@ -178,6 +316,21 @@ module Google
|
|
178
316
|
class LongRunningRecognizeResponse
|
179
317
|
include Google::Apis::Core::Hashable
|
180
318
|
|
319
|
+
# Specifies an optional destination for the recognition results.
|
320
|
+
# Corresponds to the JSON property `outputConfig`
|
321
|
+
# @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]
|
322
|
+
attr_accessor :output_config
|
323
|
+
|
324
|
+
# The `Status` type defines a logical error model that is suitable for different
|
325
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
326
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
327
|
+
# data: error code, error message, and error details. You can find out more
|
328
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
329
|
+
# //cloud.google.com/apis/design/errors).
|
330
|
+
# Corresponds to the JSON property `outputError`
|
331
|
+
# @return [Google::Apis::SpeechV1p1beta1::Status]
|
332
|
+
attr_accessor :output_error
|
333
|
+
|
181
334
|
# Sequential list of transcription results corresponding to sequential portions
|
182
335
|
# of audio.
|
183
336
|
# Corresponds to the JSON property `results`
|
@@ -190,6 +343,8 @@ module Google
|
|
190
343
|
|
191
344
|
# Update properties of this object
|
192
345
|
def update!(**args)
|
346
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
347
|
+
@output_error = args[:output_error] if args.key?(:output_error)
|
193
348
|
@results = args[:results] if args.key?(:results)
|
194
349
|
end
|
195
350
|
end
|
@@ -761,6 +916,11 @@ module Google
|
|
761
916
|
# @return [Array<Google::Apis::SpeechV1p1beta1::CustomClass>]
|
762
917
|
attr_accessor :custom_classes
|
763
918
|
|
919
|
+
# A collection of phrase set resource names to use.
|
920
|
+
# Corresponds to the JSON property `phraseSetReferences`
|
921
|
+
# @return [Array<String>]
|
922
|
+
attr_accessor :phrase_set_references
|
923
|
+
|
764
924
|
# A collection of phrase sets. To specify the hints inline, leave the phrase set'
|
765
925
|
# s `name` blank and fill in the rest of its fields. Any phrase set can use any
|
766
926
|
# custom class.
|
@@ -775,6 +935,7 @@ module Google
|
|
775
935
|
# Update properties of this object
|
776
936
|
def update!(**args)
|
777
937
|
@custom_classes = args[:custom_classes] if args.key?(:custom_classes)
|
938
|
+
@phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references)
|
778
939
|
@phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
|
779
940
|
end
|
780
941
|
end
|
@@ -936,6 +1097,27 @@ module Google
|
|
936
1097
|
end
|
937
1098
|
end
|
938
1099
|
|
1100
|
+
# Specifies an optional destination for the recognition results.
|
1101
|
+
class TranscriptOutputConfig
|
1102
|
+
include Google::Apis::Core::Hashable
|
1103
|
+
|
1104
|
+
# Specifies a Cloud Storage URI for the recognition results. Must be specified
|
1105
|
+
# in the format: `gs://bucket_name/object_name`, and the bucket must already
|
1106
|
+
# exist.
|
1107
|
+
# Corresponds to the JSON property `gcsUri`
|
1108
|
+
# @return [String]
|
1109
|
+
attr_accessor :gcs_uri
|
1110
|
+
|
1111
|
+
def initialize(**args)
|
1112
|
+
update!(**args)
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# Update properties of this object
|
1116
|
+
def update!(**args)
|
1117
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
1118
|
+
end
|
1119
|
+
end
|
1120
|
+
|
939
1121
|
# Word-specific information for recognized words.
|
940
1122
|
class WordInfo
|
941
1123
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SpeechV1p1beta1
|
18
18
|
# Version of the google-apis-speech_v1p1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210318"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,18 +28,48 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class CreateCustomClassRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class CreatePhraseSetRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
31
43
|
class CustomClass
|
32
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
45
|
|
34
46
|
include Google::Apis::Core::JsonObjectSupport
|
35
47
|
end
|
36
48
|
|
49
|
+
class Empty
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ListCustomClassesResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
37
61
|
class ListOperationsResponse
|
38
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
63
|
|
40
64
|
include Google::Apis::Core::JsonObjectSupport
|
41
65
|
end
|
42
66
|
|
67
|
+
class ListPhraseSetResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
43
73
|
class LongRunningRecognizeMetadata
|
44
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
75
|
|
@@ -142,6 +172,12 @@ module Google
|
|
142
172
|
include Google::Apis::Core::JsonObjectSupport
|
143
173
|
end
|
144
174
|
|
175
|
+
class TranscriptOutputConfig
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
145
181
|
class WordInfo
|
146
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
183
|
|
@@ -155,6 +191,24 @@ module Google
|
|
155
191
|
end
|
156
192
|
end
|
157
193
|
|
194
|
+
class CreateCustomClassRequest
|
195
|
+
# @private
|
196
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
+
property :custom_class, as: 'customClass', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
198
|
+
|
199
|
+
property :custom_class_id, as: 'customClassId'
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
class CreatePhraseSetRequest
|
204
|
+
# @private
|
205
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
206
|
+
property :phrase_set, as: 'phraseSet', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
207
|
+
|
208
|
+
property :phrase_set_id, as: 'phraseSetId'
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
158
212
|
class CustomClass
|
159
213
|
# @private
|
160
214
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -165,6 +219,21 @@ module Google
|
|
165
219
|
end
|
166
220
|
end
|
167
221
|
|
222
|
+
class Empty
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
class ListCustomClassesResponse
|
229
|
+
# @private
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
231
|
+
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
232
|
+
|
233
|
+
property :next_page_token, as: 'nextPageToken'
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
168
237
|
class ListOperationsResponse
|
169
238
|
# @private
|
170
239
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -174,10 +243,21 @@ module Google
|
|
174
243
|
end
|
175
244
|
end
|
176
245
|
|
246
|
+
class ListPhraseSetResponse
|
247
|
+
# @private
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
249
|
+
property :next_page_token, as: 'nextPageToken'
|
250
|
+
collection :phrase_sets, as: 'phraseSets', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
251
|
+
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
177
255
|
class LongRunningRecognizeMetadata
|
178
256
|
# @private
|
179
257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
180
258
|
property :last_update_time, as: 'lastUpdateTime'
|
259
|
+
property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig::Representation
|
260
|
+
|
181
261
|
property :progress_percent, as: 'progressPercent'
|
182
262
|
property :start_time, as: 'startTime'
|
183
263
|
property :uri, as: 'uri'
|
@@ -191,12 +271,18 @@ module Google
|
|
191
271
|
|
192
272
|
property :config, as: 'config', class: Google::Apis::SpeechV1p1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1p1beta1::RecognitionConfig::Representation
|
193
273
|
|
274
|
+
property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig::Representation
|
275
|
+
|
194
276
|
end
|
195
277
|
end
|
196
278
|
|
197
279
|
class LongRunningRecognizeResponse
|
198
280
|
# @private
|
199
281
|
class Representation < Google::Apis::Core::JsonRepresentation
|
282
|
+
property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig::Representation
|
283
|
+
|
284
|
+
property :output_error, as: 'outputError', class: Google::Apis::SpeechV1p1beta1::Status, decorator: Google::Apis::SpeechV1p1beta1::Status::Representation
|
285
|
+
|
200
286
|
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
|
201
287
|
|
202
288
|
end
|
@@ -317,6 +403,7 @@ module Google
|
|
317
403
|
class Representation < Google::Apis::Core::JsonRepresentation
|
318
404
|
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
319
405
|
|
406
|
+
collection :phrase_set_references, as: 'phraseSetReferences'
|
320
407
|
collection :phrase_sets, as: 'phraseSets', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
321
408
|
|
322
409
|
end
|
@@ -359,6 +446,13 @@ module Google
|
|
359
446
|
end
|
360
447
|
end
|
361
448
|
|
449
|
+
class TranscriptOutputConfig
|
450
|
+
# @private
|
451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
452
|
+
property :gcs_uri, as: 'gcsUri'
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
362
456
|
class WordInfo
|
363
457
|
# @private
|
364
458
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -126,10 +126,44 @@ module Google
|
|
126
126
|
execute_or_queue_command(command, &block)
|
127
127
|
end
|
128
128
|
|
129
|
-
#
|
130
|
-
#
|
129
|
+
# Create a custom class.
|
130
|
+
# @param [String] parent
|
131
|
+
# Required. The parent resource where this custom class will be created. Format:
|
132
|
+
# `api_version`/projects/`project`/locations/`location`/customClasses
|
133
|
+
# @param [Google::Apis::SpeechV1p1beta1::CreateCustomClassRequest] create_custom_class_request_object
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [String] quota_user
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
140
|
+
# Request-specific options
|
141
|
+
#
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
143
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::CustomClass] parsed result object
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
145
|
+
#
|
146
|
+
# @return [Google::Apis::SpeechV1p1beta1::CustomClass]
|
147
|
+
#
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
+
def create_custom_class(parent, create_custom_class_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:post, 'v1p1beta1/{+parent}/customClasses', options)
|
153
|
+
command.request_representation = Google::Apis::SpeechV1p1beta1::CreateCustomClassRequest::Representation
|
154
|
+
command.request_object = create_custom_class_request_object
|
155
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
156
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::CustomClass
|
157
|
+
command.params['parent'] = parent unless parent.nil?
|
158
|
+
command.query['fields'] = fields unless fields.nil?
|
159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
160
|
+
execute_or_queue_command(command, &block)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Delete a custom class.
|
131
164
|
# @param [String] name
|
132
|
-
# The name of the
|
165
|
+
# Required. The name of the custom class to delete. Format: `api_version`/
|
166
|
+
# projects/`project`/locations/`location`/customClasses/`custom_class`
|
133
167
|
# @param [String] fields
|
134
168
|
# Selector specifying which fields to include in a partial response.
|
135
169
|
# @param [String] quota_user
|
@@ -139,40 +173,67 @@ module Google
|
|
139
173
|
# Request-specific options
|
140
174
|
#
|
141
175
|
# @yield [result, err] Result & error if block supplied
|
142
|
-
# @yieldparam result [Google::Apis::SpeechV1p1beta1::
|
176
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Empty] parsed result object
|
143
177
|
# @yieldparam err [StandardError] error object if request failed
|
144
178
|
#
|
145
|
-
# @return [Google::Apis::SpeechV1p1beta1::
|
179
|
+
# @return [Google::Apis::SpeechV1p1beta1::Empty]
|
146
180
|
#
|
147
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
-
def
|
151
|
-
command = make_simple_command(:
|
152
|
-
command.response_representation = Google::Apis::SpeechV1p1beta1::
|
153
|
-
command.response_class = Google::Apis::SpeechV1p1beta1::
|
184
|
+
def delete_project_location_custom_class(name, fields: nil, quota_user: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:delete, 'v1p1beta1/{+name}', options)
|
186
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::Empty::Representation
|
187
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::Empty
|
154
188
|
command.params['name'] = name unless name.nil?
|
155
189
|
command.query['fields'] = fields unless fields.nil?
|
156
190
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
191
|
execute_or_queue_command(command, &block)
|
158
192
|
end
|
159
193
|
|
160
|
-
#
|
161
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
162
|
-
# binding allows API services to override the binding to use different resource
|
163
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
164
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
165
|
-
# service configuration. For backwards compatibility, the default name includes
|
166
|
-
# the operations collection id, however overriding users must ensure the name
|
167
|
-
# binding is the parent resource, without the operations collection id.
|
194
|
+
# Get a custom class.
|
168
195
|
# @param [String] name
|
169
|
-
# The name of the
|
170
|
-
#
|
171
|
-
#
|
196
|
+
# Required. The name of the custom class to retrieve. Format: `api_version`/
|
197
|
+
# projects/`project`/locations/`location`/customClasses/`custom_class`
|
198
|
+
# @param [String] fields
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
200
|
+
# @param [String] quota_user
|
201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
+
# @param [Google::Apis::RequestOptions] options
|
204
|
+
# Request-specific options
|
205
|
+
#
|
206
|
+
# @yield [result, err] Result & error if block supplied
|
207
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::CustomClass] parsed result object
|
208
|
+
# @yieldparam err [StandardError] error object if request failed
|
209
|
+
#
|
210
|
+
# @return [Google::Apis::SpeechV1p1beta1::CustomClass]
|
211
|
+
#
|
212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
+
def get_project_location_custom_class(name, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
|
217
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
218
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::CustomClass
|
219
|
+
command.params['name'] = name unless name.nil?
|
220
|
+
command.query['fields'] = fields unless fields.nil?
|
221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
|
+
execute_or_queue_command(command, &block)
|
223
|
+
end
|
224
|
+
|
225
|
+
# List custom classes.
|
226
|
+
# @param [String] parent
|
227
|
+
# Required. The parent, which owns this collection of custom classes. Format: `
|
228
|
+
# api_version`/projects/`project`/locations/`location`/customClasses
|
172
229
|
# @param [Fixnum] page_size
|
173
|
-
# The
|
230
|
+
# The maximum number of custom classes to return. The service may return fewer
|
231
|
+
# than this value. If unspecified, at most 50 custom classes will be returned.
|
232
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
174
233
|
# @param [String] page_token
|
175
|
-
#
|
234
|
+
# A page token, received from a previous `ListCustomClass` call. Provide this to
|
235
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
236
|
+
# to `ListCustomClass` must match the call that provided the page token.
|
176
237
|
# @param [String] fields
|
177
238
|
# Selector specifying which fields to include in a partial response.
|
178
239
|
# @param [String] quota_user
|
@@ -182,20 +243,194 @@ module Google
|
|
182
243
|
# Request-specific options
|
183
244
|
#
|
184
245
|
# @yield [result, err] Result & error if block supplied
|
185
|
-
# @yieldparam result [Google::Apis::SpeechV1p1beta1::
|
246
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse] parsed result object
|
186
247
|
# @yieldparam err [StandardError] error object if request failed
|
187
248
|
#
|
188
|
-
# @return [Google::Apis::SpeechV1p1beta1::
|
249
|
+
# @return [Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse]
|
189
250
|
#
|
190
251
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
252
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
253
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
-
def
|
194
|
-
command = make_simple_command(:get, 'v1p1beta1/{+
|
195
|
-
command.response_representation = Google::Apis::SpeechV1p1beta1::
|
196
|
-
command.response_class = Google::Apis::SpeechV1p1beta1::
|
254
|
+
def list_project_location_custom_classes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
command = make_simple_command(:get, 'v1p1beta1/{+parent}/customClasses', options)
|
256
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse::Representation
|
257
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse
|
258
|
+
command.params['parent'] = parent unless parent.nil?
|
259
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
260
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
|
+
execute_or_queue_command(command, &block)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Update a custom class.
|
267
|
+
# @param [String] name
|
268
|
+
# The resource name of the custom class.
|
269
|
+
# @param [Google::Apis::SpeechV1p1beta1::CustomClass] custom_class_object
|
270
|
+
# @param [String] update_mask
|
271
|
+
# The list of fields to be updated.
|
272
|
+
# @param [String] fields
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
274
|
+
# @param [String] quota_user
|
275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::CustomClass] parsed result object
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [Google::Apis::SpeechV1p1beta1::CustomClass]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
def patch_project_location_custom_class(name, custom_class_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
290
|
+
command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
|
291
|
+
command.request_representation = Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
292
|
+
command.request_object = custom_class_object
|
293
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
294
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::CustomClass
|
197
295
|
command.params['name'] = name unless name.nil?
|
198
|
-
command.query['
|
296
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
297
|
+
command.query['fields'] = fields unless fields.nil?
|
298
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
299
|
+
execute_or_queue_command(command, &block)
|
300
|
+
end
|
301
|
+
|
302
|
+
# Create a set of phrase hints. Each item in the set can be a single word or a
|
303
|
+
# multi-word phrase. The items in the PhraseSet are favored by the recognition
|
304
|
+
# model when you send a call that includes the PhraseSet.
|
305
|
+
# @param [String] parent
|
306
|
+
# Required. The parent resource where this phrase set will be created. Format: `
|
307
|
+
# api_version`/projects/`project`/locations/`location`/phraseSets
|
308
|
+
# @param [Google::Apis::SpeechV1p1beta1::CreatePhraseSetRequest] create_phrase_set_request_object
|
309
|
+
# @param [String] fields
|
310
|
+
# Selector specifying which fields to include in a partial response.
|
311
|
+
# @param [String] quota_user
|
312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
314
|
+
# @param [Google::Apis::RequestOptions] options
|
315
|
+
# Request-specific options
|
316
|
+
#
|
317
|
+
# @yield [result, err] Result & error if block supplied
|
318
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::PhraseSet] parsed result object
|
319
|
+
# @yieldparam err [StandardError] error object if request failed
|
320
|
+
#
|
321
|
+
# @return [Google::Apis::SpeechV1p1beta1::PhraseSet]
|
322
|
+
#
|
323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
326
|
+
def create_phrase_set(parent, create_phrase_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
|
+
command = make_simple_command(:post, 'v1p1beta1/{+parent}/phraseSets', options)
|
328
|
+
command.request_representation = Google::Apis::SpeechV1p1beta1::CreatePhraseSetRequest::Representation
|
329
|
+
command.request_object = create_phrase_set_request_object
|
330
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
331
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::PhraseSet
|
332
|
+
command.params['parent'] = parent unless parent.nil?
|
333
|
+
command.query['fields'] = fields unless fields.nil?
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
execute_or_queue_command(command, &block)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Delete a phrase set.
|
339
|
+
# @param [String] name
|
340
|
+
# Required. The name of the phrase set to delete. Format: `api_version`/projects/
|
341
|
+
# `project`/locations/`location`/phraseSets/`phrase_set`
|
342
|
+
# @param [String] fields
|
343
|
+
# Selector specifying which fields to include in a partial response.
|
344
|
+
# @param [String] quota_user
|
345
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
346
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
347
|
+
# @param [Google::Apis::RequestOptions] options
|
348
|
+
# Request-specific options
|
349
|
+
#
|
350
|
+
# @yield [result, err] Result & error if block supplied
|
351
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Empty] parsed result object
|
352
|
+
# @yieldparam err [StandardError] error object if request failed
|
353
|
+
#
|
354
|
+
# @return [Google::Apis::SpeechV1p1beta1::Empty]
|
355
|
+
#
|
356
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
357
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
358
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
359
|
+
def delete_project_location_phrase_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
360
|
+
command = make_simple_command(:delete, 'v1p1beta1/{+name}', options)
|
361
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::Empty::Representation
|
362
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::Empty
|
363
|
+
command.params['name'] = name unless name.nil?
|
364
|
+
command.query['fields'] = fields unless fields.nil?
|
365
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
366
|
+
execute_or_queue_command(command, &block)
|
367
|
+
end
|
368
|
+
|
369
|
+
# Get a phrase set.
|
370
|
+
# @param [String] name
|
371
|
+
# Required. The name of the phrase set to retrieve. Format: `api_version`/
|
372
|
+
# projects/`project`/locations/`location`/phraseSets/`phrase_set`
|
373
|
+
# @param [String] fields
|
374
|
+
# Selector specifying which fields to include in a partial response.
|
375
|
+
# @param [String] quota_user
|
376
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
377
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
378
|
+
# @param [Google::Apis::RequestOptions] options
|
379
|
+
# Request-specific options
|
380
|
+
#
|
381
|
+
# @yield [result, err] Result & error if block supplied
|
382
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::PhraseSet] parsed result object
|
383
|
+
# @yieldparam err [StandardError] error object if request failed
|
384
|
+
#
|
385
|
+
# @return [Google::Apis::SpeechV1p1beta1::PhraseSet]
|
386
|
+
#
|
387
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
388
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
389
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
390
|
+
def get_project_location_phrase_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
391
|
+
command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
|
392
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
393
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::PhraseSet
|
394
|
+
command.params['name'] = name unless name.nil?
|
395
|
+
command.query['fields'] = fields unless fields.nil?
|
396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
397
|
+
execute_or_queue_command(command, &block)
|
398
|
+
end
|
399
|
+
|
400
|
+
# List phrase sets.
|
401
|
+
# @param [String] parent
|
402
|
+
# Required. The parent, which owns this collection of phrase set. Format:
|
403
|
+
# projects/`project`/locations/`location`
|
404
|
+
# @param [Fixnum] page_size
|
405
|
+
# The maximum number of phrase sets to return. The service may return fewer than
|
406
|
+
# this value. If unspecified, at most 50 phrase sets will be returned. The
|
407
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
408
|
+
# @param [String] page_token
|
409
|
+
# A page token, received from a previous `ListPhraseSet` call. Provide this to
|
410
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
411
|
+
# to `ListPhraseSet` must match the call that provided the page token.
|
412
|
+
# @param [String] fields
|
413
|
+
# Selector specifying which fields to include in a partial response.
|
414
|
+
# @param [String] quota_user
|
415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
417
|
+
# @param [Google::Apis::RequestOptions] options
|
418
|
+
# Request-specific options
|
419
|
+
#
|
420
|
+
# @yield [result, err] Result & error if block supplied
|
421
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListPhraseSetResponse] parsed result object
|
422
|
+
# @yieldparam err [StandardError] error object if request failed
|
423
|
+
#
|
424
|
+
# @return [Google::Apis::SpeechV1p1beta1::ListPhraseSetResponse]
|
425
|
+
#
|
426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
429
|
+
def list_project_location_phrase_sets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
430
|
+
command = make_simple_command(:get, 'v1p1beta1/{+parent}/phraseSets', options)
|
431
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::ListPhraseSetResponse::Representation
|
432
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::ListPhraseSetResponse
|
433
|
+
command.params['parent'] = parent unless parent.nil?
|
199
434
|
command.query['pageSize'] = page_size unless page_size.nil?
|
200
435
|
command.query['pageToken'] = page_token unless page_token.nil?
|
201
436
|
command.query['fields'] = fields unless fields.nil?
|
@@ -203,6 +438,42 @@ module Google
|
|
203
438
|
execute_or_queue_command(command, &block)
|
204
439
|
end
|
205
440
|
|
441
|
+
# Update a phrase set.
|
442
|
+
# @param [String] name
|
443
|
+
# The resource name of the phrase set.
|
444
|
+
# @param [Google::Apis::SpeechV1p1beta1::PhraseSet] phrase_set_object
|
445
|
+
# @param [String] update_mask
|
446
|
+
# The list of fields to be updated.
|
447
|
+
# @param [String] fields
|
448
|
+
# Selector specifying which fields to include in a partial response.
|
449
|
+
# @param [String] quota_user
|
450
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
451
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
452
|
+
# @param [Google::Apis::RequestOptions] options
|
453
|
+
# Request-specific options
|
454
|
+
#
|
455
|
+
# @yield [result, err] Result & error if block supplied
|
456
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::PhraseSet] parsed result object
|
457
|
+
# @yieldparam err [StandardError] error object if request failed
|
458
|
+
#
|
459
|
+
# @return [Google::Apis::SpeechV1p1beta1::PhraseSet]
|
460
|
+
#
|
461
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
462
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
463
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
464
|
+
def patch_project_location_phrase_set(name, phrase_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
465
|
+
command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
|
466
|
+
command.request_representation = Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
467
|
+
command.request_object = phrase_set_object
|
468
|
+
command.response_representation = Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
469
|
+
command.response_class = Google::Apis::SpeechV1p1beta1::PhraseSet
|
470
|
+
command.params['name'] = name unless name.nil?
|
471
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
472
|
+
command.query['fields'] = fields unless fields.nil?
|
473
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
474
|
+
execute_or_queue_command(command, &block)
|
475
|
+
end
|
476
|
+
|
206
477
|
# Performs asynchronous speech recognition: receive results via the google.
|
207
478
|
# longrunning.Operations interface. Returns either an `Operation.error` or an `
|
208
479
|
# Operation.response` which contains a `LongRunningRecognizeResponse` message.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-speech_v1p1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Speech-to-Text API V1p1beta1
|