1 package customimagesearch
2
3
4
5
6
7
8
9
10 type ErrorCode string
11
12 const (
13
14 InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
15
16 InvalidAuthorization ErrorCode = "InvalidAuthorization"
17
18 InvalidRequest ErrorCode = "InvalidRequest"
19
20 None ErrorCode = "None"
21
22 RateLimitExceeded ErrorCode = "RateLimitExceeded"
23
24 ServerError ErrorCode = "ServerError"
25 )
26
27
28 func PossibleErrorCodeValues() []ErrorCode {
29 return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
30 }
31
32
33 type ErrorSubCode string
34
35 const (
36
37 AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
38
39 AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
40
41 AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
42
43 AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
44
45 Blocked ErrorSubCode = "Blocked"
46
47 HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
48
49 NotImplemented ErrorSubCode = "NotImplemented"
50
51 ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
52
53 ParameterMissing ErrorSubCode = "ParameterMissing"
54
55 ResourceError ErrorSubCode = "ResourceError"
56
57 UnexpectedError ErrorSubCode = "UnexpectedError"
58 )
59
60
61 func PossibleErrorSubCodeValues() []ErrorSubCode {
62 return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
63 }
64
65
66 type Freshness string
67
68 const (
69
70 Day Freshness = "Day"
71
72 Month Freshness = "Month"
73
74 Week Freshness = "Week"
75 )
76
77
78 func PossibleFreshnessValues() []Freshness {
79 return []Freshness{Day, Month, Week}
80 }
81
82
83 type ImageAspect string
84
85 const (
86
87 All ImageAspect = "All"
88
89 Square ImageAspect = "Square"
90
91 Tall ImageAspect = "Tall"
92
93 Wide ImageAspect = "Wide"
94 )
95
96
97 func PossibleImageAspectValues() []ImageAspect {
98 return []ImageAspect{All, Square, Tall, Wide}
99 }
100
101
102 type ImageColor string
103
104 const (
105
106 Black ImageColor = "Black"
107
108 Blue ImageColor = "Blue"
109
110 Brown ImageColor = "Brown"
111
112 ColorOnly ImageColor = "ColorOnly"
113
114 Gray ImageColor = "Gray"
115
116 Green ImageColor = "Green"
117
118 Monochrome ImageColor = "Monochrome"
119
120 Orange ImageColor = "Orange"
121
122 Pink ImageColor = "Pink"
123
124 Purple ImageColor = "Purple"
125
126 Red ImageColor = "Red"
127
128 Teal ImageColor = "Teal"
129
130 White ImageColor = "White"
131
132 Yellow ImageColor = "Yellow"
133 )
134
135
136 func PossibleImageColorValues() []ImageColor {
137 return []ImageColor{Black, Blue, Brown, ColorOnly, Gray, Green, Monochrome, Orange, Pink, Purple, Red, Teal, White, Yellow}
138 }
139
140
141 type ImageContent string
142
143 const (
144
145 Face ImageContent = "Face"
146
147 Portrait ImageContent = "Portrait"
148 )
149
150
151 func PossibleImageContentValues() []ImageContent {
152 return []ImageContent{Face, Portrait}
153 }
154
155
156 type ImageLicense string
157
158 const (
159
160 ImageLicenseAll ImageLicense = "All"
161
162 ImageLicenseAny ImageLicense = "Any"
163
164 ImageLicenseModify ImageLicense = "Modify"
165
166 ImageLicenseModifyCommercially ImageLicense = "ModifyCommercially"
167
168 ImageLicensePublic ImageLicense = "Public"
169
170 ImageLicenseShare ImageLicense = "Share"
171
172 ImageLicenseShareCommercially ImageLicense = "ShareCommercially"
173 )
174
175
176 func PossibleImageLicenseValues() []ImageLicense {
177 return []ImageLicense{ImageLicenseAll, ImageLicenseAny, ImageLicenseModify, ImageLicenseModifyCommercially, ImageLicensePublic, ImageLicenseShare, ImageLicenseShareCommercially}
178 }
179
180
181 type ImageSize string
182
183 const (
184
185 ImageSizeAll ImageSize = "All"
186
187 ImageSizeLarge ImageSize = "Large"
188
189 ImageSizeMedium ImageSize = "Medium"
190
191 ImageSizeSmall ImageSize = "Small"
192
193 ImageSizeWallpaper ImageSize = "Wallpaper"
194 )
195
196
197 func PossibleImageSizeValues() []ImageSize {
198 return []ImageSize{ImageSizeAll, ImageSizeLarge, ImageSizeMedium, ImageSizeSmall, ImageSizeWallpaper}
199 }
200
201
202 type ImageType string
203
204 const (
205
206 AnimatedGif ImageType = "AnimatedGif"
207
208 Clipart ImageType = "Clipart"
209
210 Line ImageType = "Line"
211
212 Photo ImageType = "Photo"
213
214 Shopping ImageType = "Shopping"
215
216 Transparent ImageType = "Transparent"
217 )
218
219
220 func PossibleImageTypeValues() []ImageType {
221 return []ImageType{AnimatedGif, Clipart, Line, Photo, Shopping, Transparent}
222 }
223
224
225 type SafeSearch string
226
227 const (
228
229 Moderate SafeSearch = "Moderate"
230
231 Off SafeSearch = "Off"
232
233 Strict SafeSearch = "Strict"
234 )
235
236
237 func PossibleSafeSearchValues() []SafeSearch {
238 return []SafeSearch{Moderate, Off, Strict}
239 }
240
241
242 type Type string
243
244 const (
245
246 TypeAnswer Type = "Answer"
247
248 TypeCreativeWork Type = "CreativeWork"
249
250 TypeErrorResponse Type = "ErrorResponse"
251
252 TypeIdentifiable Type = "Identifiable"
253
254 TypeImageObject Type = "ImageObject"
255
256 TypeImages Type = "Images"
257
258 TypeMediaObject Type = "MediaObject"
259
260 TypeResponse Type = "Response"
261
262 TypeResponseBase Type = "ResponseBase"
263
264 TypeSearchResultsAnswer Type = "SearchResultsAnswer"
265
266 TypeThing Type = "Thing"
267
268 TypeWebPage Type = "WebPage"
269 )
270
271
272 func PossibleTypeValues() []Type {
273 return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeImages, TypeMediaObject, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeWebPage}
274 }
275
View as plain text