/src/brpc/build/brpc/trackme.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: brpc/trackme.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_brpc_2ftrackme_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_brpc_2ftrackme_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/generated_enum_reflection.h> |
33 | | #include <google/protobuf/service.h> |
34 | | #include <google/protobuf/unknown_field_set.h> |
35 | | // @@protoc_insertion_point(includes) |
36 | | #include <google/protobuf/port_def.inc> |
37 | | #define PROTOBUF_INTERNAL_EXPORT_brpc_2ftrackme_2eproto |
38 | | PROTOBUF_NAMESPACE_OPEN |
39 | | namespace internal { |
40 | | class AnyMetadata; |
41 | | } // namespace internal |
42 | | PROTOBUF_NAMESPACE_CLOSE |
43 | | |
44 | | // Internal implementation detail -- do not use these members. |
45 | | struct TableStruct_brpc_2ftrackme_2eproto { |
46 | | static const uint32_t offsets[]; |
47 | | }; |
48 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_brpc_2ftrackme_2eproto; |
49 | | namespace brpc { |
50 | | class TrackMeRequest; |
51 | | struct TrackMeRequestDefaultTypeInternal; |
52 | | extern TrackMeRequestDefaultTypeInternal _TrackMeRequest_default_instance_; |
53 | | class TrackMeResponse; |
54 | | struct TrackMeResponseDefaultTypeInternal; |
55 | | extern TrackMeResponseDefaultTypeInternal _TrackMeResponse_default_instance_; |
56 | | } // namespace brpc |
57 | | PROTOBUF_NAMESPACE_OPEN |
58 | | template<> ::brpc::TrackMeRequest* Arena::CreateMaybeMessage<::brpc::TrackMeRequest>(Arena*); |
59 | | template<> ::brpc::TrackMeResponse* Arena::CreateMaybeMessage<::brpc::TrackMeResponse>(Arena*); |
60 | | PROTOBUF_NAMESPACE_CLOSE |
61 | | namespace brpc { |
62 | | |
63 | | enum TrackMeSeverity : int { |
64 | | TrackMeOK = 0, |
65 | | TrackMeWarning = 1, |
66 | | TrackMeFatal = 2 |
67 | | }; |
68 | | bool TrackMeSeverity_IsValid(int value); |
69 | | constexpr TrackMeSeverity TrackMeSeverity_MIN = TrackMeOK; |
70 | | constexpr TrackMeSeverity TrackMeSeverity_MAX = TrackMeFatal; |
71 | | constexpr int TrackMeSeverity_ARRAYSIZE = TrackMeSeverity_MAX + 1; |
72 | | |
73 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TrackMeSeverity_descriptor(); |
74 | | template<typename T> |
75 | | inline const std::string& TrackMeSeverity_Name(T enum_t_value) { |
76 | | static_assert(::std::is_same<T, TrackMeSeverity>::value || |
77 | | ::std::is_integral<T>::value, |
78 | | "Incorrect type passed to function TrackMeSeverity_Name."); |
79 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
80 | | TrackMeSeverity_descriptor(), enum_t_value); |
81 | | } |
82 | | inline bool TrackMeSeverity_Parse( |
83 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TrackMeSeverity* value) { |
84 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TrackMeSeverity>( |
85 | 0 | TrackMeSeverity_descriptor(), name, value); |
86 | 0 | } |
87 | | // =================================================================== |
88 | | |
89 | | class TrackMeRequest final : |
90 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:brpc.TrackMeRequest) */ { |
91 | | public: |
92 | 0 | inline TrackMeRequest() : TrackMeRequest(nullptr) {} |
93 | | ~TrackMeRequest() override; |
94 | | explicit PROTOBUF_CONSTEXPR TrackMeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
95 | | |
96 | | TrackMeRequest(const TrackMeRequest& from); |
97 | | TrackMeRequest(TrackMeRequest&& from) noexcept |
98 | 0 | : TrackMeRequest() { |
99 | 0 | *this = ::std::move(from); |
100 | 0 | } |
101 | | |
102 | 0 | inline TrackMeRequest& operator=(const TrackMeRequest& from) { |
103 | 0 | CopyFrom(from); |
104 | 0 | return *this; |
105 | 0 | } |
106 | 0 | inline TrackMeRequest& operator=(TrackMeRequest&& from) noexcept { |
107 | 0 | if (this == &from) return *this; |
108 | 0 | if (GetOwningArena() == from.GetOwningArena() |
109 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
110 | 0 | && GetOwningArena() != nullptr |
111 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
112 | 0 | ) { |
113 | 0 | InternalSwap(&from); |
114 | 0 | } else { |
115 | 0 | CopyFrom(from); |
116 | 0 | } |
117 | 0 | return *this; |
118 | 0 | } |
119 | | |
120 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
121 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
122 | 0 | } |
123 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
124 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
125 | 0 | } |
126 | | |
127 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
128 | 0 | return GetDescriptor(); |
129 | 0 | } |
130 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
131 | 0 | return default_instance().GetMetadata().descriptor; |
132 | 0 | } |
133 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
134 | 0 | return default_instance().GetMetadata().reflection; |
135 | 0 | } |
136 | 0 | static const TrackMeRequest& default_instance() { |
137 | 0 | return *internal_default_instance(); |
138 | 0 | } |
139 | 0 | static inline const TrackMeRequest* internal_default_instance() { |
140 | 0 | return reinterpret_cast<const TrackMeRequest*>( |
141 | 0 | &_TrackMeRequest_default_instance_); |
142 | 0 | } |
143 | | static constexpr int kIndexInFileMessages = |
144 | | 0; |
145 | | |
146 | 0 | friend void swap(TrackMeRequest& a, TrackMeRequest& b) { |
147 | 0 | a.Swap(&b); |
148 | 0 | } |
149 | 0 | inline void Swap(TrackMeRequest* other) { |
150 | 0 | if (other == this) return; |
151 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
152 | 0 | if (GetOwningArena() != nullptr && |
153 | 0 | GetOwningArena() == other->GetOwningArena()) { |
154 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
155 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
156 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
157 | 0 | InternalSwap(other); |
158 | 0 | } else { |
159 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
160 | 0 | } |
161 | 0 | } |
162 | 0 | void UnsafeArenaSwap(TrackMeRequest* other) { |
163 | 0 | if (other == this) return; |
164 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
165 | 0 | InternalSwap(other); |
166 | 0 | } |
167 | | |
168 | | // implements Message ---------------------------------------------- |
169 | | |
170 | 0 | TrackMeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
171 | 0 | return CreateMaybeMessage<TrackMeRequest>(arena); |
172 | 0 | } |
173 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
174 | | void CopyFrom(const TrackMeRequest& from); |
175 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
176 | 0 | void MergeFrom( const TrackMeRequest& from) { |
177 | 0 | TrackMeRequest::MergeImpl(*this, from); |
178 | 0 | } |
179 | | private: |
180 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
181 | | public: |
182 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
183 | | bool IsInitialized() const final; |
184 | | |
185 | | size_t ByteSizeLong() const final; |
186 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
187 | | uint8_t* _InternalSerialize( |
188 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
189 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
190 | | |
191 | | private: |
192 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
193 | | void SharedDtor(); |
194 | | void SetCachedSize(int size) const final; |
195 | | void InternalSwap(TrackMeRequest* other); |
196 | | |
197 | | private: |
198 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
199 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
200 | 0 | return "brpc.TrackMeRequest"; |
201 | 0 | } |
202 | | protected: |
203 | | explicit TrackMeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
204 | | bool is_message_owned = false); |
205 | | public: |
206 | | |
207 | | static const ClassData _class_data_; |
208 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
209 | | |
210 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
211 | | |
212 | | // nested types ---------------------------------------------------- |
213 | | |
214 | | // accessors ------------------------------------------------------- |
215 | | |
216 | | enum : int { |
217 | | kServerAddrFieldNumber = 2, |
218 | | kRpcVersionFieldNumber = 1, |
219 | | }; |
220 | | // optional string server_addr = 2; |
221 | | bool has_server_addr() const; |
222 | | private: |
223 | | bool _internal_has_server_addr() const; |
224 | | public: |
225 | | void clear_server_addr(); |
226 | | const std::string& server_addr() const; |
227 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
228 | | void set_server_addr(ArgT0&& arg0, ArgT... args); |
229 | | std::string* mutable_server_addr(); |
230 | | PROTOBUF_NODISCARD std::string* release_server_addr(); |
231 | | void set_allocated_server_addr(std::string* server_addr); |
232 | | private: |
233 | | const std::string& _internal_server_addr() const; |
234 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_server_addr(const std::string& value); |
235 | | std::string* _internal_mutable_server_addr(); |
236 | | public: |
237 | | |
238 | | // optional int64 rpc_version = 1; |
239 | | bool has_rpc_version() const; |
240 | | private: |
241 | | bool _internal_has_rpc_version() const; |
242 | | public: |
243 | | void clear_rpc_version(); |
244 | | int64_t rpc_version() const; |
245 | | void set_rpc_version(int64_t value); |
246 | | private: |
247 | | int64_t _internal_rpc_version() const; |
248 | | void _internal_set_rpc_version(int64_t value); |
249 | | public: |
250 | | |
251 | | // @@protoc_insertion_point(class_scope:brpc.TrackMeRequest) |
252 | | private: |
253 | | class _Internal; |
254 | | |
255 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
256 | | typedef void InternalArenaConstructable_; |
257 | | typedef void DestructorSkippable_; |
258 | | struct Impl_ { |
259 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
260 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
261 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr server_addr_; |
262 | | int64_t rpc_version_; |
263 | | }; |
264 | | union { Impl_ _impl_; }; |
265 | | friend struct ::TableStruct_brpc_2ftrackme_2eproto; |
266 | | }; |
267 | | // ------------------------------------------------------------------- |
268 | | |
269 | | class TrackMeResponse final : |
270 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:brpc.TrackMeResponse) */ { |
271 | | public: |
272 | 0 | inline TrackMeResponse() : TrackMeResponse(nullptr) {} |
273 | | ~TrackMeResponse() override; |
274 | | explicit PROTOBUF_CONSTEXPR TrackMeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
275 | | |
276 | | TrackMeResponse(const TrackMeResponse& from); |
277 | | TrackMeResponse(TrackMeResponse&& from) noexcept |
278 | 0 | : TrackMeResponse() { |
279 | 0 | *this = ::std::move(from); |
280 | 0 | } |
281 | | |
282 | 0 | inline TrackMeResponse& operator=(const TrackMeResponse& from) { |
283 | 0 | CopyFrom(from); |
284 | 0 | return *this; |
285 | 0 | } |
286 | 0 | inline TrackMeResponse& operator=(TrackMeResponse&& from) noexcept { |
287 | 0 | if (this == &from) return *this; |
288 | 0 | if (GetOwningArena() == from.GetOwningArena() |
289 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
290 | 0 | && GetOwningArena() != nullptr |
291 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
292 | 0 | ) { |
293 | 0 | InternalSwap(&from); |
294 | 0 | } else { |
295 | 0 | CopyFrom(from); |
296 | 0 | } |
297 | 0 | return *this; |
298 | 0 | } |
299 | | |
300 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
301 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
302 | 0 | } |
303 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
304 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
305 | 0 | } |
306 | | |
307 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
308 | 0 | return GetDescriptor(); |
309 | 0 | } |
310 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
311 | 0 | return default_instance().GetMetadata().descriptor; |
312 | 0 | } |
313 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
314 | 0 | return default_instance().GetMetadata().reflection; |
315 | 0 | } |
316 | 0 | static const TrackMeResponse& default_instance() { |
317 | 0 | return *internal_default_instance(); |
318 | 0 | } |
319 | 0 | static inline const TrackMeResponse* internal_default_instance() { |
320 | 0 | return reinterpret_cast<const TrackMeResponse*>( |
321 | 0 | &_TrackMeResponse_default_instance_); |
322 | 0 | } |
323 | | static constexpr int kIndexInFileMessages = |
324 | | 1; |
325 | | |
326 | 0 | friend void swap(TrackMeResponse& a, TrackMeResponse& b) { |
327 | 0 | a.Swap(&b); |
328 | 0 | } |
329 | 0 | inline void Swap(TrackMeResponse* other) { |
330 | 0 | if (other == this) return; |
331 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
332 | 0 | if (GetOwningArena() != nullptr && |
333 | 0 | GetOwningArena() == other->GetOwningArena()) { |
334 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
335 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
336 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
337 | 0 | InternalSwap(other); |
338 | 0 | } else { |
339 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
340 | 0 | } |
341 | 0 | } |
342 | 0 | void UnsafeArenaSwap(TrackMeResponse* other) { |
343 | 0 | if (other == this) return; |
344 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
345 | 0 | InternalSwap(other); |
346 | 0 | } |
347 | | |
348 | | // implements Message ---------------------------------------------- |
349 | | |
350 | 0 | TrackMeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
351 | 0 | return CreateMaybeMessage<TrackMeResponse>(arena); |
352 | 0 | } |
353 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
354 | | void CopyFrom(const TrackMeResponse& from); |
355 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
356 | 0 | void MergeFrom( const TrackMeResponse& from) { |
357 | 0 | TrackMeResponse::MergeImpl(*this, from); |
358 | 0 | } |
359 | | private: |
360 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
361 | | public: |
362 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
363 | | bool IsInitialized() const final; |
364 | | |
365 | | size_t ByteSizeLong() const final; |
366 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
367 | | uint8_t* _InternalSerialize( |
368 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
369 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
370 | | |
371 | | private: |
372 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
373 | | void SharedDtor(); |
374 | | void SetCachedSize(int size) const final; |
375 | | void InternalSwap(TrackMeResponse* other); |
376 | | |
377 | | private: |
378 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
379 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
380 | 0 | return "brpc.TrackMeResponse"; |
381 | 0 | } |
382 | | protected: |
383 | | explicit TrackMeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
384 | | bool is_message_owned = false); |
385 | | public: |
386 | | |
387 | | static const ClassData _class_data_; |
388 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
389 | | |
390 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
391 | | |
392 | | // nested types ---------------------------------------------------- |
393 | | |
394 | | // accessors ------------------------------------------------------- |
395 | | |
396 | | enum : int { |
397 | | kErrorTextFieldNumber = 2, |
398 | | kSeverityFieldNumber = 1, |
399 | | kNewIntervalFieldNumber = 3, |
400 | | }; |
401 | | // optional string error_text = 2; |
402 | | bool has_error_text() const; |
403 | | private: |
404 | | bool _internal_has_error_text() const; |
405 | | public: |
406 | | void clear_error_text(); |
407 | | const std::string& error_text() const; |
408 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
409 | | void set_error_text(ArgT0&& arg0, ArgT... args); |
410 | | std::string* mutable_error_text(); |
411 | | PROTOBUF_NODISCARD std::string* release_error_text(); |
412 | | void set_allocated_error_text(std::string* error_text); |
413 | | private: |
414 | | const std::string& _internal_error_text() const; |
415 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_error_text(const std::string& value); |
416 | | std::string* _internal_mutable_error_text(); |
417 | | public: |
418 | | |
419 | | // optional .brpc.TrackMeSeverity severity = 1; |
420 | | bool has_severity() const; |
421 | | private: |
422 | | bool _internal_has_severity() const; |
423 | | public: |
424 | | void clear_severity(); |
425 | | ::brpc::TrackMeSeverity severity() const; |
426 | | void set_severity(::brpc::TrackMeSeverity value); |
427 | | private: |
428 | | ::brpc::TrackMeSeverity _internal_severity() const; |
429 | | void _internal_set_severity(::brpc::TrackMeSeverity value); |
430 | | public: |
431 | | |
432 | | // optional int32 new_interval = 3; |
433 | | bool has_new_interval() const; |
434 | | private: |
435 | | bool _internal_has_new_interval() const; |
436 | | public: |
437 | | void clear_new_interval(); |
438 | | int32_t new_interval() const; |
439 | | void set_new_interval(int32_t value); |
440 | | private: |
441 | | int32_t _internal_new_interval() const; |
442 | | void _internal_set_new_interval(int32_t value); |
443 | | public: |
444 | | |
445 | | // @@protoc_insertion_point(class_scope:brpc.TrackMeResponse) |
446 | | private: |
447 | | class _Internal; |
448 | | |
449 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
450 | | typedef void InternalArenaConstructable_; |
451 | | typedef void DestructorSkippable_; |
452 | | struct Impl_ { |
453 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
454 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
455 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_text_; |
456 | | int severity_; |
457 | | int32_t new_interval_; |
458 | | }; |
459 | | union { Impl_ _impl_; }; |
460 | | friend struct ::TableStruct_brpc_2ftrackme_2eproto; |
461 | | }; |
462 | | // =================================================================== |
463 | | |
464 | | class TrackMeService_Stub; |
465 | | |
466 | | class TrackMeService : public ::PROTOBUF_NAMESPACE_ID::Service { |
467 | | protected: |
468 | | // This class should be treated as an abstract interface. |
469 | 0 | inline TrackMeService() {}; |
470 | | public: |
471 | | virtual ~TrackMeService(); |
472 | | |
473 | | typedef TrackMeService_Stub Stub; |
474 | | |
475 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
476 | | |
477 | | virtual void TrackMe(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
478 | | const ::brpc::TrackMeRequest* request, |
479 | | ::brpc::TrackMeResponse* response, |
480 | | ::google::protobuf::Closure* done); |
481 | | |
482 | | // implements Service ---------------------------------------------- |
483 | | |
484 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
485 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
486 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
487 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
488 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
489 | | ::google::protobuf::Closure* done); |
490 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
491 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
492 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
493 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
494 | | |
495 | | private: |
496 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TrackMeService); |
497 | | }; |
498 | | |
499 | | class TrackMeService_Stub : public TrackMeService { |
500 | | public: |
501 | | TrackMeService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
502 | | TrackMeService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
503 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
504 | | ~TrackMeService_Stub(); |
505 | | |
506 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
507 | | |
508 | | // implements TrackMeService ------------------------------------------ |
509 | | |
510 | | void TrackMe(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
511 | | const ::brpc::TrackMeRequest* request, |
512 | | ::brpc::TrackMeResponse* response, |
513 | | ::google::protobuf::Closure* done); |
514 | | private: |
515 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
516 | | bool owns_channel_; |
517 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TrackMeService_Stub); |
518 | | }; |
519 | | |
520 | | |
521 | | // =================================================================== |
522 | | |
523 | | |
524 | | // =================================================================== |
525 | | |
526 | | #ifdef __GNUC__ |
527 | | #pragma GCC diagnostic push |
528 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
529 | | #endif // __GNUC__ |
530 | | // TrackMeRequest |
531 | | |
532 | | // optional int64 rpc_version = 1; |
533 | 0 | inline bool TrackMeRequest::_internal_has_rpc_version() const { |
534 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
535 | 0 | return value; |
536 | 0 | } |
537 | 0 | inline bool TrackMeRequest::has_rpc_version() const { |
538 | 0 | return _internal_has_rpc_version(); |
539 | 0 | } |
540 | 0 | inline void TrackMeRequest::clear_rpc_version() { |
541 | 0 | _impl_.rpc_version_ = int64_t{0}; |
542 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
543 | 0 | } |
544 | 0 | inline int64_t TrackMeRequest::_internal_rpc_version() const { |
545 | 0 | return _impl_.rpc_version_; |
546 | 0 | } |
547 | 0 | inline int64_t TrackMeRequest::rpc_version() const { |
548 | 0 | // @@protoc_insertion_point(field_get:brpc.TrackMeRequest.rpc_version) |
549 | 0 | return _internal_rpc_version(); |
550 | 0 | } |
551 | 0 | inline void TrackMeRequest::_internal_set_rpc_version(int64_t value) { |
552 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
553 | 0 | _impl_.rpc_version_ = value; |
554 | 0 | } |
555 | 0 | inline void TrackMeRequest::set_rpc_version(int64_t value) { |
556 | 0 | _internal_set_rpc_version(value); |
557 | | // @@protoc_insertion_point(field_set:brpc.TrackMeRequest.rpc_version) |
558 | 0 | } |
559 | | |
560 | | // optional string server_addr = 2; |
561 | 0 | inline bool TrackMeRequest::_internal_has_server_addr() const { |
562 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
563 | 0 | return value; |
564 | 0 | } |
565 | 0 | inline bool TrackMeRequest::has_server_addr() const { |
566 | 0 | return _internal_has_server_addr(); |
567 | 0 | } |
568 | 0 | inline void TrackMeRequest::clear_server_addr() { |
569 | 0 | _impl_.server_addr_.ClearToEmpty(); |
570 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
571 | 0 | } |
572 | 0 | inline const std::string& TrackMeRequest::server_addr() const { |
573 | 0 | // @@protoc_insertion_point(field_get:brpc.TrackMeRequest.server_addr) |
574 | 0 | return _internal_server_addr(); |
575 | 0 | } |
576 | | template <typename ArgT0, typename... ArgT> |
577 | | inline PROTOBUF_ALWAYS_INLINE |
578 | 0 | void TrackMeRequest::set_server_addr(ArgT0&& arg0, ArgT... args) { |
579 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
580 | 0 | _impl_.server_addr_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
581 | | // @@protoc_insertion_point(field_set:brpc.TrackMeRequest.server_addr) |
582 | 0 | } |
583 | 0 | inline std::string* TrackMeRequest::mutable_server_addr() { |
584 | 0 | std::string* _s = _internal_mutable_server_addr(); |
585 | 0 | // @@protoc_insertion_point(field_mutable:brpc.TrackMeRequest.server_addr) |
586 | 0 | return _s; |
587 | 0 | } |
588 | 0 | inline const std::string& TrackMeRequest::_internal_server_addr() const { |
589 | 0 | return _impl_.server_addr_.Get(); |
590 | 0 | } |
591 | 0 | inline void TrackMeRequest::_internal_set_server_addr(const std::string& value) { |
592 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
593 | 0 | _impl_.server_addr_.Set(value, GetArenaForAllocation()); |
594 | 0 | } |
595 | 0 | inline std::string* TrackMeRequest::_internal_mutable_server_addr() { |
596 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
597 | 0 | return _impl_.server_addr_.Mutable(GetArenaForAllocation()); |
598 | 0 | } |
599 | 0 | inline std::string* TrackMeRequest::release_server_addr() { |
600 | 0 | // @@protoc_insertion_point(field_release:brpc.TrackMeRequest.server_addr) |
601 | 0 | if (!_internal_has_server_addr()) { |
602 | 0 | return nullptr; |
603 | 0 | } |
604 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
605 | 0 | auto* p = _impl_.server_addr_.Release(); |
606 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
607 | 0 | if (_impl_.server_addr_.IsDefault()) { |
608 | 0 | _impl_.server_addr_.Set("", GetArenaForAllocation()); |
609 | 0 | } |
610 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
611 | 0 | return p; |
612 | 0 | } |
613 | 0 | inline void TrackMeRequest::set_allocated_server_addr(std::string* server_addr) { |
614 | 0 | if (server_addr != nullptr) { |
615 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
616 | 0 | } else { |
617 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
618 | 0 | } |
619 | 0 | _impl_.server_addr_.SetAllocated(server_addr, GetArenaForAllocation()); |
620 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
621 | 0 | if (_impl_.server_addr_.IsDefault()) { |
622 | 0 | _impl_.server_addr_.Set("", GetArenaForAllocation()); |
623 | 0 | } |
624 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
625 | 0 | // @@protoc_insertion_point(field_set_allocated:brpc.TrackMeRequest.server_addr) |
626 | 0 | } |
627 | | |
628 | | // ------------------------------------------------------------------- |
629 | | |
630 | | // TrackMeResponse |
631 | | |
632 | | // optional .brpc.TrackMeSeverity severity = 1; |
633 | 0 | inline bool TrackMeResponse::_internal_has_severity() const { |
634 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
635 | 0 | return value; |
636 | 0 | } |
637 | 0 | inline bool TrackMeResponse::has_severity() const { |
638 | 0 | return _internal_has_severity(); |
639 | 0 | } |
640 | 0 | inline void TrackMeResponse::clear_severity() { |
641 | 0 | _impl_.severity_ = 0; |
642 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
643 | 0 | } |
644 | 0 | inline ::brpc::TrackMeSeverity TrackMeResponse::_internal_severity() const { |
645 | 0 | return static_cast< ::brpc::TrackMeSeverity >(_impl_.severity_); |
646 | 0 | } |
647 | 0 | inline ::brpc::TrackMeSeverity TrackMeResponse::severity() const { |
648 | | // @@protoc_insertion_point(field_get:brpc.TrackMeResponse.severity) |
649 | 0 | return _internal_severity(); |
650 | 0 | } |
651 | 0 | inline void TrackMeResponse::_internal_set_severity(::brpc::TrackMeSeverity value) { |
652 | 0 | assert(::brpc::TrackMeSeverity_IsValid(value)); |
653 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
654 | 0 | _impl_.severity_ = value; |
655 | 0 | } |
656 | 0 | inline void TrackMeResponse::set_severity(::brpc::TrackMeSeverity value) { |
657 | 0 | _internal_set_severity(value); |
658 | 0 | // @@protoc_insertion_point(field_set:brpc.TrackMeResponse.severity) |
659 | 0 | } |
660 | | |
661 | | // optional string error_text = 2; |
662 | 0 | inline bool TrackMeResponse::_internal_has_error_text() const { |
663 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
664 | 0 | return value; |
665 | 0 | } |
666 | 0 | inline bool TrackMeResponse::has_error_text() const { |
667 | 0 | return _internal_has_error_text(); |
668 | 0 | } |
669 | 0 | inline void TrackMeResponse::clear_error_text() { |
670 | 0 | _impl_.error_text_.ClearToEmpty(); |
671 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
672 | 0 | } |
673 | 0 | inline const std::string& TrackMeResponse::error_text() const { |
674 | | // @@protoc_insertion_point(field_get:brpc.TrackMeResponse.error_text) |
675 | 0 | return _internal_error_text(); |
676 | 0 | } |
677 | | template <typename ArgT0, typename... ArgT> |
678 | | inline PROTOBUF_ALWAYS_INLINE |
679 | | void TrackMeResponse::set_error_text(ArgT0&& arg0, ArgT... args) { |
680 | | _impl_._has_bits_[0] |= 0x00000001u; |
681 | | _impl_.error_text_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
682 | | // @@protoc_insertion_point(field_set:brpc.TrackMeResponse.error_text) |
683 | | } |
684 | 0 | inline std::string* TrackMeResponse::mutable_error_text() { |
685 | 0 | std::string* _s = _internal_mutable_error_text(); |
686 | 0 | // @@protoc_insertion_point(field_mutable:brpc.TrackMeResponse.error_text) |
687 | 0 | return _s; |
688 | 0 | } |
689 | 0 | inline const std::string& TrackMeResponse::_internal_error_text() const { |
690 | 0 | return _impl_.error_text_.Get(); |
691 | 0 | } |
692 | 0 | inline void TrackMeResponse::_internal_set_error_text(const std::string& value) { |
693 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
694 | 0 | _impl_.error_text_.Set(value, GetArenaForAllocation()); |
695 | 0 | } |
696 | 0 | inline std::string* TrackMeResponse::_internal_mutable_error_text() { |
697 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
698 | 0 | return _impl_.error_text_.Mutable(GetArenaForAllocation()); |
699 | 0 | } |
700 | 0 | inline std::string* TrackMeResponse::release_error_text() { |
701 | 0 | // @@protoc_insertion_point(field_release:brpc.TrackMeResponse.error_text) |
702 | 0 | if (!_internal_has_error_text()) { |
703 | 0 | return nullptr; |
704 | 0 | } |
705 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
706 | 0 | auto* p = _impl_.error_text_.Release(); |
707 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
708 | 0 | if (_impl_.error_text_.IsDefault()) { |
709 | 0 | _impl_.error_text_.Set("", GetArenaForAllocation()); |
710 | 0 | } |
711 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
712 | 0 | return p; |
713 | 0 | } |
714 | 0 | inline void TrackMeResponse::set_allocated_error_text(std::string* error_text) { |
715 | 0 | if (error_text != nullptr) { |
716 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
717 | 0 | } else { |
718 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
719 | 0 | } |
720 | 0 | _impl_.error_text_.SetAllocated(error_text, GetArenaForAllocation()); |
721 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
722 | 0 | if (_impl_.error_text_.IsDefault()) { |
723 | 0 | _impl_.error_text_.Set("", GetArenaForAllocation()); |
724 | 0 | } |
725 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
726 | 0 | // @@protoc_insertion_point(field_set_allocated:brpc.TrackMeResponse.error_text) |
727 | 0 | } |
728 | | |
729 | | // optional int32 new_interval = 3; |
730 | 0 | inline bool TrackMeResponse::_internal_has_new_interval() const { |
731 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
732 | 0 | return value; |
733 | 0 | } |
734 | 0 | inline bool TrackMeResponse::has_new_interval() const { |
735 | 0 | return _internal_has_new_interval(); |
736 | 0 | } |
737 | 0 | inline void TrackMeResponse::clear_new_interval() { |
738 | 0 | _impl_.new_interval_ = 0; |
739 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
740 | 0 | } |
741 | 0 | inline int32_t TrackMeResponse::_internal_new_interval() const { |
742 | 0 | return _impl_.new_interval_; |
743 | 0 | } |
744 | 0 | inline int32_t TrackMeResponse::new_interval() const { |
745 | | // @@protoc_insertion_point(field_get:brpc.TrackMeResponse.new_interval) |
746 | 0 | return _internal_new_interval(); |
747 | 0 | } |
748 | 0 | inline void TrackMeResponse::_internal_set_new_interval(int32_t value) { |
749 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
750 | 0 | _impl_.new_interval_ = value; |
751 | 0 | } |
752 | 0 | inline void TrackMeResponse::set_new_interval(int32_t value) { |
753 | 0 | _internal_set_new_interval(value); |
754 | 0 | // @@protoc_insertion_point(field_set:brpc.TrackMeResponse.new_interval) |
755 | 0 | } |
756 | | |
757 | | #ifdef __GNUC__ |
758 | | #pragma GCC diagnostic pop |
759 | | #endif // __GNUC__ |
760 | | // ------------------------------------------------------------------- |
761 | | |
762 | | |
763 | | // @@protoc_insertion_point(namespace_scope) |
764 | | |
765 | | } // namespace brpc |
766 | | |
767 | | PROTOBUF_NAMESPACE_OPEN |
768 | | |
769 | | template <> struct is_proto_enum< ::brpc::TrackMeSeverity> : ::std::true_type {}; |
770 | | template <> |
771 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::brpc::TrackMeSeverity>() { |
772 | 0 | return ::brpc::TrackMeSeverity_descriptor(); |
773 | 0 | } |
774 | | |
775 | | PROTOBUF_NAMESPACE_CLOSE |
776 | | |
777 | | // @@protoc_insertion_point(global_scope) |
778 | | |
779 | | #include <google/protobuf/port_undef.inc> |
780 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_brpc_2ftrackme_2eproto |