< Summary

Class:Azure.Search.Documents.Indexes.Models.MicrosoftTokenizerLanguageExtensions
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\MicrosoftTokenizerLanguage.Serialization.cs
Covered lines:0
Uncovered lines:89
Coverable lines:89
Total lines:108
Line coverage:0% (0 of 89)
Covered branches:0
Total branches:127
Branch coverage:0% (0 of 127)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ToSerialString(...)-0%0%
ToMicrosoftTokenizerLanguage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\MicrosoftTokenizerLanguage.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.Search.Documents.Indexes.Models
 11{
 12    internal static class MicrosoftTokenizerLanguageExtensions
 13    {
 014        public static string ToSerialString(this MicrosoftTokenizerLanguage value) => value switch
 015        {
 016            MicrosoftTokenizerLanguage.Bangla => "bangla",
 017            MicrosoftTokenizerLanguage.Bulgarian => "bulgarian",
 018            MicrosoftTokenizerLanguage.Catalan => "catalan",
 019            MicrosoftTokenizerLanguage.ChineseSimplified => "chineseSimplified",
 020            MicrosoftTokenizerLanguage.ChineseTraditional => "chineseTraditional",
 021            MicrosoftTokenizerLanguage.Croatian => "croatian",
 022            MicrosoftTokenizerLanguage.Czech => "czech",
 023            MicrosoftTokenizerLanguage.Danish => "danish",
 024            MicrosoftTokenizerLanguage.Dutch => "dutch",
 025            MicrosoftTokenizerLanguage.English => "english",
 026            MicrosoftTokenizerLanguage.French => "french",
 027            MicrosoftTokenizerLanguage.German => "german",
 028            MicrosoftTokenizerLanguage.Greek => "greek",
 029            MicrosoftTokenizerLanguage.Gujarati => "gujarati",
 030            MicrosoftTokenizerLanguage.Hindi => "hindi",
 031            MicrosoftTokenizerLanguage.Icelandic => "icelandic",
 032            MicrosoftTokenizerLanguage.Indonesian => "indonesian",
 033            MicrosoftTokenizerLanguage.Italian => "italian",
 034            MicrosoftTokenizerLanguage.Japanese => "japanese",
 035            MicrosoftTokenizerLanguage.Kannada => "kannada",
 036            MicrosoftTokenizerLanguage.Korean => "korean",
 037            MicrosoftTokenizerLanguage.Malay => "malay",
 038            MicrosoftTokenizerLanguage.Malayalam => "malayalam",
 039            MicrosoftTokenizerLanguage.Marathi => "marathi",
 040            MicrosoftTokenizerLanguage.NorwegianBokmaal => "norwegianBokmaal",
 041            MicrosoftTokenizerLanguage.Polish => "polish",
 042            MicrosoftTokenizerLanguage.Portuguese => "portuguese",
 043            MicrosoftTokenizerLanguage.PortugueseBrazilian => "portugueseBrazilian",
 044            MicrosoftTokenizerLanguage.Punjabi => "punjabi",
 045            MicrosoftTokenizerLanguage.Romanian => "romanian",
 046            MicrosoftTokenizerLanguage.Russian => "russian",
 047            MicrosoftTokenizerLanguage.SerbianCyrillic => "serbianCyrillic",
 048            MicrosoftTokenizerLanguage.SerbianLatin => "serbianLatin",
 049            MicrosoftTokenizerLanguage.Slovenian => "slovenian",
 050            MicrosoftTokenizerLanguage.Spanish => "spanish",
 051            MicrosoftTokenizerLanguage.Swedish => "swedish",
 052            MicrosoftTokenizerLanguage.Tamil => "tamil",
 053            MicrosoftTokenizerLanguage.Telugu => "telugu",
 054            MicrosoftTokenizerLanguage.Thai => "thai",
 055            MicrosoftTokenizerLanguage.Ukrainian => "ukrainian",
 056            MicrosoftTokenizerLanguage.Urdu => "urdu",
 057            MicrosoftTokenizerLanguage.Vietnamese => "vietnamese",
 058            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftTokenizerLanguage value."
 059        };
 60
 61        public static MicrosoftTokenizerLanguage ToMicrosoftTokenizerLanguage(this string value)
 62        {
 063            if (string.Equals(value, "bangla", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 064            if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize
 065            if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 066            if (string.Equals(value, "chineseSimplified", StringComparison.InvariantCultureIgnoreCase)) return Microsoft
 067            if (string.Equals(value, "chineseTraditional", StringComparison.InvariantCultureIgnoreCase)) return Microsof
 068            if (string.Equals(value, "croatian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer
 069            if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan
 070            if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 071            if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan
 072            if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 073            if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 074            if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 075            if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan
 076            if (string.Equals(value, "gujarati", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer
 077            if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan
 078            if (string.Equals(value, "icelandic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize
 079            if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokeniz
 080            if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 081            if (string.Equals(value, "japanese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer
 082            if (string.Equals(value, "kannada", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 083            if (string.Equals(value, "korean", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 084            if (string.Equals(value, "malay", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan
 085            if (string.Equals(value, "malayalam", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize
 086            if (string.Equals(value, "marathi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 087            if (string.Equals(value, "norwegianBokmaal", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftT
 088            if (string.Equals(value, "polish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 089            if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokeniz
 090            if (string.Equals(value, "portugueseBrazilian", StringComparison.InvariantCultureIgnoreCase)) return Microso
 091            if (string.Equals(value, "punjabi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 092            if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer
 093            if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 094            if (string.Equals(value, "serbianCyrillic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTo
 095            if (string.Equals(value, "serbianLatin", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftToken
 096            if (string.Equals(value, "slovenian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize
 097            if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 098            if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL
 099            if (string.Equals(value, "tamil", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan
 0100            if (string.Equals(value, "telugu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa
 0101            if (string.Equals(value, "thai", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLang
 0102            if (string.Equals(value, "ukrainian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize
 0103            if (string.Equals(value, "urdu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLang
 0104            if (string.Equals(value, "vietnamese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokeniz
 0105            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftTokenizerLanguage value.");
 106        }
 107    }
 108}