| | 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 DocumentLinkedEntities. </summary> |
| | 16 | | internal partial class DocumentLinkedEntities |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of DocumentLinkedEntities. </summary> |
| | 19 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 20 | | /// <param name="entities"> Recognized well-known entities in the document. </param> |
| | 21 | | /// <param name="warnings"> Warnings encountered while processing document. </param> |
| | 22 | | /// <exception cref="ArgumentNullException"> <paramref name="id"/>, <paramref name="entities"/>, or <paramref na |
| 0 | 23 | | internal DocumentLinkedEntities(string id, IEnumerable<LinkedEntity> entities, IEnumerable<TextAnalyticsWarning_ |
| | 24 | | { |
| 0 | 25 | | if (id == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(id)); |
| | 28 | | } |
| 0 | 29 | | if (entities == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(entities)); |
| | 32 | | } |
| 0 | 33 | | if (warnings == null) |
| | 34 | | { |
| 0 | 35 | | throw new ArgumentNullException(nameof(warnings)); |
| | 36 | | } |
| | 37 | |
|
| 0 | 38 | | Id = id; |
| 0 | 39 | | Entities = entities.ToList(); |
| 0 | 40 | | Warnings = warnings.ToList(); |
| 0 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> Initializes a new instance of DocumentLinkedEntities. </summary> |
| | 44 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 45 | | /// <param name="entities"> Recognized well-known entities in the document. </param> |
| | 46 | | /// <param name="warnings"> Warnings encountered while processing document. </param> |
| | 47 | | /// <param name="statistics"> if showStats=true was specified in the request this field will contain information |
| 0 | 48 | | internal DocumentLinkedEntities(string id, IReadOnlyList<LinkedEntity> entities, IReadOnlyList<TextAnalyticsWarn |
| | 49 | | { |
| 0 | 50 | | Id = id; |
| 0 | 51 | | Entities = entities; |
| 0 | 52 | | Warnings = warnings; |
| 0 | 53 | | Statistics = statistics; |
| 0 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> Unique, non-empty document identifier. </summary> |
| 0 | 57 | | public string Id { get; } |
| | 58 | | /// <summary> Recognized well-known entities in the document. </summary> |
| 0 | 59 | | public IReadOnlyList<LinkedEntity> Entities { get; } |
| | 60 | | /// <summary> Warnings encountered while processing document. </summary> |
| 0 | 61 | | public IReadOnlyList<TextAnalyticsWarning_internal> Warnings { get; } |
| | 62 | | /// <summary> if showStats=true was specified in the request this field will contain information about the docum |
| 0 | 63 | | public TextDocumentStatistics? Statistics { get; } |
| | 64 | | } |
| | 65 | | } |