...
1 package autosuggest
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 ResponseFormat string
34
35 const (
36
37 JSON ResponseFormat = "Json"
38
39 JSONLd ResponseFormat = "JsonLd"
40 )
41
42
43 func PossibleResponseFormatValues() []ResponseFormat {
44 return []ResponseFormat{JSON, JSONLd}
45 }
46
47
48 type SafeSearch string
49
50 const (
51
52 Moderate SafeSearch = "Moderate"
53
54 Off SafeSearch = "Off"
55
56 Strict SafeSearch = "Strict"
57 )
58
59
60 func PossibleSafeSearchValues() []SafeSearch {
61 return []SafeSearch{Moderate, Off, Strict}
62 }
63
64
65 type ScenarioType string
66
67 const (
68
69 Custom ScenarioType = "Custom"
70
71 PersonalSearchDocuments ScenarioType = "PersonalSearchDocuments"
72
73 PersonalSearchTags ScenarioType = "PersonalSearchTags"
74
75 SearchHistory ScenarioType = "SearchHistory"
76
77 StoreApps ScenarioType = "StoreApps"
78
79 Unknown ScenarioType = "Unknown"
80
81 Web ScenarioType = "Web"
82 )
83
84
85 func PossibleScenarioTypeValues() []ScenarioType {
86 return []ScenarioType{Custom, PersonalSearchDocuments, PersonalSearchTags, SearchHistory, StoreApps, Unknown, Web}
87 }
88
89
90 type SearchKind string
91
92 const (
93
94 CustomSearch SearchKind = "CustomSearch"
95
96 DocumentSearch SearchKind = "DocumentSearch"
97
98 HistorySearch SearchKind = "HistorySearch"
99
100 LocationSearch SearchKind = "LocationSearch"
101
102 TagSearch SearchKind = "TagSearch"
103
104 WebSearch SearchKind = "WebSearch"
105 )
106
107
108 func PossibleSearchKindValues() []SearchKind {
109 return []SearchKind{CustomSearch, DocumentSearch, HistorySearch, LocationSearch, TagSearch, WebSearch}
110 }
111
112
113 type Type string
114
115 const (
116
117 TypeSuggestionsSuggestionGroup Type = "Suggestions/SuggestionGroup"
118 )
119
120
121 func PossibleTypeValues() []Type {
122 return []Type{TypeSuggestionsSuggestionGroup}
123 }
124
125
126 type TypeBasicError string
127
128 const (
129
130 TypeError TypeBasicError = "Error"
131 )
132
133
134 func PossibleTypeBasicErrorValues() []TypeBasicError {
135 return []TypeBasicError{TypeError}
136 }
137
138
139 type TypeBasicQueryContext string
140
141 const (
142
143 TypeQueryContext TypeBasicQueryContext = "QueryContext"
144 )
145
146
147 func PossibleTypeBasicQueryContextValues() []TypeBasicQueryContext {
148 return []TypeBasicQueryContext{TypeQueryContext}
149 }
150
151
152 type TypeBasicResponseBase string
153
154 const (
155
156 TypeAction TypeBasicResponseBase = "Action"
157
158 TypeAnswer TypeBasicResponseBase = "Answer"
159
160 TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
161
162 TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
163
164 TypeIdentifiable TypeBasicResponseBase = "Identifiable"
165
166 TypeResponse TypeBasicResponseBase = "Response"
167
168 TypeResponseBase TypeBasicResponseBase = "ResponseBase"
169
170 TypeSearchAction TypeBasicResponseBase = "SearchAction"
171
172 TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
173
174 TypeSuggestions TypeBasicResponseBase = "Suggestions"
175
176 TypeThing TypeBasicResponseBase = "Thing"
177 )
178
179
180 func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
181 return []TypeBasicResponseBase{TypeAction, TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeResponse, TypeResponseBase, TypeSearchAction, TypeSearchResultsAnswer, TypeSuggestions, TypeThing}
182 }
183
View as plain text