|   |  | 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 DocumentSentiment. </summary> | 
|   |  | 16 |  |     internal partial class DocumentSentiment | 
|   |  | 17 |  |     { | 
|   |  | 18 |  |         /// <summary> Initializes a new instance of DocumentSentiment. </summary> | 
|   |  | 19 |  |         /// <param name="id"> Unique, non-empty document identifier. </param> | 
|   |  | 20 |  |         /// <param name="sentiment"> Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). </param> | 
|   |  | 21 |  |         /// <param name="confidenceScores"> Document level sentiment confidence scores between 0 and 1 for each sentimen | 
|   |  | 22 |  |         /// <param name="sentences"> Sentence level sentiment analysis. </param> | 
|   |  | 23 |  |         /// <param name="warnings"> Warnings encountered while processing document. </param> | 
|   |  | 24 |  |         /// <exception cref="ArgumentNullException"> <paramref name="id"/>, <paramref name="confidenceScores"/>, <paramr | 
|   | 0 | 25 |  |         internal DocumentSentiment(string id, DocumentSentimentValue sentiment, SentimentConfidenceScorePerLabel confide | 
|   |  | 26 |  |         { | 
|   | 0 | 27 |  |             if (id == null) | 
|   |  | 28 |  |             { | 
|   | 0 | 29 |  |                 throw new ArgumentNullException(nameof(id)); | 
|   |  | 30 |  |             } | 
|   | 0 | 31 |  |             if (confidenceScores == null) | 
|   |  | 32 |  |             { | 
|   | 0 | 33 |  |                 throw new ArgumentNullException(nameof(confidenceScores)); | 
|   |  | 34 |  |             } | 
|   | 0 | 35 |  |             if (sentences == null) | 
|   |  | 36 |  |             { | 
|   | 0 | 37 |  |                 throw new ArgumentNullException(nameof(sentences)); | 
|   |  | 38 |  |             } | 
|   | 0 | 39 |  |             if (warnings == null) | 
|   |  | 40 |  |             { | 
|   | 0 | 41 |  |                 throw new ArgumentNullException(nameof(warnings)); | 
|   |  | 42 |  |             } | 
|   |  | 43 |  |  | 
|   | 0 | 44 |  |             Id = id; | 
|   | 0 | 45 |  |             Sentiment = sentiment; | 
|   | 0 | 46 |  |             ConfidenceScores = confidenceScores; | 
|   | 0 | 47 |  |             Sentences = sentences.ToList(); | 
|   | 0 | 48 |  |             Warnings = warnings.ToList(); | 
|   | 0 | 49 |  |         } | 
|   |  | 50 |  |  | 
|   |  | 51 |  |         /// <summary> Initializes a new instance of DocumentSentiment. </summary> | 
|   |  | 52 |  |         /// <param name="id"> Unique, non-empty document identifier. </param> | 
|   |  | 53 |  |         /// <param name="sentiment"> Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). </param> | 
|   |  | 54 |  |         /// <param name="statistics"> if showStats=true was specified in the request this field will contain information | 
|   |  | 55 |  |         /// <param name="confidenceScores"> Document level sentiment confidence scores between 0 and 1 for each sentimen | 
|   |  | 56 |  |         /// <param name="sentences"> Sentence level sentiment analysis. </param> | 
|   |  | 57 |  |         /// <param name="warnings"> Warnings encountered while processing document. </param> | 
|   | 0 | 58 |  |         internal DocumentSentiment(string id, DocumentSentimentValue sentiment, TextDocumentStatistics? statistics, Sent | 
|   |  | 59 |  |         { | 
|   | 0 | 60 |  |             Id = id; | 
|   | 0 | 61 |  |             Sentiment = sentiment; | 
|   | 0 | 62 |  |             Statistics = statistics; | 
|   | 0 | 63 |  |             ConfidenceScores = confidenceScores; | 
|   | 0 | 64 |  |             Sentences = sentences; | 
|   | 0 | 65 |  |             Warnings = warnings; | 
|   | 0 | 66 |  |         } | 
|   |  | 67 |  |  | 
|   |  | 68 |  |         /// <summary> Unique, non-empty document identifier. </summary> | 
|   | 0 | 69 |  |         public string Id { get; } | 
|   |  | 70 |  |         /// <summary> Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). </summary> | 
|   | 0 | 71 |  |         public DocumentSentimentValue Sentiment { get; } | 
|   |  | 72 |  |         /// <summary> if showStats=true was specified in the request this field will contain information about the docum | 
|   | 0 | 73 |  |         public TextDocumentStatistics? Statistics { get; } | 
|   |  | 74 |  |         /// <summary> Document level sentiment confidence scores between 0 and 1 for each sentiment class. </summary> | 
|   | 0 | 75 |  |         public SentimentConfidenceScorePerLabel ConfidenceScores { get; } | 
|   |  | 76 |  |         /// <summary> Sentence level sentiment analysis. </summary> | 
|   | 0 | 77 |  |         public IReadOnlyList<SentenceSentiment> Sentences { get; } | 
|   |  | 78 |  |         /// <summary> Warnings encountered while processing document. </summary> | 
|   | 0 | 79 |  |         public IReadOnlyList<TextAnalyticsWarning_internal> Warnings { get; } | 
|   |  | 80 |  |     } | 
|   |  | 81 |  | } |