google-cloud-speech-v1 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/speech/v1/adaptation/client.rb +1347 -0
- data/lib/google/cloud/speech/v1/adaptation/credentials.rb +51 -0
- data/lib/google/cloud/speech/v1/adaptation/paths.rb +88 -0
- data/lib/google/cloud/speech/v1/adaptation.rb +49 -0
- data/lib/google/cloud/speech/v1/cloud_speech_adaptation_pb.rb +86 -0
- data/lib/google/cloud/speech/v1/cloud_speech_adaptation_services_pb.rb +65 -0
- data/lib/google/cloud/speech/v1/version.rb +1 -1
- data/lib/google/cloud/speech/v1.rb +1 -0
- data/proto_docs/google/cloud/speech/v1/cloud_speech.rb +28 -23
- data/proto_docs/google/cloud/speech/v1/cloud_speech_adaptation.rb +268 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +10 -2
@@ -0,0 +1,268 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Speech
|
23
|
+
module V1
|
24
|
+
# Message sent by the client for the `CreatePhraseSet` method.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The parent resource where this phrase set will be created. Format:
|
28
|
+
#
|
29
|
+
# `projects/{project}/locations/{location}/phraseSets`
|
30
|
+
#
|
31
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
32
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
33
|
+
# endpoint, use the `global` location. To specify a region, use a
|
34
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
35
|
+
# with matching `us` or `eu` location value.
|
36
|
+
# @!attribute [rw] phrase_set_id
|
37
|
+
# @return [::String]
|
38
|
+
# Required. The ID to use for the phrase set, which will become the final
|
39
|
+
# component of the phrase set's resource name.
|
40
|
+
#
|
41
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
42
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
43
|
+
# @!attribute [rw] phrase_set
|
44
|
+
# @return [::Google::Cloud::Speech::V1::PhraseSet]
|
45
|
+
# Required. The phrase set to create.
|
46
|
+
class CreatePhraseSetRequest
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
end
|
50
|
+
|
51
|
+
# Message sent by the client for the `UpdatePhraseSet` method.
|
52
|
+
# @!attribute [rw] phrase_set
|
53
|
+
# @return [::Google::Cloud::Speech::V1::PhraseSet]
|
54
|
+
# Required. The phrase set to update.
|
55
|
+
#
|
56
|
+
# The phrase set's `name` field is used to identify the set to be
|
57
|
+
# updated. Format:
|
58
|
+
#
|
59
|
+
# `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
|
60
|
+
#
|
61
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
62
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
63
|
+
# endpoint, use the `global` location. To specify a region, use a
|
64
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
65
|
+
# with matching `us` or `eu` location value.
|
66
|
+
# @!attribute [rw] update_mask
|
67
|
+
# @return [::Google::Protobuf::FieldMask]
|
68
|
+
# The list of fields to be updated.
|
69
|
+
class UpdatePhraseSetRequest
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# Message sent by the client for the `GetPhraseSet` method.
|
75
|
+
# @!attribute [rw] name
|
76
|
+
# @return [::String]
|
77
|
+
# Required. The name of the phrase set to retrieve. Format:
|
78
|
+
#
|
79
|
+
# `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
|
80
|
+
#
|
81
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
82
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
83
|
+
# endpoint, use the `global` location. To specify a region, use a
|
84
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
85
|
+
# with matching `us` or `eu` location value.
|
86
|
+
class GetPhraseSetRequest
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
90
|
+
|
91
|
+
# Message sent by the client for the `ListPhraseSet` method.
|
92
|
+
# @!attribute [rw] parent
|
93
|
+
# @return [::String]
|
94
|
+
# Required. The parent, which owns this collection of phrase set. Format:
|
95
|
+
#
|
96
|
+
# `projects/{project}/locations/{location}`
|
97
|
+
#
|
98
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
99
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
100
|
+
# endpoint, use the `global` location. To specify a region, use a
|
101
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
102
|
+
# with matching `us` or `eu` location value.
|
103
|
+
# @!attribute [rw] page_size
|
104
|
+
# @return [::Integer]
|
105
|
+
# The maximum number of phrase sets to return. The service may return
|
106
|
+
# fewer than this value. If unspecified, at most 50 phrase sets will be
|
107
|
+
# returned. The maximum value is 1000; values above 1000 will be coerced to
|
108
|
+
# 1000.
|
109
|
+
# @!attribute [rw] page_token
|
110
|
+
# @return [::String]
|
111
|
+
# A page token, received from a previous `ListPhraseSet` call.
|
112
|
+
# Provide this to retrieve the subsequent page.
|
113
|
+
#
|
114
|
+
# When paginating, all other parameters provided to `ListPhraseSet` must
|
115
|
+
# match the call that provided the page token.
|
116
|
+
class ListPhraseSetRequest
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
|
121
|
+
# Message returned to the client by the `ListPhraseSet` method.
|
122
|
+
# @!attribute [rw] phrase_sets
|
123
|
+
# @return [::Array<::Google::Cloud::Speech::V1::PhraseSet>]
|
124
|
+
# The phrase set.
|
125
|
+
# @!attribute [rw] next_page_token
|
126
|
+
# @return [::String]
|
127
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
128
|
+
# If this field is omitted, there are no subsequent pages.
|
129
|
+
class ListPhraseSetResponse
|
130
|
+
include ::Google::Protobuf::MessageExts
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
|
+
end
|
133
|
+
|
134
|
+
# Message sent by the client for the `DeletePhraseSet` method.
|
135
|
+
# @!attribute [rw] name
|
136
|
+
# @return [::String]
|
137
|
+
# Required. The name of the phrase set to delete. Format:
|
138
|
+
#
|
139
|
+
# `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
|
140
|
+
class DeletePhraseSetRequest
|
141
|
+
include ::Google::Protobuf::MessageExts
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
|
+
end
|
144
|
+
|
145
|
+
# Message sent by the client for the `CreateCustomClass` method.
|
146
|
+
# @!attribute [rw] parent
|
147
|
+
# @return [::String]
|
148
|
+
# Required. The parent resource where this custom class will be created. Format:
|
149
|
+
#
|
150
|
+
# `projects/{project}/locations/{location}/customClasses`
|
151
|
+
#
|
152
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
153
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
154
|
+
# endpoint, use the `global` location. To specify a region, use a
|
155
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
156
|
+
# with matching `us` or `eu` location value.
|
157
|
+
# @!attribute [rw] custom_class_id
|
158
|
+
# @return [::String]
|
159
|
+
# Required. The ID to use for the custom class, which will become the final
|
160
|
+
# component of the custom class' resource name.
|
161
|
+
#
|
162
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
163
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
164
|
+
# @!attribute [rw] custom_class
|
165
|
+
# @return [::Google::Cloud::Speech::V1::CustomClass]
|
166
|
+
# Required. The custom class to create.
|
167
|
+
class CreateCustomClassRequest
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
|
172
|
+
# Message sent by the client for the `UpdateCustomClass` method.
|
173
|
+
# @!attribute [rw] custom_class
|
174
|
+
# @return [::Google::Cloud::Speech::V1::CustomClass]
|
175
|
+
# Required. The custom class to update.
|
176
|
+
#
|
177
|
+
# The custom class's `name` field is used to identify the custom class to be
|
178
|
+
# updated. Format:
|
179
|
+
#
|
180
|
+
# `projects/{project}/locations/{location}/customClasses/{custom_class}`
|
181
|
+
#
|
182
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
183
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
184
|
+
# endpoint, use the `global` location. To specify a region, use a
|
185
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
186
|
+
# with matching `us` or `eu` location value.
|
187
|
+
# @!attribute [rw] update_mask
|
188
|
+
# @return [::Google::Protobuf::FieldMask]
|
189
|
+
# The list of fields to be updated.
|
190
|
+
class UpdateCustomClassRequest
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
|
+
end
|
194
|
+
|
195
|
+
# Message sent by the client for the `GetCustomClass` method.
|
196
|
+
# @!attribute [rw] name
|
197
|
+
# @return [::String]
|
198
|
+
# Required. The name of the custom class to retrieve. Format:
|
199
|
+
#
|
200
|
+
# `projects/{project}/locations/{location}/customClasses/{custom_class}`
|
201
|
+
class GetCustomClassRequest
|
202
|
+
include ::Google::Protobuf::MessageExts
|
203
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
204
|
+
end
|
205
|
+
|
206
|
+
# Message sent by the client for the `ListCustomClasses` method.
|
207
|
+
# @!attribute [rw] parent
|
208
|
+
# @return [::String]
|
209
|
+
# Required. The parent, which owns this collection of custom classes. Format:
|
210
|
+
#
|
211
|
+
# `projects/{project}/locations/{location}/customClasses`
|
212
|
+
#
|
213
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
214
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
215
|
+
# endpoint, use the `global` location. To specify a region, use a
|
216
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
217
|
+
# with matching `us` or `eu` location value.
|
218
|
+
# @!attribute [rw] page_size
|
219
|
+
# @return [::Integer]
|
220
|
+
# The maximum number of custom classes to return. The service may return
|
221
|
+
# fewer than this value. If unspecified, at most 50 custom classes will be
|
222
|
+
# returned. The maximum value is 1000; values above 1000 will be coerced to
|
223
|
+
# 1000.
|
224
|
+
# @!attribute [rw] page_token
|
225
|
+
# @return [::String]
|
226
|
+
# A page token, received from a previous `ListCustomClass` call.
|
227
|
+
# Provide this to retrieve the subsequent page.
|
228
|
+
#
|
229
|
+
# When paginating, all other parameters provided to `ListCustomClass` must
|
230
|
+
# match the call that provided the page token.
|
231
|
+
class ListCustomClassesRequest
|
232
|
+
include ::Google::Protobuf::MessageExts
|
233
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
234
|
+
end
|
235
|
+
|
236
|
+
# Message returned to the client by the `ListCustomClasses` method.
|
237
|
+
# @!attribute [rw] custom_classes
|
238
|
+
# @return [::Array<::Google::Cloud::Speech::V1::CustomClass>]
|
239
|
+
# The custom classes.
|
240
|
+
# @!attribute [rw] next_page_token
|
241
|
+
# @return [::String]
|
242
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
243
|
+
# If this field is omitted, there are no subsequent pages.
|
244
|
+
class ListCustomClassesResponse
|
245
|
+
include ::Google::Protobuf::MessageExts
|
246
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
247
|
+
end
|
248
|
+
|
249
|
+
# Message sent by the client for the `DeleteCustomClass` method.
|
250
|
+
# @!attribute [rw] name
|
251
|
+
# @return [::String]
|
252
|
+
# Required. The name of the custom class to delete. Format:
|
253
|
+
#
|
254
|
+
# `projects/{project}/locations/{location}/customClasses/{custom_class}`
|
255
|
+
#
|
256
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
257
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
258
|
+
# endpoint, use the `global` location. To specify a region, use a
|
259
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
260
|
+
# with matching `us` or `eu` location value.
|
261
|
+
class DeleteCustomClassRequest
|
262
|
+
include ::Google::Protobuf::MessageExts
|
263
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
@@ -0,0 +1,229 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
23
|
+
#
|
24
|
+
# paths: "f.a"
|
25
|
+
# paths: "f.b.d"
|
26
|
+
#
|
27
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
28
|
+
# fields in the message found in `f`, and `d` a field found in the
|
29
|
+
# message in `f.b`.
|
30
|
+
#
|
31
|
+
# Field masks are used to specify a subset of fields that should be
|
32
|
+
# returned by a get operation or modified by an update operation.
|
33
|
+
# Field masks also have a custom JSON encoding (see below).
|
34
|
+
#
|
35
|
+
# # Field Masks in Projections
|
36
|
+
#
|
37
|
+
# When used in the context of a projection, a response message or
|
38
|
+
# sub-message is filtered by the API to only contain those fields as
|
39
|
+
# specified in the mask. For example, if the mask in the previous
|
40
|
+
# example is applied to a response message as follows:
|
41
|
+
#
|
42
|
+
# f {
|
43
|
+
# a : 22
|
44
|
+
# b {
|
45
|
+
# d : 1
|
46
|
+
# x : 2
|
47
|
+
# }
|
48
|
+
# y : 13
|
49
|
+
# }
|
50
|
+
# z: 8
|
51
|
+
#
|
52
|
+
# The result will not contain specific values for fields x,y and z
|
53
|
+
# (their value will be set to the default, and omitted in proto text
|
54
|
+
# output):
|
55
|
+
#
|
56
|
+
#
|
57
|
+
# f {
|
58
|
+
# a : 22
|
59
|
+
# b {
|
60
|
+
# d : 1
|
61
|
+
# }
|
62
|
+
# }
|
63
|
+
#
|
64
|
+
# A repeated field is not allowed except at the last position of a
|
65
|
+
# paths string.
|
66
|
+
#
|
67
|
+
# If a FieldMask object is not present in a get operation, the
|
68
|
+
# operation applies to all fields (as if a FieldMask of all fields
|
69
|
+
# had been specified).
|
70
|
+
#
|
71
|
+
# Note that a field mask does not necessarily apply to the
|
72
|
+
# top-level response message. In case of a REST get operation, the
|
73
|
+
# field mask applies directly to the response, but in case of a REST
|
74
|
+
# list operation, the mask instead applies to each individual message
|
75
|
+
# in the returned resource list. In case of a REST custom method,
|
76
|
+
# other definitions may be used. Where the mask applies will be
|
77
|
+
# clearly documented together with its declaration in the API. In
|
78
|
+
# any case, the effect on the returned resource/resources is required
|
79
|
+
# behavior for APIs.
|
80
|
+
#
|
81
|
+
# # Field Masks in Update Operations
|
82
|
+
#
|
83
|
+
# A field mask in update operations specifies which fields of the
|
84
|
+
# targeted resource are going to be updated. The API is required
|
85
|
+
# to only change the values of the fields as specified in the mask
|
86
|
+
# and leave the others untouched. If a resource is passed in to
|
87
|
+
# describe the updated values, the API ignores the values of all
|
88
|
+
# fields not covered by the mask.
|
89
|
+
#
|
90
|
+
# If a repeated field is specified for an update operation, new values will
|
91
|
+
# be appended to the existing repeated field in the target resource. Note that
|
92
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
93
|
+
#
|
94
|
+
# If a sub-message is specified in the last position of the field mask for an
|
95
|
+
# update operation, then new value will be merged into the existing sub-message
|
96
|
+
# in the target resource.
|
97
|
+
#
|
98
|
+
# For example, given the target message:
|
99
|
+
#
|
100
|
+
# f {
|
101
|
+
# b {
|
102
|
+
# d: 1
|
103
|
+
# x: 2
|
104
|
+
# }
|
105
|
+
# c: [1]
|
106
|
+
# }
|
107
|
+
#
|
108
|
+
# And an update message:
|
109
|
+
#
|
110
|
+
# f {
|
111
|
+
# b {
|
112
|
+
# d: 10
|
113
|
+
# }
|
114
|
+
# c: [2]
|
115
|
+
# }
|
116
|
+
#
|
117
|
+
# then if the field mask is:
|
118
|
+
#
|
119
|
+
# paths: ["f.b", "f.c"]
|
120
|
+
#
|
121
|
+
# then the result will be:
|
122
|
+
#
|
123
|
+
# f {
|
124
|
+
# b {
|
125
|
+
# d: 10
|
126
|
+
# x: 2
|
127
|
+
# }
|
128
|
+
# c: [1, 2]
|
129
|
+
# }
|
130
|
+
#
|
131
|
+
# An implementation may provide options to override this default behavior for
|
132
|
+
# repeated and message fields.
|
133
|
+
#
|
134
|
+
# In order to reset a field's value to the default, the field must
|
135
|
+
# be in the mask and set to the default value in the provided resource.
|
136
|
+
# Hence, in order to reset all fields of a resource, provide a default
|
137
|
+
# instance of the resource and set all fields in the mask, or do
|
138
|
+
# not provide a mask as described below.
|
139
|
+
#
|
140
|
+
# If a field mask is not present on update, the operation applies to
|
141
|
+
# all fields (as if a field mask of all fields has been specified).
|
142
|
+
# Note that in the presence of schema evolution, this may mean that
|
143
|
+
# fields the client does not know and has therefore not filled into
|
144
|
+
# the request will be reset to their default. If this is unwanted
|
145
|
+
# behavior, a specific service may require a client to always specify
|
146
|
+
# a field mask, producing an error if not.
|
147
|
+
#
|
148
|
+
# As with get operations, the location of the resource which
|
149
|
+
# describes the updated values in the request message depends on the
|
150
|
+
# operation kind. In any case, the effect of the field mask is
|
151
|
+
# required to be honored by the API.
|
152
|
+
#
|
153
|
+
# ## Considerations for HTTP REST
|
154
|
+
#
|
155
|
+
# The HTTP kind of an update operation which uses a field mask must
|
156
|
+
# be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
157
|
+
# (PUT must only be used for full updates).
|
158
|
+
#
|
159
|
+
# # JSON Encoding of Field Masks
|
160
|
+
#
|
161
|
+
# In JSON, a field mask is encoded as a single string where paths are
|
162
|
+
# separated by a comma. Fields name in each path are converted
|
163
|
+
# to/from lower-camel naming conventions.
|
164
|
+
#
|
165
|
+
# As an example, consider the following message declarations:
|
166
|
+
#
|
167
|
+
# message Profile {
|
168
|
+
# User user = 1;
|
169
|
+
# Photo photo = 2;
|
170
|
+
# }
|
171
|
+
# message User {
|
172
|
+
# string display_name = 1;
|
173
|
+
# string address = 2;
|
174
|
+
# }
|
175
|
+
#
|
176
|
+
# In proto a field mask for `Profile` may look as such:
|
177
|
+
#
|
178
|
+
# mask {
|
179
|
+
# paths: "user.display_name"
|
180
|
+
# paths: "photo"
|
181
|
+
# }
|
182
|
+
#
|
183
|
+
# In JSON, the same mask is represented as below:
|
184
|
+
#
|
185
|
+
# {
|
186
|
+
# mask: "user.displayName,photo"
|
187
|
+
# }
|
188
|
+
#
|
189
|
+
# # Field Masks and Oneof Fields
|
190
|
+
#
|
191
|
+
# Field masks treat fields in oneofs just as regular fields. Consider the
|
192
|
+
# following message:
|
193
|
+
#
|
194
|
+
# message SampleMessage {
|
195
|
+
# oneof test_oneof {
|
196
|
+
# string name = 4;
|
197
|
+
# SubMessage sub_message = 9;
|
198
|
+
# }
|
199
|
+
# }
|
200
|
+
#
|
201
|
+
# The field mask can be:
|
202
|
+
#
|
203
|
+
# mask {
|
204
|
+
# paths: "name"
|
205
|
+
# }
|
206
|
+
#
|
207
|
+
# Or:
|
208
|
+
#
|
209
|
+
# mask {
|
210
|
+
# paths: "sub_message"
|
211
|
+
# }
|
212
|
+
#
|
213
|
+
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
214
|
+
# paths.
|
215
|
+
#
|
216
|
+
# ## Field Mask Verification
|
217
|
+
#
|
218
|
+
# The implementation of any API method which has a FieldMask type field in the
|
219
|
+
# request should verify the included field paths, and return an
|
220
|
+
# `INVALID_ARGUMENT` error if any path is unmappable.
|
221
|
+
# @!attribute [rw] paths
|
222
|
+
# @return [::Array<::String>]
|
223
|
+
# The set of field mask paths.
|
224
|
+
class FieldMask
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2022-05-
|
11
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -175,6 +175,12 @@ files:
|
|
175
175
|
- README.md
|
176
176
|
- lib/google-cloud-speech-v1.rb
|
177
177
|
- lib/google/cloud/speech/v1.rb
|
178
|
+
- lib/google/cloud/speech/v1/adaptation.rb
|
179
|
+
- lib/google/cloud/speech/v1/adaptation/client.rb
|
180
|
+
- lib/google/cloud/speech/v1/adaptation/credentials.rb
|
181
|
+
- lib/google/cloud/speech/v1/adaptation/paths.rb
|
182
|
+
- lib/google/cloud/speech/v1/cloud_speech_adaptation_pb.rb
|
183
|
+
- lib/google/cloud/speech/v1/cloud_speech_adaptation_services_pb.rb
|
178
184
|
- lib/google/cloud/speech/v1/cloud_speech_pb.rb
|
179
185
|
- lib/google/cloud/speech/v1/cloud_speech_services_pb.rb
|
180
186
|
- lib/google/cloud/speech/v1/resource_pb.rb
|
@@ -188,11 +194,13 @@ files:
|
|
188
194
|
- proto_docs/google/api/field_behavior.rb
|
189
195
|
- proto_docs/google/api/resource.rb
|
190
196
|
- proto_docs/google/cloud/speech/v1/cloud_speech.rb
|
197
|
+
- proto_docs/google/cloud/speech/v1/cloud_speech_adaptation.rb
|
191
198
|
- proto_docs/google/cloud/speech/v1/resource.rb
|
192
199
|
- proto_docs/google/longrunning/operations.rb
|
193
200
|
- proto_docs/google/protobuf/any.rb
|
194
201
|
- proto_docs/google/protobuf/duration.rb
|
195
202
|
- proto_docs/google/protobuf/empty.rb
|
203
|
+
- proto_docs/google/protobuf/field_mask.rb
|
196
204
|
- proto_docs/google/protobuf/timestamp.rb
|
197
205
|
- proto_docs/google/protobuf/wrappers.rb
|
198
206
|
- proto_docs/google/rpc/status.rb
|