1 | #ifdef __GNUC__ |
2 | #pragma GCC diagnostic push |
3 | #pragma GCC diagnostic ignored "-Wshadow" |
4 | #pragma GCC diagnostic ignored "-Wunused-parameter" |
5 | #endif |
6 | |
7 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
8 | // source: proto/config.proto |
9 | |
10 | #include "proto/config.pb.h" |
11 | |
12 | #include <algorithm> |
13 | |
14 | #include <google/protobuf/io/coded_stream.h> |
15 | #include <google/protobuf/extension_set.h> |
16 | #include <google/protobuf/wire_format_lite.h> |
17 | #include <google/protobuf/descriptor.h> |
18 | #include <google/protobuf/generated_message_reflection.h> |
19 | #include <google/protobuf/reflection_ops.h> |
20 | #include <google/protobuf/wire_format.h> |
21 | // @@protoc_insertion_point(includes) |
22 | #include <google/protobuf/port_def.inc> |
23 | extern PROTOBUF_INTERNAL_EXPORT_proto_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CommonConfig_proto_2fconfig_2eproto; |
24 | extern PROTOBUF_INTERNAL_EXPORT_proto_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_IndexConfig_proto_2fconfig_2eproto; |
25 | extern PROTOBUF_INTERNAL_EXPORT_proto_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetaConfig_proto_2fconfig_2eproto; |
26 | extern PROTOBUF_INTERNAL_EXPORT_proto_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetricsConfig_proto_2fconfig_2eproto; |
27 | extern PROTOBUF_INTERNAL_EXPORT_proto_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QueryConfig_proto_2fconfig_2eproto; |
28 | namespace proxima { |
29 | namespace be { |
30 | namespace proto { |
31 | class MetricsConfigDefaultTypeInternal { |
32 | public: |
33 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetricsConfig> _instance; |
34 | } _MetricsConfig_default_instance_; |
35 | class CommonConfigDefaultTypeInternal { |
36 | public: |
37 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CommonConfig> _instance; |
38 | } _CommonConfig_default_instance_; |
39 | class QueryConfigDefaultTypeInternal { |
40 | public: |
41 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryConfig> _instance; |
42 | } _QueryConfig_default_instance_; |
43 | class IndexConfigDefaultTypeInternal { |
44 | public: |
45 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<IndexConfig> _instance; |
46 | } _IndexConfig_default_instance_; |
47 | class MetaConfigDefaultTypeInternal { |
48 | public: |
49 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaConfig> _instance; |
50 | } _MetaConfig_default_instance_; |
51 | class ProximaSEConfigDefaultTypeInternal { |
52 | public: |
53 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProximaSEConfig> _instance; |
54 | } _ProximaSEConfig_default_instance_; |
55 | } // namespace proto |
56 | } // namespace be |
57 | } // namespace proxima |
58 | static void InitDefaultsscc_info_CommonConfig_proto_2fconfig_2eproto() { |
59 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
60 | |
61 | { |
62 | void* ptr = &::proxima::be::proto::_CommonConfig_default_instance_; |
63 | new (ptr) ::proxima::be::proto::CommonConfig(); |
64 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
65 | } |
66 | ::proxima::be::proto::CommonConfig::InitAsDefaultInstance(); |
67 | } |
68 | |
69 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CommonConfig_proto_2fconfig_2eproto = |
70 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CommonConfig_proto_2fconfig_2eproto}, { |
71 | &scc_info_MetricsConfig_proto_2fconfig_2eproto.base,}}; |
72 | |
73 | static void InitDefaultsscc_info_IndexConfig_proto_2fconfig_2eproto() { |
74 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
75 | |
76 | { |
77 | void* ptr = &::proxima::be::proto::_IndexConfig_default_instance_; |
78 | new (ptr) ::proxima::be::proto::IndexConfig(); |
79 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
80 | } |
81 | ::proxima::be::proto::IndexConfig::InitAsDefaultInstance(); |
82 | } |
83 | |
84 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_IndexConfig_proto_2fconfig_2eproto = |
85 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_IndexConfig_proto_2fconfig_2eproto}, {}}; |
86 | |
87 | static void InitDefaultsscc_info_MetaConfig_proto_2fconfig_2eproto() { |
88 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
89 | |
90 | { |
91 | void* ptr = &::proxima::be::proto::_MetaConfig_default_instance_; |
92 | new (ptr) ::proxima::be::proto::MetaConfig(); |
93 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
94 | } |
95 | ::proxima::be::proto::MetaConfig::InitAsDefaultInstance(); |
96 | } |
97 | |
98 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetaConfig_proto_2fconfig_2eproto = |
99 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MetaConfig_proto_2fconfig_2eproto}, {}}; |
100 | |
101 | static void InitDefaultsscc_info_MetricsConfig_proto_2fconfig_2eproto() { |
102 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
103 | |
104 | { |
105 | void* ptr = &::proxima::be::proto::_MetricsConfig_default_instance_; |
106 | new (ptr) ::proxima::be::proto::MetricsConfig(); |
107 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
108 | } |
109 | ::proxima::be::proto::MetricsConfig::InitAsDefaultInstance(); |
110 | } |
111 | |
112 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetricsConfig_proto_2fconfig_2eproto = |
113 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MetricsConfig_proto_2fconfig_2eproto}, {}}; |
114 | |
115 | static void InitDefaultsscc_info_ProximaSEConfig_proto_2fconfig_2eproto() { |
116 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
117 | |
118 | { |
119 | void* ptr = &::proxima::be::proto::_ProximaSEConfig_default_instance_; |
120 | new (ptr) ::proxima::be::proto::ProximaSEConfig(); |
121 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
122 | } |
123 | ::proxima::be::proto::ProximaSEConfig::InitAsDefaultInstance(); |
124 | } |
125 | |
126 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ProximaSEConfig_proto_2fconfig_2eproto = |
127 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_ProximaSEConfig_proto_2fconfig_2eproto}, { |
128 | &scc_info_CommonConfig_proto_2fconfig_2eproto.base, |
129 | &scc_info_QueryConfig_proto_2fconfig_2eproto.base, |
130 | &scc_info_IndexConfig_proto_2fconfig_2eproto.base, |
131 | &scc_info_MetaConfig_proto_2fconfig_2eproto.base,}}; |
132 | |
133 | static void InitDefaultsscc_info_QueryConfig_proto_2fconfig_2eproto() { |
134 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
135 | |
136 | { |
137 | void* ptr = &::proxima::be::proto::_QueryConfig_default_instance_; |
138 | new (ptr) ::proxima::be::proto::QueryConfig(); |
139 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
140 | } |
141 | ::proxima::be::proto::QueryConfig::InitAsDefaultInstance(); |
142 | } |
143 | |
144 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QueryConfig_proto_2fconfig_2eproto = |
145 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_QueryConfig_proto_2fconfig_2eproto}, {}}; |
146 | |
147 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_proto_2fconfig_2eproto[6]; |
148 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_proto_2fconfig_2eproto = nullptr; |
149 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_proto_2fconfig_2eproto = nullptr; |
150 | |
151 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_proto_2fconfig_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
152 | ~0u, // no _has_bits_ |
153 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::MetricsConfig, _internal_metadata_), |
154 | ~0u, // no _extensions_ |
155 | ~0u, // no _oneof_case_ |
156 | ~0u, // no _weak_field_map_ |
157 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::MetricsConfig, name_), |
158 | ~0u, // no _has_bits_ |
159 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, _internal_metadata_), |
160 | ~0u, // no _extensions_ |
161 | ~0u, // no _oneof_case_ |
162 | ~0u, // no _weak_field_map_ |
163 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, protocol_), |
164 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, grpc_listen_port_), |
165 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, http_listen_port_), |
166 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, logger_type_), |
167 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, log_directory_), |
168 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, log_file_), |
169 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, log_level_), |
170 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CommonConfig, metrics_config_), |
171 | ~0u, // no _has_bits_ |
172 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryConfig, _internal_metadata_), |
173 | ~0u, // no _extensions_ |
174 | ~0u, // no _oneof_case_ |
175 | ~0u, // no _weak_field_map_ |
176 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryConfig, query_thread_count_), |
177 | ~0u, // no _has_bits_ |
178 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, _internal_metadata_), |
179 | ~0u, // no _extensions_ |
180 | ~0u, // no _oneof_case_ |
181 | ~0u, // no _weak_field_map_ |
182 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, build_thread_count_), |
183 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, dump_thread_count_), |
184 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, max_build_qps_), |
185 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, index_directory_), |
186 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, flush_internal_), |
187 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::IndexConfig, optimize_internal_), |
188 | ~0u, // no _has_bits_ |
189 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::MetaConfig, _internal_metadata_), |
190 | ~0u, // no _extensions_ |
191 | ~0u, // no _oneof_case_ |
192 | ~0u, // no _weak_field_map_ |
193 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::MetaConfig, meta_uri_), |
194 | ~0u, // no _has_bits_ |
195 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ProximaSEConfig, _internal_metadata_), |
196 | ~0u, // no _extensions_ |
197 | ~0u, // no _oneof_case_ |
198 | ~0u, // no _weak_field_map_ |
199 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ProximaSEConfig, common_config_), |
200 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ProximaSEConfig, query_config_), |
201 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ProximaSEConfig, index_config_), |
202 | PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ProximaSEConfig, meta_config_), |
203 | }; |
204 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
205 | { 0, -1, sizeof(::proxima::be::proto::MetricsConfig)}, |
206 | { 6, -1, sizeof(::proxima::be::proto::CommonConfig)}, |
207 | { 19, -1, sizeof(::proxima::be::proto::QueryConfig)}, |
208 | { 25, -1, sizeof(::proxima::be::proto::IndexConfig)}, |
209 | { 36, -1, sizeof(::proxima::be::proto::MetaConfig)}, |
210 | { 42, -1, sizeof(::proxima::be::proto::ProximaSEConfig)}, |
211 | }; |
212 | |
213 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
214 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_MetricsConfig_default_instance_), |
215 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CommonConfig_default_instance_), |
216 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_QueryConfig_default_instance_), |
217 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_IndexConfig_default_instance_), |
218 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_MetaConfig_default_instance_), |
219 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_ProximaSEConfig_default_instance_), |
220 | }; |
221 | |
222 | const char descriptor_table_protodef_proto_2fconfig_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
223 | "\n\022proto/config.proto\022\020proxima.be.proto\"\035" |
224 | "\n\rMetricsConfig\022\014\n\004name\030\001 \001(\t\"\336\001\n\014Common" |
225 | "Config\022\020\n\010protocol\030\001 \001(\t\022\030\n\020grpc_listen_" |
226 | "port\030\002 \001(\r\022\030\n\020http_listen_port\030\003 \001(\r\022\023\n\013" |
227 | "logger_type\030\004 \001(\t\022\025\n\rlog_directory\030\005 \001(\t" |
228 | "\022\020\n\010log_file\030\006 \001(\t\022\021\n\tlog_level\030\007 \001(\005\0227\n" |
229 | "\016metrics_config\030\010 \001(\0132\037.proxima.be.proto" |
230 | ".MetricsConfig\")\n\013QueryConfig\022\032\n\022query_t" |
231 | "hread_count\030\001 \001(\r\"\247\001\n\013IndexConfig\022\032\n\022bui" |
232 | "ld_thread_count\030\001 \001(\r\022\031\n\021dump_thread_cou" |
233 | "nt\030\002 \001(\r\022\025\n\rmax_build_qps\030\003 \001(\r\022\027\n\017index" |
234 | "_directory\030\005 \001(\t\022\026\n\016flush_internal\030\006 \001(\r" |
235 | "\022\031\n\021optimize_internal\030\007 \001(\r\"\036\n\nMetaConfi" |
236 | "g\022\020\n\010meta_uri\030\001 \001(\t\"\345\001\n\017ProximaSEConfig\022" |
237 | "5\n\rcommon_config\030\001 \001(\0132\036.proxima.be.prot" |
238 | "o.CommonConfig\0223\n\014query_config\030\002 \001(\0132\035.p" |
239 | "roxima.be.proto.QueryConfig\0223\n\014index_con" |
240 | "fig\030\003 \001(\0132\035.proxima.be.proto.IndexConfig" |
241 | "\0221\n\013meta_config\030\004 \001(\0132\034.proxima.be.proto" |
242 | ".MetaConfigB\022Z\020proxima/be/protob\006proto3" |
243 | ; |
244 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_proto_2fconfig_2eproto_deps[1] = { |
245 | }; |
246 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_proto_2fconfig_2eproto_sccs[6] = { |
247 | &scc_info_CommonConfig_proto_2fconfig_2eproto.base, |
248 | &scc_info_IndexConfig_proto_2fconfig_2eproto.base, |
249 | &scc_info_MetaConfig_proto_2fconfig_2eproto.base, |
250 | &scc_info_MetricsConfig_proto_2fconfig_2eproto.base, |
251 | &scc_info_ProximaSEConfig_proto_2fconfig_2eproto.base, |
252 | &scc_info_QueryConfig_proto_2fconfig_2eproto.base, |
253 | }; |
254 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_proto_2fconfig_2eproto_once; |
255 | static bool descriptor_table_proto_2fconfig_2eproto_initialized = false; |
256 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2fconfig_2eproto = { |
257 | &descriptor_table_proto_2fconfig_2eproto_initialized, descriptor_table_protodef_proto_2fconfig_2eproto, "proto/config.proto" , 799, |
258 | &descriptor_table_proto_2fconfig_2eproto_once, descriptor_table_proto_2fconfig_2eproto_sccs, descriptor_table_proto_2fconfig_2eproto_deps, 6, 0, |
259 | schemas, file_default_instances, TableStruct_proto_2fconfig_2eproto::offsets, |
260 | file_level_metadata_proto_2fconfig_2eproto, 6, file_level_enum_descriptors_proto_2fconfig_2eproto, file_level_service_descriptors_proto_2fconfig_2eproto, |
261 | }; |
262 | |
263 | // Force running AddDescriptors() at dynamic initialization time. |
264 | static bool dynamic_init_dummy_proto_2fconfig_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_proto_2fconfig_2eproto), true); |
265 | namespace proxima { |
266 | namespace be { |
267 | namespace proto { |
268 | |
269 | // =================================================================== |
270 | |
271 | void MetricsConfig::InitAsDefaultInstance() { |
272 | } |
273 | class MetricsConfig::_Internal { |
274 | public: |
275 | }; |
276 | |
277 | MetricsConfig::MetricsConfig() |
278 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
279 | SharedCtor(); |
280 | // @@protoc_insertion_point(constructor:proxima.be.proto.MetricsConfig) |
281 | } |
282 | MetricsConfig::MetricsConfig(const MetricsConfig& from) |
283 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
284 | _internal_metadata_(nullptr) { |
285 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
286 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
287 | if (!from._internal_name().empty()) { |
288 | name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); |
289 | } |
290 | // @@protoc_insertion_point(copy_constructor:proxima.be.proto.MetricsConfig) |
291 | } |
292 | |
293 | void MetricsConfig::SharedCtor() { |
294 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MetricsConfig_proto_2fconfig_2eproto.base); |
295 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
296 | } |
297 | |
298 | MetricsConfig::~MetricsConfig() { |
299 | // @@protoc_insertion_point(destructor:proxima.be.proto.MetricsConfig) |
300 | SharedDtor(); |
301 | } |
302 | |
303 | void MetricsConfig::SharedDtor() { |
304 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
305 | } |
306 | |
307 | void MetricsConfig::SetCachedSize(int size) const { |
308 | _cached_size_.Set(size); |
309 | } |
310 | const MetricsConfig& MetricsConfig::default_instance() { |
311 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MetricsConfig_proto_2fconfig_2eproto.base); |
312 | return *internal_default_instance(); |
313 | } |
314 | |
315 | |
316 | void MetricsConfig::Clear() { |
317 | // @@protoc_insertion_point(message_clear_start:proxima.be.proto.MetricsConfig) |
318 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
319 | // Prevent compiler warnings about cached_has_bits being unused |
320 | (void) cached_has_bits; |
321 | |
322 | name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
323 | _internal_metadata_.Clear(); |
324 | } |
325 | |
326 | const char* MetricsConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
327 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
328 | while (!ctx->Done(&ptr)) { |
329 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
330 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
331 | CHK_(ptr); |
332 | switch (tag >> 3) { |
333 | // string name = 1; |
334 | case 1: |
335 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
336 | auto str = _internal_mutable_name(); |
337 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
338 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.MetricsConfig.name" )); |
339 | CHK_(ptr); |
340 | } else goto handle_unusual; |
341 | continue; |
342 | default: { |
343 | handle_unusual: |
344 | if ((tag & 7) == 4 || tag == 0) { |
345 | ctx->SetLastTag(tag); |
346 | goto success; |
347 | } |
348 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
349 | CHK_(ptr != nullptr); |
350 | continue; |
351 | } |
352 | } // switch |
353 | } // while |
354 | success: |
355 | return ptr; |
356 | failure: |
357 | ptr = nullptr; |
358 | goto success; |
359 | #undef CHK_ |
360 | } |
361 | |
362 | ::PROTOBUF_NAMESPACE_ID::uint8* MetricsConfig::_InternalSerialize( |
363 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
364 | // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.MetricsConfig) |
365 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
366 | (void) cached_has_bits; |
367 | |
368 | // string name = 1; |
369 | if (this->name().size() > 0) { |
370 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
371 | this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
372 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
373 | "proxima.be.proto.MetricsConfig.name" ); |
374 | target = stream->WriteStringMaybeAliased( |
375 | 1, this->_internal_name(), target); |
376 | } |
377 | |
378 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
379 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( |
380 | _internal_metadata_.unknown_fields(), target, stream); |
381 | } |
382 | // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.MetricsConfig) |
383 | return target; |
384 | } |
385 | |
386 | size_t MetricsConfig::ByteSizeLong() const { |
387 | // @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.MetricsConfig) |
388 | size_t total_size = 0; |
389 | |
390 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
391 | // Prevent compiler warnings about cached_has_bits being unused |
392 | (void) cached_has_bits; |
393 | |
394 | // string name = 1; |
395 | if (this->name().size() > 0) { |
396 | total_size += 1 + |
397 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
398 | this->_internal_name()); |
399 | } |
400 | |
401 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
402 | return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
403 | _internal_metadata_, total_size, &_cached_size_); |
404 | } |
405 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
406 | SetCachedSize(cached_size); |
407 | return total_size; |
408 | } |
409 | |
410 | void MetricsConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
411 | // @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.MetricsConfig) |
412 | GOOGLE_DCHECK_NE(&from, this); |
413 | const MetricsConfig* source = |
414 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MetricsConfig>( |
415 | &from); |
416 | if (source == nullptr) { |
417 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.MetricsConfig) |
418 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
419 | } else { |
420 | // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.MetricsConfig) |
421 | MergeFrom(*source); |
422 | } |
423 | } |
424 | |
425 | void MetricsConfig::MergeFrom(const MetricsConfig& from) { |
426 | // @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.MetricsConfig) |
427 | GOOGLE_DCHECK_NE(&from, this); |
428 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
429 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
430 | (void) cached_has_bits; |
431 | |
432 | if (from.name().size() > 0) { |
433 | |
434 | name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); |
435 | } |
436 | } |
437 | |
438 | void MetricsConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
439 | // @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.MetricsConfig) |
440 | if (&from == this) return; |
441 | Clear(); |
442 | MergeFrom(from); |
443 | } |
444 | |
445 | void MetricsConfig::CopyFrom(const MetricsConfig& from) { |
446 | // @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.MetricsConfig) |
447 | if (&from == this) return; |
448 | Clear(); |
449 | MergeFrom(from); |
450 | } |
451 | |
452 | bool MetricsConfig::IsInitialized() const { |
453 | return true; |
454 | } |
455 | |
456 | void MetricsConfig::InternalSwap(MetricsConfig* other) { |
457 | using std::swap; |
458 | _internal_metadata_.Swap(&other->_internal_metadata_); |
459 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
460 | GetArenaNoVirtual()); |
461 | } |
462 | |
463 | ::PROTOBUF_NAMESPACE_ID::Metadata MetricsConfig::GetMetadata() const { |
464 | return GetMetadataStatic(); |
465 | } |
466 | |
467 | |
468 | // =================================================================== |
469 | |
470 | void CommonConfig::InitAsDefaultInstance() { |
471 | ::proxima::be::proto::_CommonConfig_default_instance_._instance.get_mutable()->metrics_config_ = const_cast< ::proxima::be::proto::MetricsConfig*>( |
472 | ::proxima::be::proto::MetricsConfig::internal_default_instance()); |
473 | } |
474 | class CommonConfig::_Internal { |
475 | public: |
476 | static const ::proxima::be::proto::MetricsConfig& metrics_config(const CommonConfig* msg); |
477 | }; |
478 | |
479 | const ::proxima::be::proto::MetricsConfig& |
480 | CommonConfig::_Internal::metrics_config(const CommonConfig* msg) { |
481 | return *msg->metrics_config_; |
482 | } |
483 | CommonConfig::CommonConfig() |
484 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
485 | SharedCtor(); |
486 | // @@protoc_insertion_point(constructor:proxima.be.proto.CommonConfig) |
487 | } |
488 | CommonConfig::CommonConfig(const CommonConfig& from) |
489 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
490 | _internal_metadata_(nullptr) { |
491 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
492 | protocol_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
493 | if (!from._internal_protocol().empty()) { |
494 | protocol_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.protocol_); |
495 | } |
496 | logger_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
497 | if (!from._internal_logger_type().empty()) { |
498 | logger_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.logger_type_); |
499 | } |
500 | log_directory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
501 | if (!from._internal_log_directory().empty()) { |
502 | log_directory_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.log_directory_); |
503 | } |
504 | log_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
505 | if (!from._internal_log_file().empty()) { |
506 | log_file_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.log_file_); |
507 | } |
508 | if (from._internal_has_metrics_config()) { |
509 | metrics_config_ = new ::proxima::be::proto::MetricsConfig(*from.metrics_config_); |
510 | } else { |
511 | metrics_config_ = nullptr; |
512 | } |
513 | ::memcpy(&grpc_listen_port_, &from.grpc_listen_port_, |
514 | static_cast<size_t>(reinterpret_cast<char*>(&log_level_) - |
515 | reinterpret_cast<char*>(&grpc_listen_port_)) + sizeof(log_level_)); |
516 | // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CommonConfig) |
517 | } |
518 | |
519 | void CommonConfig::SharedCtor() { |
520 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CommonConfig_proto_2fconfig_2eproto.base); |
521 | protocol_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
522 | logger_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
523 | log_directory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
524 | log_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
525 | ::memset(&metrics_config_, 0, static_cast<size_t>( |
526 | reinterpret_cast<char*>(&log_level_) - |
527 | reinterpret_cast<char*>(&metrics_config_)) + sizeof(log_level_)); |
528 | } |
529 | |
530 | CommonConfig::~CommonConfig() { |
531 | // @@protoc_insertion_point(destructor:proxima.be.proto.CommonConfig) |
532 | SharedDtor(); |
533 | } |
534 | |
535 | void CommonConfig::SharedDtor() { |
536 | protocol_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
537 | logger_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
538 | log_directory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
539 | log_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
540 | if (this != internal_default_instance()) delete metrics_config_; |
541 | } |
542 | |
543 | void CommonConfig::SetCachedSize(int size) const { |
544 | _cached_size_.Set(size); |
545 | } |
546 | const CommonConfig& CommonConfig::default_instance() { |
547 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CommonConfig_proto_2fconfig_2eproto.base); |
548 | return *internal_default_instance(); |
549 | } |
550 | |
551 | |
552 | void CommonConfig::Clear() { |
553 | // @@protoc_insertion_point(message_clear_start:proxima.be.proto.CommonConfig) |
554 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
555 | // Prevent compiler warnings about cached_has_bits being unused |
556 | (void) cached_has_bits; |
557 | |
558 | protocol_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
559 | logger_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
560 | log_directory_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
561 | log_file_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
562 | if (GetArenaNoVirtual() == nullptr && metrics_config_ != nullptr) { |
563 | delete metrics_config_; |
564 | } |
565 | metrics_config_ = nullptr; |
566 | ::memset(&grpc_listen_port_, 0, static_cast<size_t>( |
567 | reinterpret_cast<char*>(&log_level_) - |
568 | reinterpret_cast<char*>(&grpc_listen_port_)) + sizeof(log_level_)); |
569 | _internal_metadata_.Clear(); |
570 | } |
571 | |
572 | const char* CommonConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
573 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
574 | while (!ctx->Done(&ptr)) { |
575 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
576 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
577 | CHK_(ptr); |
578 | switch (tag >> 3) { |
579 | // string protocol = 1; |
580 | case 1: |
581 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
582 | auto str = _internal_mutable_protocol(); |
583 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
584 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CommonConfig.protocol" )); |
585 | CHK_(ptr); |
586 | } else goto handle_unusual; |
587 | continue; |
588 | // uint32 grpc_listen_port = 2; |
589 | case 2: |
590 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
591 | grpc_listen_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
592 | CHK_(ptr); |
593 | } else goto handle_unusual; |
594 | continue; |
595 | // uint32 http_listen_port = 3; |
596 | case 3: |
597 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
598 | http_listen_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
599 | CHK_(ptr); |
600 | } else goto handle_unusual; |
601 | continue; |
602 | // string logger_type = 4; |
603 | case 4: |
604 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
605 | auto str = _internal_mutable_logger_type(); |
606 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
607 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CommonConfig.logger_type" )); |
608 | CHK_(ptr); |
609 | } else goto handle_unusual; |
610 | continue; |
611 | // string log_directory = 5; |
612 | case 5: |
613 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
614 | auto str = _internal_mutable_log_directory(); |
615 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
616 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CommonConfig.log_directory" )); |
617 | CHK_(ptr); |
618 | } else goto handle_unusual; |
619 | continue; |
620 | // string log_file = 6; |
621 | case 6: |
622 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
623 | auto str = _internal_mutable_log_file(); |
624 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
625 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CommonConfig.log_file" )); |
626 | CHK_(ptr); |
627 | } else goto handle_unusual; |
628 | continue; |
629 | // int32 log_level = 7; |
630 | case 7: |
631 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
632 | log_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
633 | CHK_(ptr); |
634 | } else goto handle_unusual; |
635 | continue; |
636 | // .proxima.be.proto.MetricsConfig metrics_config = 8; |
637 | case 8: |
638 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { |
639 | ptr = ctx->ParseMessage(_internal_mutable_metrics_config(), ptr); |
640 | CHK_(ptr); |
641 | } else goto handle_unusual; |
642 | continue; |
643 | default: { |
644 | handle_unusual: |
645 | if ((tag & 7) == 4 || tag == 0) { |
646 | ctx->SetLastTag(tag); |
647 | goto success; |
648 | } |
649 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
650 | CHK_(ptr != nullptr); |
651 | continue; |
652 | } |
653 | } // switch |
654 | } // while |
655 | success: |
656 | return ptr; |
657 | failure: |
658 | ptr = nullptr; |
659 | goto success; |
660 | #undef CHK_ |
661 | } |
662 | |
663 | ::PROTOBUF_NAMESPACE_ID::uint8* CommonConfig::_InternalSerialize( |
664 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
665 | // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CommonConfig) |
666 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
667 | (void) cached_has_bits; |
668 | |
669 | // string protocol = 1; |
670 | if (this->protocol().size() > 0) { |
671 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
672 | this->_internal_protocol().data(), static_cast<int>(this->_internal_protocol().length()), |
673 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
674 | "proxima.be.proto.CommonConfig.protocol" ); |
675 | target = stream->WriteStringMaybeAliased( |
676 | 1, this->_internal_protocol(), target); |
677 | } |
678 | |
679 | // uint32 grpc_listen_port = 2; |
680 | if (this->grpc_listen_port() != 0) { |
681 | target = stream->EnsureSpace(target); |
682 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_grpc_listen_port(), target); |
683 | } |
684 | |
685 | // uint32 http_listen_port = 3; |
686 | if (this->http_listen_port() != 0) { |
687 | target = stream->EnsureSpace(target); |
688 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_http_listen_port(), target); |
689 | } |
690 | |
691 | // string logger_type = 4; |
692 | if (this->logger_type().size() > 0) { |
693 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
694 | this->_internal_logger_type().data(), static_cast<int>(this->_internal_logger_type().length()), |
695 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
696 | "proxima.be.proto.CommonConfig.logger_type" ); |
697 | target = stream->WriteStringMaybeAliased( |
698 | 4, this->_internal_logger_type(), target); |
699 | } |
700 | |
701 | // string log_directory = 5; |
702 | if (this->log_directory().size() > 0) { |
703 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
704 | this->_internal_log_directory().data(), static_cast<int>(this->_internal_log_directory().length()), |
705 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
706 | "proxima.be.proto.CommonConfig.log_directory" ); |
707 | target = stream->WriteStringMaybeAliased( |
708 | 5, this->_internal_log_directory(), target); |
709 | } |
710 | |
711 | // string log_file = 6; |
712 | if (this->log_file().size() > 0) { |
713 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
714 | this->_internal_log_file().data(), static_cast<int>(this->_internal_log_file().length()), |
715 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
716 | "proxima.be.proto.CommonConfig.log_file" ); |
717 | target = stream->WriteStringMaybeAliased( |
718 | 6, this->_internal_log_file(), target); |
719 | } |
720 | |
721 | // int32 log_level = 7; |
722 | if (this->log_level() != 0) { |
723 | target = stream->EnsureSpace(target); |
724 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_log_level(), target); |
725 | } |
726 | |
727 | // .proxima.be.proto.MetricsConfig metrics_config = 8; |
728 | if (this->has_metrics_config()) { |
729 | target = stream->EnsureSpace(target); |
730 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
731 | InternalWriteMessage( |
732 | 8, _Internal::metrics_config(this), target, stream); |
733 | } |
734 | |
735 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
736 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( |
737 | _internal_metadata_.unknown_fields(), target, stream); |
738 | } |
739 | // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CommonConfig) |
740 | return target; |
741 | } |
742 | |
743 | size_t CommonConfig::ByteSizeLong() const { |
744 | // @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CommonConfig) |
745 | size_t total_size = 0; |
746 | |
747 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
748 | // Prevent compiler warnings about cached_has_bits being unused |
749 | (void) cached_has_bits; |
750 | |
751 | // string protocol = 1; |
752 | if (this->protocol().size() > 0) { |
753 | total_size += 1 + |
754 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
755 | this->_internal_protocol()); |
756 | } |
757 | |
758 | // string logger_type = 4; |
759 | if (this->logger_type().size() > 0) { |
760 | total_size += 1 + |
761 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
762 | this->_internal_logger_type()); |
763 | } |
764 | |
765 | // string log_directory = 5; |
766 | if (this->log_directory().size() > 0) { |
767 | total_size += 1 + |
768 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
769 | this->_internal_log_directory()); |
770 | } |
771 | |
772 | // string log_file = 6; |
773 | if (this->log_file().size() > 0) { |
774 | total_size += 1 + |
775 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
776 | this->_internal_log_file()); |
777 | } |
778 | |
779 | // .proxima.be.proto.MetricsConfig metrics_config = 8; |
780 | if (this->has_metrics_config()) { |
781 | total_size += 1 + |
782 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
783 | *metrics_config_); |
784 | } |
785 | |
786 | // uint32 grpc_listen_port = 2; |
787 | if (this->grpc_listen_port() != 0) { |
788 | total_size += 1 + |
789 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
790 | this->_internal_grpc_listen_port()); |
791 | } |
792 | |
793 | // uint32 http_listen_port = 3; |
794 | if (this->http_listen_port() != 0) { |
795 | total_size += 1 + |
796 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
797 | this->_internal_http_listen_port()); |
798 | } |
799 | |
800 | // int32 log_level = 7; |
801 | if (this->log_level() != 0) { |
802 | total_size += 1 + |
803 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
804 | this->_internal_log_level()); |
805 | } |
806 | |
807 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
808 | return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
809 | _internal_metadata_, total_size, &_cached_size_); |
810 | } |
811 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
812 | SetCachedSize(cached_size); |
813 | return total_size; |
814 | } |
815 | |
816 | void CommonConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
817 | // @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CommonConfig) |
818 | GOOGLE_DCHECK_NE(&from, this); |
819 | const CommonConfig* source = |
820 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CommonConfig>( |
821 | &from); |
822 | if (source == nullptr) { |
823 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CommonConfig) |
824 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
825 | } else { |
826 | // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CommonConfig) |
827 | MergeFrom(*source); |
828 | } |
829 | } |
830 | |
831 | void CommonConfig::MergeFrom(const CommonConfig& from) { |
832 | // @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CommonConfig) |
833 | GOOGLE_DCHECK_NE(&from, this); |
834 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
835 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
836 | (void) cached_has_bits; |
837 | |
838 | if (from.protocol().size() > 0) { |
839 | |
840 | protocol_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.protocol_); |
841 | } |
842 | if (from.logger_type().size() > 0) { |
843 | |
844 | logger_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.logger_type_); |
845 | } |
846 | if (from.log_directory().size() > 0) { |
847 | |
848 | log_directory_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.log_directory_); |
849 | } |
850 | if (from.log_file().size() > 0) { |
851 | |
852 | log_file_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.log_file_); |
853 | } |
854 | if (from.has_metrics_config()) { |
855 | _internal_mutable_metrics_config()->::proxima::be::proto::MetricsConfig::MergeFrom(from._internal_metrics_config()); |
856 | } |
857 | if (from.grpc_listen_port() != 0) { |
858 | _internal_set_grpc_listen_port(from._internal_grpc_listen_port()); |
859 | } |
860 | if (from.http_listen_port() != 0) { |
861 | _internal_set_http_listen_port(from._internal_http_listen_port()); |
862 | } |
863 | if (from.log_level() != 0) { |
864 | _internal_set_log_level(from._internal_log_level()); |
865 | } |
866 | } |
867 | |
868 | void CommonConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
869 | // @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CommonConfig) |
870 | if (&from == this) return; |
871 | Clear(); |
872 | MergeFrom(from); |
873 | } |
874 | |
875 | void CommonConfig::CopyFrom(const CommonConfig& from) { |
876 | // @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CommonConfig) |
877 | if (&from == this) return; |
878 | Clear(); |
879 | MergeFrom(from); |
880 | } |
881 | |
882 | bool CommonConfig::IsInitialized() const { |
883 | return true; |
884 | } |
885 | |
886 | void CommonConfig::InternalSwap(CommonConfig* other) { |
887 | using std::swap; |
888 | _internal_metadata_.Swap(&other->_internal_metadata_); |
889 | protocol_.Swap(&other->protocol_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
890 | GetArenaNoVirtual()); |
891 | logger_type_.Swap(&other->logger_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
892 | GetArenaNoVirtual()); |
893 | log_directory_.Swap(&other->log_directory_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
894 | GetArenaNoVirtual()); |
895 | log_file_.Swap(&other->log_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
896 | GetArenaNoVirtual()); |
897 | swap(metrics_config_, other->metrics_config_); |
898 | swap(grpc_listen_port_, other->grpc_listen_port_); |
899 | swap(http_listen_port_, other->http_listen_port_); |
900 | swap(log_level_, other->log_level_); |
901 | } |
902 | |
903 | ::PROTOBUF_NAMESPACE_ID::Metadata CommonConfig::GetMetadata() const { |
904 | return GetMetadataStatic(); |
905 | } |
906 | |
907 | |
908 | // =================================================================== |
909 | |
910 | void QueryConfig::InitAsDefaultInstance() { |
911 | } |
912 | class QueryConfig::_Internal { |
913 | public: |
914 | }; |
915 | |
916 | QueryConfig::QueryConfig() |
917 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
918 | SharedCtor(); |
919 | // @@protoc_insertion_point(constructor:proxima.be.proto.QueryConfig) |
920 | } |
921 | QueryConfig::QueryConfig(const QueryConfig& from) |
922 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
923 | _internal_metadata_(nullptr) { |
924 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
925 | query_thread_count_ = from.query_thread_count_; |
926 | // @@protoc_insertion_point(copy_constructor:proxima.be.proto.QueryConfig) |
927 | } |
928 | |
929 | void QueryConfig::SharedCtor() { |
930 | query_thread_count_ = 0u; |
931 | } |
932 | |
933 | QueryConfig::~QueryConfig() { |
934 | // @@protoc_insertion_point(destructor:proxima.be.proto.QueryConfig) |
935 | SharedDtor(); |
936 | } |
937 | |
938 | void QueryConfig::SharedDtor() { |
939 | } |
940 | |
941 | void QueryConfig::SetCachedSize(int size) const { |
942 | _cached_size_.Set(size); |
943 | } |
944 | const QueryConfig& QueryConfig::default_instance() { |
945 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryConfig_proto_2fconfig_2eproto.base); |
946 | return *internal_default_instance(); |
947 | } |
948 | |
949 | |
950 | void QueryConfig::Clear() { |
951 | // @@protoc_insertion_point(message_clear_start:proxima.be.proto.QueryConfig) |
952 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
953 | // Prevent compiler warnings about cached_has_bits being unused |
954 | (void) cached_has_bits; |
955 | |
956 | query_thread_count_ = 0u; |
957 | _internal_metadata_.Clear(); |
958 | } |
959 | |
960 | const char* QueryConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
961 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
962 | while (!ctx->Done(&ptr)) { |
963 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
964 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
965 | CHK_(ptr); |
966 | switch (tag >> 3) { |
967 | // uint32 query_thread_count = 1; |
968 | case 1: |
969 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
970 | query_thread_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
971 | CHK_(ptr); |
972 | } else goto handle_unusual; |
973 | continue; |
974 | default: { |
975 | handle_unusual: |
976 | if ((tag & 7) == 4 || tag == 0) { |
977 | ctx->SetLastTag(tag); |
978 | goto success; |
979 | } |
980 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
981 | CHK_(ptr != nullptr); |
982 | continue; |
983 | } |
984 | } // switch |
985 | } // while |
986 | success: |
987 | return ptr; |
988 | failure: |
989 | ptr = nullptr; |
990 | goto success; |
991 | #undef CHK_ |
992 | } |
993 | |
994 | ::PROTOBUF_NAMESPACE_ID::uint8* QueryConfig::_InternalSerialize( |
995 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
996 | // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.QueryConfig) |
997 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
998 | (void) cached_has_bits; |
999 | |
1000 | // uint32 query_thread_count = 1; |
1001 | if (this->query_thread_count() != 0) { |
1002 | target = stream->EnsureSpace(target); |
1003 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_query_thread_count(), target); |
1004 | } |
1005 | |
1006 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1007 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( |
1008 | _internal_metadata_.unknown_fields(), target, stream); |
1009 | } |
1010 | // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.QueryConfig) |
1011 | return target; |
1012 | } |
1013 | |
1014 | size_t QueryConfig::ByteSizeLong() const { |
1015 | // @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.QueryConfig) |
1016 | size_t total_size = 0; |
1017 | |
1018 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1019 | // Prevent compiler warnings about cached_has_bits being unused |
1020 | (void) cached_has_bits; |
1021 | |
1022 | // uint32 query_thread_count = 1; |
1023 | if (this->query_thread_count() != 0) { |
1024 | total_size += 1 + |
1025 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
1026 | this->_internal_query_thread_count()); |
1027 | } |
1028 | |
1029 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1030 | return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
1031 | _internal_metadata_, total_size, &_cached_size_); |
1032 | } |
1033 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1034 | SetCachedSize(cached_size); |
1035 | return total_size; |
1036 | } |
1037 | |
1038 | void QueryConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1039 | // @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.QueryConfig) |
1040 | GOOGLE_DCHECK_NE(&from, this); |
1041 | const QueryConfig* source = |
1042 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryConfig>( |
1043 | &from); |
1044 | if (source == nullptr) { |
1045 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.QueryConfig) |
1046 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1047 | } else { |
1048 | // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.QueryConfig) |
1049 | MergeFrom(*source); |
1050 | } |
1051 | } |
1052 | |
1053 | void QueryConfig::MergeFrom(const QueryConfig& from) { |
1054 | // @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.QueryConfig) |
1055 | GOOGLE_DCHECK_NE(&from, this); |
1056 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1057 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1058 | (void) cached_has_bits; |
1059 | |
1060 | if (from.query_thread_count() != 0) { |
1061 | _internal_set_query_thread_count(from._internal_query_thread_count()); |
1062 | } |
1063 | } |
1064 | |
1065 | void QueryConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1066 | // @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.QueryConfig) |
1067 | if (&from == this) return; |
1068 | Clear(); |
1069 | MergeFrom(from); |
1070 | } |
1071 | |
1072 | void QueryConfig::CopyFrom(const QueryConfig& from) { |
1073 | // @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.QueryConfig) |
1074 | if (&from == this) return; |
1075 | Clear(); |
1076 | MergeFrom(from); |
1077 | } |
1078 | |
1079 | bool QueryConfig::IsInitialized() const { |
1080 | return true; |
1081 | } |
1082 | |
1083 | void QueryConfig::InternalSwap(QueryConfig* other) { |
1084 | using std::swap; |
1085 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1086 | swap(query_thread_count_, other->query_thread_count_); |
1087 | } |
1088 | |
1089 | ::PROTOBUF_NAMESPACE_ID::Metadata QueryConfig::GetMetadata() const { |
1090 | return GetMetadataStatic(); |
1091 | } |
1092 | |
1093 | |
1094 | // =================================================================== |
1095 | |
1096 | void IndexConfig::InitAsDefaultInstance() { |
1097 | } |
1098 | class IndexConfig::_Internal { |
1099 | public: |
1100 | }; |
1101 | |
1102 | IndexConfig::IndexConfig() |
1103 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1104 | SharedCtor(); |
1105 | // @@protoc_insertion_point(constructor:proxima.be.proto.IndexConfig) |
1106 | } |
1107 | IndexConfig::IndexConfig(const IndexConfig& from) |
1108 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1109 | _internal_metadata_(nullptr) { |
1110 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1111 | index_directory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1112 | if (!from._internal_index_directory().empty()) { |
1113 | index_directory_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_directory_); |
1114 | } |
1115 | ::memcpy(&build_thread_count_, &from.build_thread_count_, |
1116 | static_cast<size_t>(reinterpret_cast<char*>(&optimize_internal_) - |
1117 | reinterpret_cast<char*>(&build_thread_count_)) + sizeof(optimize_internal_)); |
1118 | // @@protoc_insertion_point(copy_constructor:proxima.be.proto.IndexConfig) |
1119 | } |
1120 | |
1121 | void IndexConfig::SharedCtor() { |
1122 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexConfig_proto_2fconfig_2eproto.base); |
1123 | index_directory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1124 | ::memset(&build_thread_count_, 0, static_cast<size_t>( |
1125 | reinterpret_cast<char*>(&optimize_internal_) - |
1126 | reinterpret_cast<char*>(&build_thread_count_)) + sizeof(optimize_internal_)); |
1127 | } |
1128 | |
1129 | IndexConfig::~IndexConfig() { |
1130 | // @@protoc_insertion_point(destructor:proxima.be.proto.IndexConfig) |
1131 | SharedDtor(); |
1132 | } |
1133 | |
1134 | void IndexConfig::SharedDtor() { |
1135 | index_directory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1136 | } |
1137 | |
1138 | void IndexConfig::SetCachedSize(int size) const { |
1139 | _cached_size_.Set(size); |
1140 | } |
1141 | const IndexConfig& IndexConfig::default_instance() { |
1142 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexConfig_proto_2fconfig_2eproto.base); |
1143 | return *internal_default_instance(); |
1144 | } |
1145 | |
1146 | |
1147 | void IndexConfig::Clear() { |
1148 | // @@protoc_insertion_point(message_clear_start:proxima.be.proto.IndexConfig) |
1149 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1150 | // Prevent compiler warnings about cached_has_bits being unused |
1151 | (void) cached_has_bits; |
1152 | |
1153 | index_directory_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1154 | ::memset(&build_thread_count_, 0, static_cast<size_t>( |
1155 | reinterpret_cast<char*>(&optimize_internal_) - |
1156 | reinterpret_cast<char*>(&build_thread_count_)) + sizeof(optimize_internal_)); |
1157 | _internal_metadata_.Clear(); |
1158 | } |
1159 | |
1160 | const char* IndexConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1161 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1162 | while (!ctx->Done(&ptr)) { |
1163 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1164 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1165 | CHK_(ptr); |
1166 | switch (tag >> 3) { |
1167 | // uint32 build_thread_count = 1; |
1168 | case 1: |
1169 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
1170 | build_thread_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1171 | CHK_(ptr); |
1172 | } else goto handle_unusual; |
1173 | continue; |
1174 | // uint32 dump_thread_count = 2; |
1175 | case 2: |
1176 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
1177 | dump_thread_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1178 | CHK_(ptr); |
1179 | } else goto handle_unusual; |
1180 | continue; |
1181 | // uint32 max_build_qps = 3; |
1182 | case 3: |
1183 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
1184 | max_build_qps_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1185 | CHK_(ptr); |
1186 | } else goto handle_unusual; |
1187 | continue; |
1188 | // string index_directory = 5; |
1189 | case 5: |
1190 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
1191 | auto str = _internal_mutable_index_directory(); |
1192 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
1193 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.IndexConfig.index_directory" )); |
1194 | CHK_(ptr); |
1195 | } else goto handle_unusual; |
1196 | continue; |
1197 | // uint32 flush_internal = 6; |
1198 | case 6: |
1199 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
1200 | flush_internal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1201 | CHK_(ptr); |
1202 | } else goto handle_unusual; |
1203 | continue; |
1204 | // uint32 optimize_internal = 7; |
1205 | case 7: |
1206 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
1207 | optimize_internal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1208 | CHK_(ptr); |
1209 | } else goto handle_unusual; |
1210 | continue; |
1211 | default: { |
1212 | handle_unusual: |
1213 | if ((tag & 7) == 4 || tag == 0) { |
1214 | ctx->SetLastTag(tag); |
1215 | goto success; |
1216 | } |
1217 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1218 | CHK_(ptr != nullptr); |
1219 | continue; |
1220 | } |
1221 | } // switch |
1222 | } // while |
1223 | success: |
1224 | return ptr; |
1225 | failure: |
1226 | ptr = nullptr; |
1227 | goto success; |
1228 | #undef CHK_ |
1229 | } |
1230 | |
1231 | ::PROTOBUF_NAMESPACE_ID::uint8* IndexConfig::_InternalSerialize( |
1232 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1233 | // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.IndexConfig) |
1234 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1235 | (void) cached_has_bits; |
1236 | |
1237 | // uint32 build_thread_count = 1; |
1238 | if (this->build_thread_count() != 0) { |
1239 | target = stream->EnsureSpace(target); |
1240 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_build_thread_count(), target); |
1241 | } |
1242 | |
1243 | // uint32 dump_thread_count = 2; |
1244 | if (this->dump_thread_count() != 0) { |
1245 | target = stream->EnsureSpace(target); |
1246 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_dump_thread_count(), target); |
1247 | } |
1248 | |
1249 | // uint32 max_build_qps = 3; |
1250 | if (this->max_build_qps() != 0) { |
1251 | target = stream->EnsureSpace(target); |
1252 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_max_build_qps(), target); |
1253 | } |
1254 | |
1255 | // string index_directory = 5; |
1256 | if (this->index_directory().size() > 0) { |
1257 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1258 | this->_internal_index_directory().data(), static_cast<int>(this->_internal_index_directory().length()), |
1259 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1260 | "proxima.be.proto.IndexConfig.index_directory" ); |
1261 | target = stream->WriteStringMaybeAliased( |
1262 | 5, this->_internal_index_directory(), target); |
1263 | } |
1264 | |
1265 | // uint32 flush_internal = 6; |
1266 | if (this->flush_internal() != 0) { |
1267 | target = stream->EnsureSpace(target); |
1268 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_flush_internal(), target); |
1269 | } |
1270 | |
1271 | // uint32 optimize_internal = 7; |
1272 | if (this->optimize_internal() != 0) { |
1273 | target = stream->EnsureSpace(target); |
1274 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_optimize_internal(), target); |
1275 | } |
1276 | |
1277 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1278 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( |
1279 | _internal_metadata_.unknown_fields(), target, stream); |
1280 | } |
1281 | // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.IndexConfig) |
1282 | return target; |
1283 | } |
1284 | |
1285 | size_t IndexConfig::ByteSizeLong() const { |
1286 | // @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.IndexConfig) |
1287 | size_t total_size = 0; |
1288 | |
1289 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1290 | // Prevent compiler warnings about cached_has_bits being unused |
1291 | (void) cached_has_bits; |
1292 | |
1293 | // string index_directory = 5; |
1294 | if (this->index_directory().size() > 0) { |
1295 | total_size += 1 + |
1296 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1297 | this->_internal_index_directory()); |
1298 | } |
1299 | |
1300 | // uint32 build_thread_count = 1; |
1301 | if (this->build_thread_count() != 0) { |
1302 | total_size += 1 + |
1303 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
1304 | this->_internal_build_thread_count()); |
1305 | } |
1306 | |
1307 | // uint32 dump_thread_count = 2; |
1308 | if (this->dump_thread_count() != 0) { |
1309 | total_size += 1 + |
1310 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
1311 | this->_internal_dump_thread_count()); |
1312 | } |
1313 | |
1314 | // uint32 max_build_qps = 3; |
1315 | if (this->max_build_qps() != 0) { |
1316 | total_size += 1 + |
1317 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
1318 | this->_internal_max_build_qps()); |
1319 | } |
1320 | |
1321 | // uint32 flush_internal = 6; |
1322 | if (this->flush_internal() != 0) { |
1323 | total_size += 1 + |
1324 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
1325 | this->_internal_flush_internal()); |
1326 | } |
1327 | |
1328 | // uint32 optimize_internal = 7; |
1329 | if (this->optimize_internal() != 0) { |
1330 | total_size += 1 + |
1331 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( |
1332 | this->_internal_optimize_internal()); |
1333 | } |
1334 | |
1335 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1336 | return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
1337 | _internal_metadata_, total_size, &_cached_size_); |
1338 | } |
1339 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1340 | SetCachedSize(cached_size); |
1341 | return total_size; |
1342 | } |
1343 | |
1344 | void IndexConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1345 | // @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.IndexConfig) |
1346 | GOOGLE_DCHECK_NE(&from, this); |
1347 | const IndexConfig* source = |
1348 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<IndexConfig>( |
1349 | &from); |
1350 | if (source == nullptr) { |
1351 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.IndexConfig) |
1352 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1353 | } else { |
1354 | // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.IndexConfig) |
1355 | MergeFrom(*source); |
1356 | } |
1357 | } |
1358 | |
1359 | void IndexConfig::MergeFrom(const IndexConfig& from) { |
1360 | // @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.IndexConfig) |
1361 | GOOGLE_DCHECK_NE(&from, this); |
1362 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1363 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1364 | (void) cached_has_bits; |
1365 | |
1366 | if (from.index_directory().size() > 0) { |
1367 | |
1368 | index_directory_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_directory_); |
1369 | } |
1370 | if (from.build_thread_count() != 0) { |
1371 | _internal_set_build_thread_count(from._internal_build_thread_count()); |
1372 | } |
1373 | if (from.dump_thread_count() != 0) { |
1374 | _internal_set_dump_thread_count(from._internal_dump_thread_count()); |
1375 | } |
1376 | if (from.max_build_qps() != 0) { |
1377 | _internal_set_max_build_qps(from._internal_max_build_qps()); |
1378 | } |
1379 | if (from.flush_internal() != 0) { |
1380 | _internal_set_flush_internal(from._internal_flush_internal()); |
1381 | } |
1382 | if (from.optimize_internal() != 0) { |
1383 | _internal_set_optimize_internal(from._internal_optimize_internal()); |
1384 | } |
1385 | } |
1386 | |
1387 | void IndexConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1388 | // @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.IndexConfig) |
1389 | if (&from == this) return; |
1390 | Clear(); |
1391 | MergeFrom(from); |
1392 | } |
1393 | |
1394 | void IndexConfig::CopyFrom(const IndexConfig& from) { |
1395 | // @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.IndexConfig) |
1396 | if (&from == this) return; |
1397 | Clear(); |
1398 | MergeFrom(from); |
1399 | } |
1400 | |
1401 | bool IndexConfig::IsInitialized() const { |
1402 | return true; |
1403 | } |
1404 | |
1405 | void IndexConfig::InternalSwap(IndexConfig* other) { |
1406 | using std::swap; |
1407 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1408 | index_directory_.Swap(&other->index_directory_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1409 | GetArenaNoVirtual()); |
1410 | swap(build_thread_count_, other->build_thread_count_); |
1411 | swap(dump_thread_count_, other->dump_thread_count_); |
1412 | swap(max_build_qps_, other->max_build_qps_); |
1413 | swap(flush_internal_, other->flush_internal_); |
1414 | swap(optimize_internal_, other->optimize_internal_); |
1415 | } |
1416 | |
1417 | ::PROTOBUF_NAMESPACE_ID::Metadata IndexConfig::GetMetadata() const { |
1418 | return GetMetadataStatic(); |
1419 | } |
1420 | |
1421 | |
1422 | // =================================================================== |
1423 | |
1424 | void MetaConfig::InitAsDefaultInstance() { |
1425 | } |
1426 | class MetaConfig::_Internal { |
1427 | public: |
1428 | }; |
1429 | |
1430 | MetaConfig::MetaConfig() |
1431 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1432 | SharedCtor(); |
1433 | // @@protoc_insertion_point(constructor:proxima.be.proto.MetaConfig) |
1434 | } |
1435 | MetaConfig::MetaConfig(const MetaConfig& from) |
1436 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1437 | _internal_metadata_(nullptr) { |
1438 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1439 | meta_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1440 | if (!from._internal_meta_uri().empty()) { |
1441 | meta_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.meta_uri_); |
1442 | } |
1443 | // @@protoc_insertion_point(copy_constructor:proxima.be.proto.MetaConfig) |
1444 | } |
1445 | |
1446 | void MetaConfig::SharedCtor() { |
1447 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MetaConfig_proto_2fconfig_2eproto.base); |
1448 | meta_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1449 | } |
1450 | |
1451 | MetaConfig::~MetaConfig() { |
1452 | // @@protoc_insertion_point(destructor:proxima.be.proto.MetaConfig) |
1453 | SharedDtor(); |
1454 | } |
1455 | |
1456 | void MetaConfig::SharedDtor() { |
1457 | meta_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1458 | } |
1459 | |
1460 | void MetaConfig::SetCachedSize(int size) const { |
1461 | _cached_size_.Set(size); |
1462 | } |
1463 | const MetaConfig& MetaConfig::default_instance() { |
1464 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MetaConfig_proto_2fconfig_2eproto.base); |
1465 | return *internal_default_instance(); |
1466 | } |
1467 | |
1468 | |
1469 | void MetaConfig::Clear() { |
1470 | // @@protoc_insertion_point(message_clear_start:proxima.be.proto.MetaConfig) |
1471 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1472 | // Prevent compiler warnings about cached_has_bits being unused |
1473 | (void) cached_has_bits; |
1474 | |
1475 | meta_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1476 | _internal_metadata_.Clear(); |
1477 | } |
1478 | |
1479 | const char* MetaConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1480 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1481 | while (!ctx->Done(&ptr)) { |
1482 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1483 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1484 | CHK_(ptr); |
1485 | switch (tag >> 3) { |
1486 | // string meta_uri = 1; |
1487 | case 1: |
1488 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1489 | auto str = _internal_mutable_meta_uri(); |
1490 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
1491 | CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.MetaConfig.meta_uri" )); |
1492 | CHK_(ptr); |
1493 | } else goto handle_unusual; |
1494 | continue; |
1495 | default: { |
1496 | handle_unusual: |
1497 | if ((tag & 7) == 4 || tag == 0) { |
1498 | ctx->SetLastTag(tag); |
1499 | goto success; |
1500 | } |
1501 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1502 | CHK_(ptr != nullptr); |
1503 | continue; |
1504 | } |
1505 | } // switch |
1506 | } // while |
1507 | success: |
1508 | return ptr; |
1509 | failure: |
1510 | ptr = nullptr; |
1511 | goto success; |
1512 | #undef CHK_ |
1513 | } |
1514 | |
1515 | ::PROTOBUF_NAMESPACE_ID::uint8* MetaConfig::_InternalSerialize( |
1516 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1517 | // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.MetaConfig) |
1518 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1519 | (void) cached_has_bits; |
1520 | |
1521 | // string meta_uri = 1; |
1522 | if (this->meta_uri().size() > 0) { |
1523 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1524 | this->_internal_meta_uri().data(), static_cast<int>(this->_internal_meta_uri().length()), |
1525 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1526 | "proxima.be.proto.MetaConfig.meta_uri" ); |
1527 | target = stream->WriteStringMaybeAliased( |
1528 | 1, this->_internal_meta_uri(), target); |
1529 | } |
1530 | |
1531 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1532 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( |
1533 | _internal_metadata_.unknown_fields(), target, stream); |
1534 | } |
1535 | // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.MetaConfig) |
1536 | return target; |
1537 | } |
1538 | |
1539 | size_t MetaConfig::ByteSizeLong() const { |
1540 | // @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.MetaConfig) |
1541 | size_t total_size = 0; |
1542 | |
1543 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1544 | // Prevent compiler warnings about cached_has_bits being unused |
1545 | (void) cached_has_bits; |
1546 | |
1547 | // string meta_uri = 1; |
1548 | if (this->meta_uri().size() > 0) { |
1549 | total_size += 1 + |
1550 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1551 | this->_internal_meta_uri()); |
1552 | } |
1553 | |
1554 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1555 | return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
1556 | _internal_metadata_, total_size, &_cached_size_); |
1557 | } |
1558 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1559 | SetCachedSize(cached_size); |
1560 | return total_size; |
1561 | } |
1562 | |
1563 | void MetaConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1564 | // @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.MetaConfig) |
1565 | GOOGLE_DCHECK_NE(&from, this); |
1566 | const MetaConfig* source = |
1567 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MetaConfig>( |
1568 | &from); |
1569 | if (source == nullptr) { |
1570 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.MetaConfig) |
1571 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1572 | } else { |
1573 | // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.MetaConfig) |
1574 | MergeFrom(*source); |
1575 | } |
1576 | } |
1577 | |
1578 | void MetaConfig::MergeFrom(const MetaConfig& from) { |
1579 | // @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.MetaConfig) |
1580 | GOOGLE_DCHECK_NE(&from, this); |
1581 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1582 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1583 | (void) cached_has_bits; |
1584 | |
1585 | if (from.meta_uri().size() > 0) { |
1586 | |
1587 | meta_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.meta_uri_); |
1588 | } |
1589 | } |
1590 | |
1591 | void MetaConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1592 | // @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.MetaConfig) |
1593 | if (&from == this) return; |
1594 | Clear(); |
1595 | MergeFrom(from); |
1596 | } |
1597 | |
1598 | void MetaConfig::CopyFrom(const MetaConfig& from) { |
1599 | // @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.MetaConfig) |
1600 | if (&from == this) return; |
1601 | Clear(); |
1602 | MergeFrom(from); |
1603 | } |
1604 | |
1605 | bool MetaConfig::IsInitialized() const { |
1606 | return true; |
1607 | } |
1608 | |
1609 | void MetaConfig::InternalSwap(MetaConfig* other) { |
1610 | using std::swap; |
1611 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1612 | meta_uri_.Swap(&other->meta_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1613 | GetArenaNoVirtual()); |
1614 | } |
1615 | |
1616 | ::PROTOBUF_NAMESPACE_ID::Metadata MetaConfig::GetMetadata() const { |
1617 | return GetMetadataStatic(); |
1618 | } |
1619 | |
1620 | |
1621 | // =================================================================== |
1622 | |
1623 | void ProximaSEConfig::InitAsDefaultInstance() { |
1624 | ::proxima::be::proto::_ProximaSEConfig_default_instance_._instance.get_mutable()->common_config_ = const_cast< ::proxima::be::proto::CommonConfig*>( |
1625 | ::proxima::be::proto::CommonConfig::internal_default_instance()); |
1626 | ::proxima::be::proto::_ProximaSEConfig_default_instance_._instance.get_mutable()->query_config_ = const_cast< ::proxima::be::proto::QueryConfig*>( |
1627 | ::proxima::be::proto::QueryConfig::internal_default_instance()); |
1628 | ::proxima::be::proto::_ProximaSEConfig_default_instance_._instance.get_mutable()->index_config_ = const_cast< ::proxima::be::proto::IndexConfig*>( |
1629 | ::proxima::be::proto::IndexConfig::internal_default_instance()); |
1630 | ::proxima::be::proto::_ProximaSEConfig_default_instance_._instance.get_mutable()->meta_config_ = const_cast< ::proxima::be::proto::MetaConfig*>( |
1631 | ::proxima::be::proto::MetaConfig::internal_default_instance()); |
1632 | } |
1633 | class ProximaSEConfig::_Internal { |
1634 | public: |
1635 | static const ::proxima::be::proto::CommonConfig& common_config(const ProximaSEConfig* msg); |
1636 | static const ::proxima::be::proto::QueryConfig& query_config(const ProximaSEConfig* msg); |
1637 | static const ::proxima::be::proto::IndexConfig& index_config(const ProximaSEConfig* msg); |
1638 | static const ::proxima::be::proto::MetaConfig& meta_config(const ProximaSEConfig* msg); |
1639 | }; |
1640 | |
1641 | const ::proxima::be::proto::CommonConfig& |
1642 | ProximaSEConfig::_Internal::common_config(const ProximaSEConfig* msg) { |
1643 | return *msg->common_config_; |
1644 | } |
1645 | const ::proxima::be::proto::QueryConfig& |
1646 | ProximaSEConfig::_Internal::query_config(const ProximaSEConfig* msg) { |
1647 | return *msg->query_config_; |
1648 | } |
1649 | const ::proxima::be::proto::IndexConfig& |
1650 | ProximaSEConfig::_Internal::index_config(const ProximaSEConfig* msg) { |
1651 | return *msg->index_config_; |
1652 | } |
1653 | const ::proxima::be::proto::MetaConfig& |
1654 | ProximaSEConfig::_Internal::meta_config(const ProximaSEConfig* msg) { |
1655 | return *msg->meta_config_; |
1656 | } |
1657 | ProximaSEConfig::ProximaSEConfig() |
1658 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1659 | SharedCtor(); |
1660 | // @@protoc_insertion_point(constructor:proxima.be.proto.ProximaSEConfig) |
1661 | } |
1662 | ProximaSEConfig::ProximaSEConfig(const ProximaSEConfig& from) |
1663 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1664 | _internal_metadata_(nullptr) { |
1665 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1666 | if (from._internal_has_common_config()) { |
1667 | common_config_ = new ::proxima::be::proto::CommonConfig(*from.common_config_); |
1668 | } else { |
1669 | common_config_ = nullptr; |
1670 | } |
1671 | if (from._internal_has_query_config()) { |
1672 | query_config_ = new ::proxima::be::proto::QueryConfig(*from.query_config_); |
1673 | } else { |
1674 | query_config_ = nullptr; |
1675 | } |
1676 | if (from._internal_has_index_config()) { |
1677 | index_config_ = new ::proxima::be::proto::IndexConfig(*from.index_config_); |
1678 | } else { |
1679 | index_config_ = nullptr; |
1680 | } |
1681 | if (from._internal_has_meta_config()) { |
1682 | meta_config_ = new ::proxima::be::proto::MetaConfig(*from.meta_config_); |
1683 | } else { |
1684 | meta_config_ = nullptr; |
1685 | } |
1686 | // @@protoc_insertion_point(copy_constructor:proxima.be.proto.ProximaSEConfig) |
1687 | } |
1688 | |
1689 | void ProximaSEConfig::SharedCtor() { |
1690 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProximaSEConfig_proto_2fconfig_2eproto.base); |
1691 | ::memset(&common_config_, 0, static_cast<size_t>( |
1692 | reinterpret_cast<char*>(&meta_config_) - |
1693 | reinterpret_cast<char*>(&common_config_)) + sizeof(meta_config_)); |
1694 | } |
1695 | |
1696 | ProximaSEConfig::~ProximaSEConfig() { |
1697 | // @@protoc_insertion_point(destructor:proxima.be.proto.ProximaSEConfig) |
1698 | SharedDtor(); |
1699 | } |
1700 | |
1701 | void ProximaSEConfig::SharedDtor() { |
1702 | if (this != internal_default_instance()) delete common_config_; |
1703 | if (this != internal_default_instance()) delete query_config_; |
1704 | if (this != internal_default_instance()) delete index_config_; |
1705 | if (this != internal_default_instance()) delete meta_config_; |
1706 | } |
1707 | |
1708 | void ProximaSEConfig::SetCachedSize(int size) const { |
1709 | _cached_size_.Set(size); |
1710 | } |
1711 | const ProximaSEConfig& ProximaSEConfig::default_instance() { |
1712 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProximaSEConfig_proto_2fconfig_2eproto.base); |
1713 | return *internal_default_instance(); |
1714 | } |
1715 | |
1716 | |
1717 | void ProximaSEConfig::Clear() { |
1718 | // @@protoc_insertion_point(message_clear_start:proxima.be.proto.ProximaSEConfig) |
1719 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1720 | // Prevent compiler warnings about cached_has_bits being unused |
1721 | (void) cached_has_bits; |
1722 | |
1723 | if (GetArenaNoVirtual() == nullptr && common_config_ != nullptr) { |
1724 | delete common_config_; |
1725 | } |
1726 | common_config_ = nullptr; |
1727 | if (GetArenaNoVirtual() == nullptr && query_config_ != nullptr) { |
1728 | delete query_config_; |
1729 | } |
1730 | query_config_ = nullptr; |
1731 | if (GetArenaNoVirtual() == nullptr && index_config_ != nullptr) { |
1732 | delete index_config_; |
1733 | } |
1734 | index_config_ = nullptr; |
1735 | if (GetArenaNoVirtual() == nullptr && meta_config_ != nullptr) { |
1736 | delete meta_config_; |
1737 | } |
1738 | meta_config_ = nullptr; |
1739 | _internal_metadata_.Clear(); |
1740 | } |
1741 | |
1742 | const char* ProximaSEConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1743 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1744 | while (!ctx->Done(&ptr)) { |
1745 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1746 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1747 | CHK_(ptr); |
1748 | switch (tag >> 3) { |
1749 | // .proxima.be.proto.CommonConfig common_config = 1; |
1750 | case 1: |
1751 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1752 | ptr = ctx->ParseMessage(_internal_mutable_common_config(), ptr); |
1753 | CHK_(ptr); |
1754 | } else goto handle_unusual; |
1755 | continue; |
1756 | // .proxima.be.proto.QueryConfig query_config = 2; |
1757 | case 2: |
1758 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1759 | ptr = ctx->ParseMessage(_internal_mutable_query_config(), ptr); |
1760 | CHK_(ptr); |
1761 | } else goto handle_unusual; |
1762 | continue; |
1763 | // .proxima.be.proto.IndexConfig index_config = 3; |
1764 | case 3: |
1765 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
1766 | ptr = ctx->ParseMessage(_internal_mutable_index_config(), ptr); |
1767 | CHK_(ptr); |
1768 | } else goto handle_unusual; |
1769 | continue; |
1770 | // .proxima.be.proto.MetaConfig meta_config = 4; |
1771 | case 4: |
1772 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
1773 | ptr = ctx->ParseMessage(_internal_mutable_meta_config(), ptr); |
1774 | CHK_(ptr); |
1775 | } else goto handle_unusual; |
1776 | continue; |
1777 | default: { |
1778 | handle_unusual: |
1779 | if ((tag & 7) == 4 || tag == 0) { |
1780 | ctx->SetLastTag(tag); |
1781 | goto success; |
1782 | } |
1783 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1784 | CHK_(ptr != nullptr); |
1785 | continue; |
1786 | } |
1787 | } // switch |
1788 | } // while |
1789 | success: |
1790 | return ptr; |
1791 | failure: |
1792 | ptr = nullptr; |
1793 | goto success; |
1794 | #undef CHK_ |
1795 | } |
1796 | |
1797 | ::PROTOBUF_NAMESPACE_ID::uint8* ProximaSEConfig::_InternalSerialize( |
1798 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1799 | // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.ProximaSEConfig) |
1800 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1801 | (void) cached_has_bits; |
1802 | |
1803 | // .proxima.be.proto.CommonConfig common_config = 1; |
1804 | if (this->has_common_config()) { |
1805 | target = stream->EnsureSpace(target); |
1806 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1807 | InternalWriteMessage( |
1808 | 1, _Internal::common_config(this), target, stream); |
1809 | } |
1810 | |
1811 | // .proxima.be.proto.QueryConfig query_config = 2; |
1812 | if (this->has_query_config()) { |
1813 | target = stream->EnsureSpace(target); |
1814 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1815 | InternalWriteMessage( |
1816 | 2, _Internal::query_config(this), target, stream); |
1817 | } |
1818 | |
1819 | // .proxima.be.proto.IndexConfig index_config = 3; |
1820 | if (this->has_index_config()) { |
1821 | target = stream->EnsureSpace(target); |
1822 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1823 | InternalWriteMessage( |
1824 | 3, _Internal::index_config(this), target, stream); |
1825 | } |
1826 | |
1827 | // .proxima.be.proto.MetaConfig meta_config = 4; |
1828 | if (this->has_meta_config()) { |
1829 | target = stream->EnsureSpace(target); |
1830 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1831 | InternalWriteMessage( |
1832 | 4, _Internal::meta_config(this), target, stream); |
1833 | } |
1834 | |
1835 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1836 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( |
1837 | _internal_metadata_.unknown_fields(), target, stream); |
1838 | } |
1839 | // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.ProximaSEConfig) |
1840 | return target; |
1841 | } |
1842 | |
1843 | size_t ProximaSEConfig::ByteSizeLong() const { |
1844 | // @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.ProximaSEConfig) |
1845 | size_t total_size = 0; |
1846 | |
1847 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1848 | // Prevent compiler warnings about cached_has_bits being unused |
1849 | (void) cached_has_bits; |
1850 | |
1851 | // .proxima.be.proto.CommonConfig common_config = 1; |
1852 | if (this->has_common_config()) { |
1853 | total_size += 1 + |
1854 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1855 | *common_config_); |
1856 | } |
1857 | |
1858 | // .proxima.be.proto.QueryConfig query_config = 2; |
1859 | if (this->has_query_config()) { |
1860 | total_size += 1 + |
1861 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1862 | *query_config_); |
1863 | } |
1864 | |
1865 | // .proxima.be.proto.IndexConfig index_config = 3; |
1866 | if (this->has_index_config()) { |
1867 | total_size += 1 + |
1868 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1869 | *index_config_); |
1870 | } |
1871 | |
1872 | // .proxima.be.proto.MetaConfig meta_config = 4; |
1873 | if (this->has_meta_config()) { |
1874 | total_size += 1 + |
1875 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1876 | *meta_config_); |
1877 | } |
1878 | |
1879 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1880 | return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
1881 | _internal_metadata_, total_size, &_cached_size_); |
1882 | } |
1883 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1884 | SetCachedSize(cached_size); |
1885 | return total_size; |
1886 | } |
1887 | |
1888 | void ProximaSEConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1889 | // @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.ProximaSEConfig) |
1890 | GOOGLE_DCHECK_NE(&from, this); |
1891 | const ProximaSEConfig* source = |
1892 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProximaSEConfig>( |
1893 | &from); |
1894 | if (source == nullptr) { |
1895 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.ProximaSEConfig) |
1896 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1897 | } else { |
1898 | // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.ProximaSEConfig) |
1899 | MergeFrom(*source); |
1900 | } |
1901 | } |
1902 | |
1903 | void ProximaSEConfig::MergeFrom(const ProximaSEConfig& from) { |
1904 | // @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.ProximaSEConfig) |
1905 | GOOGLE_DCHECK_NE(&from, this); |
1906 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1907 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1908 | (void) cached_has_bits; |
1909 | |
1910 | if (from.has_common_config()) { |
1911 | _internal_mutable_common_config()->::proxima::be::proto::CommonConfig::MergeFrom(from._internal_common_config()); |
1912 | } |
1913 | if (from.has_query_config()) { |
1914 | _internal_mutable_query_config()->::proxima::be::proto::QueryConfig::MergeFrom(from._internal_query_config()); |
1915 | } |
1916 | if (from.has_index_config()) { |
1917 | _internal_mutable_index_config()->::proxima::be::proto::IndexConfig::MergeFrom(from._internal_index_config()); |
1918 | } |
1919 | if (from.has_meta_config()) { |
1920 | _internal_mutable_meta_config()->::proxima::be::proto::MetaConfig::MergeFrom(from._internal_meta_config()); |
1921 | } |
1922 | } |
1923 | |
1924 | void ProximaSEConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1925 | // @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.ProximaSEConfig) |
1926 | if (&from == this) return; |
1927 | Clear(); |
1928 | MergeFrom(from); |
1929 | } |
1930 | |
1931 | void ProximaSEConfig::CopyFrom(const ProximaSEConfig& from) { |
1932 | // @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.ProximaSEConfig) |
1933 | if (&from == this) return; |
1934 | Clear(); |
1935 | MergeFrom(from); |
1936 | } |
1937 | |
1938 | bool ProximaSEConfig::IsInitialized() const { |
1939 | return true; |
1940 | } |
1941 | |
1942 | void ProximaSEConfig::InternalSwap(ProximaSEConfig* other) { |
1943 | using std::swap; |
1944 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1945 | swap(common_config_, other->common_config_); |
1946 | swap(query_config_, other->query_config_); |
1947 | swap(index_config_, other->index_config_); |
1948 | swap(meta_config_, other->meta_config_); |
1949 | } |
1950 | |
1951 | ::PROTOBUF_NAMESPACE_ID::Metadata ProximaSEConfig::GetMetadata() const { |
1952 | return GetMetadataStatic(); |
1953 | } |
1954 | |
1955 | |
1956 | // @@protoc_insertion_point(namespace_scope) |
1957 | } // namespace proto |
1958 | } // namespace be |
1959 | } // namespace proxima |
1960 | PROTOBUF_NAMESPACE_OPEN |
1961 | template<> PROTOBUF_NOINLINE ::proxima::be::proto::MetricsConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::MetricsConfig >(Arena* arena) { |
1962 | return Arena::CreateInternal< ::proxima::be::proto::MetricsConfig >(arena); |
1963 | } |
1964 | template<> PROTOBUF_NOINLINE ::proxima::be::proto::CommonConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::CommonConfig >(Arena* arena) { |
1965 | return Arena::CreateInternal< ::proxima::be::proto::CommonConfig >(arena); |
1966 | } |
1967 | template<> PROTOBUF_NOINLINE ::proxima::be::proto::QueryConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::QueryConfig >(Arena* arena) { |
1968 | return Arena::CreateInternal< ::proxima::be::proto::QueryConfig >(arena); |
1969 | } |
1970 | template<> PROTOBUF_NOINLINE ::proxima::be::proto::IndexConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::IndexConfig >(Arena* arena) { |
1971 | return Arena::CreateInternal< ::proxima::be::proto::IndexConfig >(arena); |
1972 | } |
1973 | template<> PROTOBUF_NOINLINE ::proxima::be::proto::MetaConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::MetaConfig >(Arena* arena) { |
1974 | return Arena::CreateInternal< ::proxima::be::proto::MetaConfig >(arena); |
1975 | } |
1976 | template<> PROTOBUF_NOINLINE ::proxima::be::proto::ProximaSEConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::ProximaSEConfig >(Arena* arena) { |
1977 | return Arena::CreateInternal< ::proxima::be::proto::ProximaSEConfig >(arena); |
1978 | } |
1979 | PROTOBUF_NAMESPACE_CLOSE |
1980 | |
1981 | // @@protoc_insertion_point(global_scope) |
1982 | #include <google/protobuf/port_undef.inc> |
1983 | |
1984 | #ifdef __GNUC__ |
1985 | #pragma GCC diagnostic pop |
1986 | #endif |
1987 | |