| | 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 Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.AI.FormRecognizer.Models |
| | 13 | | { |
| | 14 | | /// <summary> Recognized field value. </summary> |
| | 15 | | internal partial class FieldValue_internal |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of FieldValue_internal. </summary> |
| | 18 | | /// <param name="type"> Type of field value. </param> |
| 0 | 19 | | internal FieldValue_internal(FieldValueType type) |
| | 20 | | { |
| 0 | 21 | | Type = type; |
| 0 | 22 | | ValueArray = new ChangeTrackingList<FieldValue_internal>(); |
| 0 | 23 | | ValueObject = new ChangeTrackingDictionary<string, FieldValue_internal>(); |
| 0 | 24 | | BoundingBox = new ChangeTrackingList<float>(); |
| 0 | 25 | | Elements = new ChangeTrackingList<string>(); |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of FieldValue_internal. </summary> |
| | 29 | | /// <param name="type"> Type of field value. </param> |
| | 30 | | /// <param name="valueString"> String value. </param> |
| | 31 | | /// <param name="valueDate"> Date value. </param> |
| | 32 | | /// <param name="valueTime"> Time value. </param> |
| | 33 | | /// <param name="valuePhoneNumber"> Phone number value. </param> |
| | 34 | | /// <param name="valueNumber"> Floating point value. </param> |
| | 35 | | /// <param name="valueInteger"> Integer value. </param> |
| | 36 | | /// <param name="valueArray"> Array of field values. </param> |
| | 37 | | /// <param name="valueObject"> Dictionary of named field values. </param> |
| | 38 | | /// <param name="text"> Text content of the extracted field. </param> |
| | 39 | | /// <param name="boundingBox"> Bounding box of the field value, if appropriate. </param> |
| | 40 | | /// <param name="confidence"> Confidence score. </param> |
| | 41 | | /// <param name="elements"> When includeTextDetails is set to true, a list of references to the text elements co |
| | 42 | | /// <param name="page"> The 1-based page number in the input document. </param> |
| 398 | 43 | | internal FieldValue_internal(FieldValueType type, string valueString, DateTimeOffset? valueDate, TimeSpan? value |
| | 44 | | { |
| 398 | 45 | | Type = type; |
| 398 | 46 | | ValueString = valueString; |
| 398 | 47 | | ValueDate = valueDate; |
| 398 | 48 | | ValueTime = valueTime; |
| 398 | 49 | | ValuePhoneNumber = valuePhoneNumber; |
| 398 | 50 | | ValueNumber = valueNumber; |
| 398 | 51 | | ValueInteger = valueInteger; |
| 398 | 52 | | ValueArray = valueArray; |
| 398 | 53 | | ValueObject = valueObject; |
| 398 | 54 | | Text = text; |
| 398 | 55 | | BoundingBox = boundingBox; |
| 398 | 56 | | Confidence = confidence; |
| 398 | 57 | | Elements = elements; |
| 398 | 58 | | Page = page; |
| 398 | 59 | | } |
| | 60 | |
|
| | 61 | | /// <summary> Type of field value. </summary> |
| 656 | 62 | | public FieldValueType Type { get; } |
| | 63 | | /// <summary> String value. </summary> |
| 56 | 64 | | public string ValueString { get; } |
| | 65 | | /// <summary> Date value. </summary> |
| 16 | 66 | | public DateTimeOffset? ValueDate { get; } |
| | 67 | | /// <summary> Time value. </summary> |
| 16 | 68 | | public TimeSpan? ValueTime { get; } |
| | 69 | | /// <summary> Phone number value. </summary> |
| 0 | 70 | | public string ValuePhoneNumber { get; } |
| | 71 | | /// <summary> Floating point value. </summary> |
| 96 | 72 | | public float? ValueNumber { get; } |
| | 73 | | /// <summary> Array of field values. </summary> |
| 8 | 74 | | public IReadOnlyList<FieldValue_internal> ValueArray { get; } |
| | 75 | | /// <summary> Dictionary of named field values. </summary> |
| 16 | 76 | | public IReadOnlyDictionary<string, FieldValue_internal> ValueObject { get; } |
| | 77 | | /// <summary> Text content of the extracted field. </summary> |
| 384 | 78 | | public string Text { get; } |
| | 79 | | /// <summary> Bounding box of the field value, if appropriate. </summary> |
| 688 | 80 | | public IReadOnlyList<float> BoundingBox { get; } |
| | 81 | | /// <summary> Confidence score. </summary> |
| 368 | 82 | | public float? Confidence { get; } |
| | 83 | | /// <summary> When includeTextDetails is set to true, a list of references to the text elements constituting thi |
| 320 | 84 | | public IReadOnlyList<string> Elements { get; } |
| | 85 | | /// <summary> The 1-based page number in the input document. </summary> |
| 368 | 86 | | public int? Page { get; } |
| | 87 | | } |
| | 88 | | } |