| | | 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 DetectedLanguage. </summary> |
| | | 13 | | internal readonly partial struct DetectedLanguage_internal |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of DetectedLanguage_internal. </summary> |
| | | 16 | | /// <param name="name"> Long name of a detected language (e.g. English, French). </param> |
| | | 17 | | /// <param name="iso6391Name"> A two letter representation of the detected language according to the ISO 639-1 s |
| | | 18 | | /// <param name="confidenceScore"> A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty |
| | | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="iso6391Name"/> is null. |
| | | 20 | | internal DetectedLanguage_internal(string name, string iso6391Name, double confidenceScore) |
| | | 21 | | { |
| | 84 | 22 | | if (name == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(name)); |
| | | 25 | | } |
| | 84 | 26 | | if (iso6391Name == null) |
| | | 27 | | { |
| | 0 | 28 | | throw new ArgumentNullException(nameof(iso6391Name)); |
| | | 29 | | } |
| | | 30 | | |
| | 84 | 31 | | Name = name; |
| | 84 | 32 | | Iso6391Name = iso6391Name; |
| | 84 | 33 | | ConfidenceScore = confidenceScore; |
| | 84 | 34 | | } |
| | | 35 | | |
| | | 36 | | /// <summary> Long name of a detected language (e.g. English, French). </summary> |
| | 84 | 37 | | public string Name { get; } |
| | | 38 | | /// <summary> A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, |
| | 84 | 39 | | public string Iso6391Name { get; } |
| | | 40 | | /// <summary> A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified |
| | 84 | 41 | | public double ConfidenceScore { get; } |
| | | 42 | | } |
| | | 43 | | } |