| | 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> The LanguageInput. </summary> |
| | 13 | | internal partial class LanguageInput |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of LanguageInput. </summary> |
| | 16 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 17 | | /// <param name="text"> . </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="text"/> is null. </excepti |
| 96 | 19 | | public LanguageInput(string id, string text) |
| | 20 | | { |
| 96 | 21 | | if (id == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(id)); |
| | 24 | | } |
| 96 | 25 | | if (text == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(text)); |
| | 28 | | } |
| | 29 | |
|
| 96 | 30 | | Id = id; |
| 96 | 31 | | Text = text; |
| 96 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Unique, non-empty document identifier. </summary> |
| 160 | 35 | | public string Id { get; } |
| 96 | 36 | | public string Text { get; } |
| 288 | 37 | | public string CountryHint { get; set; } |
| | 38 | | } |
| | 39 | | } |