1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: omnibox_event.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_omnibox_5fevent_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_omnibox_5fevent_2eproto
6
7 #include <limits>
8 #include <string>
9
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/message_lite.h>
29 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
30 #include <google/protobuf/extension_set.h> // IWYU pragma: export
31 #include <google/protobuf/generated_enum_util.h>
32 #include "omnibox_input_type.pb.h"
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_omnibox_5fevent_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 } // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_omnibox_5fevent_2eproto {
44 static const uint32_t offsets[];
45 };
46 namespace metrics {
47 class OmniboxEventProto;
48 struct OmniboxEventProtoDefaultTypeInternal;
49 extern OmniboxEventProtoDefaultTypeInternal _OmniboxEventProto_default_instance_;
50 class OmniboxEventProto_ProfileData;
51 struct OmniboxEventProto_ProfileDataDefaultTypeInternal;
52 extern OmniboxEventProto_ProfileDataDefaultTypeInternal _OmniboxEventProto_ProfileData_default_instance_;
53 class OmniboxEventProto_ProviderInfo;
54 struct OmniboxEventProto_ProviderInfoDefaultTypeInternal;
55 extern OmniboxEventProto_ProviderInfoDefaultTypeInternal _OmniboxEventProto_ProviderInfo_default_instance_;
56 class OmniboxEventProto_Suggestion;
57 struct OmniboxEventProto_SuggestionDefaultTypeInternal;
58 extern OmniboxEventProto_SuggestionDefaultTypeInternal _OmniboxEventProto_Suggestion_default_instance_;
59 class OmniboxEventProto_Suggestion_ScoringSignals;
60 struct OmniboxEventProto_Suggestion_ScoringSignalsDefaultTypeInternal;
61 extern OmniboxEventProto_Suggestion_ScoringSignalsDefaultTypeInternal _OmniboxEventProto_Suggestion_ScoringSignals_default_instance_;
62 } // namespace metrics
63 PROTOBUF_NAMESPACE_OPEN
64 template<> ::metrics::OmniboxEventProto* Arena::CreateMaybeMessage<::metrics::OmniboxEventProto>(Arena*);
65 template<> ::metrics::OmniboxEventProto_ProfileData* Arena::CreateMaybeMessage<::metrics::OmniboxEventProto_ProfileData>(Arena*);
66 template<> ::metrics::OmniboxEventProto_ProviderInfo* Arena::CreateMaybeMessage<::metrics::OmniboxEventProto_ProviderInfo>(Arena*);
67 template<> ::metrics::OmniboxEventProto_Suggestion* Arena::CreateMaybeMessage<::metrics::OmniboxEventProto_Suggestion>(Arena*);
68 template<> ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* Arena::CreateMaybeMessage<::metrics::OmniboxEventProto_Suggestion_ScoringSignals>(Arena*);
69 PROTOBUF_NAMESPACE_CLOSE
70 namespace metrics {
71
72 enum OmniboxEventProto_Suggestion_ResultType : int {
73 OmniboxEventProto_Suggestion_ResultType_UNKNOWN_RESULT_TYPE = 0,
74 OmniboxEventProto_Suggestion_ResultType_URL_WHAT_YOU_TYPED = 1,
75 OmniboxEventProto_Suggestion_ResultType_HISTORY_URL = 2,
76 OmniboxEventProto_Suggestion_ResultType_HISTORY_TITLE = 3,
77 OmniboxEventProto_Suggestion_ResultType_HISTORY_BODY = 4,
78 OmniboxEventProto_Suggestion_ResultType_HISTORY_KEYWORD = 5,
79 OmniboxEventProto_Suggestion_ResultType_NAVSUGGEST = 6,
80 OmniboxEventProto_Suggestion_ResultType_SEARCH_WHAT_YOU_TYPED = 7,
81 OmniboxEventProto_Suggestion_ResultType_SEARCH_HISTORY = 8,
82 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST = 9,
83 OmniboxEventProto_Suggestion_ResultType_SEARCH_OTHER_ENGINE = 10,
84 OmniboxEventProto_Suggestion_ResultType_EXTENSION_APP = 11,
85 OmniboxEventProto_Suggestion_ResultType_CONTACT = 12,
86 OmniboxEventProto_Suggestion_ResultType_BOOKMARK_TITLE = 13,
87 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_ENTITY = 14,
88 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_TAIL = 15,
89 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_PERSONALIZED = 16,
90 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_PROFILE = 17,
91 OmniboxEventProto_Suggestion_ResultType_APP_RESULT = 18,
92 OmniboxEventProto_Suggestion_ResultType_APP = 19,
93 OmniboxEventProto_Suggestion_ResultType_LEGACY_ON_DEVICE = 20,
94 OmniboxEventProto_Suggestion_ResultType_NAVSUGGEST_PERSONALIZED = 21,
95 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_ANSWER = 22,
96 OmniboxEventProto_Suggestion_ResultType_CALCULATOR = 23,
97 OmniboxEventProto_Suggestion_ResultType_CLIPBOARD_URL = 24,
98 OmniboxEventProto_Suggestion_ResultType_PHYSICAL_WEB = 25,
99 OmniboxEventProto_Suggestion_ResultType_PHYSICAL_WEB_OVERFLOW = 26,
100 OmniboxEventProto_Suggestion_ResultType_DOCUMENT = 27,
101 OmniboxEventProto_Suggestion_ResultType_CLIPBOARD_TEXT = 28,
102 OmniboxEventProto_Suggestion_ResultType_CLIPBOARD_IMAGE = 29,
103 OmniboxEventProto_Suggestion_ResultType_TILE_SUGGESTION = 30,
104 OmniboxEventProto_Suggestion_ResultType_HISTORY_CLUSTER = 31,
105 OmniboxEventProto_Suggestion_ResultType_OPEN_TAB = 32,
106 OmniboxEventProto_Suggestion_ResultType_STARTER_PACK = 33,
107 OmniboxEventProto_Suggestion_ResultType_TAB_SWITCH = 34,
108 OmniboxEventProto_Suggestion_ResultType_PEDAL = 35
109 };
110 bool OmniboxEventProto_Suggestion_ResultType_IsValid(int value);
111 constexpr OmniboxEventProto_Suggestion_ResultType OmniboxEventProto_Suggestion_ResultType_ResultType_MIN = OmniboxEventProto_Suggestion_ResultType_UNKNOWN_RESULT_TYPE;
112 constexpr OmniboxEventProto_Suggestion_ResultType OmniboxEventProto_Suggestion_ResultType_ResultType_MAX = OmniboxEventProto_Suggestion_ResultType_PEDAL;
113 constexpr int OmniboxEventProto_Suggestion_ResultType_ResultType_ARRAYSIZE = OmniboxEventProto_Suggestion_ResultType_ResultType_MAX + 1;
114
115 const std::string& OmniboxEventProto_Suggestion_ResultType_Name(OmniboxEventProto_Suggestion_ResultType value);
116 template<typename T>
OmniboxEventProto_Suggestion_ResultType_Name(T enum_t_value)117 inline const std::string& OmniboxEventProto_Suggestion_ResultType_Name(T enum_t_value) {
118 static_assert(::std::is_same<T, OmniboxEventProto_Suggestion_ResultType>::value ||
119 ::std::is_integral<T>::value,
120 "Incorrect type passed to function OmniboxEventProto_Suggestion_ResultType_Name.");
121 return OmniboxEventProto_Suggestion_ResultType_Name(static_cast<OmniboxEventProto_Suggestion_ResultType>(enum_t_value));
122 }
123 bool OmniboxEventProto_Suggestion_ResultType_Parse(
124 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_Suggestion_ResultType* value);
125 enum OmniboxEventProto_PageClassification : int {
126 OmniboxEventProto_PageClassification_INVALID_SPEC = 0,
127 OmniboxEventProto_PageClassification_NTP = 1,
128 OmniboxEventProto_PageClassification_BLANK = 2,
129 OmniboxEventProto_PageClassification_HOME_PAGE = 3,
130 OmniboxEventProto_PageClassification_OTHER = 4,
131 OmniboxEventProto_PageClassification_OBSOLETE_INSTANT_NTP = 5,
132 OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6,
133 OmniboxEventProto_PageClassification_INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS = 7,
134 OmniboxEventProto_PageClassification_INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS = 8,
135 OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT = 9,
136 OmniboxEventProto_PageClassification_APP_HOME = 10,
137 OmniboxEventProto_PageClassification_APP_SEARCH = 11,
138 OmniboxEventProto_PageClassification_APP_MAPS = 12,
139 OmniboxEventProto_PageClassification_SEARCH_BUTTON_AS_STARTING_FOCUS = 13,
140 OmniboxEventProto_PageClassification_CHROMEOS_APP_LIST = 14,
141 OmniboxEventProto_PageClassification_NTP_REALBOX = 15,
142 OmniboxEventProto_PageClassification_ANDROID_SEARCH_WIDGET = 16,
143 OmniboxEventProto_PageClassification_START_SURFACE_HOMEPAGE = 17,
144 OmniboxEventProto_PageClassification_START_SURFACE_NEW_TAB = 18,
145 OmniboxEventProto_PageClassification_ANDROID_SHORTCUTS_WIDGET = 19,
146 OmniboxEventProto_PageClassification_NTP_ZPS_PREFETCH = 20,
147 OmniboxEventProto_PageClassification_JOURNEYS = 21,
148 OmniboxEventProto_PageClassification_SRP_ZPS_PREFETCH = 22,
149 OmniboxEventProto_PageClassification_OTHER_ZPS_PREFETCH = 23,
150 OmniboxEventProto_PageClassification_CONTEXTUAL_SEARCHBOX = 24,
151 OmniboxEventProto_PageClassification_SEARCH_SIDE_PANEL_SEARCHBOX = 25,
152 OmniboxEventProto_PageClassification_LENS_SIDE_PANEL_SEARCHBOX = 26,
153 OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_ON_CCT = 27,
154 OmniboxEventProto_PageClassification_OTHER_ON_CCT = 28
155 };
156 bool OmniboxEventProto_PageClassification_IsValid(int value);
157 constexpr OmniboxEventProto_PageClassification OmniboxEventProto_PageClassification_PageClassification_MIN = OmniboxEventProto_PageClassification_INVALID_SPEC;
158 constexpr OmniboxEventProto_PageClassification OmniboxEventProto_PageClassification_PageClassification_MAX = OmniboxEventProto_PageClassification_OTHER_ON_CCT;
159 constexpr int OmniboxEventProto_PageClassification_PageClassification_ARRAYSIZE = OmniboxEventProto_PageClassification_PageClassification_MAX + 1;
160
161 const std::string& OmniboxEventProto_PageClassification_Name(OmniboxEventProto_PageClassification value);
162 template<typename T>
OmniboxEventProto_PageClassification_Name(T enum_t_value)163 inline const std::string& OmniboxEventProto_PageClassification_Name(T enum_t_value) {
164 static_assert(::std::is_same<T, OmniboxEventProto_PageClassification>::value ||
165 ::std::is_integral<T>::value,
166 "Incorrect type passed to function OmniboxEventProto_PageClassification_Name.");
167 return OmniboxEventProto_PageClassification_Name(static_cast<OmniboxEventProto_PageClassification>(enum_t_value));
168 }
169 bool OmniboxEventProto_PageClassification_Parse(
170 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_PageClassification* value);
171 enum OmniboxEventProto_ModeType : int {
172 OmniboxEventProto_ModeType_UNKNOWN_MODE = 0,
173 OmniboxEventProto_ModeType_WEB_MODE = 1,
174 OmniboxEventProto_ModeType_IMAGE_MODE = 2
175 };
176 bool OmniboxEventProto_ModeType_IsValid(int value);
177 constexpr OmniboxEventProto_ModeType OmniboxEventProto_ModeType_ModeType_MIN = OmniboxEventProto_ModeType_UNKNOWN_MODE;
178 constexpr OmniboxEventProto_ModeType OmniboxEventProto_ModeType_ModeType_MAX = OmniboxEventProto_ModeType_IMAGE_MODE;
179 constexpr int OmniboxEventProto_ModeType_ModeType_ARRAYSIZE = OmniboxEventProto_ModeType_ModeType_MAX + 1;
180
181 const std::string& OmniboxEventProto_ModeType_Name(OmniboxEventProto_ModeType value);
182 template<typename T>
OmniboxEventProto_ModeType_Name(T enum_t_value)183 inline const std::string& OmniboxEventProto_ModeType_Name(T enum_t_value) {
184 static_assert(::std::is_same<T, OmniboxEventProto_ModeType>::value ||
185 ::std::is_integral<T>::value,
186 "Incorrect type passed to function OmniboxEventProto_ModeType_Name.");
187 return OmniboxEventProto_ModeType_Name(static_cast<OmniboxEventProto_ModeType>(enum_t_value));
188 }
189 bool OmniboxEventProto_ModeType_Parse(
190 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_ModeType* value);
191 enum OmniboxEventProto_ProviderType : int {
192 OmniboxEventProto_ProviderType_UNKNOWN_PROVIDER = 0,
193 OmniboxEventProto_ProviderType_HISTORY_URL = 1,
194 OmniboxEventProto_ProviderType_HISTORY_CONTENTS = 2,
195 OmniboxEventProto_ProviderType_HISTORY_QUICK = 3,
196 OmniboxEventProto_ProviderType_SEARCH = 4,
197 OmniboxEventProto_ProviderType_KEYWORD = 5,
198 OmniboxEventProto_ProviderType_BUILTIN = 6,
199 OmniboxEventProto_ProviderType_SHORTCUTS = 7,
200 OmniboxEventProto_ProviderType_EXTENSION_APPS = 8,
201 OmniboxEventProto_ProviderType_CONTACT = 9,
202 OmniboxEventProto_ProviderType_BOOKMARK = 10,
203 OmniboxEventProto_ProviderType_ZERO_SUGGEST = 11,
204 OmniboxEventProto_ProviderType_ON_DEVICE = 12,
205 OmniboxEventProto_ProviderType_ON_DEVICE_CHROME = 13,
206 OmniboxEventProto_ProviderType_CLIPBOARD = 14,
207 OmniboxEventProto_ProviderType_PHYSICAL_WEB = 15,
208 OmniboxEventProto_ProviderType_DOCUMENT = 16,
209 OmniboxEventProto_ProviderType_ON_DEVICE_HEAD = 17,
210 OmniboxEventProto_ProviderType_ZERO_SUGGEST_LOCAL_HISTORY = 18,
211 OmniboxEventProto_ProviderType_QUERY_TILE = 19,
212 OmniboxEventProto_ProviderType_HISTORY_CLUSTER = 20,
213 OmniboxEventProto_ProviderType_HISTORY_FUZZY = 21,
214 OmniboxEventProto_ProviderType_OPEN_TAB = 22,
215 OmniboxEventProto_ProviderType_TAB_SWITCH = 23,
216 OmniboxEventProto_ProviderType_PEDALS = 24,
217 OmniboxEventProto_ProviderType_FEATURED_SEARCH = 25
218 };
219 bool OmniboxEventProto_ProviderType_IsValid(int value);
220 constexpr OmniboxEventProto_ProviderType OmniboxEventProto_ProviderType_ProviderType_MIN = OmniboxEventProto_ProviderType_UNKNOWN_PROVIDER;
221 constexpr OmniboxEventProto_ProviderType OmniboxEventProto_ProviderType_ProviderType_MAX = OmniboxEventProto_ProviderType_FEATURED_SEARCH;
222 constexpr int OmniboxEventProto_ProviderType_ProviderType_ARRAYSIZE = OmniboxEventProto_ProviderType_ProviderType_MAX + 1;
223
224 const std::string& OmniboxEventProto_ProviderType_Name(OmniboxEventProto_ProviderType value);
225 template<typename T>
OmniboxEventProto_ProviderType_Name(T enum_t_value)226 inline const std::string& OmniboxEventProto_ProviderType_Name(T enum_t_value) {
227 static_assert(::std::is_same<T, OmniboxEventProto_ProviderType>::value ||
228 ::std::is_integral<T>::value,
229 "Incorrect type passed to function OmniboxEventProto_ProviderType_Name.");
230 return OmniboxEventProto_ProviderType_Name(static_cast<OmniboxEventProto_ProviderType>(enum_t_value));
231 }
232 bool OmniboxEventProto_ProviderType_Parse(
233 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_ProviderType* value);
234 enum OmniboxEventProto_KeywordModeEntryMethod : int {
235 OmniboxEventProto_KeywordModeEntryMethod_INVALID = 0,
236 OmniboxEventProto_KeywordModeEntryMethod_TAB = 1,
237 OmniboxEventProto_KeywordModeEntryMethod_SPACE_AT_END = 2,
238 OmniboxEventProto_KeywordModeEntryMethod_SPACE_IN_MIDDLE = 3,
239 OmniboxEventProto_KeywordModeEntryMethod_KEYBOARD_SHORTCUT = 4,
240 OmniboxEventProto_KeywordModeEntryMethod_QUESTION_MARK = 5,
241 OmniboxEventProto_KeywordModeEntryMethod_CLICK_HINT_VIEW = 6,
242 OmniboxEventProto_KeywordModeEntryMethod_TAP_HINT_VIEW = 7,
243 OmniboxEventProto_KeywordModeEntryMethod_SELECT_SUGGESTION = 8
244 };
245 bool OmniboxEventProto_KeywordModeEntryMethod_IsValid(int value);
246 constexpr OmniboxEventProto_KeywordModeEntryMethod OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_MIN = OmniboxEventProto_KeywordModeEntryMethod_INVALID;
247 constexpr OmniboxEventProto_KeywordModeEntryMethod OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_MAX = OmniboxEventProto_KeywordModeEntryMethod_SELECT_SUGGESTION;
248 constexpr int OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_ARRAYSIZE = OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_MAX + 1;
249
250 const std::string& OmniboxEventProto_KeywordModeEntryMethod_Name(OmniboxEventProto_KeywordModeEntryMethod value);
251 template<typename T>
OmniboxEventProto_KeywordModeEntryMethod_Name(T enum_t_value)252 inline const std::string& OmniboxEventProto_KeywordModeEntryMethod_Name(T enum_t_value) {
253 static_assert(::std::is_same<T, OmniboxEventProto_KeywordModeEntryMethod>::value ||
254 ::std::is_integral<T>::value,
255 "Incorrect type passed to function OmniboxEventProto_KeywordModeEntryMethod_Name.");
256 return OmniboxEventProto_KeywordModeEntryMethod_Name(static_cast<OmniboxEventProto_KeywordModeEntryMethod>(enum_t_value));
257 }
258 bool OmniboxEventProto_KeywordModeEntryMethod_Parse(
259 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_KeywordModeEntryMethod* value);
260 enum OmniboxEventProto_Feature : int {
261 OmniboxEventProto_Feature_RICH_AUTOCOMPLETION = 0,
262 OmniboxEventProto_Feature_SHORT_BOOKMARK_SUGGESTIONS_BY_TOTAL_INPUT_LENGTH = 2,
263 OmniboxEventProto_Feature_FUZZY_URL_SUGGESTIONS = 3,
264 OmniboxEventProto_Feature_HISTORY_CLUSTER_SUGGESTION = 4,
265 OmniboxEventProto_Feature_DOMAIN_SUGGESTIONS = 5,
266 OmniboxEventProto_Feature_REMOTE_SEARCH_FEATURE = 6,
267 OmniboxEventProto_Feature_REMOTE_ZERO_SUGGEST_FEATURE = 7,
268 OmniboxEventProto_Feature_SHORTCUT_BOOST = 8,
269 OmniboxEventProto_Feature_REMOTE_SECONDARY_ZERO_SUGGEST = 9,
270 OmniboxEventProto_Feature_ML_URL_SCORING = 10,
271 OmniboxEventProto_Feature_COMPANY_ENTITY_ADJUSTMENT = 11
272 };
273 bool OmniboxEventProto_Feature_IsValid(int value);
274 constexpr OmniboxEventProto_Feature OmniboxEventProto_Feature_Feature_MIN = OmniboxEventProto_Feature_RICH_AUTOCOMPLETION;
275 constexpr OmniboxEventProto_Feature OmniboxEventProto_Feature_Feature_MAX = OmniboxEventProto_Feature_COMPANY_ENTITY_ADJUSTMENT;
276 constexpr int OmniboxEventProto_Feature_Feature_ARRAYSIZE = OmniboxEventProto_Feature_Feature_MAX + 1;
277
278 const std::string& OmniboxEventProto_Feature_Name(OmniboxEventProto_Feature value);
279 template<typename T>
OmniboxEventProto_Feature_Name(T enum_t_value)280 inline const std::string& OmniboxEventProto_Feature_Name(T enum_t_value) {
281 static_assert(::std::is_same<T, OmniboxEventProto_Feature>::value ||
282 ::std::is_integral<T>::value,
283 "Incorrect type passed to function OmniboxEventProto_Feature_Name.");
284 return OmniboxEventProto_Feature_Name(static_cast<OmniboxEventProto_Feature>(enum_t_value));
285 }
286 bool OmniboxEventProto_Feature_Parse(
287 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_Feature* value);
288 enum OmniboxEventProto_OmniboxPosition : int {
289 OmniboxEventProto_OmniboxPosition_UNKNOWN_POSITION = 0,
290 OmniboxEventProto_OmniboxPosition_TOP_POSITION = 1,
291 OmniboxEventProto_OmniboxPosition_BOTTOM_POSITION = 2
292 };
293 bool OmniboxEventProto_OmniboxPosition_IsValid(int value);
294 constexpr OmniboxEventProto_OmniboxPosition OmniboxEventProto_OmniboxPosition_OmniboxPosition_MIN = OmniboxEventProto_OmniboxPosition_UNKNOWN_POSITION;
295 constexpr OmniboxEventProto_OmniboxPosition OmniboxEventProto_OmniboxPosition_OmniboxPosition_MAX = OmniboxEventProto_OmniboxPosition_BOTTOM_POSITION;
296 constexpr int OmniboxEventProto_OmniboxPosition_OmniboxPosition_ARRAYSIZE = OmniboxEventProto_OmniboxPosition_OmniboxPosition_MAX + 1;
297
298 const std::string& OmniboxEventProto_OmniboxPosition_Name(OmniboxEventProto_OmniboxPosition value);
299 template<typename T>
OmniboxEventProto_OmniboxPosition_Name(T enum_t_value)300 inline const std::string& OmniboxEventProto_OmniboxPosition_Name(T enum_t_value) {
301 static_assert(::std::is_same<T, OmniboxEventProto_OmniboxPosition>::value ||
302 ::std::is_integral<T>::value,
303 "Incorrect type passed to function OmniboxEventProto_OmniboxPosition_Name.");
304 return OmniboxEventProto_OmniboxPosition_Name(static_cast<OmniboxEventProto_OmniboxPosition>(enum_t_value));
305 }
306 bool OmniboxEventProto_OmniboxPosition_Parse(
307 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OmniboxEventProto_OmniboxPosition* value);
308 // ===================================================================
309
310 class OmniboxEventProto_Suggestion_ScoringSignals final :
311 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.OmniboxEventProto.Suggestion.ScoringSignals) */ {
312 public:
OmniboxEventProto_Suggestion_ScoringSignals()313 inline OmniboxEventProto_Suggestion_ScoringSignals() : OmniboxEventProto_Suggestion_ScoringSignals(nullptr) {}
314 ~OmniboxEventProto_Suggestion_ScoringSignals() override;
315 explicit PROTOBUF_CONSTEXPR OmniboxEventProto_Suggestion_ScoringSignals(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
316
317 OmniboxEventProto_Suggestion_ScoringSignals(const OmniboxEventProto_Suggestion_ScoringSignals& from);
OmniboxEventProto_Suggestion_ScoringSignals(OmniboxEventProto_Suggestion_ScoringSignals && from)318 OmniboxEventProto_Suggestion_ScoringSignals(OmniboxEventProto_Suggestion_ScoringSignals&& from) noexcept
319 : OmniboxEventProto_Suggestion_ScoringSignals() {
320 *this = ::std::move(from);
321 }
322
323 inline OmniboxEventProto_Suggestion_ScoringSignals& operator=(const OmniboxEventProto_Suggestion_ScoringSignals& from) {
324 CopyFrom(from);
325 return *this;
326 }
327 inline OmniboxEventProto_Suggestion_ScoringSignals& operator=(OmniboxEventProto_Suggestion_ScoringSignals&& from) noexcept {
328 if (this == &from) return *this;
329 if (GetOwningArena() == from.GetOwningArena()
330 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
331 && GetOwningArena() != nullptr
332 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
333 ) {
334 InternalSwap(&from);
335 } else {
336 CopyFrom(from);
337 }
338 return *this;
339 }
340
unknown_fields()341 inline const std::string& unknown_fields() const {
342 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
343 }
mutable_unknown_fields()344 inline std::string* mutable_unknown_fields() {
345 return _internal_metadata_.mutable_unknown_fields<std::string>();
346 }
347
default_instance()348 static const OmniboxEventProto_Suggestion_ScoringSignals& default_instance() {
349 return *internal_default_instance();
350 }
internal_default_instance()351 static inline const OmniboxEventProto_Suggestion_ScoringSignals* internal_default_instance() {
352 return reinterpret_cast<const OmniboxEventProto_Suggestion_ScoringSignals*>(
353 &_OmniboxEventProto_Suggestion_ScoringSignals_default_instance_);
354 }
355 static constexpr int kIndexInFileMessages =
356 0;
357
swap(OmniboxEventProto_Suggestion_ScoringSignals & a,OmniboxEventProto_Suggestion_ScoringSignals & b)358 friend void swap(OmniboxEventProto_Suggestion_ScoringSignals& a, OmniboxEventProto_Suggestion_ScoringSignals& b) {
359 a.Swap(&b);
360 }
Swap(OmniboxEventProto_Suggestion_ScoringSignals * other)361 PROTOBUF_NOINLINE void Swap(OmniboxEventProto_Suggestion_ScoringSignals* other) {
362 if (other == this) return;
363 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
364 if (GetOwningArena() != nullptr &&
365 GetOwningArena() == other->GetOwningArena()) {
366 #else // PROTOBUF_FORCE_COPY_IN_SWAP
367 if (GetOwningArena() == other->GetOwningArena()) {
368 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
369 InternalSwap(other);
370 } else {
371 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
372 }
373 }
374 void UnsafeArenaSwap(OmniboxEventProto_Suggestion_ScoringSignals* other) {
375 if (other == this) return;
376 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
377 InternalSwap(other);
378 }
379
380 // implements Message ----------------------------------------------
381
382 OmniboxEventProto_Suggestion_ScoringSignals* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
383 return CreateMaybeMessage<OmniboxEventProto_Suggestion_ScoringSignals>(arena);
384 }
385 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
386 void CopyFrom(const OmniboxEventProto_Suggestion_ScoringSignals& from);
387 void MergeFrom(const OmniboxEventProto_Suggestion_ScoringSignals& from);
388 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
389 bool IsInitialized() const final;
390
391 size_t ByteSizeLong() const final;
392 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
393 uint8_t* _InternalSerialize(
394 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
395 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
396
397 private:
398 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
399 void SharedDtor();
400 void SetCachedSize(int size) const;
401 void InternalSwap(OmniboxEventProto_Suggestion_ScoringSignals* other);
402
403 private:
404 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
405 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
406 return "metrics.OmniboxEventProto.Suggestion.ScoringSignals";
407 }
408 protected:
409 explicit OmniboxEventProto_Suggestion_ScoringSignals(::PROTOBUF_NAMESPACE_ID::Arena* arena,
410 bool is_message_owned = false);
411 public:
412
413 std::string GetTypeName() const final;
414
415 // nested types ----------------------------------------------------
416
417 // accessors -------------------------------------------------------
418
419 enum : int {
420 kTypedCountFieldNumber = 1,
421 kVisitCountFieldNumber = 2,
422 kElapsedTimeLastVisitSecsFieldNumber = 3,
423 kShortcutVisitCountFieldNumber = 4,
424 kShortestShortcutLenFieldNumber = 5,
425 kElapsedTimeLastShortcutVisitSecFieldNumber = 6,
426 kNumBookmarksOfUrlFieldNumber = 8,
427 kFirstBookmarkTitleMatchPositionFieldNumber = 9,
428 kTotalBookmarkTitleMatchLengthFieldNumber = 10,
429 kNumInputTermsMatchedByBookmarkTitleFieldNumber = 11,
430 kFirstUrlMatchPositionFieldNumber = 12,
431 kTotalUrlMatchLengthFieldNumber = 13,
432 kTotalHostMatchLengthFieldNumber = 15,
433 kTotalPathMatchLengthFieldNumber = 16,
434 kIsHostOnlyFieldNumber = 7,
435 kHostMatchAtWordBoundaryFieldNumber = 14,
436 kHasNonSchemeWwwMatchFieldNumber = 19,
437 kAllowedToBeDefaultMatchFieldNumber = 24,
438 kTotalQueryOrRefMatchLengthFieldNumber = 17,
439 kTotalTitleMatchLengthFieldNumber = 18,
440 kNumInputTermsMatchedByTitleFieldNumber = 20,
441 kNumInputTermsMatchedByUrlFieldNumber = 21,
442 kLengthOfUrlFieldNumber = 22,
443 kSiteEngagementFieldNumber = 23,
444 };
445 // optional int32 typed_count = 1;
446 bool has_typed_count() const;
447 private:
448 bool _internal_has_typed_count() const;
449 public:
450 void clear_typed_count();
451 int32_t typed_count() const;
452 void set_typed_count(int32_t value);
453 private:
454 int32_t _internal_typed_count() const;
455 void _internal_set_typed_count(int32_t value);
456 public:
457
458 // optional int32 visit_count = 2;
459 bool has_visit_count() const;
460 private:
461 bool _internal_has_visit_count() const;
462 public:
463 void clear_visit_count();
464 int32_t visit_count() const;
465 void set_visit_count(int32_t value);
466 private:
467 int32_t _internal_visit_count() const;
468 void _internal_set_visit_count(int32_t value);
469 public:
470
471 // optional int64 elapsed_time_last_visit_secs = 3;
472 bool has_elapsed_time_last_visit_secs() const;
473 private:
474 bool _internal_has_elapsed_time_last_visit_secs() const;
475 public:
476 void clear_elapsed_time_last_visit_secs();
477 int64_t elapsed_time_last_visit_secs() const;
478 void set_elapsed_time_last_visit_secs(int64_t value);
479 private:
480 int64_t _internal_elapsed_time_last_visit_secs() const;
481 void _internal_set_elapsed_time_last_visit_secs(int64_t value);
482 public:
483
484 // optional int32 shortcut_visit_count = 4;
485 bool has_shortcut_visit_count() const;
486 private:
487 bool _internal_has_shortcut_visit_count() const;
488 public:
489 void clear_shortcut_visit_count();
490 int32_t shortcut_visit_count() const;
491 void set_shortcut_visit_count(int32_t value);
492 private:
493 int32_t _internal_shortcut_visit_count() const;
494 void _internal_set_shortcut_visit_count(int32_t value);
495 public:
496
497 // optional int32 shortest_shortcut_len = 5;
498 bool has_shortest_shortcut_len() const;
499 private:
500 bool _internal_has_shortest_shortcut_len() const;
501 public:
502 void clear_shortest_shortcut_len();
503 int32_t shortest_shortcut_len() const;
504 void set_shortest_shortcut_len(int32_t value);
505 private:
506 int32_t _internal_shortest_shortcut_len() const;
507 void _internal_set_shortest_shortcut_len(int32_t value);
508 public:
509
510 // optional int64 elapsed_time_last_shortcut_visit_sec = 6;
511 bool has_elapsed_time_last_shortcut_visit_sec() const;
512 private:
513 bool _internal_has_elapsed_time_last_shortcut_visit_sec() const;
514 public:
515 void clear_elapsed_time_last_shortcut_visit_sec();
516 int64_t elapsed_time_last_shortcut_visit_sec() const;
517 void set_elapsed_time_last_shortcut_visit_sec(int64_t value);
518 private:
519 int64_t _internal_elapsed_time_last_shortcut_visit_sec() const;
520 void _internal_set_elapsed_time_last_shortcut_visit_sec(int64_t value);
521 public:
522
523 // optional int32 num_bookmarks_of_url = 8;
524 bool has_num_bookmarks_of_url() const;
525 private:
526 bool _internal_has_num_bookmarks_of_url() const;
527 public:
528 void clear_num_bookmarks_of_url();
529 int32_t num_bookmarks_of_url() const;
530 void set_num_bookmarks_of_url(int32_t value);
531 private:
532 int32_t _internal_num_bookmarks_of_url() const;
533 void _internal_set_num_bookmarks_of_url(int32_t value);
534 public:
535
536 // optional int32 first_bookmark_title_match_position = 9;
537 bool has_first_bookmark_title_match_position() const;
538 private:
539 bool _internal_has_first_bookmark_title_match_position() const;
540 public:
541 void clear_first_bookmark_title_match_position();
542 int32_t first_bookmark_title_match_position() const;
543 void set_first_bookmark_title_match_position(int32_t value);
544 private:
545 int32_t _internal_first_bookmark_title_match_position() const;
546 void _internal_set_first_bookmark_title_match_position(int32_t value);
547 public:
548
549 // optional int32 total_bookmark_title_match_length = 10;
550 bool has_total_bookmark_title_match_length() const;
551 private:
552 bool _internal_has_total_bookmark_title_match_length() const;
553 public:
554 void clear_total_bookmark_title_match_length();
555 int32_t total_bookmark_title_match_length() const;
556 void set_total_bookmark_title_match_length(int32_t value);
557 private:
558 int32_t _internal_total_bookmark_title_match_length() const;
559 void _internal_set_total_bookmark_title_match_length(int32_t value);
560 public:
561
562 // optional int32 num_input_terms_matched_by_bookmark_title = 11;
563 bool has_num_input_terms_matched_by_bookmark_title() const;
564 private:
565 bool _internal_has_num_input_terms_matched_by_bookmark_title() const;
566 public:
567 void clear_num_input_terms_matched_by_bookmark_title();
568 int32_t num_input_terms_matched_by_bookmark_title() const;
569 void set_num_input_terms_matched_by_bookmark_title(int32_t value);
570 private:
571 int32_t _internal_num_input_terms_matched_by_bookmark_title() const;
572 void _internal_set_num_input_terms_matched_by_bookmark_title(int32_t value);
573 public:
574
575 // optional int32 first_url_match_position = 12;
576 bool has_first_url_match_position() const;
577 private:
578 bool _internal_has_first_url_match_position() const;
579 public:
580 void clear_first_url_match_position();
581 int32_t first_url_match_position() const;
582 void set_first_url_match_position(int32_t value);
583 private:
584 int32_t _internal_first_url_match_position() const;
585 void _internal_set_first_url_match_position(int32_t value);
586 public:
587
588 // optional int32 total_url_match_length = 13;
589 bool has_total_url_match_length() const;
590 private:
591 bool _internal_has_total_url_match_length() const;
592 public:
593 void clear_total_url_match_length();
594 int32_t total_url_match_length() const;
595 void set_total_url_match_length(int32_t value);
596 private:
597 int32_t _internal_total_url_match_length() const;
598 void _internal_set_total_url_match_length(int32_t value);
599 public:
600
601 // optional int32 total_host_match_length = 15;
602 bool has_total_host_match_length() const;
603 private:
604 bool _internal_has_total_host_match_length() const;
605 public:
606 void clear_total_host_match_length();
607 int32_t total_host_match_length() const;
608 void set_total_host_match_length(int32_t value);
609 private:
610 int32_t _internal_total_host_match_length() const;
611 void _internal_set_total_host_match_length(int32_t value);
612 public:
613
614 // optional int32 total_path_match_length = 16;
615 bool has_total_path_match_length() const;
616 private:
617 bool _internal_has_total_path_match_length() const;
618 public:
619 void clear_total_path_match_length();
620 int32_t total_path_match_length() const;
621 void set_total_path_match_length(int32_t value);
622 private:
623 int32_t _internal_total_path_match_length() const;
624 void _internal_set_total_path_match_length(int32_t value);
625 public:
626
627 // optional bool is_host_only = 7;
628 bool has_is_host_only() const;
629 private:
630 bool _internal_has_is_host_only() const;
631 public:
632 void clear_is_host_only();
633 bool is_host_only() const;
634 void set_is_host_only(bool value);
635 private:
636 bool _internal_is_host_only() const;
637 void _internal_set_is_host_only(bool value);
638 public:
639
640 // optional bool host_match_at_word_boundary = 14;
641 bool has_host_match_at_word_boundary() const;
642 private:
643 bool _internal_has_host_match_at_word_boundary() const;
644 public:
645 void clear_host_match_at_word_boundary();
646 bool host_match_at_word_boundary() const;
647 void set_host_match_at_word_boundary(bool value);
648 private:
649 bool _internal_host_match_at_word_boundary() const;
650 void _internal_set_host_match_at_word_boundary(bool value);
651 public:
652
653 // optional bool has_non_scheme_www_match = 19;
654 bool has_has_non_scheme_www_match() const;
655 private:
656 bool _internal_has_has_non_scheme_www_match() const;
657 public:
658 void clear_has_non_scheme_www_match();
659 bool has_non_scheme_www_match() const;
660 void set_has_non_scheme_www_match(bool value);
661 private:
662 bool _internal_has_non_scheme_www_match() const;
663 void _internal_set_has_non_scheme_www_match(bool value);
664 public:
665
666 // optional bool allowed_to_be_default_match = 24;
667 bool has_allowed_to_be_default_match() const;
668 private:
669 bool _internal_has_allowed_to_be_default_match() const;
670 public:
671 void clear_allowed_to_be_default_match();
672 bool allowed_to_be_default_match() const;
673 void set_allowed_to_be_default_match(bool value);
674 private:
675 bool _internal_allowed_to_be_default_match() const;
676 void _internal_set_allowed_to_be_default_match(bool value);
677 public:
678
679 // optional int32 total_query_or_ref_match_length = 17;
680 bool has_total_query_or_ref_match_length() const;
681 private:
682 bool _internal_has_total_query_or_ref_match_length() const;
683 public:
684 void clear_total_query_or_ref_match_length();
685 int32_t total_query_or_ref_match_length() const;
686 void set_total_query_or_ref_match_length(int32_t value);
687 private:
688 int32_t _internal_total_query_or_ref_match_length() const;
689 void _internal_set_total_query_or_ref_match_length(int32_t value);
690 public:
691
692 // optional int32 total_title_match_length = 18;
693 bool has_total_title_match_length() const;
694 private:
695 bool _internal_has_total_title_match_length() const;
696 public:
697 void clear_total_title_match_length();
698 int32_t total_title_match_length() const;
699 void set_total_title_match_length(int32_t value);
700 private:
701 int32_t _internal_total_title_match_length() const;
702 void _internal_set_total_title_match_length(int32_t value);
703 public:
704
705 // optional int32 num_input_terms_matched_by_title = 20;
706 bool has_num_input_terms_matched_by_title() const;
707 private:
708 bool _internal_has_num_input_terms_matched_by_title() const;
709 public:
710 void clear_num_input_terms_matched_by_title();
711 int32_t num_input_terms_matched_by_title() const;
712 void set_num_input_terms_matched_by_title(int32_t value);
713 private:
714 int32_t _internal_num_input_terms_matched_by_title() const;
715 void _internal_set_num_input_terms_matched_by_title(int32_t value);
716 public:
717
718 // optional int32 num_input_terms_matched_by_url = 21;
719 bool has_num_input_terms_matched_by_url() const;
720 private:
721 bool _internal_has_num_input_terms_matched_by_url() const;
722 public:
723 void clear_num_input_terms_matched_by_url();
724 int32_t num_input_terms_matched_by_url() const;
725 void set_num_input_terms_matched_by_url(int32_t value);
726 private:
727 int32_t _internal_num_input_terms_matched_by_url() const;
728 void _internal_set_num_input_terms_matched_by_url(int32_t value);
729 public:
730
731 // optional int32 length_of_url = 22;
732 bool has_length_of_url() const;
733 private:
734 bool _internal_has_length_of_url() const;
735 public:
736 void clear_length_of_url();
737 int32_t length_of_url() const;
738 void set_length_of_url(int32_t value);
739 private:
740 int32_t _internal_length_of_url() const;
741 void _internal_set_length_of_url(int32_t value);
742 public:
743
744 // optional float site_engagement = 23;
745 bool has_site_engagement() const;
746 private:
747 bool _internal_has_site_engagement() const;
748 public:
749 void clear_site_engagement();
750 float site_engagement() const;
751 void set_site_engagement(float value);
752 private:
753 float _internal_site_engagement() const;
754 void _internal_set_site_engagement(float value);
755 public:
756
757 // @@protoc_insertion_point(class_scope:metrics.OmniboxEventProto.Suggestion.ScoringSignals)
758 private:
759 class _Internal;
760
761 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
762 typedef void InternalArenaConstructable_;
763 typedef void DestructorSkippable_;
764 struct Impl_ {
765 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
766 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
767 int32_t typed_count_;
768 int32_t visit_count_;
769 int64_t elapsed_time_last_visit_secs_;
770 int32_t shortcut_visit_count_;
771 int32_t shortest_shortcut_len_;
772 int64_t elapsed_time_last_shortcut_visit_sec_;
773 int32_t num_bookmarks_of_url_;
774 int32_t first_bookmark_title_match_position_;
775 int32_t total_bookmark_title_match_length_;
776 int32_t num_input_terms_matched_by_bookmark_title_;
777 int32_t first_url_match_position_;
778 int32_t total_url_match_length_;
779 int32_t total_host_match_length_;
780 int32_t total_path_match_length_;
781 bool is_host_only_;
782 bool host_match_at_word_boundary_;
783 bool has_non_scheme_www_match_;
784 bool allowed_to_be_default_match_;
785 int32_t total_query_or_ref_match_length_;
786 int32_t total_title_match_length_;
787 int32_t num_input_terms_matched_by_title_;
788 int32_t num_input_terms_matched_by_url_;
789 int32_t length_of_url_;
790 float site_engagement_;
791 };
792 union { Impl_ _impl_; };
793 friend struct ::TableStruct_omnibox_5fevent_2eproto;
794 };
795 // -------------------------------------------------------------------
796
797 class OmniboxEventProto_Suggestion final :
798 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.OmniboxEventProto.Suggestion) */ {
799 public:
OmniboxEventProto_Suggestion()800 inline OmniboxEventProto_Suggestion() : OmniboxEventProto_Suggestion(nullptr) {}
801 ~OmniboxEventProto_Suggestion() override;
802 explicit PROTOBUF_CONSTEXPR OmniboxEventProto_Suggestion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
803
804 OmniboxEventProto_Suggestion(const OmniboxEventProto_Suggestion& from);
OmniboxEventProto_Suggestion(OmniboxEventProto_Suggestion && from)805 OmniboxEventProto_Suggestion(OmniboxEventProto_Suggestion&& from) noexcept
806 : OmniboxEventProto_Suggestion() {
807 *this = ::std::move(from);
808 }
809
810 inline OmniboxEventProto_Suggestion& operator=(const OmniboxEventProto_Suggestion& from) {
811 CopyFrom(from);
812 return *this;
813 }
814 inline OmniboxEventProto_Suggestion& operator=(OmniboxEventProto_Suggestion&& from) noexcept {
815 if (this == &from) return *this;
816 if (GetOwningArena() == from.GetOwningArena()
817 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
818 && GetOwningArena() != nullptr
819 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
820 ) {
821 InternalSwap(&from);
822 } else {
823 CopyFrom(from);
824 }
825 return *this;
826 }
827
unknown_fields()828 inline const std::string& unknown_fields() const {
829 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
830 }
mutable_unknown_fields()831 inline std::string* mutable_unknown_fields() {
832 return _internal_metadata_.mutable_unknown_fields<std::string>();
833 }
834
default_instance()835 static const OmniboxEventProto_Suggestion& default_instance() {
836 return *internal_default_instance();
837 }
internal_default_instance()838 static inline const OmniboxEventProto_Suggestion* internal_default_instance() {
839 return reinterpret_cast<const OmniboxEventProto_Suggestion*>(
840 &_OmniboxEventProto_Suggestion_default_instance_);
841 }
842 static constexpr int kIndexInFileMessages =
843 1;
844
swap(OmniboxEventProto_Suggestion & a,OmniboxEventProto_Suggestion & b)845 friend void swap(OmniboxEventProto_Suggestion& a, OmniboxEventProto_Suggestion& b) {
846 a.Swap(&b);
847 }
Swap(OmniboxEventProto_Suggestion * other)848 PROTOBUF_NOINLINE void Swap(OmniboxEventProto_Suggestion* other) {
849 if (other == this) return;
850 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
851 if (GetOwningArena() != nullptr &&
852 GetOwningArena() == other->GetOwningArena()) {
853 #else // PROTOBUF_FORCE_COPY_IN_SWAP
854 if (GetOwningArena() == other->GetOwningArena()) {
855 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
856 InternalSwap(other);
857 } else {
858 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
859 }
860 }
861 void UnsafeArenaSwap(OmniboxEventProto_Suggestion* other) {
862 if (other == this) return;
863 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
864 InternalSwap(other);
865 }
866
867 // implements Message ----------------------------------------------
868
869 OmniboxEventProto_Suggestion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
870 return CreateMaybeMessage<OmniboxEventProto_Suggestion>(arena);
871 }
872 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
873 void CopyFrom(const OmniboxEventProto_Suggestion& from);
874 void MergeFrom(const OmniboxEventProto_Suggestion& from);
875 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
876 bool IsInitialized() const final;
877
878 size_t ByteSizeLong() const final;
879 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
880 uint8_t* _InternalSerialize(
881 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
882 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
883
884 private:
885 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
886 void SharedDtor();
887 void SetCachedSize(int size) const;
888 void InternalSwap(OmniboxEventProto_Suggestion* other);
889
890 private:
891 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
892 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
893 return "metrics.OmniboxEventProto.Suggestion";
894 }
895 protected:
896 explicit OmniboxEventProto_Suggestion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
897 bool is_message_owned = false);
898 public:
899
900 std::string GetTypeName() const final;
901
902 // nested types ----------------------------------------------------
903
904 typedef OmniboxEventProto_Suggestion_ScoringSignals ScoringSignals;
905
906 typedef OmniboxEventProto_Suggestion_ResultType ResultType;
907 static constexpr ResultType UNKNOWN_RESULT_TYPE =
908 OmniboxEventProto_Suggestion_ResultType_UNKNOWN_RESULT_TYPE;
909 static constexpr ResultType URL_WHAT_YOU_TYPED =
910 OmniboxEventProto_Suggestion_ResultType_URL_WHAT_YOU_TYPED;
911 static constexpr ResultType HISTORY_URL =
912 OmniboxEventProto_Suggestion_ResultType_HISTORY_URL;
913 static constexpr ResultType HISTORY_TITLE =
914 OmniboxEventProto_Suggestion_ResultType_HISTORY_TITLE;
915 static constexpr ResultType HISTORY_BODY =
916 OmniboxEventProto_Suggestion_ResultType_HISTORY_BODY;
917 static constexpr ResultType HISTORY_KEYWORD =
918 OmniboxEventProto_Suggestion_ResultType_HISTORY_KEYWORD;
919 static constexpr ResultType NAVSUGGEST =
920 OmniboxEventProto_Suggestion_ResultType_NAVSUGGEST;
921 static constexpr ResultType SEARCH_WHAT_YOU_TYPED =
922 OmniboxEventProto_Suggestion_ResultType_SEARCH_WHAT_YOU_TYPED;
923 static constexpr ResultType SEARCH_HISTORY =
924 OmniboxEventProto_Suggestion_ResultType_SEARCH_HISTORY;
925 static constexpr ResultType SEARCH_SUGGEST =
926 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST;
927 static constexpr ResultType SEARCH_OTHER_ENGINE =
928 OmniboxEventProto_Suggestion_ResultType_SEARCH_OTHER_ENGINE;
929 static constexpr ResultType EXTENSION_APP =
930 OmniboxEventProto_Suggestion_ResultType_EXTENSION_APP;
931 static constexpr ResultType CONTACT =
932 OmniboxEventProto_Suggestion_ResultType_CONTACT;
933 static constexpr ResultType BOOKMARK_TITLE =
934 OmniboxEventProto_Suggestion_ResultType_BOOKMARK_TITLE;
935 static constexpr ResultType SEARCH_SUGGEST_ENTITY =
936 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_ENTITY;
937 static constexpr ResultType SEARCH_SUGGEST_TAIL =
938 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_TAIL;
939 static constexpr ResultType SEARCH_SUGGEST_PERSONALIZED =
940 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_PERSONALIZED;
941 static constexpr ResultType SEARCH_SUGGEST_PROFILE =
942 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_PROFILE;
943 static constexpr ResultType APP_RESULT =
944 OmniboxEventProto_Suggestion_ResultType_APP_RESULT;
945 static constexpr ResultType APP =
946 OmniboxEventProto_Suggestion_ResultType_APP;
947 static constexpr ResultType LEGACY_ON_DEVICE =
948 OmniboxEventProto_Suggestion_ResultType_LEGACY_ON_DEVICE;
949 static constexpr ResultType NAVSUGGEST_PERSONALIZED =
950 OmniboxEventProto_Suggestion_ResultType_NAVSUGGEST_PERSONALIZED;
951 static constexpr ResultType SEARCH_SUGGEST_ANSWER =
952 OmniboxEventProto_Suggestion_ResultType_SEARCH_SUGGEST_ANSWER;
953 static constexpr ResultType CALCULATOR =
954 OmniboxEventProto_Suggestion_ResultType_CALCULATOR;
955 static constexpr ResultType CLIPBOARD_URL =
956 OmniboxEventProto_Suggestion_ResultType_CLIPBOARD_URL;
957 static constexpr ResultType PHYSICAL_WEB =
958 OmniboxEventProto_Suggestion_ResultType_PHYSICAL_WEB;
959 static constexpr ResultType PHYSICAL_WEB_OVERFLOW =
960 OmniboxEventProto_Suggestion_ResultType_PHYSICAL_WEB_OVERFLOW;
961 static constexpr ResultType DOCUMENT =
962 OmniboxEventProto_Suggestion_ResultType_DOCUMENT;
963 static constexpr ResultType CLIPBOARD_TEXT =
964 OmniboxEventProto_Suggestion_ResultType_CLIPBOARD_TEXT;
965 static constexpr ResultType CLIPBOARD_IMAGE =
966 OmniboxEventProto_Suggestion_ResultType_CLIPBOARD_IMAGE;
967 static constexpr ResultType TILE_SUGGESTION =
968 OmniboxEventProto_Suggestion_ResultType_TILE_SUGGESTION;
969 static constexpr ResultType HISTORY_CLUSTER =
970 OmniboxEventProto_Suggestion_ResultType_HISTORY_CLUSTER;
971 static constexpr ResultType OPEN_TAB =
972 OmniboxEventProto_Suggestion_ResultType_OPEN_TAB;
973 static constexpr ResultType STARTER_PACK =
974 OmniboxEventProto_Suggestion_ResultType_STARTER_PACK;
975 static constexpr ResultType TAB_SWITCH =
976 OmniboxEventProto_Suggestion_ResultType_TAB_SWITCH;
977 static constexpr ResultType PEDAL =
978 OmniboxEventProto_Suggestion_ResultType_PEDAL;
979 static inline bool ResultType_IsValid(int value) {
980 return OmniboxEventProto_Suggestion_ResultType_IsValid(value);
981 }
982 static constexpr ResultType ResultType_MIN =
983 OmniboxEventProto_Suggestion_ResultType_ResultType_MIN;
984 static constexpr ResultType ResultType_MAX =
985 OmniboxEventProto_Suggestion_ResultType_ResultType_MAX;
986 static constexpr int ResultType_ARRAYSIZE =
987 OmniboxEventProto_Suggestion_ResultType_ResultType_ARRAYSIZE;
988 template<typename T>
989 static inline const std::string& ResultType_Name(T enum_t_value) {
990 static_assert(::std::is_same<T, ResultType>::value ||
991 ::std::is_integral<T>::value,
992 "Incorrect type passed to function ResultType_Name.");
993 return OmniboxEventProto_Suggestion_ResultType_Name(enum_t_value);
994 }
995 static inline bool ResultType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
996 ResultType* value) {
997 return OmniboxEventProto_Suggestion_ResultType_Parse(name, value);
998 }
999
1000 // accessors -------------------------------------------------------
1001
1002 enum : int {
1003 kScoringSignalsFieldNumber = 10,
1004 kProviderFieldNumber = 1,
1005 kResultTypeFieldNumber = 2,
1006 kRelevanceFieldNumber = 3,
1007 kTypedCountFieldNumber = 5,
1008 kIsStarredFieldNumber = 4,
1009 kIsDisabledFieldNumber = 6,
1010 kHasTabMatchFieldNumber = 8,
1011 kIsKeywordSuggestionFieldNumber = 9,
1012 kResultSubtypeIdentifierFieldNumber = 7,
1013 };
1014 // optional .metrics.OmniboxEventProto.Suggestion.ScoringSignals scoring_signals = 10;
1015 bool has_scoring_signals() const;
1016 private:
1017 bool _internal_has_scoring_signals() const;
1018 public:
1019 void clear_scoring_signals();
1020 const ::metrics::OmniboxEventProto_Suggestion_ScoringSignals& scoring_signals() const;
1021 PROTOBUF_NODISCARD ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* release_scoring_signals();
1022 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* mutable_scoring_signals();
1023 void set_allocated_scoring_signals(::metrics::OmniboxEventProto_Suggestion_ScoringSignals* scoring_signals);
1024 private:
1025 const ::metrics::OmniboxEventProto_Suggestion_ScoringSignals& _internal_scoring_signals() const;
1026 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* _internal_mutable_scoring_signals();
1027 public:
1028 void unsafe_arena_set_allocated_scoring_signals(
1029 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* scoring_signals);
1030 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* unsafe_arena_release_scoring_signals();
1031
1032 // optional .metrics.OmniboxEventProto.ProviderType provider = 1;
1033 bool has_provider() const;
1034 private:
1035 bool _internal_has_provider() const;
1036 public:
1037 void clear_provider();
1038 ::metrics::OmniboxEventProto_ProviderType provider() const;
1039 void set_provider(::metrics::OmniboxEventProto_ProviderType value);
1040 private:
1041 ::metrics::OmniboxEventProto_ProviderType _internal_provider() const;
1042 void _internal_set_provider(::metrics::OmniboxEventProto_ProviderType value);
1043 public:
1044
1045 // optional .metrics.OmniboxEventProto.Suggestion.ResultType result_type = 2;
1046 bool has_result_type() const;
1047 private:
1048 bool _internal_has_result_type() const;
1049 public:
1050 void clear_result_type();
1051 ::metrics::OmniboxEventProto_Suggestion_ResultType result_type() const;
1052 void set_result_type(::metrics::OmniboxEventProto_Suggestion_ResultType value);
1053 private:
1054 ::metrics::OmniboxEventProto_Suggestion_ResultType _internal_result_type() const;
1055 void _internal_set_result_type(::metrics::OmniboxEventProto_Suggestion_ResultType value);
1056 public:
1057
1058 // optional int32 relevance = 3;
1059 bool has_relevance() const;
1060 private:
1061 bool _internal_has_relevance() const;
1062 public:
1063 void clear_relevance();
1064 int32_t relevance() const;
1065 void set_relevance(int32_t value);
1066 private:
1067 int32_t _internal_relevance() const;
1068 void _internal_set_relevance(int32_t value);
1069 public:
1070
1071 // optional int32 typed_count = 5;
1072 bool has_typed_count() const;
1073 private:
1074 bool _internal_has_typed_count() const;
1075 public:
1076 void clear_typed_count();
1077 int32_t typed_count() const;
1078 void set_typed_count(int32_t value);
1079 private:
1080 int32_t _internal_typed_count() const;
1081 void _internal_set_typed_count(int32_t value);
1082 public:
1083
1084 // optional bool is_starred = 4 [deprecated = true];
1085 PROTOBUF_DEPRECATED bool has_is_starred() const;
1086 private:
1087 bool _internal_has_is_starred() const;
1088 public:
1089 PROTOBUF_DEPRECATED void clear_is_starred();
1090 PROTOBUF_DEPRECATED bool is_starred() const;
1091 PROTOBUF_DEPRECATED void set_is_starred(bool value);
1092 private:
1093 bool _internal_is_starred() const;
1094 void _internal_set_is_starred(bool value);
1095 public:
1096
1097 // optional bool is_disabled = 6;
1098 bool has_is_disabled() const;
1099 private:
1100 bool _internal_has_is_disabled() const;
1101 public:
1102 void clear_is_disabled();
1103 bool is_disabled() const;
1104 void set_is_disabled(bool value);
1105 private:
1106 bool _internal_is_disabled() const;
1107 void _internal_set_is_disabled(bool value);
1108 public:
1109
1110 // optional bool has_tab_match = 8;
1111 bool has_has_tab_match() const;
1112 private:
1113 bool _internal_has_has_tab_match() const;
1114 public:
1115 void clear_has_tab_match();
1116 bool has_tab_match() const;
1117 void set_has_tab_match(bool value);
1118 private:
1119 bool _internal_has_tab_match() const;
1120 void _internal_set_has_tab_match(bool value);
1121 public:
1122
1123 // optional bool is_keyword_suggestion = 9;
1124 bool has_is_keyword_suggestion() const;
1125 private:
1126 bool _internal_has_is_keyword_suggestion() const;
1127 public:
1128 void clear_is_keyword_suggestion();
1129 bool is_keyword_suggestion() const;
1130 void set_is_keyword_suggestion(bool value);
1131 private:
1132 bool _internal_is_keyword_suggestion() const;
1133 void _internal_set_is_keyword_suggestion(bool value);
1134 public:
1135
1136 // optional int32 result_subtype_identifier = 7;
1137 bool has_result_subtype_identifier() const;
1138 private:
1139 bool _internal_has_result_subtype_identifier() const;
1140 public:
1141 void clear_result_subtype_identifier();
1142 int32_t result_subtype_identifier() const;
1143 void set_result_subtype_identifier(int32_t value);
1144 private:
1145 int32_t _internal_result_subtype_identifier() const;
1146 void _internal_set_result_subtype_identifier(int32_t value);
1147 public:
1148
1149 // @@protoc_insertion_point(class_scope:metrics.OmniboxEventProto.Suggestion)
1150 private:
1151 class _Internal;
1152
1153 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1154 typedef void InternalArenaConstructable_;
1155 typedef void DestructorSkippable_;
1156 struct Impl_ {
1157 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1158 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1159 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* scoring_signals_;
1160 int provider_;
1161 int result_type_;
1162 int32_t relevance_;
1163 int32_t typed_count_;
1164 bool is_starred_;
1165 bool is_disabled_;
1166 bool has_tab_match_;
1167 bool is_keyword_suggestion_;
1168 int32_t result_subtype_identifier_;
1169 };
1170 union { Impl_ _impl_; };
1171 friend struct ::TableStruct_omnibox_5fevent_2eproto;
1172 };
1173 // -------------------------------------------------------------------
1174
1175 class OmniboxEventProto_ProviderInfo final :
1176 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.OmniboxEventProto.ProviderInfo) */ {
1177 public:
OmniboxEventProto_ProviderInfo()1178 inline OmniboxEventProto_ProviderInfo() : OmniboxEventProto_ProviderInfo(nullptr) {}
1179 ~OmniboxEventProto_ProviderInfo() override;
1180 explicit PROTOBUF_CONSTEXPR OmniboxEventProto_ProviderInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1181
1182 OmniboxEventProto_ProviderInfo(const OmniboxEventProto_ProviderInfo& from);
OmniboxEventProto_ProviderInfo(OmniboxEventProto_ProviderInfo && from)1183 OmniboxEventProto_ProviderInfo(OmniboxEventProto_ProviderInfo&& from) noexcept
1184 : OmniboxEventProto_ProviderInfo() {
1185 *this = ::std::move(from);
1186 }
1187
1188 inline OmniboxEventProto_ProviderInfo& operator=(const OmniboxEventProto_ProviderInfo& from) {
1189 CopyFrom(from);
1190 return *this;
1191 }
1192 inline OmniboxEventProto_ProviderInfo& operator=(OmniboxEventProto_ProviderInfo&& from) noexcept {
1193 if (this == &from) return *this;
1194 if (GetOwningArena() == from.GetOwningArena()
1195 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1196 && GetOwningArena() != nullptr
1197 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1198 ) {
1199 InternalSwap(&from);
1200 } else {
1201 CopyFrom(from);
1202 }
1203 return *this;
1204 }
1205
unknown_fields()1206 inline const std::string& unknown_fields() const {
1207 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
1208 }
mutable_unknown_fields()1209 inline std::string* mutable_unknown_fields() {
1210 return _internal_metadata_.mutable_unknown_fields<std::string>();
1211 }
1212
default_instance()1213 static const OmniboxEventProto_ProviderInfo& default_instance() {
1214 return *internal_default_instance();
1215 }
internal_default_instance()1216 static inline const OmniboxEventProto_ProviderInfo* internal_default_instance() {
1217 return reinterpret_cast<const OmniboxEventProto_ProviderInfo*>(
1218 &_OmniboxEventProto_ProviderInfo_default_instance_);
1219 }
1220 static constexpr int kIndexInFileMessages =
1221 2;
1222
swap(OmniboxEventProto_ProviderInfo & a,OmniboxEventProto_ProviderInfo & b)1223 friend void swap(OmniboxEventProto_ProviderInfo& a, OmniboxEventProto_ProviderInfo& b) {
1224 a.Swap(&b);
1225 }
Swap(OmniboxEventProto_ProviderInfo * other)1226 PROTOBUF_NOINLINE void Swap(OmniboxEventProto_ProviderInfo* other) {
1227 if (other == this) return;
1228 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1229 if (GetOwningArena() != nullptr &&
1230 GetOwningArena() == other->GetOwningArena()) {
1231 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1232 if (GetOwningArena() == other->GetOwningArena()) {
1233 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1234 InternalSwap(other);
1235 } else {
1236 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1237 }
1238 }
1239 void UnsafeArenaSwap(OmniboxEventProto_ProviderInfo* other) {
1240 if (other == this) return;
1241 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1242 InternalSwap(other);
1243 }
1244
1245 // implements Message ----------------------------------------------
1246
1247 OmniboxEventProto_ProviderInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
1248 return CreateMaybeMessage<OmniboxEventProto_ProviderInfo>(arena);
1249 }
1250 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
1251 void CopyFrom(const OmniboxEventProto_ProviderInfo& from);
1252 void MergeFrom(const OmniboxEventProto_ProviderInfo& from);
1253 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1254 bool IsInitialized() const final;
1255
1256 size_t ByteSizeLong() const final;
1257 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1258 uint8_t* _InternalSerialize(
1259 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1260 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1261
1262 private:
1263 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1264 void SharedDtor();
1265 void SetCachedSize(int size) const;
1266 void InternalSwap(OmniboxEventProto_ProviderInfo* other);
1267
1268 private:
1269 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1270 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1271 return "metrics.OmniboxEventProto.ProviderInfo";
1272 }
1273 protected:
1274 explicit OmniboxEventProto_ProviderInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1275 bool is_message_owned = false);
1276 public:
1277
1278 std::string GetTypeName() const final;
1279
1280 // nested types ----------------------------------------------------
1281
1282 // accessors -------------------------------------------------------
1283
1284 enum : int {
1285 kFieldTrialTriggeredFieldNumber = 3,
1286 kFieldTrialTriggeredInSessionFieldNumber = 4,
1287 kProviderFieldNumber = 1,
1288 kProviderDoneFieldNumber = 2,
1289 kTimesReturnedResultsInSessionFieldNumber = 5,
1290 };
1291 // repeated fixed32 field_trial_triggered = 3 [deprecated = true];
1292 PROTOBUF_DEPRECATED int field_trial_triggered_size() const;
1293 private:
1294 int _internal_field_trial_triggered_size() const;
1295 public:
1296 PROTOBUF_DEPRECATED void clear_field_trial_triggered();
1297 private:
1298 uint32_t _internal_field_trial_triggered(int index) const;
1299 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1300 _internal_field_trial_triggered() const;
1301 void _internal_add_field_trial_triggered(uint32_t value);
1302 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1303 _internal_mutable_field_trial_triggered();
1304 public:
1305 PROTOBUF_DEPRECATED uint32_t field_trial_triggered(int index) const;
1306 PROTOBUF_DEPRECATED void set_field_trial_triggered(int index, uint32_t value);
1307 PROTOBUF_DEPRECATED void add_field_trial_triggered(uint32_t value);
1308 PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1309 field_trial_triggered() const;
1310 PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1311 mutable_field_trial_triggered();
1312
1313 // repeated fixed32 field_trial_triggered_in_session = 4 [deprecated = true];
1314 PROTOBUF_DEPRECATED int field_trial_triggered_in_session_size() const;
1315 private:
1316 int _internal_field_trial_triggered_in_session_size() const;
1317 public:
1318 PROTOBUF_DEPRECATED void clear_field_trial_triggered_in_session();
1319 private:
1320 uint32_t _internal_field_trial_triggered_in_session(int index) const;
1321 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1322 _internal_field_trial_triggered_in_session() const;
1323 void _internal_add_field_trial_triggered_in_session(uint32_t value);
1324 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1325 _internal_mutable_field_trial_triggered_in_session();
1326 public:
1327 PROTOBUF_DEPRECATED uint32_t field_trial_triggered_in_session(int index) const;
1328 PROTOBUF_DEPRECATED void set_field_trial_triggered_in_session(int index, uint32_t value);
1329 PROTOBUF_DEPRECATED void add_field_trial_triggered_in_session(uint32_t value);
1330 PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1331 field_trial_triggered_in_session() const;
1332 PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1333 mutable_field_trial_triggered_in_session();
1334
1335 // optional .metrics.OmniboxEventProto.ProviderType provider = 1;
1336 bool has_provider() const;
1337 private:
1338 bool _internal_has_provider() const;
1339 public:
1340 void clear_provider();
1341 ::metrics::OmniboxEventProto_ProviderType provider() const;
1342 void set_provider(::metrics::OmniboxEventProto_ProviderType value);
1343 private:
1344 ::metrics::OmniboxEventProto_ProviderType _internal_provider() const;
1345 void _internal_set_provider(::metrics::OmniboxEventProto_ProviderType value);
1346 public:
1347
1348 // optional bool provider_done = 2;
1349 bool has_provider_done() const;
1350 private:
1351 bool _internal_has_provider_done() const;
1352 public:
1353 void clear_provider_done();
1354 bool provider_done() const;
1355 void set_provider_done(bool value);
1356 private:
1357 bool _internal_provider_done() const;
1358 void _internal_set_provider_done(bool value);
1359 public:
1360
1361 // optional int32 times_returned_results_in_session = 5;
1362 bool has_times_returned_results_in_session() const;
1363 private:
1364 bool _internal_has_times_returned_results_in_session() const;
1365 public:
1366 void clear_times_returned_results_in_session();
1367 int32_t times_returned_results_in_session() const;
1368 void set_times_returned_results_in_session(int32_t value);
1369 private:
1370 int32_t _internal_times_returned_results_in_session() const;
1371 void _internal_set_times_returned_results_in_session(int32_t value);
1372 public:
1373
1374 // @@protoc_insertion_point(class_scope:metrics.OmniboxEventProto.ProviderInfo)
1375 private:
1376 class _Internal;
1377
1378 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1379 typedef void InternalArenaConstructable_;
1380 typedef void DestructorSkippable_;
1381 struct Impl_ {
1382 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1383 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1384 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > field_trial_triggered_;
1385 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > field_trial_triggered_in_session_;
1386 int provider_;
1387 bool provider_done_;
1388 int32_t times_returned_results_in_session_;
1389 };
1390 union { Impl_ _impl_; };
1391 friend struct ::TableStruct_omnibox_5fevent_2eproto;
1392 };
1393 // -------------------------------------------------------------------
1394
1395 class OmniboxEventProto_ProfileData final :
1396 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.OmniboxEventProto.ProfileData) */ {
1397 public:
OmniboxEventProto_ProfileData()1398 inline OmniboxEventProto_ProfileData() : OmniboxEventProto_ProfileData(nullptr) {}
1399 ~OmniboxEventProto_ProfileData() override;
1400 explicit PROTOBUF_CONSTEXPR OmniboxEventProto_ProfileData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1401
1402 OmniboxEventProto_ProfileData(const OmniboxEventProto_ProfileData& from);
OmniboxEventProto_ProfileData(OmniboxEventProto_ProfileData && from)1403 OmniboxEventProto_ProfileData(OmniboxEventProto_ProfileData&& from) noexcept
1404 : OmniboxEventProto_ProfileData() {
1405 *this = ::std::move(from);
1406 }
1407
1408 inline OmniboxEventProto_ProfileData& operator=(const OmniboxEventProto_ProfileData& from) {
1409 CopyFrom(from);
1410 return *this;
1411 }
1412 inline OmniboxEventProto_ProfileData& operator=(OmniboxEventProto_ProfileData&& from) noexcept {
1413 if (this == &from) return *this;
1414 if (GetOwningArena() == from.GetOwningArena()
1415 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1416 && GetOwningArena() != nullptr
1417 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1418 ) {
1419 InternalSwap(&from);
1420 } else {
1421 CopyFrom(from);
1422 }
1423 return *this;
1424 }
1425
unknown_fields()1426 inline const std::string& unknown_fields() const {
1427 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
1428 }
mutable_unknown_fields()1429 inline std::string* mutable_unknown_fields() {
1430 return _internal_metadata_.mutable_unknown_fields<std::string>();
1431 }
1432
default_instance()1433 static const OmniboxEventProto_ProfileData& default_instance() {
1434 return *internal_default_instance();
1435 }
internal_default_instance()1436 static inline const OmniboxEventProto_ProfileData* internal_default_instance() {
1437 return reinterpret_cast<const OmniboxEventProto_ProfileData*>(
1438 &_OmniboxEventProto_ProfileData_default_instance_);
1439 }
1440 static constexpr int kIndexInFileMessages =
1441 3;
1442
swap(OmniboxEventProto_ProfileData & a,OmniboxEventProto_ProfileData & b)1443 friend void swap(OmniboxEventProto_ProfileData& a, OmniboxEventProto_ProfileData& b) {
1444 a.Swap(&b);
1445 }
Swap(OmniboxEventProto_ProfileData * other)1446 PROTOBUF_NOINLINE void Swap(OmniboxEventProto_ProfileData* other) {
1447 if (other == this) return;
1448 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1449 if (GetOwningArena() != nullptr &&
1450 GetOwningArena() == other->GetOwningArena()) {
1451 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1452 if (GetOwningArena() == other->GetOwningArena()) {
1453 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1454 InternalSwap(other);
1455 } else {
1456 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1457 }
1458 }
1459 void UnsafeArenaSwap(OmniboxEventProto_ProfileData* other) {
1460 if (other == this) return;
1461 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1462 InternalSwap(other);
1463 }
1464
1465 // implements Message ----------------------------------------------
1466
1467 OmniboxEventProto_ProfileData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
1468 return CreateMaybeMessage<OmniboxEventProto_ProfileData>(arena);
1469 }
1470 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
1471 void CopyFrom(const OmniboxEventProto_ProfileData& from);
1472 void MergeFrom(const OmniboxEventProto_ProfileData& from);
1473 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1474 bool IsInitialized() const final;
1475
1476 size_t ByteSizeLong() const final;
1477 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1478 uint8_t* _InternalSerialize(
1479 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1480 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1481
1482 private:
1483 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1484 void SharedDtor();
1485 void SetCachedSize(int size) const;
1486 void InternalSwap(OmniboxEventProto_ProfileData* other);
1487
1488 private:
1489 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1490 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1491 return "metrics.OmniboxEventProto.ProfileData";
1492 }
1493 protected:
1494 explicit OmniboxEventProto_ProfileData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1495 bool is_message_owned = false);
1496 public:
1497
1498 std::string GetTypeName() const final;
1499
1500 // nested types ----------------------------------------------------
1501
1502 // accessors -------------------------------------------------------
1503
1504 enum : int {
1505 kTotalNumBookmarksFieldNumber = 1,
1506 kTotalNumHistoryUrlsFieldNumber = 2,
1507 kIsSignedIntoBrowserFieldNumber = 3,
1508 kIsSyncEnabledFieldNumber = 4,
1509 };
1510 // optional int32 total_num_bookmarks = 1;
1511 bool has_total_num_bookmarks() const;
1512 private:
1513 bool _internal_has_total_num_bookmarks() const;
1514 public:
1515 void clear_total_num_bookmarks();
1516 int32_t total_num_bookmarks() const;
1517 void set_total_num_bookmarks(int32_t value);
1518 private:
1519 int32_t _internal_total_num_bookmarks() const;
1520 void _internal_set_total_num_bookmarks(int32_t value);
1521 public:
1522
1523 // optional int32 total_num_history_urls = 2;
1524 bool has_total_num_history_urls() const;
1525 private:
1526 bool _internal_has_total_num_history_urls() const;
1527 public:
1528 void clear_total_num_history_urls();
1529 int32_t total_num_history_urls() const;
1530 void set_total_num_history_urls(int32_t value);
1531 private:
1532 int32_t _internal_total_num_history_urls() const;
1533 void _internal_set_total_num_history_urls(int32_t value);
1534 public:
1535
1536 // optional bool is_signed_into_browser = 3;
1537 bool has_is_signed_into_browser() const;
1538 private:
1539 bool _internal_has_is_signed_into_browser() const;
1540 public:
1541 void clear_is_signed_into_browser();
1542 bool is_signed_into_browser() const;
1543 void set_is_signed_into_browser(bool value);
1544 private:
1545 bool _internal_is_signed_into_browser() const;
1546 void _internal_set_is_signed_into_browser(bool value);
1547 public:
1548
1549 // optional bool is_sync_enabled = 4;
1550 bool has_is_sync_enabled() const;
1551 private:
1552 bool _internal_has_is_sync_enabled() const;
1553 public:
1554 void clear_is_sync_enabled();
1555 bool is_sync_enabled() const;
1556 void set_is_sync_enabled(bool value);
1557 private:
1558 bool _internal_is_sync_enabled() const;
1559 void _internal_set_is_sync_enabled(bool value);
1560 public:
1561
1562 // @@protoc_insertion_point(class_scope:metrics.OmniboxEventProto.ProfileData)
1563 private:
1564 class _Internal;
1565
1566 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1567 typedef void InternalArenaConstructable_;
1568 typedef void DestructorSkippable_;
1569 struct Impl_ {
1570 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1571 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1572 int32_t total_num_bookmarks_;
1573 int32_t total_num_history_urls_;
1574 bool is_signed_into_browser_;
1575 bool is_sync_enabled_;
1576 };
1577 union { Impl_ _impl_; };
1578 friend struct ::TableStruct_omnibox_5fevent_2eproto;
1579 };
1580 // -------------------------------------------------------------------
1581
1582 class OmniboxEventProto final :
1583 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.OmniboxEventProto) */ {
1584 public:
OmniboxEventProto()1585 inline OmniboxEventProto() : OmniboxEventProto(nullptr) {}
1586 ~OmniboxEventProto() override;
1587 explicit PROTOBUF_CONSTEXPR OmniboxEventProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1588
1589 OmniboxEventProto(const OmniboxEventProto& from);
OmniboxEventProto(OmniboxEventProto && from)1590 OmniboxEventProto(OmniboxEventProto&& from) noexcept
1591 : OmniboxEventProto() {
1592 *this = ::std::move(from);
1593 }
1594
1595 inline OmniboxEventProto& operator=(const OmniboxEventProto& from) {
1596 CopyFrom(from);
1597 return *this;
1598 }
1599 inline OmniboxEventProto& operator=(OmniboxEventProto&& from) noexcept {
1600 if (this == &from) return *this;
1601 if (GetOwningArena() == from.GetOwningArena()
1602 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1603 && GetOwningArena() != nullptr
1604 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1605 ) {
1606 InternalSwap(&from);
1607 } else {
1608 CopyFrom(from);
1609 }
1610 return *this;
1611 }
1612
unknown_fields()1613 inline const std::string& unknown_fields() const {
1614 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
1615 }
mutable_unknown_fields()1616 inline std::string* mutable_unknown_fields() {
1617 return _internal_metadata_.mutable_unknown_fields<std::string>();
1618 }
1619
default_instance()1620 static const OmniboxEventProto& default_instance() {
1621 return *internal_default_instance();
1622 }
internal_default_instance()1623 static inline const OmniboxEventProto* internal_default_instance() {
1624 return reinterpret_cast<const OmniboxEventProto*>(
1625 &_OmniboxEventProto_default_instance_);
1626 }
1627 static constexpr int kIndexInFileMessages =
1628 4;
1629
swap(OmniboxEventProto & a,OmniboxEventProto & b)1630 friend void swap(OmniboxEventProto& a, OmniboxEventProto& b) {
1631 a.Swap(&b);
1632 }
Swap(OmniboxEventProto * other)1633 PROTOBUF_NOINLINE void Swap(OmniboxEventProto* other) {
1634 if (other == this) return;
1635 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1636 if (GetOwningArena() != nullptr &&
1637 GetOwningArena() == other->GetOwningArena()) {
1638 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1639 if (GetOwningArena() == other->GetOwningArena()) {
1640 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1641 InternalSwap(other);
1642 } else {
1643 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1644 }
1645 }
1646 void UnsafeArenaSwap(OmniboxEventProto* other) {
1647 if (other == this) return;
1648 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1649 InternalSwap(other);
1650 }
1651
1652 // implements Message ----------------------------------------------
1653
1654 OmniboxEventProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
1655 return CreateMaybeMessage<OmniboxEventProto>(arena);
1656 }
1657 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
1658 void CopyFrom(const OmniboxEventProto& from);
1659 void MergeFrom(const OmniboxEventProto& from);
1660 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1661 bool IsInitialized() const final;
1662
1663 size_t ByteSizeLong() const final;
1664 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1665 uint8_t* _InternalSerialize(
1666 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1667 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1668
1669 private:
1670 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1671 void SharedDtor();
1672 void SetCachedSize(int size) const;
1673 void InternalSwap(OmniboxEventProto* other);
1674
1675 private:
1676 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1677 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1678 return "metrics.OmniboxEventProto";
1679 }
1680 protected:
1681 explicit OmniboxEventProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1682 bool is_message_owned = false);
1683 public:
1684
1685 std::string GetTypeName() const final;
1686
1687 // nested types ----------------------------------------------------
1688
1689 typedef OmniboxEventProto_Suggestion Suggestion;
1690 typedef OmniboxEventProto_ProviderInfo ProviderInfo;
1691 typedef OmniboxEventProto_ProfileData ProfileData;
1692
1693 typedef OmniboxEventProto_PageClassification PageClassification;
1694 static constexpr PageClassification INVALID_SPEC =
1695 OmniboxEventProto_PageClassification_INVALID_SPEC;
1696 static constexpr PageClassification NTP =
1697 OmniboxEventProto_PageClassification_NTP;
1698 static constexpr PageClassification BLANK =
1699 OmniboxEventProto_PageClassification_BLANK;
1700 static constexpr PageClassification HOME_PAGE =
1701 OmniboxEventProto_PageClassification_HOME_PAGE;
1702 static constexpr PageClassification OTHER =
1703 OmniboxEventProto_PageClassification_OTHER;
1704 static constexpr PageClassification OBSOLETE_INSTANT_NTP =
1705 OmniboxEventProto_PageClassification_OBSOLETE_INSTANT_NTP;
1706 static constexpr PageClassification SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT =
1707 OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT;
1708 static constexpr PageClassification INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS =
1709 OmniboxEventProto_PageClassification_INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS;
1710 static constexpr PageClassification INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS =
1711 OmniboxEventProto_PageClassification_INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS;
1712 static constexpr PageClassification SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT =
1713 OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT;
1714 static constexpr PageClassification APP_HOME =
1715 OmniboxEventProto_PageClassification_APP_HOME;
1716 static constexpr PageClassification APP_SEARCH =
1717 OmniboxEventProto_PageClassification_APP_SEARCH;
1718 static constexpr PageClassification APP_MAPS =
1719 OmniboxEventProto_PageClassification_APP_MAPS;
1720 static constexpr PageClassification SEARCH_BUTTON_AS_STARTING_FOCUS =
1721 OmniboxEventProto_PageClassification_SEARCH_BUTTON_AS_STARTING_FOCUS;
1722 static constexpr PageClassification CHROMEOS_APP_LIST =
1723 OmniboxEventProto_PageClassification_CHROMEOS_APP_LIST;
1724 static constexpr PageClassification NTP_REALBOX =
1725 OmniboxEventProto_PageClassification_NTP_REALBOX;
1726 static constexpr PageClassification ANDROID_SEARCH_WIDGET =
1727 OmniboxEventProto_PageClassification_ANDROID_SEARCH_WIDGET;
1728 static constexpr PageClassification START_SURFACE_HOMEPAGE =
1729 OmniboxEventProto_PageClassification_START_SURFACE_HOMEPAGE;
1730 static constexpr PageClassification START_SURFACE_NEW_TAB =
1731 OmniboxEventProto_PageClassification_START_SURFACE_NEW_TAB;
1732 static constexpr PageClassification ANDROID_SHORTCUTS_WIDGET =
1733 OmniboxEventProto_PageClassification_ANDROID_SHORTCUTS_WIDGET;
1734 static constexpr PageClassification NTP_ZPS_PREFETCH =
1735 OmniboxEventProto_PageClassification_NTP_ZPS_PREFETCH;
1736 static constexpr PageClassification JOURNEYS =
1737 OmniboxEventProto_PageClassification_JOURNEYS;
1738 static constexpr PageClassification SRP_ZPS_PREFETCH =
1739 OmniboxEventProto_PageClassification_SRP_ZPS_PREFETCH;
1740 static constexpr PageClassification OTHER_ZPS_PREFETCH =
1741 OmniboxEventProto_PageClassification_OTHER_ZPS_PREFETCH;
1742 static constexpr PageClassification CONTEXTUAL_SEARCHBOX =
1743 OmniboxEventProto_PageClassification_CONTEXTUAL_SEARCHBOX;
1744 static constexpr PageClassification SEARCH_SIDE_PANEL_SEARCHBOX =
1745 OmniboxEventProto_PageClassification_SEARCH_SIDE_PANEL_SEARCHBOX;
1746 static constexpr PageClassification LENS_SIDE_PANEL_SEARCHBOX =
1747 OmniboxEventProto_PageClassification_LENS_SIDE_PANEL_SEARCHBOX;
1748 static constexpr PageClassification SEARCH_RESULT_PAGE_ON_CCT =
1749 OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_ON_CCT;
1750 static constexpr PageClassification OTHER_ON_CCT =
1751 OmniboxEventProto_PageClassification_OTHER_ON_CCT;
1752 static inline bool PageClassification_IsValid(int value) {
1753 return OmniboxEventProto_PageClassification_IsValid(value);
1754 }
1755 static constexpr PageClassification PageClassification_MIN =
1756 OmniboxEventProto_PageClassification_PageClassification_MIN;
1757 static constexpr PageClassification PageClassification_MAX =
1758 OmniboxEventProto_PageClassification_PageClassification_MAX;
1759 static constexpr int PageClassification_ARRAYSIZE =
1760 OmniboxEventProto_PageClassification_PageClassification_ARRAYSIZE;
1761 template<typename T>
1762 static inline const std::string& PageClassification_Name(T enum_t_value) {
1763 static_assert(::std::is_same<T, PageClassification>::value ||
1764 ::std::is_integral<T>::value,
1765 "Incorrect type passed to function PageClassification_Name.");
1766 return OmniboxEventProto_PageClassification_Name(enum_t_value);
1767 }
1768 static inline bool PageClassification_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1769 PageClassification* value) {
1770 return OmniboxEventProto_PageClassification_Parse(name, value);
1771 }
1772
1773 typedef OmniboxEventProto_ModeType ModeType;
1774 static constexpr ModeType UNKNOWN_MODE =
1775 OmniboxEventProto_ModeType_UNKNOWN_MODE;
1776 static constexpr ModeType WEB_MODE =
1777 OmniboxEventProto_ModeType_WEB_MODE;
1778 static constexpr ModeType IMAGE_MODE =
1779 OmniboxEventProto_ModeType_IMAGE_MODE;
1780 static inline bool ModeType_IsValid(int value) {
1781 return OmniboxEventProto_ModeType_IsValid(value);
1782 }
1783 static constexpr ModeType ModeType_MIN =
1784 OmniboxEventProto_ModeType_ModeType_MIN;
1785 static constexpr ModeType ModeType_MAX =
1786 OmniboxEventProto_ModeType_ModeType_MAX;
1787 static constexpr int ModeType_ARRAYSIZE =
1788 OmniboxEventProto_ModeType_ModeType_ARRAYSIZE;
1789 template<typename T>
1790 static inline const std::string& ModeType_Name(T enum_t_value) {
1791 static_assert(::std::is_same<T, ModeType>::value ||
1792 ::std::is_integral<T>::value,
1793 "Incorrect type passed to function ModeType_Name.");
1794 return OmniboxEventProto_ModeType_Name(enum_t_value);
1795 }
1796 static inline bool ModeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1797 ModeType* value) {
1798 return OmniboxEventProto_ModeType_Parse(name, value);
1799 }
1800
1801 typedef OmniboxEventProto_ProviderType ProviderType;
1802 static constexpr ProviderType UNKNOWN_PROVIDER =
1803 OmniboxEventProto_ProviderType_UNKNOWN_PROVIDER;
1804 static constexpr ProviderType HISTORY_URL =
1805 OmniboxEventProto_ProviderType_HISTORY_URL;
1806 static constexpr ProviderType HISTORY_CONTENTS =
1807 OmniboxEventProto_ProviderType_HISTORY_CONTENTS;
1808 static constexpr ProviderType HISTORY_QUICK =
1809 OmniboxEventProto_ProviderType_HISTORY_QUICK;
1810 static constexpr ProviderType SEARCH =
1811 OmniboxEventProto_ProviderType_SEARCH;
1812 static constexpr ProviderType KEYWORD =
1813 OmniboxEventProto_ProviderType_KEYWORD;
1814 static constexpr ProviderType BUILTIN =
1815 OmniboxEventProto_ProviderType_BUILTIN;
1816 static constexpr ProviderType SHORTCUTS =
1817 OmniboxEventProto_ProviderType_SHORTCUTS;
1818 static constexpr ProviderType EXTENSION_APPS =
1819 OmniboxEventProto_ProviderType_EXTENSION_APPS;
1820 static constexpr ProviderType CONTACT =
1821 OmniboxEventProto_ProviderType_CONTACT;
1822 static constexpr ProviderType BOOKMARK =
1823 OmniboxEventProto_ProviderType_BOOKMARK;
1824 static constexpr ProviderType ZERO_SUGGEST =
1825 OmniboxEventProto_ProviderType_ZERO_SUGGEST;
1826 static constexpr ProviderType ON_DEVICE =
1827 OmniboxEventProto_ProviderType_ON_DEVICE;
1828 static constexpr ProviderType ON_DEVICE_CHROME =
1829 OmniboxEventProto_ProviderType_ON_DEVICE_CHROME;
1830 static constexpr ProviderType CLIPBOARD =
1831 OmniboxEventProto_ProviderType_CLIPBOARD;
1832 static constexpr ProviderType PHYSICAL_WEB =
1833 OmniboxEventProto_ProviderType_PHYSICAL_WEB;
1834 static constexpr ProviderType DOCUMENT =
1835 OmniboxEventProto_ProviderType_DOCUMENT;
1836 static constexpr ProviderType ON_DEVICE_HEAD =
1837 OmniboxEventProto_ProviderType_ON_DEVICE_HEAD;
1838 static constexpr ProviderType ZERO_SUGGEST_LOCAL_HISTORY =
1839 OmniboxEventProto_ProviderType_ZERO_SUGGEST_LOCAL_HISTORY;
1840 static constexpr ProviderType QUERY_TILE =
1841 OmniboxEventProto_ProviderType_QUERY_TILE;
1842 static constexpr ProviderType HISTORY_CLUSTER =
1843 OmniboxEventProto_ProviderType_HISTORY_CLUSTER;
1844 static constexpr ProviderType HISTORY_FUZZY =
1845 OmniboxEventProto_ProviderType_HISTORY_FUZZY;
1846 static constexpr ProviderType OPEN_TAB =
1847 OmniboxEventProto_ProviderType_OPEN_TAB;
1848 static constexpr ProviderType TAB_SWITCH =
1849 OmniboxEventProto_ProviderType_TAB_SWITCH;
1850 static constexpr ProviderType PEDALS =
1851 OmniboxEventProto_ProviderType_PEDALS;
1852 static constexpr ProviderType FEATURED_SEARCH =
1853 OmniboxEventProto_ProviderType_FEATURED_SEARCH;
1854 static inline bool ProviderType_IsValid(int value) {
1855 return OmniboxEventProto_ProviderType_IsValid(value);
1856 }
1857 static constexpr ProviderType ProviderType_MIN =
1858 OmniboxEventProto_ProviderType_ProviderType_MIN;
1859 static constexpr ProviderType ProviderType_MAX =
1860 OmniboxEventProto_ProviderType_ProviderType_MAX;
1861 static constexpr int ProviderType_ARRAYSIZE =
1862 OmniboxEventProto_ProviderType_ProviderType_ARRAYSIZE;
1863 template<typename T>
1864 static inline const std::string& ProviderType_Name(T enum_t_value) {
1865 static_assert(::std::is_same<T, ProviderType>::value ||
1866 ::std::is_integral<T>::value,
1867 "Incorrect type passed to function ProviderType_Name.");
1868 return OmniboxEventProto_ProviderType_Name(enum_t_value);
1869 }
1870 static inline bool ProviderType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1871 ProviderType* value) {
1872 return OmniboxEventProto_ProviderType_Parse(name, value);
1873 }
1874
1875 typedef OmniboxEventProto_KeywordModeEntryMethod KeywordModeEntryMethod;
1876 static constexpr KeywordModeEntryMethod INVALID =
1877 OmniboxEventProto_KeywordModeEntryMethod_INVALID;
1878 static constexpr KeywordModeEntryMethod TAB =
1879 OmniboxEventProto_KeywordModeEntryMethod_TAB;
1880 static constexpr KeywordModeEntryMethod SPACE_AT_END =
1881 OmniboxEventProto_KeywordModeEntryMethod_SPACE_AT_END;
1882 static constexpr KeywordModeEntryMethod SPACE_IN_MIDDLE =
1883 OmniboxEventProto_KeywordModeEntryMethod_SPACE_IN_MIDDLE;
1884 static constexpr KeywordModeEntryMethod KEYBOARD_SHORTCUT =
1885 OmniboxEventProto_KeywordModeEntryMethod_KEYBOARD_SHORTCUT;
1886 static constexpr KeywordModeEntryMethod QUESTION_MARK =
1887 OmniboxEventProto_KeywordModeEntryMethod_QUESTION_MARK;
1888 static constexpr KeywordModeEntryMethod CLICK_HINT_VIEW =
1889 OmniboxEventProto_KeywordModeEntryMethod_CLICK_HINT_VIEW;
1890 static constexpr KeywordModeEntryMethod TAP_HINT_VIEW =
1891 OmniboxEventProto_KeywordModeEntryMethod_TAP_HINT_VIEW;
1892 static constexpr KeywordModeEntryMethod SELECT_SUGGESTION =
1893 OmniboxEventProto_KeywordModeEntryMethod_SELECT_SUGGESTION;
1894 static inline bool KeywordModeEntryMethod_IsValid(int value) {
1895 return OmniboxEventProto_KeywordModeEntryMethod_IsValid(value);
1896 }
1897 static constexpr KeywordModeEntryMethod KeywordModeEntryMethod_MIN =
1898 OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_MIN;
1899 static constexpr KeywordModeEntryMethod KeywordModeEntryMethod_MAX =
1900 OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_MAX;
1901 static constexpr int KeywordModeEntryMethod_ARRAYSIZE =
1902 OmniboxEventProto_KeywordModeEntryMethod_KeywordModeEntryMethod_ARRAYSIZE;
1903 template<typename T>
1904 static inline const std::string& KeywordModeEntryMethod_Name(T enum_t_value) {
1905 static_assert(::std::is_same<T, KeywordModeEntryMethod>::value ||
1906 ::std::is_integral<T>::value,
1907 "Incorrect type passed to function KeywordModeEntryMethod_Name.");
1908 return OmniboxEventProto_KeywordModeEntryMethod_Name(enum_t_value);
1909 }
1910 static inline bool KeywordModeEntryMethod_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1911 KeywordModeEntryMethod* value) {
1912 return OmniboxEventProto_KeywordModeEntryMethod_Parse(name, value);
1913 }
1914
1915 typedef OmniboxEventProto_Feature Feature;
1916 static constexpr Feature RICH_AUTOCOMPLETION =
1917 OmniboxEventProto_Feature_RICH_AUTOCOMPLETION;
1918 static constexpr Feature SHORT_BOOKMARK_SUGGESTIONS_BY_TOTAL_INPUT_LENGTH =
1919 OmniboxEventProto_Feature_SHORT_BOOKMARK_SUGGESTIONS_BY_TOTAL_INPUT_LENGTH;
1920 static constexpr Feature FUZZY_URL_SUGGESTIONS =
1921 OmniboxEventProto_Feature_FUZZY_URL_SUGGESTIONS;
1922 static constexpr Feature HISTORY_CLUSTER_SUGGESTION =
1923 OmniboxEventProto_Feature_HISTORY_CLUSTER_SUGGESTION;
1924 static constexpr Feature DOMAIN_SUGGESTIONS =
1925 OmniboxEventProto_Feature_DOMAIN_SUGGESTIONS;
1926 static constexpr Feature REMOTE_SEARCH_FEATURE =
1927 OmniboxEventProto_Feature_REMOTE_SEARCH_FEATURE;
1928 static constexpr Feature REMOTE_ZERO_SUGGEST_FEATURE =
1929 OmniboxEventProto_Feature_REMOTE_ZERO_SUGGEST_FEATURE;
1930 static constexpr Feature SHORTCUT_BOOST =
1931 OmniboxEventProto_Feature_SHORTCUT_BOOST;
1932 static constexpr Feature REMOTE_SECONDARY_ZERO_SUGGEST =
1933 OmniboxEventProto_Feature_REMOTE_SECONDARY_ZERO_SUGGEST;
1934 static constexpr Feature ML_URL_SCORING =
1935 OmniboxEventProto_Feature_ML_URL_SCORING;
1936 static constexpr Feature COMPANY_ENTITY_ADJUSTMENT =
1937 OmniboxEventProto_Feature_COMPANY_ENTITY_ADJUSTMENT;
1938 static inline bool Feature_IsValid(int value) {
1939 return OmniboxEventProto_Feature_IsValid(value);
1940 }
1941 static constexpr Feature Feature_MIN =
1942 OmniboxEventProto_Feature_Feature_MIN;
1943 static constexpr Feature Feature_MAX =
1944 OmniboxEventProto_Feature_Feature_MAX;
1945 static constexpr int Feature_ARRAYSIZE =
1946 OmniboxEventProto_Feature_Feature_ARRAYSIZE;
1947 template<typename T>
1948 static inline const std::string& Feature_Name(T enum_t_value) {
1949 static_assert(::std::is_same<T, Feature>::value ||
1950 ::std::is_integral<T>::value,
1951 "Incorrect type passed to function Feature_Name.");
1952 return OmniboxEventProto_Feature_Name(enum_t_value);
1953 }
1954 static inline bool Feature_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1955 Feature* value) {
1956 return OmniboxEventProto_Feature_Parse(name, value);
1957 }
1958
1959 typedef OmniboxEventProto_OmniboxPosition OmniboxPosition;
1960 static constexpr OmniboxPosition UNKNOWN_POSITION =
1961 OmniboxEventProto_OmniboxPosition_UNKNOWN_POSITION;
1962 static constexpr OmniboxPosition TOP_POSITION =
1963 OmniboxEventProto_OmniboxPosition_TOP_POSITION;
1964 static constexpr OmniboxPosition BOTTOM_POSITION =
1965 OmniboxEventProto_OmniboxPosition_BOTTOM_POSITION;
1966 static inline bool OmniboxPosition_IsValid(int value) {
1967 return OmniboxEventProto_OmniboxPosition_IsValid(value);
1968 }
1969 static constexpr OmniboxPosition OmniboxPosition_MIN =
1970 OmniboxEventProto_OmniboxPosition_OmniboxPosition_MIN;
1971 static constexpr OmniboxPosition OmniboxPosition_MAX =
1972 OmniboxEventProto_OmniboxPosition_OmniboxPosition_MAX;
1973 static constexpr int OmniboxPosition_ARRAYSIZE =
1974 OmniboxEventProto_OmniboxPosition_OmniboxPosition_ARRAYSIZE;
1975 template<typename T>
1976 static inline const std::string& OmniboxPosition_Name(T enum_t_value) {
1977 static_assert(::std::is_same<T, OmniboxPosition>::value ||
1978 ::std::is_integral<T>::value,
1979 "Incorrect type passed to function OmniboxPosition_Name.");
1980 return OmniboxEventProto_OmniboxPosition_Name(enum_t_value);
1981 }
1982 static inline bool OmniboxPosition_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1983 OmniboxPosition* value) {
1984 return OmniboxEventProto_OmniboxPosition_Parse(name, value);
1985 }
1986
1987 // accessors -------------------------------------------------------
1988
1989 enum : int {
1990 kSuggestionFieldNumber = 9,
1991 kProviderInfoFieldNumber = 12,
1992 kLegacyFeatureTriggeredInSessionFieldNumber = 22,
1993 kLegacyFeatureTriggeredFieldNumber = 24,
1994 kFeatureTriggeredFieldNumber = 25,
1995 kFeatureTriggeredInSessionFieldNumber = 26,
1996 kProfileDataFieldNumber = 23,
1997 kTimeSecFieldNumber = 1,
1998 kTabIdFieldNumber = 2,
1999 kTypedLengthFieldNumber = 3,
2000 kNumTypedTermsFieldNumber = 4,
2001 kSelectedIndexFieldNumber = 5,
2002 kTypingDurationMsFieldNumber = 7,
2003 kCompletedLengthFieldNumber = 6,
2004 kInputTypeFieldNumber = 8,
2005 kDurationSinceLastDefaultMatchUpdateMsFieldNumber = 13,
2006 kCurrentPageClassificationFieldNumber = 10,
2007 kJustDeletedTextFieldNumber = 11,
2008 kSelectedTabMatchFieldNumber = 17,
2009 kDEPRECATEDIsTopResultHiddenInDropdownFieldNumber = 14,
2010 kIsPopupOpenFieldNumber = 15,
2011 kModeTypeFieldNumber = 18,
2012 kIsPasteAndGoFieldNumber = 16,
2013 kInKeywordModeFieldNumber = 19,
2014 kIsQueryStartedFromTileFieldNumber = 21,
2015 kKeywordModeEntryMethodFieldNumber = 20,
2016 kSteadyStateOmniboxPositionFieldNumber = 27,
2017 };
2018 // repeated .metrics.OmniboxEventProto.Suggestion suggestion = 9;
2019 int suggestion_size() const;
2020 private:
2021 int _internal_suggestion_size() const;
2022 public:
2023 void clear_suggestion();
2024 ::metrics::OmniboxEventProto_Suggestion* mutable_suggestion(int index);
2025 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::OmniboxEventProto_Suggestion >*
2026 mutable_suggestion();
2027 private:
2028 const ::metrics::OmniboxEventProto_Suggestion& _internal_suggestion(int index) const;
2029 ::metrics::OmniboxEventProto_Suggestion* _internal_add_suggestion();
2030 public:
2031 const ::metrics::OmniboxEventProto_Suggestion& suggestion(int index) const;
2032 ::metrics::OmniboxEventProto_Suggestion* add_suggestion();
2033 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::OmniboxEventProto_Suggestion >&
2034 suggestion() const;
2035
2036 // repeated .metrics.OmniboxEventProto.ProviderInfo provider_info = 12;
2037 int provider_info_size() const;
2038 private:
2039 int _internal_provider_info_size() const;
2040 public:
2041 void clear_provider_info();
2042 ::metrics::OmniboxEventProto_ProviderInfo* mutable_provider_info(int index);
2043 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::OmniboxEventProto_ProviderInfo >*
2044 mutable_provider_info();
2045 private:
2046 const ::metrics::OmniboxEventProto_ProviderInfo& _internal_provider_info(int index) const;
2047 ::metrics::OmniboxEventProto_ProviderInfo* _internal_add_provider_info();
2048 public:
2049 const ::metrics::OmniboxEventProto_ProviderInfo& provider_info(int index) const;
2050 ::metrics::OmniboxEventProto_ProviderInfo* add_provider_info();
2051 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::OmniboxEventProto_ProviderInfo >&
2052 provider_info() const;
2053
2054 // repeated int32 legacy_feature_triggered_in_session = 22 [deprecated = true];
2055 PROTOBUF_DEPRECATED int legacy_feature_triggered_in_session_size() const;
2056 private:
2057 int _internal_legacy_feature_triggered_in_session_size() const;
2058 public:
2059 PROTOBUF_DEPRECATED void clear_legacy_feature_triggered_in_session();
2060 private:
2061 int32_t _internal_legacy_feature_triggered_in_session(int index) const;
2062 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
2063 _internal_legacy_feature_triggered_in_session() const;
2064 void _internal_add_legacy_feature_triggered_in_session(int32_t value);
2065 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
2066 _internal_mutable_legacy_feature_triggered_in_session();
2067 public:
2068 PROTOBUF_DEPRECATED int32_t legacy_feature_triggered_in_session(int index) const;
2069 PROTOBUF_DEPRECATED void set_legacy_feature_triggered_in_session(int index, int32_t value);
2070 PROTOBUF_DEPRECATED void add_legacy_feature_triggered_in_session(int32_t value);
2071 PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
2072 legacy_feature_triggered_in_session() const;
2073 PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
2074 mutable_legacy_feature_triggered_in_session();
2075
2076 // repeated int32 legacy_feature_triggered = 24 [deprecated = true];
2077 PROTOBUF_DEPRECATED int legacy_feature_triggered_size() const;
2078 private:
2079 int _internal_legacy_feature_triggered_size() const;
2080 public:
2081 PROTOBUF_DEPRECATED void clear_legacy_feature_triggered();
2082 private:
2083 int32_t _internal_legacy_feature_triggered(int index) const;
2084 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
2085 _internal_legacy_feature_triggered() const;
2086 void _internal_add_legacy_feature_triggered(int32_t value);
2087 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
2088 _internal_mutable_legacy_feature_triggered();
2089 public:
2090 PROTOBUF_DEPRECATED int32_t legacy_feature_triggered(int index) const;
2091 PROTOBUF_DEPRECATED void set_legacy_feature_triggered(int index, int32_t value);
2092 PROTOBUF_DEPRECATED void add_legacy_feature_triggered(int32_t value);
2093 PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
2094 legacy_feature_triggered() const;
2095 PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
2096 mutable_legacy_feature_triggered();
2097
2098 // repeated .metrics.OmniboxEventProto.Feature feature_triggered = 25;
2099 int feature_triggered_size() const;
2100 private:
2101 int _internal_feature_triggered_size() const;
2102 public:
2103 void clear_feature_triggered();
2104 private:
2105 ::metrics::OmniboxEventProto_Feature _internal_feature_triggered(int index) const;
2106 void _internal_add_feature_triggered(::metrics::OmniboxEventProto_Feature value);
2107 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_feature_triggered();
2108 public:
2109 ::metrics::OmniboxEventProto_Feature feature_triggered(int index) const;
2110 void set_feature_triggered(int index, ::metrics::OmniboxEventProto_Feature value);
2111 void add_feature_triggered(::metrics::OmniboxEventProto_Feature value);
2112 const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& feature_triggered() const;
2113 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_feature_triggered();
2114
2115 // repeated .metrics.OmniboxEventProto.Feature feature_triggered_in_session = 26;
2116 int feature_triggered_in_session_size() const;
2117 private:
2118 int _internal_feature_triggered_in_session_size() const;
2119 public:
2120 void clear_feature_triggered_in_session();
2121 private:
2122 ::metrics::OmniboxEventProto_Feature _internal_feature_triggered_in_session(int index) const;
2123 void _internal_add_feature_triggered_in_session(::metrics::OmniboxEventProto_Feature value);
2124 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_feature_triggered_in_session();
2125 public:
2126 ::metrics::OmniboxEventProto_Feature feature_triggered_in_session(int index) const;
2127 void set_feature_triggered_in_session(int index, ::metrics::OmniboxEventProto_Feature value);
2128 void add_feature_triggered_in_session(::metrics::OmniboxEventProto_Feature value);
2129 const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& feature_triggered_in_session() const;
2130 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_feature_triggered_in_session();
2131
2132 // optional .metrics.OmniboxEventProto.ProfileData profile_data = 23;
2133 bool has_profile_data() const;
2134 private:
2135 bool _internal_has_profile_data() const;
2136 public:
2137 void clear_profile_data();
2138 const ::metrics::OmniboxEventProto_ProfileData& profile_data() const;
2139 PROTOBUF_NODISCARD ::metrics::OmniboxEventProto_ProfileData* release_profile_data();
2140 ::metrics::OmniboxEventProto_ProfileData* mutable_profile_data();
2141 void set_allocated_profile_data(::metrics::OmniboxEventProto_ProfileData* profile_data);
2142 private:
2143 const ::metrics::OmniboxEventProto_ProfileData& _internal_profile_data() const;
2144 ::metrics::OmniboxEventProto_ProfileData* _internal_mutable_profile_data();
2145 public:
2146 void unsafe_arena_set_allocated_profile_data(
2147 ::metrics::OmniboxEventProto_ProfileData* profile_data);
2148 ::metrics::OmniboxEventProto_ProfileData* unsafe_arena_release_profile_data();
2149
2150 // optional int64 time_sec = 1;
2151 bool has_time_sec() const;
2152 private:
2153 bool _internal_has_time_sec() const;
2154 public:
2155 void clear_time_sec();
2156 int64_t time_sec() const;
2157 void set_time_sec(int64_t value);
2158 private:
2159 int64_t _internal_time_sec() const;
2160 void _internal_set_time_sec(int64_t value);
2161 public:
2162
2163 // optional int32 tab_id = 2;
2164 bool has_tab_id() const;
2165 private:
2166 bool _internal_has_tab_id() const;
2167 public:
2168 void clear_tab_id();
2169 int32_t tab_id() const;
2170 void set_tab_id(int32_t value);
2171 private:
2172 int32_t _internal_tab_id() const;
2173 void _internal_set_tab_id(int32_t value);
2174 public:
2175
2176 // optional int32 typed_length = 3;
2177 bool has_typed_length() const;
2178 private:
2179 bool _internal_has_typed_length() const;
2180 public:
2181 void clear_typed_length();
2182 int32_t typed_length() const;
2183 void set_typed_length(int32_t value);
2184 private:
2185 int32_t _internal_typed_length() const;
2186 void _internal_set_typed_length(int32_t value);
2187 public:
2188
2189 // optional int32 num_typed_terms = 4;
2190 bool has_num_typed_terms() const;
2191 private:
2192 bool _internal_has_num_typed_terms() const;
2193 public:
2194 void clear_num_typed_terms();
2195 int32_t num_typed_terms() const;
2196 void set_num_typed_terms(int32_t value);
2197 private:
2198 int32_t _internal_num_typed_terms() const;
2199 void _internal_set_num_typed_terms(int32_t value);
2200 public:
2201
2202 // optional int32 selected_index = 5;
2203 bool has_selected_index() const;
2204 private:
2205 bool _internal_has_selected_index() const;
2206 public:
2207 void clear_selected_index();
2208 int32_t selected_index() const;
2209 void set_selected_index(int32_t value);
2210 private:
2211 int32_t _internal_selected_index() const;
2212 void _internal_set_selected_index(int32_t value);
2213 public:
2214
2215 // optional int64 typing_duration_ms = 7;
2216 bool has_typing_duration_ms() const;
2217 private:
2218 bool _internal_has_typing_duration_ms() const;
2219 public:
2220 void clear_typing_duration_ms();
2221 int64_t typing_duration_ms() const;
2222 void set_typing_duration_ms(int64_t value);
2223 private:
2224 int64_t _internal_typing_duration_ms() const;
2225 void _internal_set_typing_duration_ms(int64_t value);
2226 public:
2227
2228 // optional int32 completed_length = 6;
2229 bool has_completed_length() const;
2230 private:
2231 bool _internal_has_completed_length() const;
2232 public:
2233 void clear_completed_length();
2234 int32_t completed_length() const;
2235 void set_completed_length(int32_t value);
2236 private:
2237 int32_t _internal_completed_length() const;
2238 void _internal_set_completed_length(int32_t value);
2239 public:
2240
2241 // optional .metrics.OmniboxInputType input_type = 8;
2242 bool has_input_type() const;
2243 private:
2244 bool _internal_has_input_type() const;
2245 public:
2246 void clear_input_type();
2247 ::metrics::OmniboxInputType input_type() const;
2248 void set_input_type(::metrics::OmniboxInputType value);
2249 private:
2250 ::metrics::OmniboxInputType _internal_input_type() const;
2251 void _internal_set_input_type(::metrics::OmniboxInputType value);
2252 public:
2253
2254 // optional int64 duration_since_last_default_match_update_ms = 13;
2255 bool has_duration_since_last_default_match_update_ms() const;
2256 private:
2257 bool _internal_has_duration_since_last_default_match_update_ms() const;
2258 public:
2259 void clear_duration_since_last_default_match_update_ms();
2260 int64_t duration_since_last_default_match_update_ms() const;
2261 void set_duration_since_last_default_match_update_ms(int64_t value);
2262 private:
2263 int64_t _internal_duration_since_last_default_match_update_ms() const;
2264 void _internal_set_duration_since_last_default_match_update_ms(int64_t value);
2265 public:
2266
2267 // optional .metrics.OmniboxEventProto.PageClassification current_page_classification = 10;
2268 bool has_current_page_classification() const;
2269 private:
2270 bool _internal_has_current_page_classification() const;
2271 public:
2272 void clear_current_page_classification();
2273 ::metrics::OmniboxEventProto_PageClassification current_page_classification() const;
2274 void set_current_page_classification(::metrics::OmniboxEventProto_PageClassification value);
2275 private:
2276 ::metrics::OmniboxEventProto_PageClassification _internal_current_page_classification() const;
2277 void _internal_set_current_page_classification(::metrics::OmniboxEventProto_PageClassification value);
2278 public:
2279
2280 // optional bool just_deleted_text = 11;
2281 bool has_just_deleted_text() const;
2282 private:
2283 bool _internal_has_just_deleted_text() const;
2284 public:
2285 void clear_just_deleted_text();
2286 bool just_deleted_text() const;
2287 void set_just_deleted_text(bool value);
2288 private:
2289 bool _internal_just_deleted_text() const;
2290 void _internal_set_just_deleted_text(bool value);
2291 public:
2292
2293 // optional bool selected_tab_match = 17;
2294 bool has_selected_tab_match() const;
2295 private:
2296 bool _internal_has_selected_tab_match() const;
2297 public:
2298 void clear_selected_tab_match();
2299 bool selected_tab_match() const;
2300 void set_selected_tab_match(bool value);
2301 private:
2302 bool _internal_selected_tab_match() const;
2303 void _internal_set_selected_tab_match(bool value);
2304 public:
2305
2306 // optional bool DEPRECATED_is_top_result_hidden_in_dropdown = 14 [deprecated = true];
2307 PROTOBUF_DEPRECATED bool has_deprecated_is_top_result_hidden_in_dropdown() const;
2308 private:
2309 bool _internal_has_deprecated_is_top_result_hidden_in_dropdown() const;
2310 public:
2311 PROTOBUF_DEPRECATED void clear_deprecated_is_top_result_hidden_in_dropdown();
2312 PROTOBUF_DEPRECATED bool deprecated_is_top_result_hidden_in_dropdown() const;
2313 PROTOBUF_DEPRECATED void set_deprecated_is_top_result_hidden_in_dropdown(bool value);
2314 private:
2315 bool _internal_deprecated_is_top_result_hidden_in_dropdown() const;
2316 void _internal_set_deprecated_is_top_result_hidden_in_dropdown(bool value);
2317 public:
2318
2319 // optional bool is_popup_open = 15;
2320 bool has_is_popup_open() const;
2321 private:
2322 bool _internal_has_is_popup_open() const;
2323 public:
2324 void clear_is_popup_open();
2325 bool is_popup_open() const;
2326 void set_is_popup_open(bool value);
2327 private:
2328 bool _internal_is_popup_open() const;
2329 void _internal_set_is_popup_open(bool value);
2330 public:
2331
2332 // optional .metrics.OmniboxEventProto.ModeType mode_type = 18;
2333 bool has_mode_type() const;
2334 private:
2335 bool _internal_has_mode_type() const;
2336 public:
2337 void clear_mode_type();
2338 ::metrics::OmniboxEventProto_ModeType mode_type() const;
2339 void set_mode_type(::metrics::OmniboxEventProto_ModeType value);
2340 private:
2341 ::metrics::OmniboxEventProto_ModeType _internal_mode_type() const;
2342 void _internal_set_mode_type(::metrics::OmniboxEventProto_ModeType value);
2343 public:
2344
2345 // optional bool is_paste_and_go = 16;
2346 bool has_is_paste_and_go() const;
2347 private:
2348 bool _internal_has_is_paste_and_go() const;
2349 public:
2350 void clear_is_paste_and_go();
2351 bool is_paste_and_go() const;
2352 void set_is_paste_and_go(bool value);
2353 private:
2354 bool _internal_is_paste_and_go() const;
2355 void _internal_set_is_paste_and_go(bool value);
2356 public:
2357
2358 // optional bool in_keyword_mode = 19;
2359 bool has_in_keyword_mode() const;
2360 private:
2361 bool _internal_has_in_keyword_mode() const;
2362 public:
2363 void clear_in_keyword_mode();
2364 bool in_keyword_mode() const;
2365 void set_in_keyword_mode(bool value);
2366 private:
2367 bool _internal_in_keyword_mode() const;
2368 void _internal_set_in_keyword_mode(bool value);
2369 public:
2370
2371 // optional bool is_query_started_from_tile = 21;
2372 bool has_is_query_started_from_tile() const;
2373 private:
2374 bool _internal_has_is_query_started_from_tile() const;
2375 public:
2376 void clear_is_query_started_from_tile();
2377 bool is_query_started_from_tile() const;
2378 void set_is_query_started_from_tile(bool value);
2379 private:
2380 bool _internal_is_query_started_from_tile() const;
2381 void _internal_set_is_query_started_from_tile(bool value);
2382 public:
2383
2384 // optional .metrics.OmniboxEventProto.KeywordModeEntryMethod keyword_mode_entry_method = 20;
2385 bool has_keyword_mode_entry_method() const;
2386 private:
2387 bool _internal_has_keyword_mode_entry_method() const;
2388 public:
2389 void clear_keyword_mode_entry_method();
2390 ::metrics::OmniboxEventProto_KeywordModeEntryMethod keyword_mode_entry_method() const;
2391 void set_keyword_mode_entry_method(::metrics::OmniboxEventProto_KeywordModeEntryMethod value);
2392 private:
2393 ::metrics::OmniboxEventProto_KeywordModeEntryMethod _internal_keyword_mode_entry_method() const;
2394 void _internal_set_keyword_mode_entry_method(::metrics::OmniboxEventProto_KeywordModeEntryMethod value);
2395 public:
2396
2397 // optional .metrics.OmniboxEventProto.OmniboxPosition steady_state_omnibox_position = 27;
2398 bool has_steady_state_omnibox_position() const;
2399 private:
2400 bool _internal_has_steady_state_omnibox_position() const;
2401 public:
2402 void clear_steady_state_omnibox_position();
2403 ::metrics::OmniboxEventProto_OmniboxPosition steady_state_omnibox_position() const;
2404 void set_steady_state_omnibox_position(::metrics::OmniboxEventProto_OmniboxPosition value);
2405 private:
2406 ::metrics::OmniboxEventProto_OmniboxPosition _internal_steady_state_omnibox_position() const;
2407 void _internal_set_steady_state_omnibox_position(::metrics::OmniboxEventProto_OmniboxPosition value);
2408 public:
2409
2410 // @@protoc_insertion_point(class_scope:metrics.OmniboxEventProto)
2411 private:
2412 class _Internal;
2413
2414 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2415 typedef void InternalArenaConstructable_;
2416 typedef void DestructorSkippable_;
2417 struct Impl_ {
2418 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
2419 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2420 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::OmniboxEventProto_Suggestion > suggestion_;
2421 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::OmniboxEventProto_ProviderInfo > provider_info_;
2422 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > legacy_feature_triggered_in_session_;
2423 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > legacy_feature_triggered_;
2424 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> feature_triggered_;
2425 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> feature_triggered_in_session_;
2426 ::metrics::OmniboxEventProto_ProfileData* profile_data_;
2427 int64_t time_sec_;
2428 int32_t tab_id_;
2429 int32_t typed_length_;
2430 int32_t num_typed_terms_;
2431 int32_t selected_index_;
2432 int64_t typing_duration_ms_;
2433 int32_t completed_length_;
2434 int input_type_;
2435 int64_t duration_since_last_default_match_update_ms_;
2436 int current_page_classification_;
2437 bool just_deleted_text_;
2438 bool selected_tab_match_;
2439 bool deprecated_is_top_result_hidden_in_dropdown_;
2440 bool is_popup_open_;
2441 int mode_type_;
2442 bool is_paste_and_go_;
2443 bool in_keyword_mode_;
2444 bool is_query_started_from_tile_;
2445 int keyword_mode_entry_method_;
2446 int steady_state_omnibox_position_;
2447 };
2448 union { Impl_ _impl_; };
2449 friend struct ::TableStruct_omnibox_5fevent_2eproto;
2450 };
2451 // ===================================================================
2452
2453
2454 // ===================================================================
2455
2456 #ifdef __GNUC__
2457 #pragma GCC diagnostic push
2458 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
2459 #endif // __GNUC__
2460 // OmniboxEventProto_Suggestion_ScoringSignals
2461
2462 // optional int32 typed_count = 1;
_internal_has_typed_count()2463 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_typed_count() const {
2464 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
2465 return value;
2466 }
has_typed_count()2467 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_typed_count() const {
2468 return _internal_has_typed_count();
2469 }
clear_typed_count()2470 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_typed_count() {
2471 _impl_.typed_count_ = 0;
2472 _impl_._has_bits_[0] &= ~0x00000001u;
2473 }
_internal_typed_count()2474 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_typed_count() const {
2475 return _impl_.typed_count_;
2476 }
typed_count()2477 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::typed_count() const {
2478 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.typed_count)
2479 return _internal_typed_count();
2480 }
_internal_set_typed_count(int32_t value)2481 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_typed_count(int32_t value) {
2482 _impl_._has_bits_[0] |= 0x00000001u;
2483 _impl_.typed_count_ = value;
2484 }
set_typed_count(int32_t value)2485 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_typed_count(int32_t value) {
2486 _internal_set_typed_count(value);
2487 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.typed_count)
2488 }
2489
2490 // optional int32 visit_count = 2;
_internal_has_visit_count()2491 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_visit_count() const {
2492 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
2493 return value;
2494 }
has_visit_count()2495 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_visit_count() const {
2496 return _internal_has_visit_count();
2497 }
clear_visit_count()2498 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_visit_count() {
2499 _impl_.visit_count_ = 0;
2500 _impl_._has_bits_[0] &= ~0x00000002u;
2501 }
_internal_visit_count()2502 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_visit_count() const {
2503 return _impl_.visit_count_;
2504 }
visit_count()2505 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::visit_count() const {
2506 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.visit_count)
2507 return _internal_visit_count();
2508 }
_internal_set_visit_count(int32_t value)2509 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_visit_count(int32_t value) {
2510 _impl_._has_bits_[0] |= 0x00000002u;
2511 _impl_.visit_count_ = value;
2512 }
set_visit_count(int32_t value)2513 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_visit_count(int32_t value) {
2514 _internal_set_visit_count(value);
2515 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.visit_count)
2516 }
2517
2518 // optional int64 elapsed_time_last_visit_secs = 3;
_internal_has_elapsed_time_last_visit_secs()2519 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_elapsed_time_last_visit_secs() const {
2520 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
2521 return value;
2522 }
has_elapsed_time_last_visit_secs()2523 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_elapsed_time_last_visit_secs() const {
2524 return _internal_has_elapsed_time_last_visit_secs();
2525 }
clear_elapsed_time_last_visit_secs()2526 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_elapsed_time_last_visit_secs() {
2527 _impl_.elapsed_time_last_visit_secs_ = int64_t{0};
2528 _impl_._has_bits_[0] &= ~0x00000004u;
2529 }
_internal_elapsed_time_last_visit_secs()2530 inline int64_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_elapsed_time_last_visit_secs() const {
2531 return _impl_.elapsed_time_last_visit_secs_;
2532 }
elapsed_time_last_visit_secs()2533 inline int64_t OmniboxEventProto_Suggestion_ScoringSignals::elapsed_time_last_visit_secs() const {
2534 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.elapsed_time_last_visit_secs)
2535 return _internal_elapsed_time_last_visit_secs();
2536 }
_internal_set_elapsed_time_last_visit_secs(int64_t value)2537 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_elapsed_time_last_visit_secs(int64_t value) {
2538 _impl_._has_bits_[0] |= 0x00000004u;
2539 _impl_.elapsed_time_last_visit_secs_ = value;
2540 }
set_elapsed_time_last_visit_secs(int64_t value)2541 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_elapsed_time_last_visit_secs(int64_t value) {
2542 _internal_set_elapsed_time_last_visit_secs(value);
2543 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.elapsed_time_last_visit_secs)
2544 }
2545
2546 // optional int32 shortcut_visit_count = 4;
_internal_has_shortcut_visit_count()2547 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_shortcut_visit_count() const {
2548 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
2549 return value;
2550 }
has_shortcut_visit_count()2551 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_shortcut_visit_count() const {
2552 return _internal_has_shortcut_visit_count();
2553 }
clear_shortcut_visit_count()2554 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_shortcut_visit_count() {
2555 _impl_.shortcut_visit_count_ = 0;
2556 _impl_._has_bits_[0] &= ~0x00000008u;
2557 }
_internal_shortcut_visit_count()2558 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_shortcut_visit_count() const {
2559 return _impl_.shortcut_visit_count_;
2560 }
shortcut_visit_count()2561 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::shortcut_visit_count() const {
2562 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.shortcut_visit_count)
2563 return _internal_shortcut_visit_count();
2564 }
_internal_set_shortcut_visit_count(int32_t value)2565 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_shortcut_visit_count(int32_t value) {
2566 _impl_._has_bits_[0] |= 0x00000008u;
2567 _impl_.shortcut_visit_count_ = value;
2568 }
set_shortcut_visit_count(int32_t value)2569 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_shortcut_visit_count(int32_t value) {
2570 _internal_set_shortcut_visit_count(value);
2571 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.shortcut_visit_count)
2572 }
2573
2574 // optional int32 shortest_shortcut_len = 5;
_internal_has_shortest_shortcut_len()2575 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_shortest_shortcut_len() const {
2576 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
2577 return value;
2578 }
has_shortest_shortcut_len()2579 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_shortest_shortcut_len() const {
2580 return _internal_has_shortest_shortcut_len();
2581 }
clear_shortest_shortcut_len()2582 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_shortest_shortcut_len() {
2583 _impl_.shortest_shortcut_len_ = 0;
2584 _impl_._has_bits_[0] &= ~0x00000010u;
2585 }
_internal_shortest_shortcut_len()2586 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_shortest_shortcut_len() const {
2587 return _impl_.shortest_shortcut_len_;
2588 }
shortest_shortcut_len()2589 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::shortest_shortcut_len() const {
2590 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.shortest_shortcut_len)
2591 return _internal_shortest_shortcut_len();
2592 }
_internal_set_shortest_shortcut_len(int32_t value)2593 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_shortest_shortcut_len(int32_t value) {
2594 _impl_._has_bits_[0] |= 0x00000010u;
2595 _impl_.shortest_shortcut_len_ = value;
2596 }
set_shortest_shortcut_len(int32_t value)2597 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_shortest_shortcut_len(int32_t value) {
2598 _internal_set_shortest_shortcut_len(value);
2599 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.shortest_shortcut_len)
2600 }
2601
2602 // optional int64 elapsed_time_last_shortcut_visit_sec = 6;
_internal_has_elapsed_time_last_shortcut_visit_sec()2603 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_elapsed_time_last_shortcut_visit_sec() const {
2604 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
2605 return value;
2606 }
has_elapsed_time_last_shortcut_visit_sec()2607 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_elapsed_time_last_shortcut_visit_sec() const {
2608 return _internal_has_elapsed_time_last_shortcut_visit_sec();
2609 }
clear_elapsed_time_last_shortcut_visit_sec()2610 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_elapsed_time_last_shortcut_visit_sec() {
2611 _impl_.elapsed_time_last_shortcut_visit_sec_ = int64_t{0};
2612 _impl_._has_bits_[0] &= ~0x00000020u;
2613 }
_internal_elapsed_time_last_shortcut_visit_sec()2614 inline int64_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_elapsed_time_last_shortcut_visit_sec() const {
2615 return _impl_.elapsed_time_last_shortcut_visit_sec_;
2616 }
elapsed_time_last_shortcut_visit_sec()2617 inline int64_t OmniboxEventProto_Suggestion_ScoringSignals::elapsed_time_last_shortcut_visit_sec() const {
2618 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.elapsed_time_last_shortcut_visit_sec)
2619 return _internal_elapsed_time_last_shortcut_visit_sec();
2620 }
_internal_set_elapsed_time_last_shortcut_visit_sec(int64_t value)2621 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_elapsed_time_last_shortcut_visit_sec(int64_t value) {
2622 _impl_._has_bits_[0] |= 0x00000020u;
2623 _impl_.elapsed_time_last_shortcut_visit_sec_ = value;
2624 }
set_elapsed_time_last_shortcut_visit_sec(int64_t value)2625 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_elapsed_time_last_shortcut_visit_sec(int64_t value) {
2626 _internal_set_elapsed_time_last_shortcut_visit_sec(value);
2627 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.elapsed_time_last_shortcut_visit_sec)
2628 }
2629
2630 // optional bool is_host_only = 7;
_internal_has_is_host_only()2631 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_is_host_only() const {
2632 bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
2633 return value;
2634 }
has_is_host_only()2635 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_is_host_only() const {
2636 return _internal_has_is_host_only();
2637 }
clear_is_host_only()2638 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_is_host_only() {
2639 _impl_.is_host_only_ = false;
2640 _impl_._has_bits_[0] &= ~0x00004000u;
2641 }
_internal_is_host_only()2642 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_is_host_only() const {
2643 return _impl_.is_host_only_;
2644 }
is_host_only()2645 inline bool OmniboxEventProto_Suggestion_ScoringSignals::is_host_only() const {
2646 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.is_host_only)
2647 return _internal_is_host_only();
2648 }
_internal_set_is_host_only(bool value)2649 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_is_host_only(bool value) {
2650 _impl_._has_bits_[0] |= 0x00004000u;
2651 _impl_.is_host_only_ = value;
2652 }
set_is_host_only(bool value)2653 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_is_host_only(bool value) {
2654 _internal_set_is_host_only(value);
2655 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.is_host_only)
2656 }
2657
2658 // optional int32 num_bookmarks_of_url = 8;
_internal_has_num_bookmarks_of_url()2659 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_num_bookmarks_of_url() const {
2660 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
2661 return value;
2662 }
has_num_bookmarks_of_url()2663 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_num_bookmarks_of_url() const {
2664 return _internal_has_num_bookmarks_of_url();
2665 }
clear_num_bookmarks_of_url()2666 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_num_bookmarks_of_url() {
2667 _impl_.num_bookmarks_of_url_ = 0;
2668 _impl_._has_bits_[0] &= ~0x00000040u;
2669 }
_internal_num_bookmarks_of_url()2670 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_num_bookmarks_of_url() const {
2671 return _impl_.num_bookmarks_of_url_;
2672 }
num_bookmarks_of_url()2673 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::num_bookmarks_of_url() const {
2674 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_bookmarks_of_url)
2675 return _internal_num_bookmarks_of_url();
2676 }
_internal_set_num_bookmarks_of_url(int32_t value)2677 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_num_bookmarks_of_url(int32_t value) {
2678 _impl_._has_bits_[0] |= 0x00000040u;
2679 _impl_.num_bookmarks_of_url_ = value;
2680 }
set_num_bookmarks_of_url(int32_t value)2681 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_num_bookmarks_of_url(int32_t value) {
2682 _internal_set_num_bookmarks_of_url(value);
2683 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_bookmarks_of_url)
2684 }
2685
2686 // optional int32 first_bookmark_title_match_position = 9;
_internal_has_first_bookmark_title_match_position()2687 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_first_bookmark_title_match_position() const {
2688 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
2689 return value;
2690 }
has_first_bookmark_title_match_position()2691 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_first_bookmark_title_match_position() const {
2692 return _internal_has_first_bookmark_title_match_position();
2693 }
clear_first_bookmark_title_match_position()2694 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_first_bookmark_title_match_position() {
2695 _impl_.first_bookmark_title_match_position_ = 0;
2696 _impl_._has_bits_[0] &= ~0x00000080u;
2697 }
_internal_first_bookmark_title_match_position()2698 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_first_bookmark_title_match_position() const {
2699 return _impl_.first_bookmark_title_match_position_;
2700 }
first_bookmark_title_match_position()2701 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::first_bookmark_title_match_position() const {
2702 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.first_bookmark_title_match_position)
2703 return _internal_first_bookmark_title_match_position();
2704 }
_internal_set_first_bookmark_title_match_position(int32_t value)2705 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_first_bookmark_title_match_position(int32_t value) {
2706 _impl_._has_bits_[0] |= 0x00000080u;
2707 _impl_.first_bookmark_title_match_position_ = value;
2708 }
set_first_bookmark_title_match_position(int32_t value)2709 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_first_bookmark_title_match_position(int32_t value) {
2710 _internal_set_first_bookmark_title_match_position(value);
2711 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.first_bookmark_title_match_position)
2712 }
2713
2714 // optional int32 total_bookmark_title_match_length = 10;
_internal_has_total_bookmark_title_match_length()2715 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_total_bookmark_title_match_length() const {
2716 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
2717 return value;
2718 }
has_total_bookmark_title_match_length()2719 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_total_bookmark_title_match_length() const {
2720 return _internal_has_total_bookmark_title_match_length();
2721 }
clear_total_bookmark_title_match_length()2722 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_total_bookmark_title_match_length() {
2723 _impl_.total_bookmark_title_match_length_ = 0;
2724 _impl_._has_bits_[0] &= ~0x00000100u;
2725 }
_internal_total_bookmark_title_match_length()2726 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_total_bookmark_title_match_length() const {
2727 return _impl_.total_bookmark_title_match_length_;
2728 }
total_bookmark_title_match_length()2729 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::total_bookmark_title_match_length() const {
2730 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_bookmark_title_match_length)
2731 return _internal_total_bookmark_title_match_length();
2732 }
_internal_set_total_bookmark_title_match_length(int32_t value)2733 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_total_bookmark_title_match_length(int32_t value) {
2734 _impl_._has_bits_[0] |= 0x00000100u;
2735 _impl_.total_bookmark_title_match_length_ = value;
2736 }
set_total_bookmark_title_match_length(int32_t value)2737 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_total_bookmark_title_match_length(int32_t value) {
2738 _internal_set_total_bookmark_title_match_length(value);
2739 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_bookmark_title_match_length)
2740 }
2741
2742 // optional int32 num_input_terms_matched_by_bookmark_title = 11;
_internal_has_num_input_terms_matched_by_bookmark_title()2743 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_num_input_terms_matched_by_bookmark_title() const {
2744 bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
2745 return value;
2746 }
has_num_input_terms_matched_by_bookmark_title()2747 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_num_input_terms_matched_by_bookmark_title() const {
2748 return _internal_has_num_input_terms_matched_by_bookmark_title();
2749 }
clear_num_input_terms_matched_by_bookmark_title()2750 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_num_input_terms_matched_by_bookmark_title() {
2751 _impl_.num_input_terms_matched_by_bookmark_title_ = 0;
2752 _impl_._has_bits_[0] &= ~0x00000200u;
2753 }
_internal_num_input_terms_matched_by_bookmark_title()2754 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_num_input_terms_matched_by_bookmark_title() const {
2755 return _impl_.num_input_terms_matched_by_bookmark_title_;
2756 }
num_input_terms_matched_by_bookmark_title()2757 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::num_input_terms_matched_by_bookmark_title() const {
2758 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_input_terms_matched_by_bookmark_title)
2759 return _internal_num_input_terms_matched_by_bookmark_title();
2760 }
_internal_set_num_input_terms_matched_by_bookmark_title(int32_t value)2761 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_num_input_terms_matched_by_bookmark_title(int32_t value) {
2762 _impl_._has_bits_[0] |= 0x00000200u;
2763 _impl_.num_input_terms_matched_by_bookmark_title_ = value;
2764 }
set_num_input_terms_matched_by_bookmark_title(int32_t value)2765 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_num_input_terms_matched_by_bookmark_title(int32_t value) {
2766 _internal_set_num_input_terms_matched_by_bookmark_title(value);
2767 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_input_terms_matched_by_bookmark_title)
2768 }
2769
2770 // optional int32 first_url_match_position = 12;
_internal_has_first_url_match_position()2771 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_first_url_match_position() const {
2772 bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
2773 return value;
2774 }
has_first_url_match_position()2775 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_first_url_match_position() const {
2776 return _internal_has_first_url_match_position();
2777 }
clear_first_url_match_position()2778 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_first_url_match_position() {
2779 _impl_.first_url_match_position_ = 0;
2780 _impl_._has_bits_[0] &= ~0x00000400u;
2781 }
_internal_first_url_match_position()2782 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_first_url_match_position() const {
2783 return _impl_.first_url_match_position_;
2784 }
first_url_match_position()2785 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::first_url_match_position() const {
2786 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.first_url_match_position)
2787 return _internal_first_url_match_position();
2788 }
_internal_set_first_url_match_position(int32_t value)2789 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_first_url_match_position(int32_t value) {
2790 _impl_._has_bits_[0] |= 0x00000400u;
2791 _impl_.first_url_match_position_ = value;
2792 }
set_first_url_match_position(int32_t value)2793 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_first_url_match_position(int32_t value) {
2794 _internal_set_first_url_match_position(value);
2795 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.first_url_match_position)
2796 }
2797
2798 // optional int32 total_url_match_length = 13;
_internal_has_total_url_match_length()2799 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_total_url_match_length() const {
2800 bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
2801 return value;
2802 }
has_total_url_match_length()2803 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_total_url_match_length() const {
2804 return _internal_has_total_url_match_length();
2805 }
clear_total_url_match_length()2806 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_total_url_match_length() {
2807 _impl_.total_url_match_length_ = 0;
2808 _impl_._has_bits_[0] &= ~0x00000800u;
2809 }
_internal_total_url_match_length()2810 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_total_url_match_length() const {
2811 return _impl_.total_url_match_length_;
2812 }
total_url_match_length()2813 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::total_url_match_length() const {
2814 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_url_match_length)
2815 return _internal_total_url_match_length();
2816 }
_internal_set_total_url_match_length(int32_t value)2817 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_total_url_match_length(int32_t value) {
2818 _impl_._has_bits_[0] |= 0x00000800u;
2819 _impl_.total_url_match_length_ = value;
2820 }
set_total_url_match_length(int32_t value)2821 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_total_url_match_length(int32_t value) {
2822 _internal_set_total_url_match_length(value);
2823 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_url_match_length)
2824 }
2825
2826 // optional bool host_match_at_word_boundary = 14;
_internal_has_host_match_at_word_boundary()2827 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_host_match_at_word_boundary() const {
2828 bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
2829 return value;
2830 }
has_host_match_at_word_boundary()2831 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_host_match_at_word_boundary() const {
2832 return _internal_has_host_match_at_word_boundary();
2833 }
clear_host_match_at_word_boundary()2834 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_host_match_at_word_boundary() {
2835 _impl_.host_match_at_word_boundary_ = false;
2836 _impl_._has_bits_[0] &= ~0x00008000u;
2837 }
_internal_host_match_at_word_boundary()2838 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_host_match_at_word_boundary() const {
2839 return _impl_.host_match_at_word_boundary_;
2840 }
host_match_at_word_boundary()2841 inline bool OmniboxEventProto_Suggestion_ScoringSignals::host_match_at_word_boundary() const {
2842 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.host_match_at_word_boundary)
2843 return _internal_host_match_at_word_boundary();
2844 }
_internal_set_host_match_at_word_boundary(bool value)2845 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_host_match_at_word_boundary(bool value) {
2846 _impl_._has_bits_[0] |= 0x00008000u;
2847 _impl_.host_match_at_word_boundary_ = value;
2848 }
set_host_match_at_word_boundary(bool value)2849 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_host_match_at_word_boundary(bool value) {
2850 _internal_set_host_match_at_word_boundary(value);
2851 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.host_match_at_word_boundary)
2852 }
2853
2854 // optional int32 total_host_match_length = 15;
_internal_has_total_host_match_length()2855 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_total_host_match_length() const {
2856 bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
2857 return value;
2858 }
has_total_host_match_length()2859 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_total_host_match_length() const {
2860 return _internal_has_total_host_match_length();
2861 }
clear_total_host_match_length()2862 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_total_host_match_length() {
2863 _impl_.total_host_match_length_ = 0;
2864 _impl_._has_bits_[0] &= ~0x00001000u;
2865 }
_internal_total_host_match_length()2866 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_total_host_match_length() const {
2867 return _impl_.total_host_match_length_;
2868 }
total_host_match_length()2869 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::total_host_match_length() const {
2870 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_host_match_length)
2871 return _internal_total_host_match_length();
2872 }
_internal_set_total_host_match_length(int32_t value)2873 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_total_host_match_length(int32_t value) {
2874 _impl_._has_bits_[0] |= 0x00001000u;
2875 _impl_.total_host_match_length_ = value;
2876 }
set_total_host_match_length(int32_t value)2877 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_total_host_match_length(int32_t value) {
2878 _internal_set_total_host_match_length(value);
2879 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_host_match_length)
2880 }
2881
2882 // optional int32 total_path_match_length = 16;
_internal_has_total_path_match_length()2883 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_total_path_match_length() const {
2884 bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
2885 return value;
2886 }
has_total_path_match_length()2887 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_total_path_match_length() const {
2888 return _internal_has_total_path_match_length();
2889 }
clear_total_path_match_length()2890 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_total_path_match_length() {
2891 _impl_.total_path_match_length_ = 0;
2892 _impl_._has_bits_[0] &= ~0x00002000u;
2893 }
_internal_total_path_match_length()2894 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_total_path_match_length() const {
2895 return _impl_.total_path_match_length_;
2896 }
total_path_match_length()2897 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::total_path_match_length() const {
2898 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_path_match_length)
2899 return _internal_total_path_match_length();
2900 }
_internal_set_total_path_match_length(int32_t value)2901 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_total_path_match_length(int32_t value) {
2902 _impl_._has_bits_[0] |= 0x00002000u;
2903 _impl_.total_path_match_length_ = value;
2904 }
set_total_path_match_length(int32_t value)2905 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_total_path_match_length(int32_t value) {
2906 _internal_set_total_path_match_length(value);
2907 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_path_match_length)
2908 }
2909
2910 // optional int32 total_query_or_ref_match_length = 17;
_internal_has_total_query_or_ref_match_length()2911 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_total_query_or_ref_match_length() const {
2912 bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0;
2913 return value;
2914 }
has_total_query_or_ref_match_length()2915 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_total_query_or_ref_match_length() const {
2916 return _internal_has_total_query_or_ref_match_length();
2917 }
clear_total_query_or_ref_match_length()2918 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_total_query_or_ref_match_length() {
2919 _impl_.total_query_or_ref_match_length_ = 0;
2920 _impl_._has_bits_[0] &= ~0x00040000u;
2921 }
_internal_total_query_or_ref_match_length()2922 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_total_query_or_ref_match_length() const {
2923 return _impl_.total_query_or_ref_match_length_;
2924 }
total_query_or_ref_match_length()2925 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::total_query_or_ref_match_length() const {
2926 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_query_or_ref_match_length)
2927 return _internal_total_query_or_ref_match_length();
2928 }
_internal_set_total_query_or_ref_match_length(int32_t value)2929 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_total_query_or_ref_match_length(int32_t value) {
2930 _impl_._has_bits_[0] |= 0x00040000u;
2931 _impl_.total_query_or_ref_match_length_ = value;
2932 }
set_total_query_or_ref_match_length(int32_t value)2933 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_total_query_or_ref_match_length(int32_t value) {
2934 _internal_set_total_query_or_ref_match_length(value);
2935 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_query_or_ref_match_length)
2936 }
2937
2938 // optional int32 total_title_match_length = 18;
_internal_has_total_title_match_length()2939 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_total_title_match_length() const {
2940 bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0;
2941 return value;
2942 }
has_total_title_match_length()2943 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_total_title_match_length() const {
2944 return _internal_has_total_title_match_length();
2945 }
clear_total_title_match_length()2946 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_total_title_match_length() {
2947 _impl_.total_title_match_length_ = 0;
2948 _impl_._has_bits_[0] &= ~0x00080000u;
2949 }
_internal_total_title_match_length()2950 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_total_title_match_length() const {
2951 return _impl_.total_title_match_length_;
2952 }
total_title_match_length()2953 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::total_title_match_length() const {
2954 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_title_match_length)
2955 return _internal_total_title_match_length();
2956 }
_internal_set_total_title_match_length(int32_t value)2957 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_total_title_match_length(int32_t value) {
2958 _impl_._has_bits_[0] |= 0x00080000u;
2959 _impl_.total_title_match_length_ = value;
2960 }
set_total_title_match_length(int32_t value)2961 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_total_title_match_length(int32_t value) {
2962 _internal_set_total_title_match_length(value);
2963 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.total_title_match_length)
2964 }
2965
2966 // optional bool has_non_scheme_www_match = 19;
_internal_has_has_non_scheme_www_match()2967 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_has_non_scheme_www_match() const {
2968 bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
2969 return value;
2970 }
has_has_non_scheme_www_match()2971 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_has_non_scheme_www_match() const {
2972 return _internal_has_has_non_scheme_www_match();
2973 }
clear_has_non_scheme_www_match()2974 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_has_non_scheme_www_match() {
2975 _impl_.has_non_scheme_www_match_ = false;
2976 _impl_._has_bits_[0] &= ~0x00010000u;
2977 }
_internal_has_non_scheme_www_match()2978 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_non_scheme_www_match() const {
2979 return _impl_.has_non_scheme_www_match_;
2980 }
has_non_scheme_www_match()2981 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_non_scheme_www_match() const {
2982 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.has_non_scheme_www_match)
2983 return _internal_has_non_scheme_www_match();
2984 }
_internal_set_has_non_scheme_www_match(bool value)2985 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_has_non_scheme_www_match(bool value) {
2986 _impl_._has_bits_[0] |= 0x00010000u;
2987 _impl_.has_non_scheme_www_match_ = value;
2988 }
set_has_non_scheme_www_match(bool value)2989 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_has_non_scheme_www_match(bool value) {
2990 _internal_set_has_non_scheme_www_match(value);
2991 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.has_non_scheme_www_match)
2992 }
2993
2994 // optional int32 num_input_terms_matched_by_title = 20;
_internal_has_num_input_terms_matched_by_title()2995 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_num_input_terms_matched_by_title() const {
2996 bool value = (_impl_._has_bits_[0] & 0x00100000u) != 0;
2997 return value;
2998 }
has_num_input_terms_matched_by_title()2999 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_num_input_terms_matched_by_title() const {
3000 return _internal_has_num_input_terms_matched_by_title();
3001 }
clear_num_input_terms_matched_by_title()3002 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_num_input_terms_matched_by_title() {
3003 _impl_.num_input_terms_matched_by_title_ = 0;
3004 _impl_._has_bits_[0] &= ~0x00100000u;
3005 }
_internal_num_input_terms_matched_by_title()3006 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_num_input_terms_matched_by_title() const {
3007 return _impl_.num_input_terms_matched_by_title_;
3008 }
num_input_terms_matched_by_title()3009 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::num_input_terms_matched_by_title() const {
3010 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_input_terms_matched_by_title)
3011 return _internal_num_input_terms_matched_by_title();
3012 }
_internal_set_num_input_terms_matched_by_title(int32_t value)3013 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_num_input_terms_matched_by_title(int32_t value) {
3014 _impl_._has_bits_[0] |= 0x00100000u;
3015 _impl_.num_input_terms_matched_by_title_ = value;
3016 }
set_num_input_terms_matched_by_title(int32_t value)3017 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_num_input_terms_matched_by_title(int32_t value) {
3018 _internal_set_num_input_terms_matched_by_title(value);
3019 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_input_terms_matched_by_title)
3020 }
3021
3022 // optional int32 num_input_terms_matched_by_url = 21;
_internal_has_num_input_terms_matched_by_url()3023 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_num_input_terms_matched_by_url() const {
3024 bool value = (_impl_._has_bits_[0] & 0x00200000u) != 0;
3025 return value;
3026 }
has_num_input_terms_matched_by_url()3027 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_num_input_terms_matched_by_url() const {
3028 return _internal_has_num_input_terms_matched_by_url();
3029 }
clear_num_input_terms_matched_by_url()3030 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_num_input_terms_matched_by_url() {
3031 _impl_.num_input_terms_matched_by_url_ = 0;
3032 _impl_._has_bits_[0] &= ~0x00200000u;
3033 }
_internal_num_input_terms_matched_by_url()3034 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_num_input_terms_matched_by_url() const {
3035 return _impl_.num_input_terms_matched_by_url_;
3036 }
num_input_terms_matched_by_url()3037 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::num_input_terms_matched_by_url() const {
3038 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_input_terms_matched_by_url)
3039 return _internal_num_input_terms_matched_by_url();
3040 }
_internal_set_num_input_terms_matched_by_url(int32_t value)3041 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_num_input_terms_matched_by_url(int32_t value) {
3042 _impl_._has_bits_[0] |= 0x00200000u;
3043 _impl_.num_input_terms_matched_by_url_ = value;
3044 }
set_num_input_terms_matched_by_url(int32_t value)3045 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_num_input_terms_matched_by_url(int32_t value) {
3046 _internal_set_num_input_terms_matched_by_url(value);
3047 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.num_input_terms_matched_by_url)
3048 }
3049
3050 // optional int32 length_of_url = 22;
_internal_has_length_of_url()3051 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_length_of_url() const {
3052 bool value = (_impl_._has_bits_[0] & 0x00400000u) != 0;
3053 return value;
3054 }
has_length_of_url()3055 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_length_of_url() const {
3056 return _internal_has_length_of_url();
3057 }
clear_length_of_url()3058 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_length_of_url() {
3059 _impl_.length_of_url_ = 0;
3060 _impl_._has_bits_[0] &= ~0x00400000u;
3061 }
_internal_length_of_url()3062 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::_internal_length_of_url() const {
3063 return _impl_.length_of_url_;
3064 }
length_of_url()3065 inline int32_t OmniboxEventProto_Suggestion_ScoringSignals::length_of_url() const {
3066 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.length_of_url)
3067 return _internal_length_of_url();
3068 }
_internal_set_length_of_url(int32_t value)3069 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_length_of_url(int32_t value) {
3070 _impl_._has_bits_[0] |= 0x00400000u;
3071 _impl_.length_of_url_ = value;
3072 }
set_length_of_url(int32_t value)3073 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_length_of_url(int32_t value) {
3074 _internal_set_length_of_url(value);
3075 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.length_of_url)
3076 }
3077
3078 // optional float site_engagement = 23;
_internal_has_site_engagement()3079 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_site_engagement() const {
3080 bool value = (_impl_._has_bits_[0] & 0x00800000u) != 0;
3081 return value;
3082 }
has_site_engagement()3083 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_site_engagement() const {
3084 return _internal_has_site_engagement();
3085 }
clear_site_engagement()3086 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_site_engagement() {
3087 _impl_.site_engagement_ = 0;
3088 _impl_._has_bits_[0] &= ~0x00800000u;
3089 }
_internal_site_engagement()3090 inline float OmniboxEventProto_Suggestion_ScoringSignals::_internal_site_engagement() const {
3091 return _impl_.site_engagement_;
3092 }
site_engagement()3093 inline float OmniboxEventProto_Suggestion_ScoringSignals::site_engagement() const {
3094 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.site_engagement)
3095 return _internal_site_engagement();
3096 }
_internal_set_site_engagement(float value)3097 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_site_engagement(float value) {
3098 _impl_._has_bits_[0] |= 0x00800000u;
3099 _impl_.site_engagement_ = value;
3100 }
set_site_engagement(float value)3101 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_site_engagement(float value) {
3102 _internal_set_site_engagement(value);
3103 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.site_engagement)
3104 }
3105
3106 // optional bool allowed_to_be_default_match = 24;
_internal_has_allowed_to_be_default_match()3107 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_has_allowed_to_be_default_match() const {
3108 bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
3109 return value;
3110 }
has_allowed_to_be_default_match()3111 inline bool OmniboxEventProto_Suggestion_ScoringSignals::has_allowed_to_be_default_match() const {
3112 return _internal_has_allowed_to_be_default_match();
3113 }
clear_allowed_to_be_default_match()3114 inline void OmniboxEventProto_Suggestion_ScoringSignals::clear_allowed_to_be_default_match() {
3115 _impl_.allowed_to_be_default_match_ = false;
3116 _impl_._has_bits_[0] &= ~0x00020000u;
3117 }
_internal_allowed_to_be_default_match()3118 inline bool OmniboxEventProto_Suggestion_ScoringSignals::_internal_allowed_to_be_default_match() const {
3119 return _impl_.allowed_to_be_default_match_;
3120 }
allowed_to_be_default_match()3121 inline bool OmniboxEventProto_Suggestion_ScoringSignals::allowed_to_be_default_match() const {
3122 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.ScoringSignals.allowed_to_be_default_match)
3123 return _internal_allowed_to_be_default_match();
3124 }
_internal_set_allowed_to_be_default_match(bool value)3125 inline void OmniboxEventProto_Suggestion_ScoringSignals::_internal_set_allowed_to_be_default_match(bool value) {
3126 _impl_._has_bits_[0] |= 0x00020000u;
3127 _impl_.allowed_to_be_default_match_ = value;
3128 }
set_allowed_to_be_default_match(bool value)3129 inline void OmniboxEventProto_Suggestion_ScoringSignals::set_allowed_to_be_default_match(bool value) {
3130 _internal_set_allowed_to_be_default_match(value);
3131 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.ScoringSignals.allowed_to_be_default_match)
3132 }
3133
3134 // -------------------------------------------------------------------
3135
3136 // OmniboxEventProto_Suggestion
3137
3138 // optional .metrics.OmniboxEventProto.ProviderType provider = 1;
_internal_has_provider()3139 inline bool OmniboxEventProto_Suggestion::_internal_has_provider() const {
3140 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
3141 return value;
3142 }
has_provider()3143 inline bool OmniboxEventProto_Suggestion::has_provider() const {
3144 return _internal_has_provider();
3145 }
clear_provider()3146 inline void OmniboxEventProto_Suggestion::clear_provider() {
3147 _impl_.provider_ = 0;
3148 _impl_._has_bits_[0] &= ~0x00000002u;
3149 }
_internal_provider()3150 inline ::metrics::OmniboxEventProto_ProviderType OmniboxEventProto_Suggestion::_internal_provider() const {
3151 return static_cast< ::metrics::OmniboxEventProto_ProviderType >(_impl_.provider_);
3152 }
provider()3153 inline ::metrics::OmniboxEventProto_ProviderType OmniboxEventProto_Suggestion::provider() const {
3154 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.provider)
3155 return _internal_provider();
3156 }
_internal_set_provider(::metrics::OmniboxEventProto_ProviderType value)3157 inline void OmniboxEventProto_Suggestion::_internal_set_provider(::metrics::OmniboxEventProto_ProviderType value) {
3158 assert(::metrics::OmniboxEventProto_ProviderType_IsValid(value));
3159 _impl_._has_bits_[0] |= 0x00000002u;
3160 _impl_.provider_ = value;
3161 }
set_provider(::metrics::OmniboxEventProto_ProviderType value)3162 inline void OmniboxEventProto_Suggestion::set_provider(::metrics::OmniboxEventProto_ProviderType value) {
3163 _internal_set_provider(value);
3164 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.provider)
3165 }
3166
3167 // optional .metrics.OmniboxEventProto.Suggestion.ResultType result_type = 2;
_internal_has_result_type()3168 inline bool OmniboxEventProto_Suggestion::_internal_has_result_type() const {
3169 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
3170 return value;
3171 }
has_result_type()3172 inline bool OmniboxEventProto_Suggestion::has_result_type() const {
3173 return _internal_has_result_type();
3174 }
clear_result_type()3175 inline void OmniboxEventProto_Suggestion::clear_result_type() {
3176 _impl_.result_type_ = 0;
3177 _impl_._has_bits_[0] &= ~0x00000004u;
3178 }
_internal_result_type()3179 inline ::metrics::OmniboxEventProto_Suggestion_ResultType OmniboxEventProto_Suggestion::_internal_result_type() const {
3180 return static_cast< ::metrics::OmniboxEventProto_Suggestion_ResultType >(_impl_.result_type_);
3181 }
result_type()3182 inline ::metrics::OmniboxEventProto_Suggestion_ResultType OmniboxEventProto_Suggestion::result_type() const {
3183 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.result_type)
3184 return _internal_result_type();
3185 }
_internal_set_result_type(::metrics::OmniboxEventProto_Suggestion_ResultType value)3186 inline void OmniboxEventProto_Suggestion::_internal_set_result_type(::metrics::OmniboxEventProto_Suggestion_ResultType value) {
3187 assert(::metrics::OmniboxEventProto_Suggestion_ResultType_IsValid(value));
3188 _impl_._has_bits_[0] |= 0x00000004u;
3189 _impl_.result_type_ = value;
3190 }
set_result_type(::metrics::OmniboxEventProto_Suggestion_ResultType value)3191 inline void OmniboxEventProto_Suggestion::set_result_type(::metrics::OmniboxEventProto_Suggestion_ResultType value) {
3192 _internal_set_result_type(value);
3193 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.result_type)
3194 }
3195
3196 // optional int32 relevance = 3;
_internal_has_relevance()3197 inline bool OmniboxEventProto_Suggestion::_internal_has_relevance() const {
3198 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
3199 return value;
3200 }
has_relevance()3201 inline bool OmniboxEventProto_Suggestion::has_relevance() const {
3202 return _internal_has_relevance();
3203 }
clear_relevance()3204 inline void OmniboxEventProto_Suggestion::clear_relevance() {
3205 _impl_.relevance_ = 0;
3206 _impl_._has_bits_[0] &= ~0x00000008u;
3207 }
_internal_relevance()3208 inline int32_t OmniboxEventProto_Suggestion::_internal_relevance() const {
3209 return _impl_.relevance_;
3210 }
relevance()3211 inline int32_t OmniboxEventProto_Suggestion::relevance() const {
3212 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.relevance)
3213 return _internal_relevance();
3214 }
_internal_set_relevance(int32_t value)3215 inline void OmniboxEventProto_Suggestion::_internal_set_relevance(int32_t value) {
3216 _impl_._has_bits_[0] |= 0x00000008u;
3217 _impl_.relevance_ = value;
3218 }
set_relevance(int32_t value)3219 inline void OmniboxEventProto_Suggestion::set_relevance(int32_t value) {
3220 _internal_set_relevance(value);
3221 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.relevance)
3222 }
3223
3224 // optional int32 typed_count = 5;
_internal_has_typed_count()3225 inline bool OmniboxEventProto_Suggestion::_internal_has_typed_count() const {
3226 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
3227 return value;
3228 }
has_typed_count()3229 inline bool OmniboxEventProto_Suggestion::has_typed_count() const {
3230 return _internal_has_typed_count();
3231 }
clear_typed_count()3232 inline void OmniboxEventProto_Suggestion::clear_typed_count() {
3233 _impl_.typed_count_ = 0;
3234 _impl_._has_bits_[0] &= ~0x00000010u;
3235 }
_internal_typed_count()3236 inline int32_t OmniboxEventProto_Suggestion::_internal_typed_count() const {
3237 return _impl_.typed_count_;
3238 }
typed_count()3239 inline int32_t OmniboxEventProto_Suggestion::typed_count() const {
3240 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.typed_count)
3241 return _internal_typed_count();
3242 }
_internal_set_typed_count(int32_t value)3243 inline void OmniboxEventProto_Suggestion::_internal_set_typed_count(int32_t value) {
3244 _impl_._has_bits_[0] |= 0x00000010u;
3245 _impl_.typed_count_ = value;
3246 }
set_typed_count(int32_t value)3247 inline void OmniboxEventProto_Suggestion::set_typed_count(int32_t value) {
3248 _internal_set_typed_count(value);
3249 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.typed_count)
3250 }
3251
3252 // optional bool is_starred = 4 [deprecated = true];
_internal_has_is_starred()3253 inline bool OmniboxEventProto_Suggestion::_internal_has_is_starred() const {
3254 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
3255 return value;
3256 }
has_is_starred()3257 inline bool OmniboxEventProto_Suggestion::has_is_starred() const {
3258 return _internal_has_is_starred();
3259 }
clear_is_starred()3260 inline void OmniboxEventProto_Suggestion::clear_is_starred() {
3261 _impl_.is_starred_ = false;
3262 _impl_._has_bits_[0] &= ~0x00000020u;
3263 }
_internal_is_starred()3264 inline bool OmniboxEventProto_Suggestion::_internal_is_starred() const {
3265 return _impl_.is_starred_;
3266 }
is_starred()3267 inline bool OmniboxEventProto_Suggestion::is_starred() const {
3268 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.is_starred)
3269 return _internal_is_starred();
3270 }
_internal_set_is_starred(bool value)3271 inline void OmniboxEventProto_Suggestion::_internal_set_is_starred(bool value) {
3272 _impl_._has_bits_[0] |= 0x00000020u;
3273 _impl_.is_starred_ = value;
3274 }
set_is_starred(bool value)3275 inline void OmniboxEventProto_Suggestion::set_is_starred(bool value) {
3276 _internal_set_is_starred(value);
3277 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.is_starred)
3278 }
3279
3280 // optional bool is_disabled = 6;
_internal_has_is_disabled()3281 inline bool OmniboxEventProto_Suggestion::_internal_has_is_disabled() const {
3282 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
3283 return value;
3284 }
has_is_disabled()3285 inline bool OmniboxEventProto_Suggestion::has_is_disabled() const {
3286 return _internal_has_is_disabled();
3287 }
clear_is_disabled()3288 inline void OmniboxEventProto_Suggestion::clear_is_disabled() {
3289 _impl_.is_disabled_ = false;
3290 _impl_._has_bits_[0] &= ~0x00000040u;
3291 }
_internal_is_disabled()3292 inline bool OmniboxEventProto_Suggestion::_internal_is_disabled() const {
3293 return _impl_.is_disabled_;
3294 }
is_disabled()3295 inline bool OmniboxEventProto_Suggestion::is_disabled() const {
3296 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.is_disabled)
3297 return _internal_is_disabled();
3298 }
_internal_set_is_disabled(bool value)3299 inline void OmniboxEventProto_Suggestion::_internal_set_is_disabled(bool value) {
3300 _impl_._has_bits_[0] |= 0x00000040u;
3301 _impl_.is_disabled_ = value;
3302 }
set_is_disabled(bool value)3303 inline void OmniboxEventProto_Suggestion::set_is_disabled(bool value) {
3304 _internal_set_is_disabled(value);
3305 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.is_disabled)
3306 }
3307
3308 // optional int32 result_subtype_identifier = 7;
_internal_has_result_subtype_identifier()3309 inline bool OmniboxEventProto_Suggestion::_internal_has_result_subtype_identifier() const {
3310 bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
3311 return value;
3312 }
has_result_subtype_identifier()3313 inline bool OmniboxEventProto_Suggestion::has_result_subtype_identifier() const {
3314 return _internal_has_result_subtype_identifier();
3315 }
clear_result_subtype_identifier()3316 inline void OmniboxEventProto_Suggestion::clear_result_subtype_identifier() {
3317 _impl_.result_subtype_identifier_ = 0;
3318 _impl_._has_bits_[0] &= ~0x00000200u;
3319 }
_internal_result_subtype_identifier()3320 inline int32_t OmniboxEventProto_Suggestion::_internal_result_subtype_identifier() const {
3321 return _impl_.result_subtype_identifier_;
3322 }
result_subtype_identifier()3323 inline int32_t OmniboxEventProto_Suggestion::result_subtype_identifier() const {
3324 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.result_subtype_identifier)
3325 return _internal_result_subtype_identifier();
3326 }
_internal_set_result_subtype_identifier(int32_t value)3327 inline void OmniboxEventProto_Suggestion::_internal_set_result_subtype_identifier(int32_t value) {
3328 _impl_._has_bits_[0] |= 0x00000200u;
3329 _impl_.result_subtype_identifier_ = value;
3330 }
set_result_subtype_identifier(int32_t value)3331 inline void OmniboxEventProto_Suggestion::set_result_subtype_identifier(int32_t value) {
3332 _internal_set_result_subtype_identifier(value);
3333 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.result_subtype_identifier)
3334 }
3335
3336 // optional bool has_tab_match = 8;
_internal_has_has_tab_match()3337 inline bool OmniboxEventProto_Suggestion::_internal_has_has_tab_match() const {
3338 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
3339 return value;
3340 }
has_has_tab_match()3341 inline bool OmniboxEventProto_Suggestion::has_has_tab_match() const {
3342 return _internal_has_has_tab_match();
3343 }
clear_has_tab_match()3344 inline void OmniboxEventProto_Suggestion::clear_has_tab_match() {
3345 _impl_.has_tab_match_ = false;
3346 _impl_._has_bits_[0] &= ~0x00000080u;
3347 }
_internal_has_tab_match()3348 inline bool OmniboxEventProto_Suggestion::_internal_has_tab_match() const {
3349 return _impl_.has_tab_match_;
3350 }
has_tab_match()3351 inline bool OmniboxEventProto_Suggestion::has_tab_match() const {
3352 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.has_tab_match)
3353 return _internal_has_tab_match();
3354 }
_internal_set_has_tab_match(bool value)3355 inline void OmniboxEventProto_Suggestion::_internal_set_has_tab_match(bool value) {
3356 _impl_._has_bits_[0] |= 0x00000080u;
3357 _impl_.has_tab_match_ = value;
3358 }
set_has_tab_match(bool value)3359 inline void OmniboxEventProto_Suggestion::set_has_tab_match(bool value) {
3360 _internal_set_has_tab_match(value);
3361 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.has_tab_match)
3362 }
3363
3364 // optional bool is_keyword_suggestion = 9;
_internal_has_is_keyword_suggestion()3365 inline bool OmniboxEventProto_Suggestion::_internal_has_is_keyword_suggestion() const {
3366 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
3367 return value;
3368 }
has_is_keyword_suggestion()3369 inline bool OmniboxEventProto_Suggestion::has_is_keyword_suggestion() const {
3370 return _internal_has_is_keyword_suggestion();
3371 }
clear_is_keyword_suggestion()3372 inline void OmniboxEventProto_Suggestion::clear_is_keyword_suggestion() {
3373 _impl_.is_keyword_suggestion_ = false;
3374 _impl_._has_bits_[0] &= ~0x00000100u;
3375 }
_internal_is_keyword_suggestion()3376 inline bool OmniboxEventProto_Suggestion::_internal_is_keyword_suggestion() const {
3377 return _impl_.is_keyword_suggestion_;
3378 }
is_keyword_suggestion()3379 inline bool OmniboxEventProto_Suggestion::is_keyword_suggestion() const {
3380 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.is_keyword_suggestion)
3381 return _internal_is_keyword_suggestion();
3382 }
_internal_set_is_keyword_suggestion(bool value)3383 inline void OmniboxEventProto_Suggestion::_internal_set_is_keyword_suggestion(bool value) {
3384 _impl_._has_bits_[0] |= 0x00000100u;
3385 _impl_.is_keyword_suggestion_ = value;
3386 }
set_is_keyword_suggestion(bool value)3387 inline void OmniboxEventProto_Suggestion::set_is_keyword_suggestion(bool value) {
3388 _internal_set_is_keyword_suggestion(value);
3389 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.Suggestion.is_keyword_suggestion)
3390 }
3391
3392 // optional .metrics.OmniboxEventProto.Suggestion.ScoringSignals scoring_signals = 10;
_internal_has_scoring_signals()3393 inline bool OmniboxEventProto_Suggestion::_internal_has_scoring_signals() const {
3394 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
3395 PROTOBUF_ASSUME(!value || _impl_.scoring_signals_ != nullptr);
3396 return value;
3397 }
has_scoring_signals()3398 inline bool OmniboxEventProto_Suggestion::has_scoring_signals() const {
3399 return _internal_has_scoring_signals();
3400 }
clear_scoring_signals()3401 inline void OmniboxEventProto_Suggestion::clear_scoring_signals() {
3402 if (_impl_.scoring_signals_ != nullptr) _impl_.scoring_signals_->Clear();
3403 _impl_._has_bits_[0] &= ~0x00000001u;
3404 }
_internal_scoring_signals()3405 inline const ::metrics::OmniboxEventProto_Suggestion_ScoringSignals& OmniboxEventProto_Suggestion::_internal_scoring_signals() const {
3406 const ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* p = _impl_.scoring_signals_;
3407 return p != nullptr ? *p : reinterpret_cast<const ::metrics::OmniboxEventProto_Suggestion_ScoringSignals&>(
3408 ::metrics::_OmniboxEventProto_Suggestion_ScoringSignals_default_instance_);
3409 }
scoring_signals()3410 inline const ::metrics::OmniboxEventProto_Suggestion_ScoringSignals& OmniboxEventProto_Suggestion::scoring_signals() const {
3411 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.Suggestion.scoring_signals)
3412 return _internal_scoring_signals();
3413 }
unsafe_arena_set_allocated_scoring_signals(::metrics::OmniboxEventProto_Suggestion_ScoringSignals * scoring_signals)3414 inline void OmniboxEventProto_Suggestion::unsafe_arena_set_allocated_scoring_signals(
3415 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* scoring_signals) {
3416 if (GetArenaForAllocation() == nullptr) {
3417 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.scoring_signals_);
3418 }
3419 _impl_.scoring_signals_ = scoring_signals;
3420 if (scoring_signals) {
3421 _impl_._has_bits_[0] |= 0x00000001u;
3422 } else {
3423 _impl_._has_bits_[0] &= ~0x00000001u;
3424 }
3425 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:metrics.OmniboxEventProto.Suggestion.scoring_signals)
3426 }
release_scoring_signals()3427 inline ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* OmniboxEventProto_Suggestion::release_scoring_signals() {
3428 _impl_._has_bits_[0] &= ~0x00000001u;
3429 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* temp = _impl_.scoring_signals_;
3430 _impl_.scoring_signals_ = nullptr;
3431 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3432 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3433 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3434 if (GetArenaForAllocation() == nullptr) { delete old; }
3435 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
3436 if (GetArenaForAllocation() != nullptr) {
3437 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3438 }
3439 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
3440 return temp;
3441 }
unsafe_arena_release_scoring_signals()3442 inline ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* OmniboxEventProto_Suggestion::unsafe_arena_release_scoring_signals() {
3443 // @@protoc_insertion_point(field_release:metrics.OmniboxEventProto.Suggestion.scoring_signals)
3444 _impl_._has_bits_[0] &= ~0x00000001u;
3445 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* temp = _impl_.scoring_signals_;
3446 _impl_.scoring_signals_ = nullptr;
3447 return temp;
3448 }
_internal_mutable_scoring_signals()3449 inline ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* OmniboxEventProto_Suggestion::_internal_mutable_scoring_signals() {
3450 _impl_._has_bits_[0] |= 0x00000001u;
3451 if (_impl_.scoring_signals_ == nullptr) {
3452 auto* p = CreateMaybeMessage<::metrics::OmniboxEventProto_Suggestion_ScoringSignals>(GetArenaForAllocation());
3453 _impl_.scoring_signals_ = p;
3454 }
3455 return _impl_.scoring_signals_;
3456 }
mutable_scoring_signals()3457 inline ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* OmniboxEventProto_Suggestion::mutable_scoring_signals() {
3458 ::metrics::OmniboxEventProto_Suggestion_ScoringSignals* _msg = _internal_mutable_scoring_signals();
3459 // @@protoc_insertion_point(field_mutable:metrics.OmniboxEventProto.Suggestion.scoring_signals)
3460 return _msg;
3461 }
set_allocated_scoring_signals(::metrics::OmniboxEventProto_Suggestion_ScoringSignals * scoring_signals)3462 inline void OmniboxEventProto_Suggestion::set_allocated_scoring_signals(::metrics::OmniboxEventProto_Suggestion_ScoringSignals* scoring_signals) {
3463 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3464 if (message_arena == nullptr) {
3465 delete _impl_.scoring_signals_;
3466 }
3467 if (scoring_signals) {
3468 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3469 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(scoring_signals);
3470 if (message_arena != submessage_arena) {
3471 scoring_signals = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3472 message_arena, scoring_signals, submessage_arena);
3473 }
3474 _impl_._has_bits_[0] |= 0x00000001u;
3475 } else {
3476 _impl_._has_bits_[0] &= ~0x00000001u;
3477 }
3478 _impl_.scoring_signals_ = scoring_signals;
3479 // @@protoc_insertion_point(field_set_allocated:metrics.OmniboxEventProto.Suggestion.scoring_signals)
3480 }
3481
3482 // -------------------------------------------------------------------
3483
3484 // OmniboxEventProto_ProviderInfo
3485
3486 // optional .metrics.OmniboxEventProto.ProviderType provider = 1;
_internal_has_provider()3487 inline bool OmniboxEventProto_ProviderInfo::_internal_has_provider() const {
3488 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
3489 return value;
3490 }
has_provider()3491 inline bool OmniboxEventProto_ProviderInfo::has_provider() const {
3492 return _internal_has_provider();
3493 }
clear_provider()3494 inline void OmniboxEventProto_ProviderInfo::clear_provider() {
3495 _impl_.provider_ = 0;
3496 _impl_._has_bits_[0] &= ~0x00000001u;
3497 }
_internal_provider()3498 inline ::metrics::OmniboxEventProto_ProviderType OmniboxEventProto_ProviderInfo::_internal_provider() const {
3499 return static_cast< ::metrics::OmniboxEventProto_ProviderType >(_impl_.provider_);
3500 }
provider()3501 inline ::metrics::OmniboxEventProto_ProviderType OmniboxEventProto_ProviderInfo::provider() const {
3502 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.ProviderInfo.provider)
3503 return _internal_provider();
3504 }
_internal_set_provider(::metrics::OmniboxEventProto_ProviderType value)3505 inline void OmniboxEventProto_ProviderInfo::_internal_set_provider(::metrics::OmniboxEventProto_ProviderType value) {
3506 assert(::metrics::OmniboxEventProto_ProviderType_IsValid(value));
3507 _impl_._has_bits_[0] |= 0x00000001u;
3508 _impl_.provider_ = value;
3509 }
set_provider(::metrics::OmniboxEventProto_ProviderType value)3510 inline void OmniboxEventProto_ProviderInfo::set_provider(::metrics::OmniboxEventProto_ProviderType value) {
3511 _internal_set_provider(value);
3512 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.ProviderInfo.provider)
3513 }
3514
3515 // optional bool provider_done = 2;
_internal_has_provider_done()3516 inline bool OmniboxEventProto_ProviderInfo::_internal_has_provider_done() const {
3517 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
3518 return value;
3519 }
has_provider_done()3520 inline bool OmniboxEventProto_ProviderInfo::has_provider_done() const {
3521 return _internal_has_provider_done();
3522 }
clear_provider_done()3523 inline void OmniboxEventProto_ProviderInfo::clear_provider_done() {
3524 _impl_.provider_done_ = false;
3525 _impl_._has_bits_[0] &= ~0x00000002u;
3526 }
_internal_provider_done()3527 inline bool OmniboxEventProto_ProviderInfo::_internal_provider_done() const {
3528 return _impl_.provider_done_;
3529 }
provider_done()3530 inline bool OmniboxEventProto_ProviderInfo::provider_done() const {
3531 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.ProviderInfo.provider_done)
3532 return _internal_provider_done();
3533 }
_internal_set_provider_done(bool value)3534 inline void OmniboxEventProto_ProviderInfo::_internal_set_provider_done(bool value) {
3535 _impl_._has_bits_[0] |= 0x00000002u;
3536 _impl_.provider_done_ = value;
3537 }
set_provider_done(bool value)3538 inline void OmniboxEventProto_ProviderInfo::set_provider_done(bool value) {
3539 _internal_set_provider_done(value);
3540 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.ProviderInfo.provider_done)
3541 }
3542
3543 // repeated fixed32 field_trial_triggered = 3 [deprecated = true];
_internal_field_trial_triggered_size()3544 inline int OmniboxEventProto_ProviderInfo::_internal_field_trial_triggered_size() const {
3545 return _impl_.field_trial_triggered_.size();
3546 }
field_trial_triggered_size()3547 inline int OmniboxEventProto_ProviderInfo::field_trial_triggered_size() const {
3548 return _internal_field_trial_triggered_size();
3549 }
clear_field_trial_triggered()3550 inline void OmniboxEventProto_ProviderInfo::clear_field_trial_triggered() {
3551 _impl_.field_trial_triggered_.Clear();
3552 }
_internal_field_trial_triggered(int index)3553 inline uint32_t OmniboxEventProto_ProviderInfo::_internal_field_trial_triggered(int index) const {
3554 return _impl_.field_trial_triggered_.Get(index);
3555 }
field_trial_triggered(int index)3556 inline uint32_t OmniboxEventProto_ProviderInfo::field_trial_triggered(int index) const {
3557 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered)
3558 return _internal_field_trial_triggered(index);
3559 }
set_field_trial_triggered(int index,uint32_t value)3560 inline void OmniboxEventProto_ProviderInfo::set_field_trial_triggered(int index, uint32_t value) {
3561 _impl_.field_trial_triggered_.Set(index, value);
3562 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered)
3563 }
_internal_add_field_trial_triggered(uint32_t value)3564 inline void OmniboxEventProto_ProviderInfo::_internal_add_field_trial_triggered(uint32_t value) {
3565 _impl_.field_trial_triggered_.Add(value);
3566 }
add_field_trial_triggered(uint32_t value)3567 inline void OmniboxEventProto_ProviderInfo::add_field_trial_triggered(uint32_t value) {
3568 _internal_add_field_trial_triggered(value);
3569 // @@protoc_insertion_point(field_add:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered)
3570 }
3571 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
_internal_field_trial_triggered()3572 OmniboxEventProto_ProviderInfo::_internal_field_trial_triggered() const {
3573 return _impl_.field_trial_triggered_;
3574 }
3575 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
field_trial_triggered()3576 OmniboxEventProto_ProviderInfo::field_trial_triggered() const {
3577 // @@protoc_insertion_point(field_list:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered)
3578 return _internal_field_trial_triggered();
3579 }
3580 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
_internal_mutable_field_trial_triggered()3581 OmniboxEventProto_ProviderInfo::_internal_mutable_field_trial_triggered() {
3582 return &_impl_.field_trial_triggered_;
3583 }
3584 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
mutable_field_trial_triggered()3585 OmniboxEventProto_ProviderInfo::mutable_field_trial_triggered() {
3586 // @@protoc_insertion_point(field_mutable_list:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered)
3587 return _internal_mutable_field_trial_triggered();
3588 }
3589
3590 // repeated fixed32 field_trial_triggered_in_session = 4 [deprecated = true];
_internal_field_trial_triggered_in_session_size()3591 inline int OmniboxEventProto_ProviderInfo::_internal_field_trial_triggered_in_session_size() const {
3592 return _impl_.field_trial_triggered_in_session_.size();
3593 }
field_trial_triggered_in_session_size()3594 inline int OmniboxEventProto_ProviderInfo::field_trial_triggered_in_session_size() const {
3595 return _internal_field_trial_triggered_in_session_size();
3596 }
clear_field_trial_triggered_in_session()3597 inline void OmniboxEventProto_ProviderInfo::clear_field_trial_triggered_in_session() {
3598 _impl_.field_trial_triggered_in_session_.Clear();
3599 }
_internal_field_trial_triggered_in_session(int index)3600 inline uint32_t OmniboxEventProto_ProviderInfo::_internal_field_trial_triggered_in_session(int index) const {
3601 return _impl_.field_trial_triggered_in_session_.Get(index);
3602 }
field_trial_triggered_in_session(int index)3603 inline uint32_t OmniboxEventProto_ProviderInfo::field_trial_triggered_in_session(int index) const {
3604 // @@protoc_insertion_point(field_get:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered_in_session)
3605 return _internal_field_trial_triggered_in_session(index);
3606 }
set_field_trial_triggered_in_session(int index,uint32_t value)3607 inline void OmniboxEventProto_ProviderInfo::set_field_trial_triggered_in_session(int index, uint32_t value) {
3608 _impl_.field_trial_triggered_in_session_.Set(index, value);
3609 // @@protoc_insertion_point(field_set:metrics.OmniboxEventProto.ProviderInfo.field_trial_triggered_in_session)
3610 }
_internal_add_field_trial_triggered_in_session(uint32_t value)3611 inline void OmniboxEventProto_ProviderInfo::_internal_add_field_trial_triggered_in_session(uint32_t value) {
3612 _impl_.field_trial_triggered_in_session_.Add(value);
3613 }
add_field_trial_triggered_in_session(uint32_t value)3614