// Copyright (c) 2016, 2018, 2026, Oracle and/or its affiliates.  All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.

// Vision API
//
// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported.
//

package aivision

import (
	"strings"
)

// DocumentLanguageEnum Enum with underlying type: string
type DocumentLanguageEnum string

// Set of constants representing the allowable values for DocumentLanguageEnum
const (
	DocumentLanguageEng    DocumentLanguageEnum = "ENG"
	DocumentLanguageCes    DocumentLanguageEnum = "CES"
	DocumentLanguageDan    DocumentLanguageEnum = "DAN"
	DocumentLanguageNld    DocumentLanguageEnum = "NLD"
	DocumentLanguageFin    DocumentLanguageEnum = "FIN"
	DocumentLanguageFra    DocumentLanguageEnum = "FRA"
	DocumentLanguageDeu    DocumentLanguageEnum = "DEU"
	DocumentLanguageEll    DocumentLanguageEnum = "ELL"
	DocumentLanguageHun    DocumentLanguageEnum = "HUN"
	DocumentLanguageIta    DocumentLanguageEnum = "ITA"
	DocumentLanguageNor    DocumentLanguageEnum = "NOR"
	DocumentLanguagePol    DocumentLanguageEnum = "POL"
	DocumentLanguagePor    DocumentLanguageEnum = "POR"
	DocumentLanguageRon    DocumentLanguageEnum = "RON"
	DocumentLanguageRus    DocumentLanguageEnum = "RUS"
	DocumentLanguageSlk    DocumentLanguageEnum = "SLK"
	DocumentLanguageSpa    DocumentLanguageEnum = "SPA"
	DocumentLanguageSwe    DocumentLanguageEnum = "SWE"
	DocumentLanguageTur    DocumentLanguageEnum = "TUR"
	DocumentLanguageAra    DocumentLanguageEnum = "ARA"
	DocumentLanguageChiSim DocumentLanguageEnum = "CHI_SIM"
	DocumentLanguageHin    DocumentLanguageEnum = "HIN"
	DocumentLanguageJpn    DocumentLanguageEnum = "JPN"
	DocumentLanguageKor    DocumentLanguageEnum = "KOR"
	DocumentLanguageOthers DocumentLanguageEnum = "OTHERS"
)

var mappingDocumentLanguageEnum = map[string]DocumentLanguageEnum{
	"ENG":     DocumentLanguageEng,
	"CES":     DocumentLanguageCes,
	"DAN":     DocumentLanguageDan,
	"NLD":     DocumentLanguageNld,
	"FIN":     DocumentLanguageFin,
	"FRA":     DocumentLanguageFra,
	"DEU":     DocumentLanguageDeu,
	"ELL":     DocumentLanguageEll,
	"HUN":     DocumentLanguageHun,
	"ITA":     DocumentLanguageIta,
	"NOR":     DocumentLanguageNor,
	"POL":     DocumentLanguagePol,
	"POR":     DocumentLanguagePor,
	"RON":     DocumentLanguageRon,
	"RUS":     DocumentLanguageRus,
	"SLK":     DocumentLanguageSlk,
	"SPA":     DocumentLanguageSpa,
	"SWE":     DocumentLanguageSwe,
	"TUR":     DocumentLanguageTur,
	"ARA":     DocumentLanguageAra,
	"CHI_SIM": DocumentLanguageChiSim,
	"HIN":     DocumentLanguageHin,
	"JPN":     DocumentLanguageJpn,
	"KOR":     DocumentLanguageKor,
	"OTHERS":  DocumentLanguageOthers,
}

var mappingDocumentLanguageEnumLowerCase = map[string]DocumentLanguageEnum{
	"eng":     DocumentLanguageEng,
	"ces":     DocumentLanguageCes,
	"dan":     DocumentLanguageDan,
	"nld":     DocumentLanguageNld,
	"fin":     DocumentLanguageFin,
	"fra":     DocumentLanguageFra,
	"deu":     DocumentLanguageDeu,
	"ell":     DocumentLanguageEll,
	"hun":     DocumentLanguageHun,
	"ita":     DocumentLanguageIta,
	"nor":     DocumentLanguageNor,
	"pol":     DocumentLanguagePol,
	"por":     DocumentLanguagePor,
	"ron":     DocumentLanguageRon,
	"rus":     DocumentLanguageRus,
	"slk":     DocumentLanguageSlk,
	"spa":     DocumentLanguageSpa,
	"swe":     DocumentLanguageSwe,
	"tur":     DocumentLanguageTur,
	"ara":     DocumentLanguageAra,
	"chi_sim": DocumentLanguageChiSim,
	"hin":     DocumentLanguageHin,
	"jpn":     DocumentLanguageJpn,
	"kor":     DocumentLanguageKor,
	"others":  DocumentLanguageOthers,
}

// GetDocumentLanguageEnumValues Enumerates the set of values for DocumentLanguageEnum
func GetDocumentLanguageEnumValues() []DocumentLanguageEnum {
	values := make([]DocumentLanguageEnum, 0)
	for _, v := range mappingDocumentLanguageEnum {
		values = append(values, v)
	}
	return values
}

// GetDocumentLanguageEnumStringValues Enumerates the set of values in String for DocumentLanguageEnum
func GetDocumentLanguageEnumStringValues() []string {
	return []string{
		"ENG",
		"CES",
		"DAN",
		"NLD",
		"FIN",
		"FRA",
		"DEU",
		"ELL",
		"HUN",
		"ITA",
		"NOR",
		"POL",
		"POR",
		"RON",
		"RUS",
		"SLK",
		"SPA",
		"SWE",
		"TUR",
		"ARA",
		"CHI_SIM",
		"HIN",
		"JPN",
		"KOR",
		"OTHERS",
	}
}

// GetMappingDocumentLanguageEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDocumentLanguageEnum(val string) (DocumentLanguageEnum, bool) {
	enum, ok := mappingDocumentLanguageEnumLowerCase[strings.ToLower(val)]
	return enum, ok
}
