google-apis-speech_v1p1beta1 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113bcf19d83bb62f06a5024851744b6c3e392bcb6ab4dcca6ad16e92e0393c72
|
4
|
+
data.tar.gz: 7d9c987afd2acd6e2f4b0627562fc0c2ea909acfff61e813e6c7e1986a02434f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe857e9138667eb02fd6129750625d124386a807bc75bb4794015da45be2c5ae7974847d08e8360ddd91bc7ba8b7c870ee149b0af318de84afd3d9cf2d0a5ca
|
7
|
+
data.tar.gz: 8c4afa1df0d2bce501ae98fd837c2c67d1c5e787bf3f94a7bf7dc8317095c9a5ed19d54c3ad565db0e07de02d2ce01840d7b2dccf06d7a8a1e68bee2b30c2e4c
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
@@ -761,6 +887,11 @@ module Google
|
|
761
887
|
# @return [Array<Google::Apis::SpeechV1p1beta1::CustomClass>]
|
762
888
|
attr_accessor :custom_classes
|
763
889
|
|
890
|
+
# A collection of phrase set resource names to use.
|
891
|
+
# Corresponds to the JSON property `phraseSetReferences`
|
892
|
+
# @return [Array<String>]
|
893
|
+
attr_accessor :phrase_set_references
|
894
|
+
|
764
895
|
# A collection of phrase sets. To specify the hints inline, leave the phrase set'
|
765
896
|
# s `name` blank and fill in the rest of its fields. Any phrase set can use any
|
766
897
|
# custom class.
|
@@ -775,6 +906,7 @@ module Google
|
|
775
906
|
# Update properties of this object
|
776
907
|
def update!(**args)
|
777
908
|
@custom_classes = args[:custom_classes] if args.key?(:custom_classes)
|
909
|
+
@phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references)
|
778
910
|
@phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
|
779
911
|
end
|
780
912
|
end
|
@@ -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.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210218"
|
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
|
|
@@ -155,6 +185,24 @@ module Google
|
|
155
185
|
end
|
156
186
|
end
|
157
187
|
|
188
|
+
class CreateCustomClassRequest
|
189
|
+
# @private
|
190
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
191
|
+
property :custom_class, as: 'customClass', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
192
|
+
|
193
|
+
property :custom_class_id, as: 'customClassId'
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class CreatePhraseSetRequest
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
property :phrase_set, as: 'phraseSet', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
201
|
+
|
202
|
+
property :phrase_set_id, as: 'phraseSetId'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
158
206
|
class CustomClass
|
159
207
|
# @private
|
160
208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -165,6 +213,21 @@ module Google
|
|
165
213
|
end
|
166
214
|
end
|
167
215
|
|
216
|
+
class Empty
|
217
|
+
# @private
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class ListCustomClassesResponse
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
226
|
+
|
227
|
+
property :next_page_token, as: 'nextPageToken'
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
168
231
|
class ListOperationsResponse
|
169
232
|
# @private
|
170
233
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -174,6 +237,15 @@ module Google
|
|
174
237
|
end
|
175
238
|
end
|
176
239
|
|
240
|
+
class ListPhraseSetResponse
|
241
|
+
# @private
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
+
property :next_page_token, as: 'nextPageToken'
|
244
|
+
collection :phrase_sets, as: 'phraseSets', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
245
|
+
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
177
249
|
class LongRunningRecognizeMetadata
|
178
250
|
# @private
|
179
251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -317,6 +389,7 @@ module Google
|
|
317
389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
318
390
|
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
319
391
|
|
392
|
+
collection :phrase_set_references, as: 'phraseSetReferences'
|
320
393
|
collection :phrase_sets, as: 'phraseSets', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
|
321
394
|
|
322
395
|
end
|
@@ -126,6 +126,354 @@ module Google
|
|
126
126
|
execute_or_queue_command(command, &block)
|
127
127
|
end
|
128
128
|
|
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.
|
164
|
+
# @param [String] name
|
165
|
+
# Required. The name of the custom class to delete. Format: `api_version`/
|
166
|
+
# projects/`project`/locations/`location`/customClasses/`custom_class`
|
167
|
+
# @param [String] fields
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
169
|
+
# @param [String] quota_user
|
170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
172
|
+
# @param [Google::Apis::RequestOptions] options
|
173
|
+
# Request-specific options
|
174
|
+
#
|
175
|
+
# @yield [result, err] Result & error if block supplied
|
176
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Empty] parsed result object
|
177
|
+
# @yieldparam err [StandardError] error object if request failed
|
178
|
+
#
|
179
|
+
# @return [Google::Apis::SpeechV1p1beta1::Empty]
|
180
|
+
#
|
181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
188
|
+
command.params['name'] = name unless name.nil?
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
|
+
execute_or_queue_command(command, &block)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Get a custom class.
|
195
|
+
# @param [String] name
|
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
|
229
|
+
# @param [Fixnum] page_size
|
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.
|
233
|
+
# @param [String] page_token
|
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.
|
237
|
+
# @param [String] fields
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
239
|
+
# @param [String] quota_user
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
243
|
+
# Request-specific options
|
244
|
+
#
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
246
|
+
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse] parsed result object
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
248
|
+
#
|
249
|
+
# @return [Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse]
|
250
|
+
#
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
295
|
+
command.params['name'] = name unless name.nil?
|
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?
|
434
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
435
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
437
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
438
|
+
execute_or_queue_command(command, &block)
|
439
|
+
end
|
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
|
+
|
129
477
|
# Performs asynchronous speech recognition: receive results via the google.
|
130
478
|
# longrunning.Operations interface. Returns either an `Operation.error` or an `
|
131
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.3.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-01 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.3.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: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.11
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Speech-to-Text API V1p1beta1
|