| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Information about a token returned by an analyzer. |
| | 18 | | /// </summary> |
| | 19 | | public partial class TokenInfo |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the TokenInfo class. |
| | 23 | | /// </summary> |
| 456 | 24 | | public TokenInfo() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 456 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the TokenInfo class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="token">The token returned by the analyzer.</param> |
| | 33 | | /// <param name="startOffset">The index of the first character of the |
| | 34 | | /// token in the input text.</param> |
| | 35 | | /// <param name="endOffset">The index of the last character of the |
| | 36 | | /// token in the input text.</param> |
| | 37 | | /// <param name="position">The position of the token in the input text |
| | 38 | | /// relative to other tokens. The first token in the input text has |
| | 39 | | /// position 0, the next has position 1, and so on. Depending on the |
| | 40 | | /// analyzer used, some tokens might have the same position, for |
| | 41 | | /// example if they are synonyms of each other.</param> |
| 0 | 42 | | public TokenInfo(string token = default(string), int? startOffset = default(int?), int? endOffset = default(int? |
| | 43 | | { |
| 0 | 44 | | Token = token; |
| 0 | 45 | | StartOffset = startOffset; |
| 0 | 46 | | EndOffset = endOffset; |
| 0 | 47 | | Position = position; |
| | 48 | | CustomInit(); |
| 0 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | 53 | | /// </summary> |
| | 54 | | partial void CustomInit(); |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets the token returned by the analyzer. |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "token")] |
| 462 | 60 | | public string Token { get; private set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets the index of the first character of the token in the input |
| | 64 | | /// text. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "startOffset")] |
| 462 | 67 | | public int? StartOffset { get; private set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets the index of the last character of the token in the input |
| | 71 | | /// text. |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "endOffset")] |
| 462 | 74 | | public int? EndOffset { get; private set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets the position of the token in the input text relative to other |
| | 78 | | /// tokens. The first token in the input text has position 0, the next |
| | 79 | | /// has position 1, and so on. Depending on the analyzer used, some |
| | 80 | | /// tokens might have the same position, for example if they are |
| | 81 | | /// synonyms of each other. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "position")] |
| 462 | 84 | | public int? Position { get; private set; } |
| | 85 | |
|
| | 86 | | } |
| | 87 | | } |