140 140 | "com.amazonaws.transcribestreaming.synthetic",
|
141 141 | "StartCallAnalyticsStreamTranscriptionOutput",
|
142 142 | );
|
143 143 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
144 144 | ::aws_smithy_schema::ShapeId::from_static(
|
145 145 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$RequestId",
|
146 146 | "com.amazonaws.transcribestreaming.synthetic",
|
147 147 | "StartCallAnalyticsStreamTranscriptionOutput",
|
148 148 | ),
|
149 149 | ::aws_smithy_schema::ShapeType::String,
|
150 - | "request_id",
|
150 + | "RequestId",
|
151 151 | 0,
|
152 152 | )
|
153 153 | .with_http_header("x-amzn-request-id");
|
154 154 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
155 155 | ::aws_smithy_schema::ShapeId::from_static(
|
156 156 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$LanguageCode",
|
157 157 | "com.amazonaws.transcribestreaming.synthetic",
|
158 158 | "StartCallAnalyticsStreamTranscriptionOutput",
|
159 159 | ),
|
160 160 | ::aws_smithy_schema::ShapeType::String,
|
161 - | "language_code",
|
161 + | "LanguageCode",
|
162 162 | 1,
|
163 163 | )
|
164 164 | .with_http_header("x-amzn-transcribe-language-code");
|
165 165 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_MEDIA_SAMPLE_RATE_HERTZ: ::aws_smithy_schema::Schema =
|
166 166 | ::aws_smithy_schema::Schema::new_member(
|
167 167 | ::aws_smithy_schema::ShapeId::from_static(
|
168 168 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$MediaSampleRateHertz",
|
169 169 | "com.amazonaws.transcribestreaming.synthetic",
|
170 170 | "StartCallAnalyticsStreamTranscriptionOutput",
|
171 171 | ),
|
172 172 | ::aws_smithy_schema::ShapeType::Integer,
|
173 - | "media_sample_rate_hertz",
|
173 + | "MediaSampleRateHertz",
|
174 174 | 2,
|
175 175 | )
|
176 176 | .with_http_header("x-amzn-transcribe-sample-rate");
|
177 177 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_MEDIA_ENCODING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
178 178 | ::aws_smithy_schema::ShapeId::from_static(
|
179 179 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$MediaEncoding",
|
180 180 | "com.amazonaws.transcribestreaming.synthetic",
|
181 181 | "StartCallAnalyticsStreamTranscriptionOutput",
|
182 182 | ),
|
183 183 | ::aws_smithy_schema::ShapeType::String,
|
184 - | "media_encoding",
|
184 + | "MediaEncoding",
|
185 185 | 3,
|
186 186 | )
|
187 187 | .with_http_header("x-amzn-transcribe-media-encoding");
|
188 188 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
189 189 | ::aws_smithy_schema::ShapeId::from_static(
|
190 190 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$VocabularyName",
|
191 191 | "com.amazonaws.transcribestreaming.synthetic",
|
192 192 | "StartCallAnalyticsStreamTranscriptionOutput",
|
193 193 | ),
|
194 194 | ::aws_smithy_schema::ShapeType::String,
|
195 - | "vocabulary_name",
|
195 + | "VocabularyName",
|
196 196 | 4,
|
197 197 | )
|
198 198 | .with_http_header("x-amzn-transcribe-vocabulary-name");
|
199 199 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_SESSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
200 200 | ::aws_smithy_schema::ShapeId::from_static(
|
201 201 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$SessionId",
|
202 202 | "com.amazonaws.transcribestreaming.synthetic",
|
203 203 | "StartCallAnalyticsStreamTranscriptionOutput",
|
204 204 | ),
|
205 205 | ::aws_smithy_schema::ShapeType::String,
|
206 - | "session_id",
|
206 + | "SessionId",
|
207 207 | 5,
|
208 208 | )
|
209 209 | .with_http_header("x-amzn-transcribe-session-id");
|
210 210 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CALL_ANALYTICS_TRANSCRIPT_RESULT_STREAM: ::aws_smithy_schema::Schema =
|
211 211 | ::aws_smithy_schema::Schema::new_member(
|
212 212 | ::aws_smithy_schema::ShapeId::from_static(
|
213 213 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$CallAnalyticsTranscriptResultStream",
|
214 214 | "com.amazonaws.transcribestreaming.synthetic",
|
215 215 | "StartCallAnalyticsStreamTranscriptionOutput",
|
216 216 | ),
|
217 217 | ::aws_smithy_schema::ShapeType::Union,
|
218 - | "call_analytics_transcript_result_stream",
|
218 + | "CallAnalyticsTranscriptResultStream",
|
219 219 | 6,
|
220 220 | )
|
221 221 | .with_http_payload();
|
222 222 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_NAME: ::aws_smithy_schema::Schema =
|
223 223 | ::aws_smithy_schema::Schema::new_member(
|
224 224 | ::aws_smithy_schema::ShapeId::from_static(
|
225 225 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$VocabularyFilterName",
|
226 226 | "com.amazonaws.transcribestreaming.synthetic",
|
227 227 | "StartCallAnalyticsStreamTranscriptionOutput",
|
228 228 | ),
|
229 229 | ::aws_smithy_schema::ShapeType::String,
|
230 - | "vocabulary_filter_name",
|
230 + | "VocabularyFilterName",
|
231 231 | 7,
|
232 232 | )
|
233 233 | .with_http_header("x-amzn-transcribe-vocabulary-filter-name");
|
234 234 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_METHOD: ::aws_smithy_schema::Schema =
|
235 235 | ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$VocabularyFilterMethod",
|
238 238 | "com.amazonaws.transcribestreaming.synthetic",
|
239 239 | "StartCallAnalyticsStreamTranscriptionOutput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::String,
|
242 - | "vocabulary_filter_method",
|
242 + | "VocabularyFilterMethod",
|
243 243 | 8,
|
244 244 | )
|
245 245 | .with_http_header("x-amzn-transcribe-vocabulary-filter-method");
|
246 246 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_MODEL_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$LanguageModelName",
|
249 249 | "com.amazonaws.transcribestreaming.synthetic",
|
250 250 | "StartCallAnalyticsStreamTranscriptionOutput",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::String,
|
253 - | "language_model_name",
|
253 + | "LanguageModelName",
|
254 254 | 9,
|
255 255 | )
|
256 256 | .with_http_header("x-amzn-transcribe-language-model-name");
|
257 257 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_IDENTIFY_LANGUAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
258 258 | ::aws_smithy_schema::ShapeId::from_static(
|
259 259 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$IdentifyLanguage",
|
260 260 | "com.amazonaws.transcribestreaming.synthetic",
|
261 261 | "StartCallAnalyticsStreamTranscriptionOutput",
|
262 262 | ),
|
263 263 | ::aws_smithy_schema::ShapeType::Boolean,
|
264 - | "identify_language",
|
264 + | "IdentifyLanguage",
|
265 265 | 10,
|
266 266 | )
|
267 267 | .with_http_header("x-amzn-transcribe-identify-language");
|
268 268 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
269 269 | ::aws_smithy_schema::ShapeId::from_static(
|
270 270 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$LanguageOptions",
|
271 271 | "com.amazonaws.transcribestreaming.synthetic",
|
272 272 | "StartCallAnalyticsStreamTranscriptionOutput",
|
273 273 | ),
|
274 274 | ::aws_smithy_schema::ShapeType::String,
|
275 - | "language_options",
|
275 + | "LanguageOptions",
|
276 276 | 11,
|
277 277 | )
|
278 278 | .with_http_header("x-amzn-transcribe-language-options");
|
279 279 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PREFERRED_LANGUAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
280 280 | ::aws_smithy_schema::ShapeId::from_static(
|
281 281 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$PreferredLanguage",
|
282 282 | "com.amazonaws.transcribestreaming.synthetic",
|
283 283 | "StartCallAnalyticsStreamTranscriptionOutput",
|
284 284 | ),
|
285 285 | ::aws_smithy_schema::ShapeType::String,
|
286 - | "preferred_language",
|
286 + | "PreferredLanguage",
|
287 287 | 12,
|
288 288 | )
|
289 289 | .with_http_header("x-amzn-transcribe-preferred-language");
|
290 290 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
291 291 | ::aws_smithy_schema::ShapeId::from_static(
|
292 292 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$VocabularyNames",
|
293 293 | "com.amazonaws.transcribestreaming.synthetic",
|
294 294 | "StartCallAnalyticsStreamTranscriptionOutput",
|
295 295 | ),
|
296 296 | ::aws_smithy_schema::ShapeType::String,
|
297 - | "vocabulary_names",
|
297 + | "VocabularyNames",
|
298 298 | 13,
|
299 299 | )
|
300 300 | .with_http_header("x-amzn-transcribe-vocabulary-names");
|
301 301 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_NAMES: ::aws_smithy_schema::Schema =
|
302 302 | ::aws_smithy_schema::Schema::new_member(
|
303 303 | ::aws_smithy_schema::ShapeId::from_static(
|
304 304 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$VocabularyFilterNames",
|
305 305 | "com.amazonaws.transcribestreaming.synthetic",
|
306 306 | "StartCallAnalyticsStreamTranscriptionOutput",
|
307 307 | ),
|
308 308 | ::aws_smithy_schema::ShapeType::String,
|
309 - | "vocabulary_filter_names",
|
309 + | "VocabularyFilterNames",
|
310 310 | 14,
|
311 311 | )
|
312 312 | .with_http_header("x-amzn-transcribe-vocabulary-filter-names");
|
313 313 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_ENABLE_PARTIAL_RESULTS_STABILIZATION: ::aws_smithy_schema::Schema =
|
314 314 | ::aws_smithy_schema::Schema::new_member(
|
315 315 | ::aws_smithy_schema::ShapeId::from_static(
|
316 316 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$EnablePartialResultsStabilization",
|
317 317 | "com.amazonaws.transcribestreaming.synthetic",
|
318 318 | "StartCallAnalyticsStreamTranscriptionOutput",
|
319 319 | ),
|
320 320 | ::aws_smithy_schema::ShapeType::Boolean,
|
321 - | "enable_partial_results_stabilization",
|
321 + | "EnablePartialResultsStabilization",
|
322 322 | 15,
|
323 323 | )
|
324 324 | .with_http_header("x-amzn-transcribe-enable-partial-results-stabilization");
|
325 325 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PARTIAL_RESULTS_STABILITY: ::aws_smithy_schema::Schema =
|
326 326 | ::aws_smithy_schema::Schema::new_member(
|
327 327 | ::aws_smithy_schema::ShapeId::from_static(
|
328 328 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$PartialResultsStability",
|
329 329 | "com.amazonaws.transcribestreaming.synthetic",
|
330 330 | "StartCallAnalyticsStreamTranscriptionOutput",
|
331 331 | ),
|
332 332 | ::aws_smithy_schema::ShapeType::String,
|
333 - | "partial_results_stability",
|
333 + | "PartialResultsStability",
|
334 334 | 16,
|
335 335 | )
|
336 336 | .with_http_header("x-amzn-transcribe-partial-results-stability");
|
337 337 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CONTENT_IDENTIFICATION_TYPE: ::aws_smithy_schema::Schema =
|
338 338 | ::aws_smithy_schema::Schema::new_member(
|
339 339 | ::aws_smithy_schema::ShapeId::from_static(
|
340 340 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$ContentIdentificationType",
|
341 341 | "com.amazonaws.transcribestreaming.synthetic",
|
342 342 | "StartCallAnalyticsStreamTranscriptionOutput",
|
343 343 | ),
|
344 344 | ::aws_smithy_schema::ShapeType::String,
|
345 - | "content_identification_type",
|
345 + | "ContentIdentificationType",
|
346 346 | 17,
|
347 347 | )
|
348 348 | .with_http_header("x-amzn-transcribe-content-identification-type");
|
349 349 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CONTENT_REDACTION_TYPE: ::aws_smithy_schema::Schema =
|
350 350 | ::aws_smithy_schema::Schema::new_member(
|
351 351 | ::aws_smithy_schema::ShapeId::from_static(
|
352 352 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$ContentRedactionType",
|
353 353 | "com.amazonaws.transcribestreaming.synthetic",
|
354 354 | "StartCallAnalyticsStreamTranscriptionOutput",
|
355 355 | ),
|
356 356 | ::aws_smithy_schema::ShapeType::String,
|
357 - | "content_redaction_type",
|
357 + | "ContentRedactionType",
|
358 358 | 18,
|
359 359 | )
|
360 360 | .with_http_header("x-amzn-transcribe-content-redaction-type");
|
361 361 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PII_ENTITY_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
362 362 | ::aws_smithy_schema::ShapeId::from_static(
|
363 363 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionOutput$PiiEntityTypes",
|
364 364 | "com.amazonaws.transcribestreaming.synthetic",
|
365 365 | "StartCallAnalyticsStreamTranscriptionOutput",
|
366 366 | ),
|
367 367 | ::aws_smithy_schema::ShapeType::String,
|
368 - | "pii_entity_types",
|
368 + | "PiiEntityTypes",
|
369 369 | 19,
|
370 370 | )
|
371 371 | .with_http_header("x-amzn-transcribe-pii-entity-types");
|
372 + | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
373 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
374 + | ::aws_smithy_schema::ShapeType::String,
|
375 + | "request_id",
|
376 + | 20,
|
377 + | )
|
378 + | .with_http_header("x-amzn-requestid");
|
372 379 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
373 380 | STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_SCHEMA_ID,
|
374 381 | ::aws_smithy_schema::ShapeType::Structure,
|
375 382 | &[
|
376 383 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_REQUEST_ID,
|
377 384 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_CODE,
|
378 385 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_MEDIA_SAMPLE_RATE_HERTZ,
|
379 386 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_MEDIA_ENCODING,
|
380 387 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_NAME,
|
381 388 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_SESSION_ID,
|
382 389 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CALL_ANALYTICS_TRANSCRIPT_RESULT_STREAM,
|
383 390 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_NAME,
|
384 391 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_METHOD,
|
385 392 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_MODEL_NAME,
|
386 393 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_IDENTIFY_LANGUAGE,
|
387 394 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_OPTIONS,
|
388 395 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PREFERRED_LANGUAGE,
|
389 396 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_NAMES,
|
390 397 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_NAMES,
|
391 398 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_ENABLE_PARTIAL_RESULTS_STABILIZATION,
|
392 399 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PARTIAL_RESULTS_STABILITY,
|
393 400 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CONTENT_IDENTIFICATION_TYPE,
|
394 401 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CONTENT_REDACTION_TYPE,
|
395 402 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PII_ENTITY_TYPES,
|
403 + | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER__REQUEST_ID,
|
396 404 | ],
|
397 405 | );
|
398 406 | impl StartCallAnalyticsStreamTranscriptionOutput {
|
399 407 | /// The schema for this shape.
|
400 408 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_SCHEMA;
|
401 409 | }
|
402 410 | impl ::aws_smithy_schema::serde::SerializableStruct for StartCallAnalyticsStreamTranscriptionOutput {
|
403 411 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
404 412 | fn serialize_members(
|
405 413 | &self,
|
406 414 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
407 415 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
408 416 | if let Some(ref val) = self.request_id {
|
409 417 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_REQUEST_ID, val)?;
|
410 418 | }
|
411 419 | if let Some(ref val) = self.language_code {
|
412 420 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_CODE, val.as_str())?;
|
413 421 | }
|
414 422 | if let Some(ref val) = self.media_sample_rate_hertz {
|
415 423 | ser.write_integer(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_MEDIA_SAMPLE_RATE_HERTZ, *val)?;
|
416 424 | }
|
417 425 | if let Some(ref val) = self.media_encoding {
|
418 426 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_MEDIA_ENCODING, val.as_str())?;
|
419 427 | }
|
420 428 | if let Some(ref val) = self.vocabulary_name {
|
421 429 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_NAME, val)?;
|
422 430 | }
|
423 431 | if let Some(ref val) = self.session_id {
|
424 432 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_SESSION_ID, val)?;
|
425 433 | }
|
426 - | {
|
427 - | let val = &self.call_analytics_transcript_result_stream;
|
428 - | ser.write_null(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CALL_ANALYTICS_TRANSCRIPT_RESULT_STREAM)?;
|
429 - | }
|
430 434 | if let Some(ref val) = self.vocabulary_filter_name {
|
431 435 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_NAME, val)?;
|
432 436 | }
|
433 437 | if let Some(ref val) = self.vocabulary_filter_method {
|
434 438 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_METHOD, val.as_str())?;
|
435 439 | }
|
436 440 | if let Some(ref val) = self.language_model_name {
|
437 441 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_MODEL_NAME, val)?;
|
438 442 | }
|
439 443 | {
|
440 444 | let val = &self.identify_language;
|
441 445 | ser.write_boolean(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_IDENTIFY_LANGUAGE, *val)?;
|
442 446 | }
|
443 447 | if let Some(ref val) = self.language_options {
|
444 448 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_LANGUAGE_OPTIONS, val)?;
|
445 449 | }
|
446 450 | if let Some(ref val) = self.preferred_language {
|
447 451 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PREFERRED_LANGUAGE, val.as_str())?;
|
448 452 | }
|
449 453 | if let Some(ref val) = self.vocabulary_names {
|
450 454 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_NAMES, val)?;
|
451 455 | }
|
452 456 | if let Some(ref val) = self.vocabulary_filter_names {
|
453 457 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_VOCABULARY_FILTER_NAMES, val)?;
|
454 458 | }
|
455 459 | {
|
456 460 | let val = &self.enable_partial_results_stabilization;
|
457 461 | ser.write_boolean(
|
458 462 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_ENABLE_PARTIAL_RESULTS_STABILIZATION,
|
459 463 | *val,
|
460 464 | )?;
|
461 465 | }
|
462 466 | if let Some(ref val) = self.partial_results_stability {
|
463 467 | ser.write_string(
|
464 468 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PARTIAL_RESULTS_STABILITY,
|
465 469 | val.as_str(),
|
466 470 | )?;
|
467 471 | }
|
468 472 | if let Some(ref val) = self.content_identification_type {
|
469 473 | ser.write_string(
|
470 474 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CONTENT_IDENTIFICATION_TYPE,
|
471 475 | val.as_str(),
|
472 476 | )?;
|
473 477 | }
|
474 478 | if let Some(ref val) = self.content_redaction_type {
|
475 479 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_CONTENT_REDACTION_TYPE, val.as_str())?;
|
476 480 | }
|
477 481 | if let Some(ref val) = self.pii_entity_types {
|
478 482 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_MEMBER_PII_ENTITY_TYPES, val)?;
|
479 483 | }
|
480 484 | Ok(())
|
481 485 | }
|
482 486 | }
|
483 487 | impl StartCallAnalyticsStreamTranscriptionOutput {
|
484 488 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
485 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
486 - | deserializer: &mut D,
|
489 + | pub fn deserialize(
|
490 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
487 491 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
488 492 | #[allow(unused_variables, unused_mut)]
|
489 493 | let mut builder = Self::builder();
|
490 494 | #[allow(
|
491 495 | unused_variables,
|
492 496 | unreachable_code,
|
493 497 | clippy::single_match,
|
494 498 | clippy::match_single_binding,
|
495 499 | clippy::diverging_sub_expression
|
496 500 | )]
|
497 - | deserializer.read_struct(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_SCHEMA, (), |_, member, deser| {
|
501 + | deserializer.read_struct(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_SCHEMA, &mut |member, deser| {
|
498 502 | match member.member_index() {
|
499 503 | Some(0) => {
|
500 504 | builder.request_id = Some(deser.read_string(member)?);
|
501 505 | }
|
502 506 | Some(1) => {
|
503 507 | builder.language_code = Some(crate::types::CallAnalyticsLanguageCode::from(deser.read_string(member)?.as_str()));
|
504 508 | }
|
505 509 | Some(2) => {
|
506 510 | builder.media_sample_rate_hertz = Some(deser.read_integer(member)?);
|
507 511 | }
|
508 512 | Some(3) => {
|
509 513 | builder.media_encoding = Some(crate::types::MediaEncoding::from(deser.read_string(member)?.as_str()));
|
510 514 | }
|
511 515 | Some(4) => {
|
512 516 | builder.vocabulary_name = Some(deser.read_string(member)?);
|
513 517 | }
|
514 518 | Some(5) => {
|
515 519 | builder.session_id = Some(deser.read_string(member)?);
|
516 520 | }
|
517 521 | Some(6) => {
|
518 522 | builder.call_analytics_transcript_result_stream = Some({
|
519 523 | let _ = member;
|
520 - | todo!("deserialize aggregate")
|
524 + | todo!("deserialize streaming union")
|
521 525 | });
|
522 526 | }
|
523 527 | Some(7) => {
|
524 528 | builder.vocabulary_filter_name = Some(deser.read_string(member)?);
|
525 529 | }
|
526 530 | Some(8) => {
|
527 531 | builder.vocabulary_filter_method = Some(crate::types::VocabularyFilterMethod::from(deser.read_string(member)?.as_str()));
|
528 532 | }
|
529 533 | Some(9) => {
|
530 534 | builder.language_model_name = Some(deser.read_string(member)?);
|
531 535 | }
|
532 536 | Some(10) => {
|
533 537 | builder.identify_language = Some(deser.read_boolean(member)?);
|
534 538 | }
|
535 539 | Some(11) => {
|
536 540 | builder.language_options = Some(deser.read_string(member)?);
|
537 541 | }
|
538 542 | Some(12) => {
|
539 543 | builder.preferred_language = Some(crate::types::CallAnalyticsLanguageCode::from(deser.read_string(member)?.as_str()));
|
540 544 | }
|
541 545 | Some(13) => {
|
542 546 | builder.vocabulary_names = Some(deser.read_string(member)?);
|
543 547 | }
|
544 548 | Some(14) => {
|
545 549 | builder.vocabulary_filter_names = Some(deser.read_string(member)?);
|
546 550 | }
|
547 551 | Some(15) => {
|
548 552 | builder.enable_partial_results_stabilization = Some(deser.read_boolean(member)?);
|
549 553 | }
|
550 554 | Some(16) => {
|
551 555 | builder.partial_results_stability = Some(crate::types::PartialResultsStability::from(deser.read_string(member)?.as_str()));
|
552 556 | }
|
553 557 | Some(17) => {
|
554 558 | builder.content_identification_type = Some(crate::types::ContentIdentificationType::from(deser.read_string(member)?.as_str()));
|
555 559 | }
|
556 560 | Some(18) => {
|
557 561 | builder.content_redaction_type = Some(crate::types::ContentRedactionType::from(deser.read_string(member)?.as_str()));
|
558 562 | }
|
559 563 | Some(19) => {
|
560 564 | builder.pii_entity_types = Some(deser.read_string(member)?);
|
561 565 | }
|
566 + | Some(20) => {
|
567 + | builder._request_id = Some(deser.read_string(member)?);
|
568 + | }
|
569 + | _ => {}
|
570 + | }
|
571 + | Ok(())
|
572 + | })?;
|
573 + | builder
|
574 + | .build()
|
575 + | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
576 + | }
|
577 + | }
|
578 + | impl StartCallAnalyticsStreamTranscriptionOutput {
|
579 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
580 + | /// Header-bound members are read directly from headers, avoiding runtime
|
581 + | /// member iteration overhead. Body members are read via the deserializer.
|
582 + | pub fn deserialize_with_response(
|
583 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
584 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
585 + | _status: u16,
|
586 + | _body: &[u8],
|
587 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
588 + | #[allow(unused_variables, unused_mut)]
|
589 + | let mut builder = Self::builder();
|
590 + | if let Some(val) = headers.get("x-amzn-request-id") {
|
591 + | builder.request_id = Some(val.to_string());
|
592 + | }
|
593 + | if let Some(val) = headers.get("x-amzn-transcribe-language-code") {
|
594 + | builder.language_code = Some(crate::types::CallAnalyticsLanguageCode::from(val));
|
595 + | }
|
596 + | if let Some(val) = headers.get("x-amzn-transcribe-sample-rate") {
|
597 + | builder.media_sample_rate_hertz = val.parse::<i32>().ok();
|
598 + | }
|
599 + | if let Some(val) = headers.get("x-amzn-transcribe-media-encoding") {
|
600 + | builder.media_encoding = Some(crate::types::MediaEncoding::from(val));
|
601 + | }
|
602 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-name") {
|
603 + | builder.vocabulary_name = Some(val.to_string());
|
604 + | }
|
605 + | if let Some(val) = headers.get("x-amzn-transcribe-session-id") {
|
606 + | builder.session_id = Some(val.to_string());
|
607 + | }
|
608 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-filter-name") {
|
609 + | builder.vocabulary_filter_name = Some(val.to_string());
|
610 + | }
|
611 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-filter-method") {
|
612 + | builder.vocabulary_filter_method = Some(crate::types::VocabularyFilterMethod::from(val));
|
613 + | }
|
614 + | if let Some(val) = headers.get("x-amzn-transcribe-language-model-name") {
|
615 + | builder.language_model_name = Some(val.to_string());
|
616 + | }
|
617 + | if let Some(val) = headers.get("x-amzn-transcribe-identify-language") {
|
618 + | builder.identify_language = val.parse::<bool>().ok();
|
619 + | }
|
620 + | if let Some(val) = headers.get("x-amzn-transcribe-language-options") {
|
621 + | builder.language_options = Some(val.to_string());
|
622 + | }
|
623 + | if let Some(val) = headers.get("x-amzn-transcribe-preferred-language") {
|
624 + | builder.preferred_language = Some(crate::types::CallAnalyticsLanguageCode::from(val));
|
625 + | }
|
626 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-names") {
|
627 + | builder.vocabulary_names = Some(val.to_string());
|
628 + | }
|
629 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-filter-names") {
|
630 + | builder.vocabulary_filter_names = Some(val.to_string());
|
631 + | }
|
632 + | if let Some(val) = headers.get("x-amzn-transcribe-enable-partial-results-stabilization") {
|
633 + | builder.enable_partial_results_stabilization = val.parse::<bool>().ok();
|
634 + | }
|
635 + | if let Some(val) = headers.get("x-amzn-transcribe-partial-results-stability") {
|
636 + | builder.partial_results_stability = Some(crate::types::PartialResultsStability::from(val));
|
637 + | }
|
638 + | if let Some(val) = headers.get("x-amzn-transcribe-content-identification-type") {
|
639 + | builder.content_identification_type = Some(crate::types::ContentIdentificationType::from(val));
|
640 + | }
|
641 + | if let Some(val) = headers.get("x-amzn-transcribe-content-redaction-type") {
|
642 + | builder.content_redaction_type = Some(crate::types::ContentRedactionType::from(val));
|
643 + | }
|
644 + | if let Some(val) = headers.get("x-amzn-transcribe-pii-entity-types") {
|
645 + | builder.pii_entity_types = Some(val.to_string());
|
646 + | }
|
647 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
648 + | builder._request_id = Some(val.to_string());
|
649 + | }
|
650 + | #[allow(
|
651 + | unused_variables,
|
652 + | unreachable_code,
|
653 + | clippy::single_match,
|
654 + | clippy::match_single_binding,
|
655 + | clippy::diverging_sub_expression
|
656 + | )]
|
657 + | deserializer.read_struct(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONOUTPUT_SCHEMA, &mut |member, deser| {
|
658 + | match member.member_index() {
|
659 + | Some(0) => { /* read from headers above */ }
|
660 + | Some(1) => { /* read from headers above */ }
|
661 + | Some(2) => { /* read from headers above */ }
|
662 + | Some(3) => { /* read from headers above */ }
|
663 + | Some(4) => { /* read from headers above */ }
|
664 + | Some(5) => { /* read from headers above */ }
|
665 + | Some(6) => {
|
666 + | builder.call_analytics_transcript_result_stream = Some({
|
667 + | let _ = member;
|
668 + | todo!("deserialize streaming union")
|
669 + | });
|
670 + | }
|
671 + | Some(7) => { /* read from headers above */ }
|
672 + | Some(8) => { /* read from headers above */ }
|
673 + | Some(9) => { /* read from headers above */ }
|
674 + | Some(10) => { /* read from headers above */ }
|
675 + | Some(11) => { /* read from headers above */ }
|
676 + | Some(12) => { /* read from headers above */ }
|
677 + | Some(13) => { /* read from headers above */ }
|
678 + | Some(14) => { /* read from headers above */ }
|
679 + | Some(15) => { /* read from headers above */ }
|
680 + | Some(16) => { /* read from headers above */ }
|
681 + | Some(17) => { /* read from headers above */ }
|
682 + | Some(18) => { /* read from headers above */ }
|
683 + | Some(19) => { /* read from headers above */ }
|
562 684 | _ => {}
|
563 685 | }
|
564 686 | Ok(())
|
565 687 | })?;
|
566 688 | builder
|
567 689 | .build()
|
568 690 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
569 691 | }
|
570 692 | }
|
571 693 | impl ::aws_types::request_id::RequestId for StartCallAnalyticsStreamTranscriptionOutput {
|