| | 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 | |
|
| | 10 | | namespace Azure.AI.TextAnalytics.Models |
| | 11 | | { |
| | 12 | | /// <summary> Contains an input document to be analyzed by the service. </summary> |
| | 13 | | internal partial class MultiLanguageInput |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of MultiLanguageInput. </summary> |
| | 16 | | /// <param name="id"> A unique, non-empty document identifier. </param> |
| | 17 | | /// <param name="text"> The input text to process. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="text"/> is null. </excepti |
| 0 | 19 | | public MultiLanguageInput(string id, string text) |
| | 20 | | { |
| 0 | 21 | | if (id == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(id)); |
| | 24 | | } |
| 0 | 25 | | if (text == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(text)); |
| | 28 | | } |
| | 29 | |
|
| 0 | 30 | | Id = id; |
| 0 | 31 | | Text = text; |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> A unique, non-empty document identifier. </summary> |
| 0 | 35 | | public string Id { get; } |
| | 36 | | /// <summary> The input text to process. </summary> |
| 0 | 37 | | public string Text { get; } |
| | 38 | | /// <summary> (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en& |
| 0 | 39 | | public string Language { get; set; } |
| | 40 | | } |
| | 41 | | } |