| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | | using Azure.AI.TextAnalytics; |
| | 12 | |
|
| | 13 | | namespace Azure.AI.TextAnalytics.Models |
| | 14 | | { |
| | 15 | | /// <summary> The DocumentLanguage. </summary> |
| | 16 | | internal partial class DocumentLanguage |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of DocumentLanguage. </summary> |
| | 19 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 20 | | /// <param name="detectedLanguage"> Detected Language. </param> |
| | 21 | | /// <param name="warnings"> Warnings encountered while processing document. </param> |
| | 22 | | /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="warnings"/> is null. </exc |
| 0 | 23 | | internal DocumentLanguage(string id, DetectedLanguage_internal detectedLanguage, IEnumerable<TextAnalyticsWarnin |
| | 24 | | { |
| 0 | 25 | | if (id == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(id)); |
| | 28 | | } |
| 0 | 29 | | if (warnings == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(warnings)); |
| | 32 | | } |
| | 33 | |
|
| 0 | 34 | | Id = id; |
| 0 | 35 | | DetectedLanguage = detectedLanguage; |
| 0 | 36 | | Warnings = warnings.ToList(); |
| 0 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> Initializes a new instance of DocumentLanguage. </summary> |
| | 40 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 41 | | /// <param name="detectedLanguage"> Detected Language. </param> |
| | 42 | | /// <param name="warnings"> Warnings encountered while processing document. </param> |
| | 43 | | /// <param name="statistics"> if showStats=true was specified in the request this field will contain information |
| 84 | 44 | | internal DocumentLanguage(string id, DetectedLanguage_internal detectedLanguage, IReadOnlyList<TextAnalyticsWarn |
| | 45 | | { |
| 84 | 46 | | Id = id; |
| 84 | 47 | | DetectedLanguage = detectedLanguage; |
| 84 | 48 | | Warnings = warnings; |
| 84 | 49 | | Statistics = statistics; |
| 84 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> Unique, non-empty document identifier. </summary> |
| 60 | 53 | | public string Id { get; } |
| | 54 | | /// <summary> Detected Language. </summary> |
| 84 | 55 | | public DetectedLanguage_internal DetectedLanguage { get; } |
| | 56 | | /// <summary> Warnings encountered while processing document. </summary> |
| 84 | 57 | | public IReadOnlyList<TextAnalyticsWarning_internal> Warnings { get; } |
| | 58 | | /// <summary> if showStats=true was specified in the request this field will contain information about the docum |
| 60 | 59 | | public TextDocumentStatistics? Statistics { get; } |
| | 60 | | } |
| | 61 | | } |