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