...
1 package localsearch
2
3
4
5
6
7
8
9
10 type EntityScenario string
11
12 const (
13
14 DisambiguationItem EntityScenario = "DisambiguationItem"
15
16 DominantEntity EntityScenario = "DominantEntity"
17
18 ListItem EntityScenario = "ListItem"
19 )
20
21
22 func PossibleEntityScenarioValues() []EntityScenario {
23 return []EntityScenario{DisambiguationItem, DominantEntity, ListItem}
24 }
25
26
27 type EntityType string
28
29 const (
30
31 EntityTypeHotel EntityType = "Hotel"
32
33 EntityTypeLocalBusiness EntityType = "LocalBusiness"
34
35 EntityTypePlace EntityType = "Place"
36
37 EntityTypeRestaurant EntityType = "Restaurant"
38 )
39
40
41 func PossibleEntityTypeValues() []EntityType {
42 return []EntityType{EntityTypeHotel, EntityTypeLocalBusiness, EntityTypePlace, EntityTypeRestaurant}
43 }
44
45
46 type ErrorCode string
47
48 const (
49
50 InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
51
52 InvalidAuthorization ErrorCode = "InvalidAuthorization"
53
54 InvalidRequest ErrorCode = "InvalidRequest"
55
56 None ErrorCode = "None"
57
58 RateLimitExceeded ErrorCode = "RateLimitExceeded"
59
60 ServerError ErrorCode = "ServerError"
61 )
62
63
64 func PossibleErrorCodeValues() []ErrorCode {
65 return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
66 }
67
68
69 type ErrorSubCode string
70
71 const (
72
73 AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
74
75 AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
76
77 AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
78
79 AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
80
81 Blocked ErrorSubCode = "Blocked"
82
83 HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
84
85 NotImplemented ErrorSubCode = "NotImplemented"
86
87 ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
88
89 ParameterMissing ErrorSubCode = "ParameterMissing"
90
91 ResourceError ErrorSubCode = "ResourceError"
92
93 UnexpectedError ErrorSubCode = "UnexpectedError"
94 )
95
96
97 func PossibleErrorSubCodeValues() []ErrorSubCode {
98 return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
99 }
100
101
102 type ResponseFormat string
103
104 const (
105
106 JSON ResponseFormat = "Json"
107
108 JSONLd ResponseFormat = "JsonLd"
109 )
110
111
112 func PossibleResponseFormatValues() []ResponseFormat {
113 return []ResponseFormat{JSON, JSONLd}
114 }
115
116
117 type SafeSearch string
118
119 const (
120
121 Moderate SafeSearch = "Moderate"
122
123 Off SafeSearch = "Off"
124
125 Strict SafeSearch = "Strict"
126 )
127
128
129 func PossibleSafeSearchValues() []SafeSearch {
130 return []SafeSearch{Moderate, Off, Strict}
131 }
132
133
134 type Type string
135
136 const (
137
138 TypeQueryContext Type = "QueryContext"
139 )
140
141
142 func PossibleTypeValues() []Type {
143 return []Type{TypeQueryContext}
144 }
145
146
147
148 type TypeBasicEntitiesEntityPresentationInfo string
149
150 const (
151
152 TypeEntitiesEntityPresentationInfo TypeBasicEntitiesEntityPresentationInfo = "Entities/EntityPresentationInfo"
153 )
154
155
156 func PossibleTypeBasicEntitiesEntityPresentationInfoValues() []TypeBasicEntitiesEntityPresentationInfo {
157 return []TypeBasicEntitiesEntityPresentationInfo{TypeEntitiesEntityPresentationInfo}
158 }
159
160
161 type TypeBasicError string
162
163 const (
164
165 TypeError TypeBasicError = "Error"
166 )
167
168
169 func PossibleTypeBasicErrorValues() []TypeBasicError {
170 return []TypeBasicError{TypeError}
171 }
172
173
174 type TypeBasicGeoCoordinates string
175
176 const (
177
178 TypeGeoCoordinates TypeBasicGeoCoordinates = "GeoCoordinates"
179 )
180
181
182 func PossibleTypeBasicGeoCoordinatesValues() []TypeBasicGeoCoordinates {
183 return []TypeBasicGeoCoordinates{TypeGeoCoordinates}
184 }
185
186
187 type TypeBasicResponseBase string
188
189 const (
190
191 TypeAction TypeBasicResponseBase = "Action"
192
193 TypeAnswer TypeBasicResponseBase = "Answer"
194
195 TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
196
197 TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
198
199 TypeIdentifiable TypeBasicResponseBase = "Identifiable"
200
201 TypeIntangible TypeBasicResponseBase = "Intangible"
202
203 TypePlace TypeBasicResponseBase = "Place"
204
205 TypePlaces TypeBasicResponseBase = "Places"
206
207 TypePostalAddress TypeBasicResponseBase = "PostalAddress"
208
209 TypeResponse TypeBasicResponseBase = "Response"
210
211 TypeResponseBase TypeBasicResponseBase = "ResponseBase"
212
213 TypeSearchAction TypeBasicResponseBase = "SearchAction"
214
215 TypeSearchResponse TypeBasicResponseBase = "SearchResponse"
216
217 TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
218
219 TypeStructuredValue TypeBasicResponseBase = "StructuredValue"
220
221 TypeThing TypeBasicResponseBase = "Thing"
222 )
223
224
225 func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
226 return []TypeBasicResponseBase{TypeAction, TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeIntangible, TypePlace, TypePlaces, TypePostalAddress, TypeResponse, TypeResponseBase, TypeSearchAction, TypeSearchResponse, TypeSearchResultsAnswer, TypeStructuredValue, TypeThing}
227 }
228
View as plain text