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