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/repository_config.proto |
9 | |
10 | #ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frepository_5fconfig_2eproto |
11 | #define GOOGLE_PROTOBUF_INCLUDED_proto_2frepository_5fconfig_2eproto |
12 | |
13 | #include <limits> |
14 | #include <string> |
15 | |
16 | #include <google/protobuf/port_def.inc> |
17 | #if PROTOBUF_VERSION < 3011000 |
18 | #error This file was generated by a newer version of protoc which is |
19 | #error incompatible with your Protocol Buffer headers. Please update |
20 | #error your headers. |
21 | #endif |
22 | #if 3011004 < PROTOBUF_MIN_PROTOC_VERSION |
23 | #error This file was generated by an older version of protoc which is |
24 | #error incompatible with your Protocol Buffer headers. Please |
25 | #error regenerate this file with a newer version of protoc. |
26 | #endif |
27 | |
28 | #include <google/protobuf/port_undef.inc> |
29 | #include <google/protobuf/io/coded_stream.h> |
30 | #include <google/protobuf/arena.h> |
31 | #include <google/protobuf/arenastring.h> |
32 | #include <google/protobuf/generated_message_table_driven.h> |
33 | #include <google/protobuf/generated_message_util.h> |
34 | #include <google/protobuf/inlined_string_field.h> |
35 | #include <google/protobuf/metadata.h> |
36 | #include <google/protobuf/generated_message_reflection.h> |
37 | #include <google/protobuf/message.h> |
38 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
39 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
40 | #include <google/protobuf/unknown_field_set.h> |
41 | // @@protoc_insertion_point(includes) |
42 | #include <google/protobuf/port_def.inc> |
43 | #define PROTOBUF_INTERNAL_EXPORT_proto_2frepository_5fconfig_2eproto |
44 | PROTOBUF_NAMESPACE_OPEN |
45 | namespace internal { |
46 | class AnyMetadata; |
47 | } // namespace internal |
48 | PROTOBUF_NAMESPACE_CLOSE |
49 | |
50 | // Internal implementation detail -- do not use these members. |
51 | struct TableStruct_proto_2frepository_5fconfig_2eproto { |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
53 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
55 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
56 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] |
57 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
58 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
59 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
60 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
61 | }; |
62 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2frepository_5fconfig_2eproto; |
63 | namespace proxima { |
64 | namespace be { |
65 | namespace proto { |
66 | class MysqlRepositoryConfig; |
67 | class MysqlRepositoryConfigDefaultTypeInternal; |
68 | extern MysqlRepositoryConfigDefaultTypeInternal _MysqlRepositoryConfig_default_instance_; |
69 | class RepositoryCommonConfig; |
70 | class RepositoryCommonConfigDefaultTypeInternal; |
71 | extern RepositoryCommonConfigDefaultTypeInternal _RepositoryCommonConfig_default_instance_; |
72 | class RepositoryConfig; |
73 | class RepositoryConfigDefaultTypeInternal; |
74 | extern RepositoryConfigDefaultTypeInternal _RepositoryConfig_default_instance_; |
75 | } // namespace proto |
76 | } // namespace be |
77 | } // namespace proxima |
78 | PROTOBUF_NAMESPACE_OPEN |
79 | template<> ::proxima::be::proto::MysqlRepositoryConfig* Arena::CreateMaybeMessage<::proxima::be::proto::MysqlRepositoryConfig>(Arena*); |
80 | template<> ::proxima::be::proto::RepositoryCommonConfig* Arena::CreateMaybeMessage<::proxima::be::proto::RepositoryCommonConfig>(Arena*); |
81 | template<> ::proxima::be::proto::RepositoryConfig* Arena::CreateMaybeMessage<::proxima::be::proto::RepositoryConfig>(Arena*); |
82 | PROTOBUF_NAMESPACE_CLOSE |
83 | namespace proxima { |
84 | namespace be { |
85 | namespace proto { |
86 | |
87 | // =================================================================== |
88 | |
89 | class RepositoryCommonConfig : |
90 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proxima.be.proto.RepositoryCommonConfig) */ { |
91 | public: |
92 | RepositoryCommonConfig(); |
93 | virtual ~RepositoryCommonConfig(); |
94 | |
95 | RepositoryCommonConfig(const RepositoryCommonConfig& from); |
96 | RepositoryCommonConfig(RepositoryCommonConfig&& from) noexcept |
97 | : RepositoryCommonConfig() { |
98 | *this = ::std::move(from); |
99 | } |
100 | |
101 | inline RepositoryCommonConfig& operator=(const RepositoryCommonConfig& from) { |
102 | CopyFrom(from); |
103 | return *this; |
104 | } |
105 | inline RepositoryCommonConfig& operator=(RepositoryCommonConfig&& from) noexcept { |
106 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
107 | if (this != &from) InternalSwap(&from); |
108 | } else { |
109 | CopyFrom(from); |
110 | } |
111 | return *this; |
112 | } |
113 | |
114 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
115 | return GetDescriptor(); |
116 | } |
117 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
118 | return GetMetadataStatic().descriptor; |
119 | } |
120 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
121 | return GetMetadataStatic().reflection; |
122 | } |
123 | static const RepositoryCommonConfig& default_instance(); |
124 | |
125 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
126 | static inline const RepositoryCommonConfig* internal_default_instance() { |
127 | return reinterpret_cast<const RepositoryCommonConfig*>( |
128 | &_RepositoryCommonConfig_default_instance_); |
129 | } |
130 | static constexpr int kIndexInFileMessages = |
131 | 0; |
132 | |
133 | friend void swap(RepositoryCommonConfig& a, RepositoryCommonConfig& b) { |
134 | a.Swap(&b); |
135 | } |
136 | inline void Swap(RepositoryCommonConfig* other) { |
137 | if (other == this) return; |
138 | InternalSwap(other); |
139 | } |
140 | |
141 | // implements Message ---------------------------------------------- |
142 | |
143 | inline RepositoryCommonConfig* New() const final { |
144 | return CreateMaybeMessage<RepositoryCommonConfig>(nullptr); |
145 | } |
146 | |
147 | RepositoryCommonConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
148 | return CreateMaybeMessage<RepositoryCommonConfig>(arena); |
149 | } |
150 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
151 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
152 | void CopyFrom(const RepositoryCommonConfig& from); |
153 | void MergeFrom(const RepositoryCommonConfig& from); |
154 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
155 | bool IsInitialized() const final; |
156 | |
157 | size_t ByteSizeLong() const final; |
158 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
159 | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
160 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
161 | int GetCachedSize() const final { return _cached_size_.Get(); } |
162 | |
163 | private: |
164 | inline void SharedCtor(); |
165 | inline void SharedDtor(); |
166 | void SetCachedSize(int size) const final; |
167 | void InternalSwap(RepositoryCommonConfig* other); |
168 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
169 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
170 | return "proxima.be.proto.RepositoryCommonConfig" ; |
171 | } |
172 | private: |
173 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
174 | return nullptr; |
175 | } |
176 | inline void* MaybeArenaPtr() const { |
177 | return nullptr; |
178 | } |
179 | public: |
180 | |
181 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
182 | private: |
183 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
184 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proto_2frepository_5fconfig_2eproto); |
185 | return ::descriptor_table_proto_2frepository_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; |
186 | } |
187 | |
188 | public: |
189 | |
190 | // nested types ---------------------------------------------------- |
191 | |
192 | // accessors ------------------------------------------------------- |
193 | |
194 | enum : int { |
195 | kLogDirectoryFieldNumber = 1, |
196 | kLogFileFieldNumber = 2, |
197 | kLoggerNameFieldNumber = 4, |
198 | kLogLevelFieldNumber = 3, |
199 | }; |
200 | // string log_directory = 1; |
201 | void clear_log_directory(); |
202 | const std::string& log_directory() const; |
203 | void set_log_directory(const std::string& value); |
204 | void set_log_directory(std::string&& value); |
205 | void set_log_directory(const char* value); |
206 | void set_log_directory(const char* value, size_t size); |
207 | std::string* mutable_log_directory(); |
208 | std::string* release_log_directory(); |
209 | void set_allocated_log_directory(std::string* log_directory); |
210 | private: |
211 | const std::string& _internal_log_directory() const; |
212 | void _internal_set_log_directory(const std::string& value); |
213 | std::string* _internal_mutable_log_directory(); |
214 | public: |
215 | |
216 | // string log_file = 2; |
217 | void clear_log_file(); |
218 | const std::string& log_file() const; |
219 | void set_log_file(const std::string& value); |
220 | void set_log_file(std::string&& value); |
221 | void set_log_file(const char* value); |
222 | void set_log_file(const char* value, size_t size); |
223 | std::string* mutable_log_file(); |
224 | std::string* release_log_file(); |
225 | void set_allocated_log_file(std::string* log_file); |
226 | private: |
227 | const std::string& _internal_log_file() const; |
228 | void _internal_set_log_file(const std::string& value); |
229 | std::string* _internal_mutable_log_file(); |
230 | public: |
231 | |
232 | // string logger_name = 4; |
233 | void clear_logger_name(); |
234 | const std::string& logger_name() const; |
235 | void set_logger_name(const std::string& value); |
236 | void set_logger_name(std::string&& value); |
237 | void set_logger_name(const char* value); |
238 | void set_logger_name(const char* value, size_t size); |
239 | std::string* mutable_logger_name(); |
240 | std::string* release_logger_name(); |
241 | void set_allocated_logger_name(std::string* logger_name); |
242 | private: |
243 | const std::string& _internal_logger_name() const; |
244 | void _internal_set_logger_name(const std::string& value); |
245 | std::string* _internal_mutable_logger_name(); |
246 | public: |
247 | |
248 | // int32 log_level = 3; |
249 | void clear_log_level(); |
250 | ::PROTOBUF_NAMESPACE_ID::int32 log_level() const; |
251 | void set_log_level(::PROTOBUF_NAMESPACE_ID::int32 value); |
252 | private: |
253 | ::PROTOBUF_NAMESPACE_ID::int32 _internal_log_level() const; |
254 | void _internal_set_log_level(::PROTOBUF_NAMESPACE_ID::int32 value); |
255 | public: |
256 | |
257 | // @@protoc_insertion_point(class_scope:proxima.be.proto.RepositoryCommonConfig) |
258 | private: |
259 | class _Internal; |
260 | |
261 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
262 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr log_directory_; |
263 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr log_file_; |
264 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logger_name_; |
265 | ::PROTOBUF_NAMESPACE_ID::int32 log_level_; |
266 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
267 | friend struct ::TableStruct_proto_2frepository_5fconfig_2eproto; |
268 | }; |
269 | // ------------------------------------------------------------------- |
270 | |
271 | class MysqlRepositoryConfig : |
272 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proxima.be.proto.MysqlRepositoryConfig) */ { |
273 | public: |
274 | MysqlRepositoryConfig(); |
275 | virtual ~MysqlRepositoryConfig(); |
276 | |
277 | MysqlRepositoryConfig(const MysqlRepositoryConfig& from); |
278 | MysqlRepositoryConfig(MysqlRepositoryConfig&& from) noexcept |
279 | : MysqlRepositoryConfig() { |
280 | *this = ::std::move(from); |
281 | } |
282 | |
283 | inline MysqlRepositoryConfig& operator=(const MysqlRepositoryConfig& from) { |
284 | CopyFrom(from); |
285 | return *this; |
286 | } |
287 | inline MysqlRepositoryConfig& operator=(MysqlRepositoryConfig&& from) noexcept { |
288 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
289 | if (this != &from) InternalSwap(&from); |
290 | } else { |
291 | CopyFrom(from); |
292 | } |
293 | return *this; |
294 | } |
295 | |
296 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
297 | return GetDescriptor(); |
298 | } |
299 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
300 | return GetMetadataStatic().descriptor; |
301 | } |
302 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
303 | return GetMetadataStatic().reflection; |
304 | } |
305 | static const MysqlRepositoryConfig& default_instance(); |
306 | |
307 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
308 | static inline const MysqlRepositoryConfig* internal_default_instance() { |
309 | return reinterpret_cast<const MysqlRepositoryConfig*>( |
310 | &_MysqlRepositoryConfig_default_instance_); |
311 | } |
312 | static constexpr int kIndexInFileMessages = |
313 | 1; |
314 | |
315 | friend void swap(MysqlRepositoryConfig& a, MysqlRepositoryConfig& b) { |
316 | a.Swap(&b); |
317 | } |
318 | inline void Swap(MysqlRepositoryConfig* other) { |
319 | if (other == this) return; |
320 | InternalSwap(other); |
321 | } |
322 | |
323 | // implements Message ---------------------------------------------- |
324 | |
325 | inline MysqlRepositoryConfig* New() const final { |
326 | return CreateMaybeMessage<MysqlRepositoryConfig>(nullptr); |
327 | } |
328 | |
329 | MysqlRepositoryConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
330 | return CreateMaybeMessage<MysqlRepositoryConfig>(arena); |
331 | } |
332 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
333 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
334 | void CopyFrom(const MysqlRepositoryConfig& from); |
335 | void MergeFrom(const MysqlRepositoryConfig& from); |
336 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
337 | bool IsInitialized() const final; |
338 | |
339 | size_t ByteSizeLong() const final; |
340 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
341 | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
342 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
343 | int GetCachedSize() const final { return _cached_size_.Get(); } |
344 | |
345 | private: |
346 | inline void SharedCtor(); |
347 | inline void SharedDtor(); |
348 | void SetCachedSize(int size) const final; |
349 | void InternalSwap(MysqlRepositoryConfig* other); |
350 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
351 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
352 | return "proxima.be.proto.MysqlRepositoryConfig" ; |
353 | } |
354 | private: |
355 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
356 | return nullptr; |
357 | } |
358 | inline void* MaybeArenaPtr() const { |
359 | return nullptr; |
360 | } |
361 | public: |
362 | |
363 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
364 | private: |
365 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
366 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proto_2frepository_5fconfig_2eproto); |
367 | return ::descriptor_table_proto_2frepository_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; |
368 | } |
369 | |
370 | public: |
371 | |
372 | // nested types ---------------------------------------------------- |
373 | |
374 | // accessors ------------------------------------------------------- |
375 | |
376 | enum : int { |
377 | kIndexAgentAddrFieldNumber = 1, |
378 | kLoadBalanceFieldNumber = 2, |
379 | kRepositoryNameFieldNumber = 6, |
380 | kBatchSizeFieldNumber = 3, |
381 | kBatchIntervalFieldNumber = 4, |
382 | kMaxRetryFieldNumber = 5, |
383 | kTimeoutMsFieldNumber = 7, |
384 | }; |
385 | // string index_agent_addr = 1; |
386 | void clear_index_agent_addr(); |
387 | const std::string& index_agent_addr() const; |
388 | void set_index_agent_addr(const std::string& value); |
389 | void set_index_agent_addr(std::string&& value); |
390 | void set_index_agent_addr(const char* value); |
391 | void set_index_agent_addr(const char* value, size_t size); |
392 | std::string* mutable_index_agent_addr(); |
393 | std::string* release_index_agent_addr(); |
394 | void set_allocated_index_agent_addr(std::string* index_agent_addr); |
395 | private: |
396 | const std::string& _internal_index_agent_addr() const; |
397 | void _internal_set_index_agent_addr(const std::string& value); |
398 | std::string* _internal_mutable_index_agent_addr(); |
399 | public: |
400 | |
401 | // string load_balance = 2; |
402 | void clear_load_balance(); |
403 | const std::string& load_balance() const; |
404 | void set_load_balance(const std::string& value); |
405 | void set_load_balance(std::string&& value); |
406 | void set_load_balance(const char* value); |
407 | void set_load_balance(const char* value, size_t size); |
408 | std::string* mutable_load_balance(); |
409 | std::string* release_load_balance(); |
410 | void set_allocated_load_balance(std::string* load_balance); |
411 | private: |
412 | const std::string& _internal_load_balance() const; |
413 | void _internal_set_load_balance(const std::string& value); |
414 | std::string* _internal_mutable_load_balance(); |
415 | public: |
416 | |
417 | // string repository_name = 6; |
418 | void clear_repository_name(); |
419 | const std::string& repository_name() const; |
420 | void set_repository_name(const std::string& value); |
421 | void set_repository_name(std::string&& value); |
422 | void set_repository_name(const char* value); |
423 | void set_repository_name(const char* value, size_t size); |
424 | std::string* mutable_repository_name(); |
425 | std::string* release_repository_name(); |
426 | void set_allocated_repository_name(std::string* repository_name); |
427 | private: |
428 | const std::string& _internal_repository_name() const; |
429 | void _internal_set_repository_name(const std::string& value); |
430 | std::string* _internal_mutable_repository_name(); |
431 | public: |
432 | |
433 | // uint32 batch_size = 3; |
434 | void clear_batch_size(); |
435 | ::PROTOBUF_NAMESPACE_ID::uint32 batch_size() const; |
436 | void set_batch_size(::PROTOBUF_NAMESPACE_ID::uint32 value); |
437 | private: |
438 | ::PROTOBUF_NAMESPACE_ID::uint32 _internal_batch_size() const; |
439 | void _internal_set_batch_size(::PROTOBUF_NAMESPACE_ID::uint32 value); |
440 | public: |
441 | |
442 | // uint32 batch_interval = 4; |
443 | void clear_batch_interval(); |
444 | ::PROTOBUF_NAMESPACE_ID::uint32 batch_interval() const; |
445 | void set_batch_interval(::PROTOBUF_NAMESPACE_ID::uint32 value); |
446 | private: |
447 | ::PROTOBUF_NAMESPACE_ID::uint32 _internal_batch_interval() const; |
448 | void _internal_set_batch_interval(::PROTOBUF_NAMESPACE_ID::uint32 value); |
449 | public: |
450 | |
451 | // uint32 max_retry = 5; |
452 | void clear_max_retry(); |
453 | ::PROTOBUF_NAMESPACE_ID::uint32 max_retry() const; |
454 | void set_max_retry(::PROTOBUF_NAMESPACE_ID::uint32 value); |
455 | private: |
456 | ::PROTOBUF_NAMESPACE_ID::uint32 _internal_max_retry() const; |
457 | void _internal_set_max_retry(::PROTOBUF_NAMESPACE_ID::uint32 value); |
458 | public: |
459 | |
460 | // uint32 timeout_ms = 7; |
461 | void clear_timeout_ms(); |
462 | ::PROTOBUF_NAMESPACE_ID::uint32 timeout_ms() const; |
463 | void set_timeout_ms(::PROTOBUF_NAMESPACE_ID::uint32 value); |
464 | private: |
465 | ::PROTOBUF_NAMESPACE_ID::uint32 _internal_timeout_ms() const; |
466 | void _internal_set_timeout_ms(::PROTOBUF_NAMESPACE_ID::uint32 value); |
467 | public: |
468 | |
469 | // @@protoc_insertion_point(class_scope:proxima.be.proto.MysqlRepositoryConfig) |
470 | private: |
471 | class _Internal; |
472 | |
473 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
474 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_agent_addr_; |
475 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr load_balance_; |
476 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr repository_name_; |
477 | ::PROTOBUF_NAMESPACE_ID::uint32 batch_size_; |
478 | ::PROTOBUF_NAMESPACE_ID::uint32 batch_interval_; |
479 | ::PROTOBUF_NAMESPACE_ID::uint32 max_retry_; |
480 | ::PROTOBUF_NAMESPACE_ID::uint32 timeout_ms_; |
481 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
482 | friend struct ::TableStruct_proto_2frepository_5fconfig_2eproto; |
483 | }; |
484 | // ------------------------------------------------------------------- |
485 | |
486 | class RepositoryConfig : |
487 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proxima.be.proto.RepositoryConfig) */ { |
488 | public: |
489 | RepositoryConfig(); |
490 | virtual ~RepositoryConfig(); |
491 | |
492 | RepositoryConfig(const RepositoryConfig& from); |
493 | RepositoryConfig(RepositoryConfig&& from) noexcept |
494 | : RepositoryConfig() { |
495 | *this = ::std::move(from); |
496 | } |
497 | |
498 | inline RepositoryConfig& operator=(const RepositoryConfig& from) { |
499 | CopyFrom(from); |
500 | return *this; |
501 | } |
502 | inline RepositoryConfig& operator=(RepositoryConfig&& from) noexcept { |
503 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
504 | if (this != &from) InternalSwap(&from); |
505 | } else { |
506 | CopyFrom(from); |
507 | } |
508 | return *this; |
509 | } |
510 | |
511 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
512 | return GetDescriptor(); |
513 | } |
514 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
515 | return GetMetadataStatic().descriptor; |
516 | } |
517 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
518 | return GetMetadataStatic().reflection; |
519 | } |
520 | static const RepositoryConfig& default_instance(); |
521 | |
522 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
523 | static inline const RepositoryConfig* internal_default_instance() { |
524 | return reinterpret_cast<const RepositoryConfig*>( |
525 | &_RepositoryConfig_default_instance_); |
526 | } |
527 | static constexpr int kIndexInFileMessages = |
528 | 2; |
529 | |
530 | friend void swap(RepositoryConfig& a, RepositoryConfig& b) { |
531 | a.Swap(&b); |
532 | } |
533 | inline void Swap(RepositoryConfig* other) { |
534 | if (other == this) return; |
535 | InternalSwap(other); |
536 | } |
537 | |
538 | // implements Message ---------------------------------------------- |
539 | |
540 | inline RepositoryConfig* New() const final { |
541 | return CreateMaybeMessage<RepositoryConfig>(nullptr); |
542 | } |
543 | |
544 | RepositoryConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
545 | return CreateMaybeMessage<RepositoryConfig>(arena); |
546 | } |
547 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
548 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
549 | void CopyFrom(const RepositoryConfig& from); |
550 | void MergeFrom(const RepositoryConfig& from); |
551 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
552 | bool IsInitialized() const final; |
553 | |
554 | size_t ByteSizeLong() const final; |
555 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
556 | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
557 | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
558 | int GetCachedSize() const final { return _cached_size_.Get(); } |
559 | |
560 | private: |
561 | inline void SharedCtor(); |
562 | inline void SharedDtor(); |
563 | void SetCachedSize(int size) const final; |
564 | void InternalSwap(RepositoryConfig* other); |
565 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
566 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
567 | return "proxima.be.proto.RepositoryConfig" ; |
568 | } |
569 | private: |
570 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
571 | return nullptr; |
572 | } |
573 | inline void* MaybeArenaPtr() const { |
574 | return nullptr; |
575 | } |
576 | public: |
577 | |
578 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
579 | private: |
580 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
581 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proto_2frepository_5fconfig_2eproto); |
582 | return ::descriptor_table_proto_2frepository_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; |
583 | } |
584 | |
585 | public: |
586 | |
587 | // nested types ---------------------------------------------------- |
588 | |
589 | // accessors ------------------------------------------------------- |
590 | |
591 | enum : int { |
592 | kCommonConfigFieldNumber = 1, |
593 | kRepositoryConfigFieldNumber = 2, |
594 | }; |
595 | // .proxima.be.proto.RepositoryCommonConfig common_config = 1; |
596 | bool has_common_config() const; |
597 | private: |
598 | bool _internal_has_common_config() const; |
599 | public: |
600 | void clear_common_config(); |
601 | const ::proxima::be::proto::RepositoryCommonConfig& common_config() const; |
602 | ::proxima::be::proto::RepositoryCommonConfig* release_common_config(); |
603 | ::proxima::be::proto::RepositoryCommonConfig* mutable_common_config(); |
604 | void set_allocated_common_config(::proxima::be::proto::RepositoryCommonConfig* common_config); |
605 | private: |
606 | const ::proxima::be::proto::RepositoryCommonConfig& _internal_common_config() const; |
607 | ::proxima::be::proto::RepositoryCommonConfig* _internal_mutable_common_config(); |
608 | public: |
609 | |
610 | // .proxima.be.proto.MysqlRepositoryConfig repository_config = 2; |
611 | bool has_repository_config() const; |
612 | private: |
613 | bool _internal_has_repository_config() const; |
614 | public: |
615 | void clear_repository_config(); |
616 | const ::proxima::be::proto::MysqlRepositoryConfig& repository_config() const; |
617 | ::proxima::be::proto::MysqlRepositoryConfig* release_repository_config(); |
618 | ::proxima::be::proto::MysqlRepositoryConfig* mutable_repository_config(); |
619 | void set_allocated_repository_config(::proxima::be::proto::MysqlRepositoryConfig* repository_config); |
620 | private: |
621 | const ::proxima::be::proto::MysqlRepositoryConfig& _internal_repository_config() const; |
622 | ::proxima::be::proto::MysqlRepositoryConfig* _internal_mutable_repository_config(); |
623 | public: |
624 | |
625 | // @@protoc_insertion_point(class_scope:proxima.be.proto.RepositoryConfig) |
626 | private: |
627 | class _Internal; |
628 | |
629 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
630 | ::proxima::be::proto::RepositoryCommonConfig* common_config_; |
631 | ::proxima::be::proto::MysqlRepositoryConfig* repository_config_; |
632 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
633 | friend struct ::TableStruct_proto_2frepository_5fconfig_2eproto; |
634 | }; |
635 | // =================================================================== |
636 | |
637 | |
638 | // =================================================================== |
639 | |
640 | #ifdef __GNUC__ |
641 | #pragma GCC diagnostic push |
642 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
643 | #endif // __GNUC__ |
644 | // RepositoryCommonConfig |
645 | |
646 | // string log_directory = 1; |
647 | inline void RepositoryCommonConfig::clear_log_directory() { |
648 | log_directory_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
649 | } |
650 | inline const std::string& RepositoryCommonConfig::log_directory() const { |
651 | // @@protoc_insertion_point(field_get:proxima.be.proto.RepositoryCommonConfig.log_directory) |
652 | return _internal_log_directory(); |
653 | } |
654 | inline void RepositoryCommonConfig::set_log_directory(const std::string& value) { |
655 | _internal_set_log_directory(value); |
656 | // @@protoc_insertion_point(field_set:proxima.be.proto.RepositoryCommonConfig.log_directory) |
657 | } |
658 | inline std::string* RepositoryCommonConfig::mutable_log_directory() { |
659 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.RepositoryCommonConfig.log_directory) |
660 | return _internal_mutable_log_directory(); |
661 | } |
662 | inline const std::string& RepositoryCommonConfig::_internal_log_directory() const { |
663 | return log_directory_.GetNoArena(); |
664 | } |
665 | inline void RepositoryCommonConfig::_internal_set_log_directory(const std::string& value) { |
666 | |
667 | log_directory_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
668 | } |
669 | inline void RepositoryCommonConfig::set_log_directory(std::string&& value) { |
670 | |
671 | log_directory_.SetNoArena( |
672 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
673 | // @@protoc_insertion_point(field_set_rvalue:proxima.be.proto.RepositoryCommonConfig.log_directory) |
674 | } |
675 | inline void RepositoryCommonConfig::set_log_directory(const char* value) { |
676 | GOOGLE_DCHECK(value != nullptr); |
677 | |
678 | log_directory_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
679 | // @@protoc_insertion_point(field_set_char:proxima.be.proto.RepositoryCommonConfig.log_directory) |
680 | } |
681 | inline void RepositoryCommonConfig::set_log_directory(const char* value, size_t size) { |
682 | |
683 | log_directory_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
684 | ::std::string(reinterpret_cast<const char*>(value), size)); |
685 | // @@protoc_insertion_point(field_set_pointer:proxima.be.proto.RepositoryCommonConfig.log_directory) |
686 | } |
687 | inline std::string* RepositoryCommonConfig::_internal_mutable_log_directory() { |
688 | |
689 | return log_directory_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
690 | } |
691 | inline std::string* RepositoryCommonConfig::release_log_directory() { |
692 | // @@protoc_insertion_point(field_release:proxima.be.proto.RepositoryCommonConfig.log_directory) |
693 | |
694 | return log_directory_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
695 | } |
696 | inline void RepositoryCommonConfig::set_allocated_log_directory(std::string* log_directory) { |
697 | if (log_directory != nullptr) { |
698 | |
699 | } else { |
700 | |
701 | } |
702 | log_directory_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), log_directory); |
703 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.RepositoryCommonConfig.log_directory) |
704 | } |
705 | |
706 | // string log_file = 2; |
707 | inline void RepositoryCommonConfig::clear_log_file() { |
708 | log_file_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
709 | } |
710 | inline const std::string& RepositoryCommonConfig::log_file() const { |
711 | // @@protoc_insertion_point(field_get:proxima.be.proto.RepositoryCommonConfig.log_file) |
712 | return _internal_log_file(); |
713 | } |
714 | inline void RepositoryCommonConfig::set_log_file(const std::string& value) { |
715 | _internal_set_log_file(value); |
716 | // @@protoc_insertion_point(field_set:proxima.be.proto.RepositoryCommonConfig.log_file) |
717 | } |
718 | inline std::string* RepositoryCommonConfig::mutable_log_file() { |
719 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.RepositoryCommonConfig.log_file) |
720 | return _internal_mutable_log_file(); |
721 | } |
722 | inline const std::string& RepositoryCommonConfig::_internal_log_file() const { |
723 | return log_file_.GetNoArena(); |
724 | } |
725 | inline void RepositoryCommonConfig::_internal_set_log_file(const std::string& value) { |
726 | |
727 | log_file_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
728 | } |
729 | inline void RepositoryCommonConfig::set_log_file(std::string&& value) { |
730 | |
731 | log_file_.SetNoArena( |
732 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
733 | // @@protoc_insertion_point(field_set_rvalue:proxima.be.proto.RepositoryCommonConfig.log_file) |
734 | } |
735 | inline void RepositoryCommonConfig::set_log_file(const char* value) { |
736 | GOOGLE_DCHECK(value != nullptr); |
737 | |
738 | log_file_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
739 | // @@protoc_insertion_point(field_set_char:proxima.be.proto.RepositoryCommonConfig.log_file) |
740 | } |
741 | inline void RepositoryCommonConfig::set_log_file(const char* value, size_t size) { |
742 | |
743 | log_file_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
744 | ::std::string(reinterpret_cast<const char*>(value), size)); |
745 | // @@protoc_insertion_point(field_set_pointer:proxima.be.proto.RepositoryCommonConfig.log_file) |
746 | } |
747 | inline std::string* RepositoryCommonConfig::_internal_mutable_log_file() { |
748 | |
749 | return log_file_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
750 | } |
751 | inline std::string* RepositoryCommonConfig::release_log_file() { |
752 | // @@protoc_insertion_point(field_release:proxima.be.proto.RepositoryCommonConfig.log_file) |
753 | |
754 | return log_file_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
755 | } |
756 | inline void RepositoryCommonConfig::set_allocated_log_file(std::string* log_file) { |
757 | if (log_file != nullptr) { |
758 | |
759 | } else { |
760 | |
761 | } |
762 | log_file_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), log_file); |
763 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.RepositoryCommonConfig.log_file) |
764 | } |
765 | |
766 | // int32 log_level = 3; |
767 | inline void RepositoryCommonConfig::clear_log_level() { |
768 | log_level_ = 0; |
769 | } |
770 | inline ::PROTOBUF_NAMESPACE_ID::int32 RepositoryCommonConfig::_internal_log_level() const { |
771 | return log_level_; |
772 | } |
773 | inline ::PROTOBUF_NAMESPACE_ID::int32 RepositoryCommonConfig::log_level() const { |
774 | // @@protoc_insertion_point(field_get:proxima.be.proto.RepositoryCommonConfig.log_level) |
775 | return _internal_log_level(); |
776 | } |
777 | inline void RepositoryCommonConfig::_internal_set_log_level(::PROTOBUF_NAMESPACE_ID::int32 value) { |
778 | |
779 | log_level_ = value; |
780 | } |
781 | inline void RepositoryCommonConfig::set_log_level(::PROTOBUF_NAMESPACE_ID::int32 value) { |
782 | _internal_set_log_level(value); |
783 | // @@protoc_insertion_point(field_set:proxima.be.proto.RepositoryCommonConfig.log_level) |
784 | } |
785 | |
786 | // string logger_name = 4; |
787 | inline void RepositoryCommonConfig::clear_logger_name() { |
788 | logger_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
789 | } |
790 | inline const std::string& RepositoryCommonConfig::logger_name() const { |
791 | // @@protoc_insertion_point(field_get:proxima.be.proto.RepositoryCommonConfig.logger_name) |
792 | return _internal_logger_name(); |
793 | } |
794 | inline void RepositoryCommonConfig::set_logger_name(const std::string& value) { |
795 | _internal_set_logger_name(value); |
796 | // @@protoc_insertion_point(field_set:proxima.be.proto.RepositoryCommonConfig.logger_name) |
797 | } |
798 | inline std::string* RepositoryCommonConfig::mutable_logger_name() { |
799 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.RepositoryCommonConfig.logger_name) |
800 | return _internal_mutable_logger_name(); |
801 | } |
802 | inline const std::string& RepositoryCommonConfig::_internal_logger_name() const { |
803 | return logger_name_.GetNoArena(); |
804 | } |
805 | inline void RepositoryCommonConfig::_internal_set_logger_name(const std::string& value) { |
806 | |
807 | logger_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
808 | } |
809 | inline void RepositoryCommonConfig::set_logger_name(std::string&& value) { |
810 | |
811 | logger_name_.SetNoArena( |
812 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
813 | // @@protoc_insertion_point(field_set_rvalue:proxima.be.proto.RepositoryCommonConfig.logger_name) |
814 | } |
815 | inline void RepositoryCommonConfig::set_logger_name(const char* value) { |
816 | GOOGLE_DCHECK(value != nullptr); |
817 | |
818 | logger_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
819 | // @@protoc_insertion_point(field_set_char:proxima.be.proto.RepositoryCommonConfig.logger_name) |
820 | } |
821 | inline void RepositoryCommonConfig::set_logger_name(const char* value, size_t size) { |
822 | |
823 | logger_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
824 | ::std::string(reinterpret_cast<const char*>(value), size)); |
825 | // @@protoc_insertion_point(field_set_pointer:proxima.be.proto.RepositoryCommonConfig.logger_name) |
826 | } |
827 | inline std::string* RepositoryCommonConfig::_internal_mutable_logger_name() { |
828 | |
829 | return logger_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
830 | } |
831 | inline std::string* RepositoryCommonConfig::release_logger_name() { |
832 | // @@protoc_insertion_point(field_release:proxima.be.proto.RepositoryCommonConfig.logger_name) |
833 | |
834 | return logger_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
835 | } |
836 | inline void RepositoryCommonConfig::set_allocated_logger_name(std::string* logger_name) { |
837 | if (logger_name != nullptr) { |
838 | |
839 | } else { |
840 | |
841 | } |
842 | logger_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), logger_name); |
843 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.RepositoryCommonConfig.logger_name) |
844 | } |
845 | |
846 | // ------------------------------------------------------------------- |
847 | |
848 | // MysqlRepositoryConfig |
849 | |
850 | // string index_agent_addr = 1; |
851 | inline void MysqlRepositoryConfig::clear_index_agent_addr() { |
852 | index_agent_addr_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
853 | } |
854 | inline const std::string& MysqlRepositoryConfig::index_agent_addr() const { |
855 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
856 | return _internal_index_agent_addr(); |
857 | } |
858 | inline void MysqlRepositoryConfig::set_index_agent_addr(const std::string& value) { |
859 | _internal_set_index_agent_addr(value); |
860 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
861 | } |
862 | inline std::string* MysqlRepositoryConfig::mutable_index_agent_addr() { |
863 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
864 | return _internal_mutable_index_agent_addr(); |
865 | } |
866 | inline const std::string& MysqlRepositoryConfig::_internal_index_agent_addr() const { |
867 | return index_agent_addr_.GetNoArena(); |
868 | } |
869 | inline void MysqlRepositoryConfig::_internal_set_index_agent_addr(const std::string& value) { |
870 | |
871 | index_agent_addr_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
872 | } |
873 | inline void MysqlRepositoryConfig::set_index_agent_addr(std::string&& value) { |
874 | |
875 | index_agent_addr_.SetNoArena( |
876 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
877 | // @@protoc_insertion_point(field_set_rvalue:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
878 | } |
879 | inline void MysqlRepositoryConfig::set_index_agent_addr(const char* value) { |
880 | GOOGLE_DCHECK(value != nullptr); |
881 | |
882 | index_agent_addr_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
883 | // @@protoc_insertion_point(field_set_char:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
884 | } |
885 | inline void MysqlRepositoryConfig::set_index_agent_addr(const char* value, size_t size) { |
886 | |
887 | index_agent_addr_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
888 | ::std::string(reinterpret_cast<const char*>(value), size)); |
889 | // @@protoc_insertion_point(field_set_pointer:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
890 | } |
891 | inline std::string* MysqlRepositoryConfig::_internal_mutable_index_agent_addr() { |
892 | |
893 | return index_agent_addr_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
894 | } |
895 | inline std::string* MysqlRepositoryConfig::release_index_agent_addr() { |
896 | // @@protoc_insertion_point(field_release:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
897 | |
898 | return index_agent_addr_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
899 | } |
900 | inline void MysqlRepositoryConfig::set_allocated_index_agent_addr(std::string* index_agent_addr) { |
901 | if (index_agent_addr != nullptr) { |
902 | |
903 | } else { |
904 | |
905 | } |
906 | index_agent_addr_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_agent_addr); |
907 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.MysqlRepositoryConfig.index_agent_addr) |
908 | } |
909 | |
910 | // string load_balance = 2; |
911 | inline void MysqlRepositoryConfig::clear_load_balance() { |
912 | load_balance_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
913 | } |
914 | inline const std::string& MysqlRepositoryConfig::load_balance() const { |
915 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
916 | return _internal_load_balance(); |
917 | } |
918 | inline void MysqlRepositoryConfig::set_load_balance(const std::string& value) { |
919 | _internal_set_load_balance(value); |
920 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
921 | } |
922 | inline std::string* MysqlRepositoryConfig::mutable_load_balance() { |
923 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
924 | return _internal_mutable_load_balance(); |
925 | } |
926 | inline const std::string& MysqlRepositoryConfig::_internal_load_balance() const { |
927 | return load_balance_.GetNoArena(); |
928 | } |
929 | inline void MysqlRepositoryConfig::_internal_set_load_balance(const std::string& value) { |
930 | |
931 | load_balance_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
932 | } |
933 | inline void MysqlRepositoryConfig::set_load_balance(std::string&& value) { |
934 | |
935 | load_balance_.SetNoArena( |
936 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
937 | // @@protoc_insertion_point(field_set_rvalue:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
938 | } |
939 | inline void MysqlRepositoryConfig::set_load_balance(const char* value) { |
940 | GOOGLE_DCHECK(value != nullptr); |
941 | |
942 | load_balance_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
943 | // @@protoc_insertion_point(field_set_char:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
944 | } |
945 | inline void MysqlRepositoryConfig::set_load_balance(const char* value, size_t size) { |
946 | |
947 | load_balance_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
948 | ::std::string(reinterpret_cast<const char*>(value), size)); |
949 | // @@protoc_insertion_point(field_set_pointer:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
950 | } |
951 | inline std::string* MysqlRepositoryConfig::_internal_mutable_load_balance() { |
952 | |
953 | return load_balance_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
954 | } |
955 | inline std::string* MysqlRepositoryConfig::release_load_balance() { |
956 | // @@protoc_insertion_point(field_release:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
957 | |
958 | return load_balance_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
959 | } |
960 | inline void MysqlRepositoryConfig::set_allocated_load_balance(std::string* load_balance) { |
961 | if (load_balance != nullptr) { |
962 | |
963 | } else { |
964 | |
965 | } |
966 | load_balance_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), load_balance); |
967 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.MysqlRepositoryConfig.load_balance) |
968 | } |
969 | |
970 | // uint32 batch_size = 3; |
971 | inline void MysqlRepositoryConfig::clear_batch_size() { |
972 | batch_size_ = 0u; |
973 | } |
974 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::_internal_batch_size() const { |
975 | return batch_size_; |
976 | } |
977 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::batch_size() const { |
978 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.batch_size) |
979 | return _internal_batch_size(); |
980 | } |
981 | inline void MysqlRepositoryConfig::_internal_set_batch_size(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
982 | |
983 | batch_size_ = value; |
984 | } |
985 | inline void MysqlRepositoryConfig::set_batch_size(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
986 | _internal_set_batch_size(value); |
987 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.batch_size) |
988 | } |
989 | |
990 | // uint32 batch_interval = 4; |
991 | inline void MysqlRepositoryConfig::clear_batch_interval() { |
992 | batch_interval_ = 0u; |
993 | } |
994 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::_internal_batch_interval() const { |
995 | return batch_interval_; |
996 | } |
997 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::batch_interval() const { |
998 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.batch_interval) |
999 | return _internal_batch_interval(); |
1000 | } |
1001 | inline void MysqlRepositoryConfig::_internal_set_batch_interval(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
1002 | |
1003 | batch_interval_ = value; |
1004 | } |
1005 | inline void MysqlRepositoryConfig::set_batch_interval(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
1006 | _internal_set_batch_interval(value); |
1007 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.batch_interval) |
1008 | } |
1009 | |
1010 | // uint32 max_retry = 5; |
1011 | inline void MysqlRepositoryConfig::clear_max_retry() { |
1012 | max_retry_ = 0u; |
1013 | } |
1014 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::_internal_max_retry() const { |
1015 | return max_retry_; |
1016 | } |
1017 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::max_retry() const { |
1018 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.max_retry) |
1019 | return _internal_max_retry(); |
1020 | } |
1021 | inline void MysqlRepositoryConfig::_internal_set_max_retry(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
1022 | |
1023 | max_retry_ = value; |
1024 | } |
1025 | inline void MysqlRepositoryConfig::set_max_retry(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
1026 | _internal_set_max_retry(value); |
1027 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.max_retry) |
1028 | } |
1029 | |
1030 | // string repository_name = 6; |
1031 | inline void MysqlRepositoryConfig::clear_repository_name() { |
1032 | repository_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1033 | } |
1034 | inline const std::string& MysqlRepositoryConfig::repository_name() const { |
1035 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1036 | return _internal_repository_name(); |
1037 | } |
1038 | inline void MysqlRepositoryConfig::set_repository_name(const std::string& value) { |
1039 | _internal_set_repository_name(value); |
1040 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1041 | } |
1042 | inline std::string* MysqlRepositoryConfig::mutable_repository_name() { |
1043 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1044 | return _internal_mutable_repository_name(); |
1045 | } |
1046 | inline const std::string& MysqlRepositoryConfig::_internal_repository_name() const { |
1047 | return repository_name_.GetNoArena(); |
1048 | } |
1049 | inline void MysqlRepositoryConfig::_internal_set_repository_name(const std::string& value) { |
1050 | |
1051 | repository_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
1052 | } |
1053 | inline void MysqlRepositoryConfig::set_repository_name(std::string&& value) { |
1054 | |
1055 | repository_name_.SetNoArena( |
1056 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1057 | // @@protoc_insertion_point(field_set_rvalue:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1058 | } |
1059 | inline void MysqlRepositoryConfig::set_repository_name(const char* value) { |
1060 | GOOGLE_DCHECK(value != nullptr); |
1061 | |
1062 | repository_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1063 | // @@protoc_insertion_point(field_set_char:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1064 | } |
1065 | inline void MysqlRepositoryConfig::set_repository_name(const char* value, size_t size) { |
1066 | |
1067 | repository_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1068 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1069 | // @@protoc_insertion_point(field_set_pointer:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1070 | } |
1071 | inline std::string* MysqlRepositoryConfig::_internal_mutable_repository_name() { |
1072 | |
1073 | return repository_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1074 | } |
1075 | inline std::string* MysqlRepositoryConfig::release_repository_name() { |
1076 | // @@protoc_insertion_point(field_release:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1077 | |
1078 | return repository_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1079 | } |
1080 | inline void MysqlRepositoryConfig::set_allocated_repository_name(std::string* repository_name) { |
1081 | if (repository_name != nullptr) { |
1082 | |
1083 | } else { |
1084 | |
1085 | } |
1086 | repository_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), repository_name); |
1087 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.MysqlRepositoryConfig.repository_name) |
1088 | } |
1089 | |
1090 | // uint32 timeout_ms = 7; |
1091 | inline void MysqlRepositoryConfig::clear_timeout_ms() { |
1092 | timeout_ms_ = 0u; |
1093 | } |
1094 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::_internal_timeout_ms() const { |
1095 | return timeout_ms_; |
1096 | } |
1097 | inline ::PROTOBUF_NAMESPACE_ID::uint32 MysqlRepositoryConfig::timeout_ms() const { |
1098 | // @@protoc_insertion_point(field_get:proxima.be.proto.MysqlRepositoryConfig.timeout_ms) |
1099 | return _internal_timeout_ms(); |
1100 | } |
1101 | inline void MysqlRepositoryConfig::_internal_set_timeout_ms(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
1102 | |
1103 | timeout_ms_ = value; |
1104 | } |
1105 | inline void MysqlRepositoryConfig::set_timeout_ms(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
1106 | _internal_set_timeout_ms(value); |
1107 | // @@protoc_insertion_point(field_set:proxima.be.proto.MysqlRepositoryConfig.timeout_ms) |
1108 | } |
1109 | |
1110 | // ------------------------------------------------------------------- |
1111 | |
1112 | // RepositoryConfig |
1113 | |
1114 | // .proxima.be.proto.RepositoryCommonConfig common_config = 1; |
1115 | inline bool RepositoryConfig::_internal_has_common_config() const { |
1116 | return this != internal_default_instance() && common_config_ != nullptr; |
1117 | } |
1118 | inline bool RepositoryConfig::has_common_config() const { |
1119 | return _internal_has_common_config(); |
1120 | } |
1121 | inline void RepositoryConfig::clear_common_config() { |
1122 | if (GetArenaNoVirtual() == nullptr && common_config_ != nullptr) { |
1123 | delete common_config_; |
1124 | } |
1125 | common_config_ = nullptr; |
1126 | } |
1127 | inline const ::proxima::be::proto::RepositoryCommonConfig& RepositoryConfig::_internal_common_config() const { |
1128 | const ::proxima::be::proto::RepositoryCommonConfig* p = common_config_; |
1129 | return p != nullptr ? *p : *reinterpret_cast<const ::proxima::be::proto::RepositoryCommonConfig*>( |
1130 | &::proxima::be::proto::_RepositoryCommonConfig_default_instance_); |
1131 | } |
1132 | inline const ::proxima::be::proto::RepositoryCommonConfig& RepositoryConfig::common_config() const { |
1133 | // @@protoc_insertion_point(field_get:proxima.be.proto.RepositoryConfig.common_config) |
1134 | return _internal_common_config(); |
1135 | } |
1136 | inline ::proxima::be::proto::RepositoryCommonConfig* RepositoryConfig::release_common_config() { |
1137 | // @@protoc_insertion_point(field_release:proxima.be.proto.RepositoryConfig.common_config) |
1138 | |
1139 | ::proxima::be::proto::RepositoryCommonConfig* temp = common_config_; |
1140 | common_config_ = nullptr; |
1141 | return temp; |
1142 | } |
1143 | inline ::proxima::be::proto::RepositoryCommonConfig* RepositoryConfig::_internal_mutable_common_config() { |
1144 | |
1145 | if (common_config_ == nullptr) { |
1146 | auto* p = CreateMaybeMessage<::proxima::be::proto::RepositoryCommonConfig>(GetArenaNoVirtual()); |
1147 | common_config_ = p; |
1148 | } |
1149 | return common_config_; |
1150 | } |
1151 | inline ::proxima::be::proto::RepositoryCommonConfig* RepositoryConfig::mutable_common_config() { |
1152 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.RepositoryConfig.common_config) |
1153 | return _internal_mutable_common_config(); |
1154 | } |
1155 | inline void RepositoryConfig::set_allocated_common_config(::proxima::be::proto::RepositoryCommonConfig* common_config) { |
1156 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1157 | if (message_arena == nullptr) { |
1158 | delete common_config_; |
1159 | } |
1160 | if (common_config) { |
1161 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
1162 | if (message_arena != submessage_arena) { |
1163 | common_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1164 | message_arena, common_config, submessage_arena); |
1165 | } |
1166 | |
1167 | } else { |
1168 | |
1169 | } |
1170 | common_config_ = common_config; |
1171 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.RepositoryConfig.common_config) |
1172 | } |
1173 | |
1174 | // .proxima.be.proto.MysqlRepositoryConfig repository_config = 2; |
1175 | inline bool RepositoryConfig::_internal_has_repository_config() const { |
1176 | return this != internal_default_instance() && repository_config_ != nullptr; |
1177 | } |
1178 | inline bool RepositoryConfig::has_repository_config() const { |
1179 | return _internal_has_repository_config(); |
1180 | } |
1181 | inline void RepositoryConfig::clear_repository_config() { |
1182 | if (GetArenaNoVirtual() == nullptr && repository_config_ != nullptr) { |
1183 | delete repository_config_; |
1184 | } |
1185 | repository_config_ = nullptr; |
1186 | } |
1187 | inline const ::proxima::be::proto::MysqlRepositoryConfig& RepositoryConfig::_internal_repository_config() const { |
1188 | const ::proxima::be::proto::MysqlRepositoryConfig* p = repository_config_; |
1189 | return p != nullptr ? *p : *reinterpret_cast<const ::proxima::be::proto::MysqlRepositoryConfig*>( |
1190 | &::proxima::be::proto::_MysqlRepositoryConfig_default_instance_); |
1191 | } |
1192 | inline const ::proxima::be::proto::MysqlRepositoryConfig& RepositoryConfig::repository_config() const { |
1193 | // @@protoc_insertion_point(field_get:proxima.be.proto.RepositoryConfig.repository_config) |
1194 | return _internal_repository_config(); |
1195 | } |
1196 | inline ::proxima::be::proto::MysqlRepositoryConfig* RepositoryConfig::release_repository_config() { |
1197 | // @@protoc_insertion_point(field_release:proxima.be.proto.RepositoryConfig.repository_config) |
1198 | |
1199 | ::proxima::be::proto::MysqlRepositoryConfig* temp = repository_config_; |
1200 | repository_config_ = nullptr; |
1201 | return temp; |
1202 | } |
1203 | inline ::proxima::be::proto::MysqlRepositoryConfig* RepositoryConfig::_internal_mutable_repository_config() { |
1204 | |
1205 | if (repository_config_ == nullptr) { |
1206 | auto* p = CreateMaybeMessage<::proxima::be::proto::MysqlRepositoryConfig>(GetArenaNoVirtual()); |
1207 | repository_config_ = p; |
1208 | } |
1209 | return repository_config_; |
1210 | } |
1211 | inline ::proxima::be::proto::MysqlRepositoryConfig* RepositoryConfig::mutable_repository_config() { |
1212 | // @@protoc_insertion_point(field_mutable:proxima.be.proto.RepositoryConfig.repository_config) |
1213 | return _internal_mutable_repository_config(); |
1214 | } |
1215 | inline void RepositoryConfig::set_allocated_repository_config(::proxima::be::proto::MysqlRepositoryConfig* repository_config) { |
1216 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1217 | if (message_arena == nullptr) { |
1218 | delete repository_config_; |
1219 | } |
1220 | if (repository_config) { |
1221 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
1222 | if (message_arena != submessage_arena) { |
1223 | repository_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1224 | message_arena, repository_config, submessage_arena); |
1225 | } |
1226 | |
1227 | } else { |
1228 | |
1229 | } |
1230 | repository_config_ = repository_config; |
1231 | // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.RepositoryConfig.repository_config) |
1232 | } |
1233 | |
1234 | #ifdef __GNUC__ |
1235 | #pragma GCC diagnostic pop |
1236 | #endif // __GNUC__ |
1237 | // ------------------------------------------------------------------- |
1238 | |
1239 | // ------------------------------------------------------------------- |
1240 | |
1241 | |
1242 | // @@protoc_insertion_point(namespace_scope) |
1243 | |
1244 | } // namespace proto |
1245 | } // namespace be |
1246 | } // namespace proxima |
1247 | |
1248 | // @@protoc_insertion_point(global_scope) |
1249 | |
1250 | #include <google/protobuf/port_undef.inc> |
1251 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2frepository_5fconfig_2eproto |
1252 | |
1253 | #ifdef __GNUC__ |
1254 | #pragma GCC diagnostic pop |
1255 | #endif |
1256 | |