...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/entitysearch/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/entitysearch

     1  package entitysearch
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for 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 regenerated.
     8  
     9  // AnswerType enumerates the values for answer type.
    10  type AnswerType string
    11  
    12  const (
    13  	// AnswerTypeEntities ...
    14  	AnswerTypeEntities AnswerType = "Entities"
    15  	// AnswerTypePlaces ...
    16  	AnswerTypePlaces AnswerType = "Places"
    17  )
    18  
    19  // PossibleAnswerTypeValues returns an array of possible values for the AnswerType const type.
    20  func PossibleAnswerTypeValues() []AnswerType {
    21  	return []AnswerType{AnswerTypeEntities, AnswerTypePlaces}
    22  }
    23  
    24  // EntityQueryScenario enumerates the values for entity query scenario.
    25  type EntityQueryScenario string
    26  
    27  const (
    28  	// Disambiguation ...
    29  	Disambiguation EntityQueryScenario = "Disambiguation"
    30  	// DominantEntity ...
    31  	DominantEntity EntityQueryScenario = "DominantEntity"
    32  	// DominantEntityWithDisambiguation ...
    33  	DominantEntityWithDisambiguation EntityQueryScenario = "DominantEntityWithDisambiguation"
    34  	// List ...
    35  	List EntityQueryScenario = "List"
    36  	// ListWithPivot ...
    37  	ListWithPivot EntityQueryScenario = "ListWithPivot"
    38  )
    39  
    40  // PossibleEntityQueryScenarioValues returns an array of possible values for the EntityQueryScenario const type.
    41  func PossibleEntityQueryScenarioValues() []EntityQueryScenario {
    42  	return []EntityQueryScenario{Disambiguation, DominantEntity, DominantEntityWithDisambiguation, List, ListWithPivot}
    43  }
    44  
    45  // EntityScenario enumerates the values for entity scenario.
    46  type EntityScenario string
    47  
    48  const (
    49  	// EntityScenarioDisambiguationItem ...
    50  	EntityScenarioDisambiguationItem EntityScenario = "DisambiguationItem"
    51  	// EntityScenarioDominantEntity ...
    52  	EntityScenarioDominantEntity EntityScenario = "DominantEntity"
    53  	// EntityScenarioListItem ...
    54  	EntityScenarioListItem EntityScenario = "ListItem"
    55  )
    56  
    57  // PossibleEntityScenarioValues returns an array of possible values for the EntityScenario const type.
    58  func PossibleEntityScenarioValues() []EntityScenario {
    59  	return []EntityScenario{EntityScenarioDisambiguationItem, EntityScenarioDominantEntity, EntityScenarioListItem}
    60  }
    61  
    62  // EntityType enumerates the values for entity type.
    63  type EntityType string
    64  
    65  const (
    66  	// EntityTypeActor ...
    67  	EntityTypeActor EntityType = "Actor"
    68  	// EntityTypeAnimal ...
    69  	EntityTypeAnimal EntityType = "Animal"
    70  	// EntityTypeArtist ...
    71  	EntityTypeArtist EntityType = "Artist"
    72  	// EntityTypeAttorney ...
    73  	EntityTypeAttorney EntityType = "Attorney"
    74  	// EntityTypeAttraction ...
    75  	EntityTypeAttraction EntityType = "Attraction"
    76  	// EntityTypeBook ...
    77  	EntityTypeBook EntityType = "Book"
    78  	// EntityTypeCar ...
    79  	EntityTypeCar EntityType = "Car"
    80  	// EntityTypeCity ...
    81  	EntityTypeCity EntityType = "City"
    82  	// EntityTypeCollegeOrUniversity ...
    83  	EntityTypeCollegeOrUniversity EntityType = "CollegeOrUniversity"
    84  	// EntityTypeComposition ...
    85  	EntityTypeComposition EntityType = "Composition"
    86  	// EntityTypeContinent ...
    87  	EntityTypeContinent EntityType = "Continent"
    88  	// EntityTypeCountry ...
    89  	EntityTypeCountry EntityType = "Country"
    90  	// EntityTypeDrug ...
    91  	EntityTypeDrug EntityType = "Drug"
    92  	// EntityTypeEvent ...
    93  	EntityTypeEvent EntityType = "Event"
    94  	// EntityTypeFood ...
    95  	EntityTypeFood EntityType = "Food"
    96  	// EntityTypeGeneric ...
    97  	EntityTypeGeneric EntityType = "Generic"
    98  	// EntityTypeHotel ...
    99  	EntityTypeHotel EntityType = "Hotel"
   100  	// EntityTypeHouse ...
   101  	EntityTypeHouse EntityType = "House"
   102  	// EntityTypeLocalBusiness ...
   103  	EntityTypeLocalBusiness EntityType = "LocalBusiness"
   104  	// EntityTypeLocality ...
   105  	EntityTypeLocality EntityType = "Locality"
   106  	// EntityTypeMedia ...
   107  	EntityTypeMedia EntityType = "Media"
   108  	// EntityTypeMinorRegion ...
   109  	EntityTypeMinorRegion EntityType = "MinorRegion"
   110  	// EntityTypeMovie ...
   111  	EntityTypeMovie EntityType = "Movie"
   112  	// EntityTypeMusicAlbum ...
   113  	EntityTypeMusicAlbum EntityType = "MusicAlbum"
   114  	// EntityTypeMusicGroup ...
   115  	EntityTypeMusicGroup EntityType = "MusicGroup"
   116  	// EntityTypeMusicRecording ...
   117  	EntityTypeMusicRecording EntityType = "MusicRecording"
   118  	// EntityTypeNeighborhood ...
   119  	EntityTypeNeighborhood EntityType = "Neighborhood"
   120  	// EntityTypeOrganization ...
   121  	EntityTypeOrganization EntityType = "Organization"
   122  	// EntityTypeOther ...
   123  	EntityTypeOther EntityType = "Other"
   124  	// EntityTypePerson ...
   125  	EntityTypePerson EntityType = "Person"
   126  	// EntityTypePlace ...
   127  	EntityTypePlace EntityType = "Place"
   128  	// EntityTypePointOfInterest ...
   129  	EntityTypePointOfInterest EntityType = "PointOfInterest"
   130  	// EntityTypePostalCode ...
   131  	EntityTypePostalCode EntityType = "PostalCode"
   132  	// EntityTypeProduct ...
   133  	EntityTypeProduct EntityType = "Product"
   134  	// EntityTypeRadioStation ...
   135  	EntityTypeRadioStation EntityType = "RadioStation"
   136  	// EntityTypeRegion ...
   137  	EntityTypeRegion EntityType = "Region"
   138  	// EntityTypeRestaurant ...
   139  	EntityTypeRestaurant EntityType = "Restaurant"
   140  	// EntityTypeSchool ...
   141  	EntityTypeSchool EntityType = "School"
   142  	// EntityTypeSpeciality ...
   143  	EntityTypeSpeciality EntityType = "Speciality"
   144  	// EntityTypeSportsTeam ...
   145  	EntityTypeSportsTeam EntityType = "SportsTeam"
   146  	// EntityTypeState ...
   147  	EntityTypeState EntityType = "State"
   148  	// EntityTypeStreetAddress ...
   149  	EntityTypeStreetAddress EntityType = "StreetAddress"
   150  	// EntityTypeSubRegion ...
   151  	EntityTypeSubRegion EntityType = "SubRegion"
   152  	// EntityTypeTelevisionSeason ...
   153  	EntityTypeTelevisionSeason EntityType = "TelevisionSeason"
   154  	// EntityTypeTelevisionShow ...
   155  	EntityTypeTelevisionShow EntityType = "TelevisionShow"
   156  	// EntityTypeTheaterPlay ...
   157  	EntityTypeTheaterPlay EntityType = "TheaterPlay"
   158  	// EntityTypeTouristAttraction ...
   159  	EntityTypeTouristAttraction EntityType = "TouristAttraction"
   160  	// EntityTypeTravel ...
   161  	EntityTypeTravel EntityType = "Travel"
   162  	// EntityTypeVideoGame ...
   163  	EntityTypeVideoGame EntityType = "VideoGame"
   164  )
   165  
   166  // PossibleEntityTypeValues returns an array of possible values for the EntityType const type.
   167  func PossibleEntityTypeValues() []EntityType {
   168  	return []EntityType{EntityTypeActor, EntityTypeAnimal, EntityTypeArtist, EntityTypeAttorney, EntityTypeAttraction, EntityTypeBook, EntityTypeCar, EntityTypeCity, EntityTypeCollegeOrUniversity, EntityTypeComposition, EntityTypeContinent, EntityTypeCountry, EntityTypeDrug, EntityTypeEvent, EntityTypeFood, EntityTypeGeneric, EntityTypeHotel, EntityTypeHouse, EntityTypeLocalBusiness, EntityTypeLocality, EntityTypeMedia, EntityTypeMinorRegion, EntityTypeMovie, EntityTypeMusicAlbum, EntityTypeMusicGroup, EntityTypeMusicRecording, EntityTypeNeighborhood, EntityTypeOrganization, EntityTypeOther, EntityTypePerson, EntityTypePlace, EntityTypePointOfInterest, EntityTypePostalCode, EntityTypeProduct, EntityTypeRadioStation, EntityTypeRegion, EntityTypeRestaurant, EntityTypeSchool, EntityTypeSpeciality, EntityTypeSportsTeam, EntityTypeState, EntityTypeStreetAddress, EntityTypeSubRegion, EntityTypeTelevisionSeason, EntityTypeTelevisionShow, EntityTypeTheaterPlay, EntityTypeTouristAttraction, EntityTypeTravel, EntityTypeVideoGame}
   169  }
   170  
   171  // ErrorCode enumerates the values for error code.
   172  type ErrorCode string
   173  
   174  const (
   175  	// InsufficientAuthorization ...
   176  	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
   177  	// InvalidAuthorization ...
   178  	InvalidAuthorization ErrorCode = "InvalidAuthorization"
   179  	// InvalidRequest ...
   180  	InvalidRequest ErrorCode = "InvalidRequest"
   181  	// None ...
   182  	None ErrorCode = "None"
   183  	// RateLimitExceeded ...
   184  	RateLimitExceeded ErrorCode = "RateLimitExceeded"
   185  	// ServerError ...
   186  	ServerError ErrorCode = "ServerError"
   187  )
   188  
   189  // PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
   190  func PossibleErrorCodeValues() []ErrorCode {
   191  	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
   192  }
   193  
   194  // ErrorSubCode enumerates the values for error sub code.
   195  type ErrorSubCode string
   196  
   197  const (
   198  	// AuthorizationDisabled ...
   199  	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
   200  	// AuthorizationExpired ...
   201  	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
   202  	// AuthorizationMissing ...
   203  	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
   204  	// AuthorizationRedundancy ...
   205  	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
   206  	// Blocked ...
   207  	Blocked ErrorSubCode = "Blocked"
   208  	// HTTPNotAllowed ...
   209  	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
   210  	// NotImplemented ...
   211  	NotImplemented ErrorSubCode = "NotImplemented"
   212  	// ParameterInvalidValue ...
   213  	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
   214  	// ParameterMissing ...
   215  	ParameterMissing ErrorSubCode = "ParameterMissing"
   216  	// ResourceError ...
   217  	ResourceError ErrorSubCode = "ResourceError"
   218  	// UnexpectedError ...
   219  	UnexpectedError ErrorSubCode = "UnexpectedError"
   220  )
   221  
   222  // PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
   223  func PossibleErrorSubCodeValues() []ErrorSubCode {
   224  	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
   225  }
   226  
   227  // ResponseFormat enumerates the values for response format.
   228  type ResponseFormat string
   229  
   230  const (
   231  	// JSON ...
   232  	JSON ResponseFormat = "Json"
   233  	// JSONLd ...
   234  	JSONLd ResponseFormat = "JsonLd"
   235  )
   236  
   237  // PossibleResponseFormatValues returns an array of possible values for the ResponseFormat const type.
   238  func PossibleResponseFormatValues() []ResponseFormat {
   239  	return []ResponseFormat{JSON, JSONLd}
   240  }
   241  
   242  // SafeSearch enumerates the values for safe search.
   243  type SafeSearch string
   244  
   245  const (
   246  	// Moderate ...
   247  	Moderate SafeSearch = "Moderate"
   248  	// Off ...
   249  	Off SafeSearch = "Off"
   250  	// Strict ...
   251  	Strict SafeSearch = "Strict"
   252  )
   253  
   254  // PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
   255  func PossibleSafeSearchValues() []SafeSearch {
   256  	return []SafeSearch{Moderate, Off, Strict}
   257  }
   258  
   259  // Type enumerates the values for type.
   260  type Type string
   261  
   262  const (
   263  	// TypeContractualRulesAttribution ...
   264  	TypeContractualRulesAttribution Type = "ContractualRules/Attribution"
   265  	// TypeContractualRulesContractualRule ...
   266  	TypeContractualRulesContractualRule Type = "ContractualRules/ContractualRule"
   267  	// TypeContractualRulesLicenseAttribution ...
   268  	TypeContractualRulesLicenseAttribution Type = "ContractualRules/LicenseAttribution"
   269  	// TypeContractualRulesLinkAttribution ...
   270  	TypeContractualRulesLinkAttribution Type = "ContractualRules/LinkAttribution"
   271  	// TypeContractualRulesMediaAttribution ...
   272  	TypeContractualRulesMediaAttribution Type = "ContractualRules/MediaAttribution"
   273  	// TypeContractualRulesTextAttribution ...
   274  	TypeContractualRulesTextAttribution Type = "ContractualRules/TextAttribution"
   275  )
   276  
   277  // PossibleTypeValues returns an array of possible values for the Type const type.
   278  func PossibleTypeValues() []Type {
   279  	return []Type{TypeContractualRulesAttribution, TypeContractualRulesContractualRule, TypeContractualRulesLicenseAttribution, TypeContractualRulesLinkAttribution, TypeContractualRulesMediaAttribution, TypeContractualRulesTextAttribution}
   280  }
   281  
   282  // TypeBasicResponseBase enumerates the values for type basic response base.
   283  type TypeBasicResponseBase string
   284  
   285  const (
   286  	// TypeAirport ...
   287  	TypeAirport TypeBasicResponseBase = "Airport"
   288  	// TypeAnswer ...
   289  	TypeAnswer TypeBasicResponseBase = "Answer"
   290  	// TypeCivicStructure ...
   291  	TypeCivicStructure TypeBasicResponseBase = "CivicStructure"
   292  	// TypeCreativeWork ...
   293  	TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
   294  	// TypeEntertainmentBusiness ...
   295  	TypeEntertainmentBusiness TypeBasicResponseBase = "EntertainmentBusiness"
   296  	// TypeEntities ...
   297  	TypeEntities TypeBasicResponseBase = "Entities"
   298  	// TypeErrorResponse ...
   299  	TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
   300  	// TypeFoodEstablishment ...
   301  	TypeFoodEstablishment TypeBasicResponseBase = "FoodEstablishment"
   302  	// TypeHotel ...
   303  	TypeHotel TypeBasicResponseBase = "Hotel"
   304  	// TypeIdentifiable ...
   305  	TypeIdentifiable TypeBasicResponseBase = "Identifiable"
   306  	// TypeImageObject ...
   307  	TypeImageObject TypeBasicResponseBase = "ImageObject"
   308  	// TypeIntangible ...
   309  	TypeIntangible TypeBasicResponseBase = "Intangible"
   310  	// TypeLicense ...
   311  	TypeLicense TypeBasicResponseBase = "License"
   312  	// TypeLocalBusiness ...
   313  	TypeLocalBusiness TypeBasicResponseBase = "LocalBusiness"
   314  	// TypeLodgingBusiness ...
   315  	TypeLodgingBusiness TypeBasicResponseBase = "LodgingBusiness"
   316  	// TypeMediaObject ...
   317  	TypeMediaObject TypeBasicResponseBase = "MediaObject"
   318  	// TypeMovieTheater ...
   319  	TypeMovieTheater TypeBasicResponseBase = "MovieTheater"
   320  	// TypeOrganization ...
   321  	TypeOrganization TypeBasicResponseBase = "Organization"
   322  	// TypePlace ...
   323  	TypePlace TypeBasicResponseBase = "Place"
   324  	// TypePlaces ...
   325  	TypePlaces TypeBasicResponseBase = "Places"
   326  	// TypePostalAddress ...
   327  	TypePostalAddress TypeBasicResponseBase = "PostalAddress"
   328  	// TypeResponse ...
   329  	TypeResponse TypeBasicResponseBase = "Response"
   330  	// TypeResponseBase ...
   331  	TypeResponseBase TypeBasicResponseBase = "ResponseBase"
   332  	// TypeRestaurant ...
   333  	TypeRestaurant TypeBasicResponseBase = "Restaurant"
   334  	// TypeSearchResponse ...
   335  	TypeSearchResponse TypeBasicResponseBase = "SearchResponse"
   336  	// TypeSearchResultsAnswer ...
   337  	TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
   338  	// TypeStructuredValue ...
   339  	TypeStructuredValue TypeBasicResponseBase = "StructuredValue"
   340  	// TypeThing ...
   341  	TypeThing TypeBasicResponseBase = "Thing"
   342  	// TypeTouristAttraction ...
   343  	TypeTouristAttraction TypeBasicResponseBase = "TouristAttraction"
   344  )
   345  
   346  // PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.
   347  func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
   348  	return []TypeBasicResponseBase{TypeAirport, TypeAnswer, TypeCivicStructure, TypeCreativeWork, TypeEntertainmentBusiness, TypeEntities, TypeErrorResponse, TypeFoodEstablishment, TypeHotel, TypeIdentifiable, TypeImageObject, TypeIntangible, TypeLicense, TypeLocalBusiness, TypeLodgingBusiness, TypeMediaObject, TypeMovieTheater, TypeOrganization, TypePlace, TypePlaces, TypePostalAddress, TypeResponse, TypeResponseBase, TypeRestaurant, TypeSearchResponse, TypeSearchResultsAnswer, TypeStructuredValue, TypeThing, TypeTouristAttraction}
   349  }
   350  

View as plain text