< Summary

Class:Azure.Search.Documents.Indexes.Models.StemmerTokenFilterLanguageExtensions
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\StemmerTokenFilterLanguage.Serialization.cs
Covered lines:0
Uncovered lines:113
Coverable lines:113
Total lines:132
Line coverage:0% (0 of 113)
Covered branches:0
Total branches:163
Branch coverage:0% (0 of 163)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\StemmerTokenFilterLanguage.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 StemmerTokenFilterLanguageExtensions
 13    {
 014        public static string ToSerialString(this StemmerTokenFilterLanguage value) => value switch
 015        {
 016            StemmerTokenFilterLanguage.Arabic => "arabic",
 017            StemmerTokenFilterLanguage.Armenian => "armenian",
 018            StemmerTokenFilterLanguage.Basque => "basque",
 019            StemmerTokenFilterLanguage.Brazilian => "brazilian",
 020            StemmerTokenFilterLanguage.Bulgarian => "bulgarian",
 021            StemmerTokenFilterLanguage.Catalan => "catalan",
 022            StemmerTokenFilterLanguage.Czech => "czech",
 023            StemmerTokenFilterLanguage.Danish => "danish",
 024            StemmerTokenFilterLanguage.Dutch => "dutch",
 025            StemmerTokenFilterLanguage.DutchKp => "dutchKp",
 026            StemmerTokenFilterLanguage.English => "english",
 027            StemmerTokenFilterLanguage.LightEnglish => "lightEnglish",
 028            StemmerTokenFilterLanguage.MinimalEnglish => "minimalEnglish",
 029            StemmerTokenFilterLanguage.PossessiveEnglish => "possessiveEnglish",
 030            StemmerTokenFilterLanguage.Porter2 => "porter2",
 031            StemmerTokenFilterLanguage.Lovins => "lovins",
 032            StemmerTokenFilterLanguage.Finnish => "finnish",
 033            StemmerTokenFilterLanguage.LightFinnish => "lightFinnish",
 034            StemmerTokenFilterLanguage.French => "french",
 035            StemmerTokenFilterLanguage.LightFrench => "lightFrench",
 036            StemmerTokenFilterLanguage.MinimalFrench => "minimalFrench",
 037            StemmerTokenFilterLanguage.Galician => "galician",
 038            StemmerTokenFilterLanguage.MinimalGalician => "minimalGalician",
 039            StemmerTokenFilterLanguage.German => "german",
 040            StemmerTokenFilterLanguage.German2 => "german2",
 041            StemmerTokenFilterLanguage.LightGerman => "lightGerman",
 042            StemmerTokenFilterLanguage.MinimalGerman => "minimalGerman",
 043            StemmerTokenFilterLanguage.Greek => "greek",
 044            StemmerTokenFilterLanguage.Hindi => "hindi",
 045            StemmerTokenFilterLanguage.Hungarian => "hungarian",
 046            StemmerTokenFilterLanguage.LightHungarian => "lightHungarian",
 047            StemmerTokenFilterLanguage.Indonesian => "indonesian",
 048            StemmerTokenFilterLanguage.Irish => "irish",
 049            StemmerTokenFilterLanguage.Italian => "italian",
 050            StemmerTokenFilterLanguage.LightItalian => "lightItalian",
 051            StemmerTokenFilterLanguage.Sorani => "sorani",
 052            StemmerTokenFilterLanguage.Latvian => "latvian",
 053            StemmerTokenFilterLanguage.Norwegian => "norwegian",
 054            StemmerTokenFilterLanguage.LightNorwegian => "lightNorwegian",
 055            StemmerTokenFilterLanguage.MinimalNorwegian => "minimalNorwegian",
 056            StemmerTokenFilterLanguage.LightNynorsk => "lightNynorsk",
 057            StemmerTokenFilterLanguage.MinimalNynorsk => "minimalNynorsk",
 058            StemmerTokenFilterLanguage.Portuguese => "portuguese",
 059            StemmerTokenFilterLanguage.LightPortuguese => "lightPortuguese",
 060            StemmerTokenFilterLanguage.MinimalPortuguese => "minimalPortuguese",
 061            StemmerTokenFilterLanguage.PortugueseRslp => "portugueseRslp",
 062            StemmerTokenFilterLanguage.Romanian => "romanian",
 063            StemmerTokenFilterLanguage.Russian => "russian",
 064            StemmerTokenFilterLanguage.LightRussian => "lightRussian",
 065            StemmerTokenFilterLanguage.Spanish => "spanish",
 066            StemmerTokenFilterLanguage.LightSpanish => "lightSpanish",
 067            StemmerTokenFilterLanguage.Swedish => "swedish",
 068            StemmerTokenFilterLanguage.LightSwedish => "lightSwedish",
 069            StemmerTokenFilterLanguage.Turkish => "turkish",
 070            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StemmerTokenFilterLanguage value."
 071        };
 72
 73        public static StemmerTokenFilterLanguage ToStemmerTokenFilterLanguage(this string value)
 74        {
 075            if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 076            if (string.Equals(value, "armenian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilter
 077            if (string.Equals(value, "basque", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 078            if (string.Equals(value, "brazilian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte
 079            if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte
 080            if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 081            if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan
 082            if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 083            if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan
 084            if (string.Equals(value, "dutchKp", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 085            if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 086            if (string.Equals(value, "lightEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 087            if (string.Equals(value, "minimalEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken
 088            if (string.Equals(value, "possessiveEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTo
 089            if (string.Equals(value, "porter2", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 090            if (string.Equals(value, "lovins", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 091            if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 092            if (string.Equals(value, "lightFinnish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 093            if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 094            if (string.Equals(value, "lightFrench", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFil
 095            if (string.Equals(value, "minimalFrench", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenF
 096            if (string.Equals(value, "galician", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilter
 097            if (string.Equals(value, "minimalGalician", StringComparison.InvariantCultureIgnoreCase)) return StemmerToke
 098            if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 099            if (string.Equals(value, "german2", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0100            if (string.Equals(value, "lightGerman", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFil
 0101            if (string.Equals(value, "minimalGerman", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenF
 0102            if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan
 0103            if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan
 0104            if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte
 0105            if (string.Equals(value, "lightHungarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken
 0106            if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilt
 0107            if (string.Equals(value, "irish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan
 0108            if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0109            if (string.Equals(value, "lightItalian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 0110            if (string.Equals(value, "sorani", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa
 0111            if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0112            if (string.Equals(value, "norwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte
 0113            if (string.Equals(value, "lightNorwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken
 0114            if (string.Equals(value, "minimalNorwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTok
 0115            if (string.Equals(value, "lightNynorsk", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 0116            if (string.Equals(value, "minimalNynorsk", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken
 0117            if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilt
 0118            if (string.Equals(value, "lightPortuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerToke
 0119            if (string.Equals(value, "minimalPortuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTo
 0120            if (string.Equals(value, "portugueseRslp", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken
 0121            if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilter
 0122            if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0123            if (string.Equals(value, "lightRussian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 0124            if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0125            if (string.Equals(value, "lightSpanish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 0126            if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0127            if (string.Equals(value, "lightSwedish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi
 0128            if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL
 0129            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StemmerTokenFilterLanguage value.");
 130        }
 131    }
 132}