< Summary

Class:Azure.Search.Documents.Indexes.Models.MicrosoftStemmingTokenizerLanguageExtensions
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\MicrosoftStemmingTokenizerLanguage.Serialization.cs
Covered lines:0
Uncovered lines:95
Coverable lines:95
Total lines:114
Line coverage:0% (0 of 95)
Covered branches:0
Total branches:136
Branch coverage:0% (0 of 136)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\MicrosoftStemmingTokenizerLanguage.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 MicrosoftStemmingTokenizerLanguageExtensions
 13    {
 014        public static string ToSerialString(this MicrosoftStemmingTokenizerLanguage value) => value switch
 015        {
 016            MicrosoftStemmingTokenizerLanguage.Arabic => "arabic",
 017            MicrosoftStemmingTokenizerLanguage.Bangla => "bangla",
 018            MicrosoftStemmingTokenizerLanguage.Bulgarian => "bulgarian",
 019            MicrosoftStemmingTokenizerLanguage.Catalan => "catalan",
 020            MicrosoftStemmingTokenizerLanguage.Croatian => "croatian",
 021            MicrosoftStemmingTokenizerLanguage.Czech => "czech",
 022            MicrosoftStemmingTokenizerLanguage.Danish => "danish",
 023            MicrosoftStemmingTokenizerLanguage.Dutch => "dutch",
 024            MicrosoftStemmingTokenizerLanguage.English => "english",
 025            MicrosoftStemmingTokenizerLanguage.Estonian => "estonian",
 026            MicrosoftStemmingTokenizerLanguage.Finnish => "finnish",
 027            MicrosoftStemmingTokenizerLanguage.French => "french",
 028            MicrosoftStemmingTokenizerLanguage.German => "german",
 029            MicrosoftStemmingTokenizerLanguage.Greek => "greek",
 030            MicrosoftStemmingTokenizerLanguage.Gujarati => "gujarati",
 031            MicrosoftStemmingTokenizerLanguage.Hebrew => "hebrew",
 032            MicrosoftStemmingTokenizerLanguage.Hindi => "hindi",
 033            MicrosoftStemmingTokenizerLanguage.Hungarian => "hungarian",
 034            MicrosoftStemmingTokenizerLanguage.Icelandic => "icelandic",
 035            MicrosoftStemmingTokenizerLanguage.Indonesian => "indonesian",
 036            MicrosoftStemmingTokenizerLanguage.Italian => "italian",
 037            MicrosoftStemmingTokenizerLanguage.Kannada => "kannada",
 038            MicrosoftStemmingTokenizerLanguage.Latvian => "latvian",
 039            MicrosoftStemmingTokenizerLanguage.Lithuanian => "lithuanian",
 040            MicrosoftStemmingTokenizerLanguage.Malay => "malay",
 041            MicrosoftStemmingTokenizerLanguage.Malayalam => "malayalam",
 042            MicrosoftStemmingTokenizerLanguage.Marathi => "marathi",
 043            MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal => "norwegianBokmaal",
 044            MicrosoftStemmingTokenizerLanguage.Polish => "polish",
 045            MicrosoftStemmingTokenizerLanguage.Portuguese => "portuguese",
 046            MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian => "portugueseBrazilian",
 047            MicrosoftStemmingTokenizerLanguage.Punjabi => "punjabi",
 048            MicrosoftStemmingTokenizerLanguage.Romanian => "romanian",
 049            MicrosoftStemmingTokenizerLanguage.Russian => "russian",
 050            MicrosoftStemmingTokenizerLanguage.SerbianCyrillic => "serbianCyrillic",
 051            MicrosoftStemmingTokenizerLanguage.SerbianLatin => "serbianLatin",
 052            MicrosoftStemmingTokenizerLanguage.Slovak => "slovak",
 053            MicrosoftStemmingTokenizerLanguage.Slovenian => "slovenian",
 054            MicrosoftStemmingTokenizerLanguage.Spanish => "spanish",
 055            MicrosoftStemmingTokenizerLanguage.Swedish => "swedish",
 056            MicrosoftStemmingTokenizerLanguage.Tamil => "tamil",
 057            MicrosoftStemmingTokenizerLanguage.Telugu => "telugu",
 058            MicrosoftStemmingTokenizerLanguage.Turkish => "turkish",
 059            MicrosoftStemmingTokenizerLanguage.Ukrainian => "ukrainian",
 060            MicrosoftStemmingTokenizerLanguage.Urdu => "urdu",
 061            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftStemmingTokenizerLanguage
 062        };
 63
 64        public static MicrosoftStemmingTokenizerLanguage ToMicrosoftStemmingTokenizerLanguage(this string value)
 65        {
 066            if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 067            if (string.Equals(value, "bangla", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 068            if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming
 069            if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 070            if (string.Equals(value, "croatian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT
 071            if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke
 072            if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 073            if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke
 074            if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 075            if (string.Equals(value, "estonian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT
 076            if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 077            if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 078            if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 079            if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke
 080            if (string.Equals(value, "gujarati", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT
 081            if (string.Equals(value, "hebrew", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 082            if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke
 083            if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming
 084            if (string.Equals(value, "icelandic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming
 085            if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmin
 086            if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 087            if (string.Equals(value, "kannada", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 088            if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 089            if (string.Equals(value, "lithuanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmin
 090            if (string.Equals(value, "malay", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke
 091            if (string.Equals(value, "malayalam", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming
 092            if (string.Equals(value, "marathi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 093            if (string.Equals(value, "norwegianBokmaal", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftS
 094            if (string.Equals(value, "polish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 095            if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmin
 096            if (string.Equals(value, "portugueseBrazilian", StringComparison.InvariantCultureIgnoreCase)) return Microso
 097            if (string.Equals(value, "punjabi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 098            if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT
 099            if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 0100            if (string.Equals(value, "serbianCyrillic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftSt
 0101            if (string.Equals(value, "serbianLatin", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemm
 0102            if (string.Equals(value, "slovak", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 0103            if (string.Equals(value, "slovenian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming
 0104            if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 0105            if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 0106            if (string.Equals(value, "tamil", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke
 0107            if (string.Equals(value, "telugu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok
 0108            if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo
 0109            if (string.Equals(value, "ukrainian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming
 0110            if (string.Equals(value, "urdu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToken
 0111            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftStemmingTokenizerLanguage valu
 112        }
 113    }
 114}