/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/rpc/rpc_header.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/rpc/rpc_header.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2frpc_2frpc_5fheader_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2frpc_2frpc_5fheader_2eproto__INCLUDED |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
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 3005001 < GOOGLE_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/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata.h> |
28 | | #include <google/protobuf/message.h> |
29 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | | #include <google/protobuf/generated_enum_reflection.h> |
32 | | #include <google/protobuf/unknown_field_set.h> |
33 | | // @@protoc_insertion_point(includes) |
34 | | |
35 | | namespace protobuf_yb_2frpc_2frpc_5fheader_2eproto { |
36 | | // Internal implementation detail -- do not use these members. |
37 | | struct TableStruct { |
38 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
39 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
40 | | static const ::google::protobuf::internal::ParseTable schema[5]; |
41 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
42 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
43 | | static const ::google::protobuf::uint32 offsets[]; |
44 | | }; |
45 | | void AddDescriptors(); |
46 | | void InitDefaultsRemoteMethodPBImpl(); |
47 | | void InitDefaultsRemoteMethodPB(); |
48 | | void InitDefaultsRequestHeaderImpl(); |
49 | | void InitDefaultsRequestHeader(); |
50 | | void InitDefaultsResponseHeaderImpl(); |
51 | | void InitDefaultsResponseHeader(); |
52 | | void InitDefaultsEmptyMessagePBImpl(); |
53 | | void InitDefaultsEmptyMessagePB(); |
54 | | void InitDefaultsErrorStatusPBImpl(); |
55 | | void InitDefaultsErrorStatusPB(); |
56 | 17.2k | inline void InitDefaults() { |
57 | 17.2k | InitDefaultsRemoteMethodPB(); |
58 | 17.2k | InitDefaultsRequestHeader(); |
59 | 17.2k | InitDefaultsResponseHeader(); |
60 | 17.2k | InitDefaultsEmptyMessagePB(); |
61 | 17.2k | InitDefaultsErrorStatusPB(); |
62 | 17.2k | } |
63 | | } // namespace protobuf_yb_2frpc_2frpc_5fheader_2eproto |
64 | | namespace yb { |
65 | | namespace rpc { |
66 | | class EmptyMessagePB; |
67 | | class EmptyMessagePBDefaultTypeInternal; |
68 | | extern EmptyMessagePBDefaultTypeInternal _EmptyMessagePB_default_instance_; |
69 | | class ErrorStatusPB; |
70 | | class ErrorStatusPBDefaultTypeInternal; |
71 | | extern ErrorStatusPBDefaultTypeInternal _ErrorStatusPB_default_instance_; |
72 | | class RemoteMethodPB; |
73 | | class RemoteMethodPBDefaultTypeInternal; |
74 | | extern RemoteMethodPBDefaultTypeInternal _RemoteMethodPB_default_instance_; |
75 | | class RequestHeader; |
76 | | class RequestHeaderDefaultTypeInternal; |
77 | | extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_; |
78 | | class ResponseHeader; |
79 | | class ResponseHeaderDefaultTypeInternal; |
80 | | extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_; |
81 | | } // namespace rpc |
82 | | } // namespace yb |
83 | | namespace yb { |
84 | | namespace rpc { |
85 | | |
86 | | enum ErrorStatusPB_RpcErrorCodePB { |
87 | | ErrorStatusPB_RpcErrorCodePB_FATAL_UNKNOWN = 10, |
88 | | ErrorStatusPB_RpcErrorCodePB_ERROR_APPLICATION = 1, |
89 | | ErrorStatusPB_RpcErrorCodePB_ERROR_NO_SUCH_METHOD = 2, |
90 | | ErrorStatusPB_RpcErrorCodePB_ERROR_NO_SUCH_SERVICE = 3, |
91 | | ErrorStatusPB_RpcErrorCodePB_ERROR_SERVER_TOO_BUSY = 4, |
92 | | ErrorStatusPB_RpcErrorCodePB_ERROR_INVALID_REQUEST = 5, |
93 | | ErrorStatusPB_RpcErrorCodePB_FATAL_SERVER_SHUTTING_DOWN = 11, |
94 | | ErrorStatusPB_RpcErrorCodePB_FATAL_DESERIALIZING_REQUEST = 13, |
95 | | ErrorStatusPB_RpcErrorCodePB_FATAL_VERSION_MISMATCH = 14, |
96 | | ErrorStatusPB_RpcErrorCodePB_FATAL_UNAUTHORIZED = 15 |
97 | | }; |
98 | | bool ErrorStatusPB_RpcErrorCodePB_IsValid(int value); |
99 | | const ErrorStatusPB_RpcErrorCodePB ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_MIN = ErrorStatusPB_RpcErrorCodePB_ERROR_APPLICATION; |
100 | | const ErrorStatusPB_RpcErrorCodePB ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_MAX = ErrorStatusPB_RpcErrorCodePB_FATAL_UNAUTHORIZED; |
101 | | const int ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_ARRAYSIZE = ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_MAX + 1; |
102 | | |
103 | | const ::google::protobuf::EnumDescriptor* ErrorStatusPB_RpcErrorCodePB_descriptor(); |
104 | 0 | inline const ::std::string& ErrorStatusPB_RpcErrorCodePB_Name(ErrorStatusPB_RpcErrorCodePB value) { |
105 | 0 | return ::google::protobuf::internal::NameOfEnum( |
106 | 0 | ErrorStatusPB_RpcErrorCodePB_descriptor(), value); |
107 | 0 | } |
108 | | inline bool ErrorStatusPB_RpcErrorCodePB_Parse( |
109 | 0 | const ::std::string& name, ErrorStatusPB_RpcErrorCodePB* value) { |
110 | 0 | return ::google::protobuf::internal::ParseNamedEnum<ErrorStatusPB_RpcErrorCodePB>( |
111 | 0 | ErrorStatusPB_RpcErrorCodePB_descriptor(), name, value); |
112 | 0 | } |
113 | | // =================================================================== |
114 | | |
115 | | class RemoteMethodPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.rpc.RemoteMethodPB) */ { |
116 | | public: |
117 | | RemoteMethodPB(); |
118 | | virtual ~RemoteMethodPB(); |
119 | | |
120 | | RemoteMethodPB(const RemoteMethodPB& from); |
121 | | |
122 | 0 | inline RemoteMethodPB& operator=(const RemoteMethodPB& from) { |
123 | 0 | CopyFrom(from); |
124 | 0 | return *this; |
125 | 0 | } |
126 | | #if LANG_CXX11 |
127 | | RemoteMethodPB(RemoteMethodPB&& from) noexcept |
128 | 0 | : RemoteMethodPB() { |
129 | 0 | *this = ::std::move(from); |
130 | 0 | } |
131 | | |
132 | 0 | inline RemoteMethodPB& operator=(RemoteMethodPB&& from) noexcept { |
133 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
134 | 0 | if (this != &from) InternalSwap(&from); |
135 | 0 | } else { |
136 | 0 | CopyFrom(from); |
137 | 0 | } |
138 | 0 | return *this; |
139 | 0 | } |
140 | | #endif |
141 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
142 | 0 | return _internal_metadata_.unknown_fields(); |
143 | 0 | } |
144 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
145 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
146 | 0 | } |
147 | | |
148 | | static const ::google::protobuf::Descriptor* descriptor(); |
149 | | static const RemoteMethodPB& default_instance(); |
150 | | |
151 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
152 | 1.63M | static inline const RemoteMethodPB* internal_default_instance() { |
153 | 1.63M | return reinterpret_cast<const RemoteMethodPB*>( |
154 | 1.63M | &_RemoteMethodPB_default_instance_); |
155 | 1.63M | } |
156 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
157 | | 0; |
158 | | |
159 | | void Swap(RemoteMethodPB* other); |
160 | 0 | friend void swap(RemoteMethodPB& a, RemoteMethodPB& b) { |
161 | 0 | a.Swap(&b); |
162 | 0 | } |
163 | | |
164 | | // implements Message ---------------------------------------------- |
165 | | |
166 | 0 | inline RemoteMethodPB* New() const PROTOBUF_FINAL { return New(NULL); } |
167 | | |
168 | | RemoteMethodPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
169 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
170 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
171 | | void CopyFrom(const RemoteMethodPB& from); |
172 | | void MergeFrom(const RemoteMethodPB& from); |
173 | | void Clear() PROTOBUF_FINAL; |
174 | | bool IsInitialized() const PROTOBUF_FINAL; |
175 | | |
176 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
177 | | bool MergePartialFromCodedStream( |
178 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
179 | | void SerializeWithCachedSizes( |
180 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
181 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
182 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
183 | 1.60M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
184 | | private: |
185 | | void SharedCtor(); |
186 | | void SharedDtor(); |
187 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
188 | | void InternalSwap(RemoteMethodPB* other); |
189 | | private: |
190 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
191 | 0 | return NULL; |
192 | 0 | } |
193 | 0 | inline void* MaybeArenaPtr() const { |
194 | 0 | return NULL; |
195 | 0 | } |
196 | | public: |
197 | | |
198 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
199 | | |
200 | | // nested types ---------------------------------------------------- |
201 | | |
202 | | // accessors ------------------------------------------------------- |
203 | | |
204 | | // required string service_name = 1; |
205 | | bool has_service_name() const; |
206 | | void clear_service_name(); |
207 | | static const int kServiceNameFieldNumber = 1; |
208 | | const ::std::string& service_name() const; |
209 | | void set_service_name(const ::std::string& value); |
210 | | #if LANG_CXX11 |
211 | | void set_service_name(::std::string&& value); |
212 | | #endif |
213 | | void set_service_name(const char* value); |
214 | | void set_service_name(const char* value, size_t size); |
215 | | ::std::string* mutable_service_name(); |
216 | | ::std::string* release_service_name(); |
217 | | void set_allocated_service_name(::std::string* service_name); |
218 | | |
219 | | // required string method_name = 2; |
220 | | bool has_method_name() const; |
221 | | void clear_method_name(); |
222 | | static const int kMethodNameFieldNumber = 2; |
223 | | const ::std::string& method_name() const; |
224 | | void set_method_name(const ::std::string& value); |
225 | | #if LANG_CXX11 |
226 | | void set_method_name(::std::string&& value); |
227 | | #endif |
228 | | void set_method_name(const char* value); |
229 | | void set_method_name(const char* value, size_t size); |
230 | | ::std::string* mutable_method_name(); |
231 | | ::std::string* release_method_name(); |
232 | | void set_allocated_method_name(::std::string* method_name); |
233 | | |
234 | | // @@protoc_insertion_point(class_scope:yb.rpc.RemoteMethodPB) |
235 | | private: |
236 | | void set_has_service_name(); |
237 | | void clear_has_service_name(); |
238 | | void set_has_method_name(); |
239 | | void clear_has_method_name(); |
240 | | |
241 | | // helper for ByteSizeLong() |
242 | | size_t RequiredFieldsByteSizeFallback() const; |
243 | | |
244 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
245 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
246 | | mutable int _cached_size_; |
247 | | ::google::protobuf::internal::ArenaStringPtr service_name_; |
248 | | ::google::protobuf::internal::ArenaStringPtr method_name_; |
249 | | friend struct ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::TableStruct; |
250 | | friend void ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::InitDefaultsRemoteMethodPBImpl(); |
251 | | }; |
252 | | // ------------------------------------------------------------------- |
253 | | |
254 | | class RequestHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.rpc.RequestHeader) */ { |
255 | | public: |
256 | | RequestHeader(); |
257 | | virtual ~RequestHeader(); |
258 | | |
259 | | RequestHeader(const RequestHeader& from); |
260 | | |
261 | 0 | inline RequestHeader& operator=(const RequestHeader& from) { |
262 | 0 | CopyFrom(from); |
263 | 0 | return *this; |
264 | 0 | } |
265 | | #if LANG_CXX11 |
266 | | RequestHeader(RequestHeader&& from) noexcept |
267 | 0 | : RequestHeader() { |
268 | 0 | *this = ::std::move(from); |
269 | 0 | } |
270 | | |
271 | 0 | inline RequestHeader& operator=(RequestHeader&& from) noexcept { |
272 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
273 | 0 | if (this != &from) InternalSwap(&from); |
274 | 0 | } else { |
275 | 0 | CopyFrom(from); |
276 | 0 | } |
277 | 0 | return *this; |
278 | 0 | } |
279 | | #endif |
280 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
281 | 0 | return _internal_metadata_.unknown_fields(); |
282 | 0 | } |
283 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
284 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
285 | 0 | } |
286 | | |
287 | | static const ::google::protobuf::Descriptor* descriptor(); |
288 | | static const RequestHeader& default_instance(); |
289 | | |
290 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
291 | 3.23M | static inline const RequestHeader* internal_default_instance() { |
292 | 3.23M | return reinterpret_cast<const RequestHeader*>( |
293 | 3.23M | &_RequestHeader_default_instance_); |
294 | 3.23M | } |
295 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
296 | | 1; |
297 | | |
298 | | void Swap(RequestHeader* other); |
299 | 0 | friend void swap(RequestHeader& a, RequestHeader& b) { |
300 | 0 | a.Swap(&b); |
301 | 0 | } |
302 | | |
303 | | // implements Message ---------------------------------------------- |
304 | | |
305 | 0 | inline RequestHeader* New() const PROTOBUF_FINAL { return New(NULL); } |
306 | | |
307 | | RequestHeader* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
308 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
309 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
310 | | void CopyFrom(const RequestHeader& from); |
311 | | void MergeFrom(const RequestHeader& from); |
312 | | void Clear() PROTOBUF_FINAL; |
313 | | bool IsInitialized() const PROTOBUF_FINAL; |
314 | | |
315 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
316 | | bool MergePartialFromCodedStream( |
317 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
318 | | void SerializeWithCachedSizes( |
319 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
320 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
321 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
322 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
323 | | private: |
324 | | void SharedCtor(); |
325 | | void SharedDtor(); |
326 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
327 | | void InternalSwap(RequestHeader* other); |
328 | | private: |
329 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
330 | 0 | return NULL; |
331 | 0 | } |
332 | 0 | inline void* MaybeArenaPtr() const { |
333 | 0 | return NULL; |
334 | 0 | } |
335 | | public: |
336 | | |
337 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
338 | | |
339 | | // nested types ---------------------------------------------------- |
340 | | |
341 | | // accessors ------------------------------------------------------- |
342 | | |
343 | | // optional .yb.rpc.RemoteMethodPB remote_method = 2; |
344 | | bool has_remote_method() const; |
345 | | void clear_remote_method(); |
346 | | static const int kRemoteMethodFieldNumber = 2; |
347 | | const ::yb::rpc::RemoteMethodPB& remote_method() const; |
348 | | ::yb::rpc::RemoteMethodPB* release_remote_method(); |
349 | | ::yb::rpc::RemoteMethodPB* mutable_remote_method(); |
350 | | void set_allocated_remote_method(::yb::rpc::RemoteMethodPB* remote_method); |
351 | | |
352 | | // optional int32 call_id = 1; |
353 | | bool has_call_id() const; |
354 | | void clear_call_id(); |
355 | | static const int kCallIdFieldNumber = 1; |
356 | | ::google::protobuf::int32 call_id() const; |
357 | | void set_call_id(::google::protobuf::int32 value); |
358 | | |
359 | | // optional uint32 timeout_millis = 3; |
360 | | bool has_timeout_millis() const; |
361 | | void clear_timeout_millis(); |
362 | | static const int kTimeoutMillisFieldNumber = 3; |
363 | | ::google::protobuf::uint32 timeout_millis() const; |
364 | | void set_timeout_millis(::google::protobuf::uint32 value); |
365 | | |
366 | | // @@protoc_insertion_point(class_scope:yb.rpc.RequestHeader) |
367 | | private: |
368 | | void set_has_call_id(); |
369 | | void clear_has_call_id(); |
370 | | void set_has_remote_method(); |
371 | | void clear_has_remote_method(); |
372 | | void set_has_timeout_millis(); |
373 | | void clear_has_timeout_millis(); |
374 | | |
375 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
376 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
377 | | mutable int _cached_size_; |
378 | | ::yb::rpc::RemoteMethodPB* remote_method_; |
379 | | ::google::protobuf::int32 call_id_; |
380 | | ::google::protobuf::uint32 timeout_millis_; |
381 | | friend struct ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::TableStruct; |
382 | | friend void ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::InitDefaultsRequestHeaderImpl(); |
383 | | }; |
384 | | // ------------------------------------------------------------------- |
385 | | |
386 | | class ResponseHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.rpc.ResponseHeader) */ { |
387 | | public: |
388 | | ResponseHeader(); |
389 | | virtual ~ResponseHeader(); |
390 | | |
391 | | ResponseHeader(const ResponseHeader& from); |
392 | | |
393 | 0 | inline ResponseHeader& operator=(const ResponseHeader& from) { |
394 | 0 | CopyFrom(from); |
395 | 0 | return *this; |
396 | 0 | } |
397 | | #if LANG_CXX11 |
398 | | ResponseHeader(ResponseHeader&& from) noexcept |
399 | 0 | : ResponseHeader() { |
400 | 0 | *this = ::std::move(from); |
401 | 0 | } |
402 | | |
403 | 19.5M | inline ResponseHeader& operator=(ResponseHeader&& from) noexcept { |
404 | 19.5M | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
405 | 19.5M | if (this != &from) InternalSwap(&from); |
406 | 5.08k | } else { |
407 | 5.08k | CopyFrom(from); |
408 | 5.08k | } |
409 | 19.5M | return *this; |
410 | 19.5M | } |
411 | | #endif |
412 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
413 | 0 | return _internal_metadata_.unknown_fields(); |
414 | 0 | } |
415 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
416 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
417 | 0 | } |
418 | | |
419 | | static const ::google::protobuf::Descriptor* descriptor(); |
420 | | static const ResponseHeader& default_instance(); |
421 | | |
422 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
423 | 64.6M | static inline const ResponseHeader* internal_default_instance() { |
424 | 64.6M | return reinterpret_cast<const ResponseHeader*>( |
425 | 64.6M | &_ResponseHeader_default_instance_); |
426 | 64.6M | } |
427 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
428 | | 2; |
429 | | |
430 | | void Swap(ResponseHeader* other); |
431 | 0 | friend void swap(ResponseHeader& a, ResponseHeader& b) { |
432 | 0 | a.Swap(&b); |
433 | 0 | } |
434 | | |
435 | | // implements Message ---------------------------------------------- |
436 | | |
437 | 0 | inline ResponseHeader* New() const PROTOBUF_FINAL { return New(NULL); } |
438 | | |
439 | | ResponseHeader* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
440 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
441 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
442 | | void CopyFrom(const ResponseHeader& from); |
443 | | void MergeFrom(const ResponseHeader& from); |
444 | | void Clear() PROTOBUF_FINAL; |
445 | | bool IsInitialized() const PROTOBUF_FINAL; |
446 | | |
447 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
448 | | bool MergePartialFromCodedStream( |
449 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
450 | | void SerializeWithCachedSizes( |
451 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
452 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
453 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
454 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
455 | | private: |
456 | | void SharedCtor(); |
457 | | void SharedDtor(); |
458 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
459 | | void InternalSwap(ResponseHeader* other); |
460 | | private: |
461 | 39.0M | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
462 | 39.0M | return NULL; |
463 | 39.0M | } |
464 | 0 | inline void* MaybeArenaPtr() const { |
465 | 0 | return NULL; |
466 | 0 | } |
467 | | public: |
468 | | |
469 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
470 | | |
471 | | // nested types ---------------------------------------------------- |
472 | | |
473 | | // accessors ------------------------------------------------------- |
474 | | |
475 | | // repeated uint32 sidecar_offsets = 3; |
476 | | int sidecar_offsets_size() const; |
477 | | void clear_sidecar_offsets(); |
478 | | static const int kSidecarOffsetsFieldNumber = 3; |
479 | | ::google::protobuf::uint32 sidecar_offsets(int index) const; |
480 | | void set_sidecar_offsets(int index, ::google::protobuf::uint32 value); |
481 | | void add_sidecar_offsets(::google::protobuf::uint32 value); |
482 | | const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
483 | | sidecar_offsets() const; |
484 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
485 | | mutable_sidecar_offsets(); |
486 | | |
487 | | // required int32 call_id = 1; |
488 | | bool has_call_id() const; |
489 | | void clear_call_id(); |
490 | | static const int kCallIdFieldNumber = 1; |
491 | | ::google::protobuf::int32 call_id() const; |
492 | | void set_call_id(::google::protobuf::int32 value); |
493 | | |
494 | | // optional bool is_error = 2 [default = false]; |
495 | | bool has_is_error() const; |
496 | | void clear_is_error(); |
497 | | static const int kIsErrorFieldNumber = 2; |
498 | | bool is_error() const; |
499 | | void set_is_error(bool value); |
500 | | |
501 | | // @@protoc_insertion_point(class_scope:yb.rpc.ResponseHeader) |
502 | | private: |
503 | | void set_has_call_id(); |
504 | | void clear_has_call_id(); |
505 | | void set_has_is_error(); |
506 | | void clear_has_is_error(); |
507 | | |
508 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
509 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
510 | | mutable int _cached_size_; |
511 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > sidecar_offsets_; |
512 | | ::google::protobuf::int32 call_id_; |
513 | | bool is_error_; |
514 | | friend struct ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::TableStruct; |
515 | | friend void ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::InitDefaultsResponseHeaderImpl(); |
516 | | }; |
517 | | // ------------------------------------------------------------------- |
518 | | |
519 | | class EmptyMessagePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.rpc.EmptyMessagePB) */ { |
520 | | public: |
521 | | EmptyMessagePB(); |
522 | | virtual ~EmptyMessagePB(); |
523 | | |
524 | | EmptyMessagePB(const EmptyMessagePB& from); |
525 | | |
526 | 0 | inline EmptyMessagePB& operator=(const EmptyMessagePB& from) { |
527 | 0 | CopyFrom(from); |
528 | 0 | return *this; |
529 | 0 | } |
530 | | #if LANG_CXX11 |
531 | | EmptyMessagePB(EmptyMessagePB&& from) noexcept |
532 | 0 | : EmptyMessagePB() { |
533 | 0 | *this = ::std::move(from); |
534 | 0 | } |
535 | | |
536 | 0 | inline EmptyMessagePB& operator=(EmptyMessagePB&& from) noexcept { |
537 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
538 | 0 | if (this != &from) InternalSwap(&from); |
539 | 0 | } else { |
540 | 0 | CopyFrom(from); |
541 | 0 | } |
542 | 0 | return *this; |
543 | 0 | } |
544 | | #endif |
545 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
546 | 0 | return _internal_metadata_.unknown_fields(); |
547 | 0 | } |
548 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
549 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
550 | 0 | } |
551 | | |
552 | | static const ::google::protobuf::Descriptor* descriptor(); |
553 | | static const EmptyMessagePB& default_instance(); |
554 | | |
555 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
556 | 17.2k | static inline const EmptyMessagePB* internal_default_instance() { |
557 | 17.2k | return reinterpret_cast<const EmptyMessagePB*>( |
558 | 17.2k | &_EmptyMessagePB_default_instance_); |
559 | 17.2k | } |
560 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
561 | | 3; |
562 | | |
563 | | void Swap(EmptyMessagePB* other); |
564 | 0 | friend void swap(EmptyMessagePB& a, EmptyMessagePB& b) { |
565 | 0 | a.Swap(&b); |
566 | 0 | } |
567 | | |
568 | | // implements Message ---------------------------------------------- |
569 | | |
570 | 0 | inline EmptyMessagePB* New() const PROTOBUF_FINAL { return New(NULL); } |
571 | | |
572 | | EmptyMessagePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
573 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
574 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
575 | | void CopyFrom(const EmptyMessagePB& from); |
576 | | void MergeFrom(const EmptyMessagePB& from); |
577 | | void Clear() PROTOBUF_FINAL; |
578 | | bool IsInitialized() const PROTOBUF_FINAL; |
579 | | |
580 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
581 | | bool MergePartialFromCodedStream( |
582 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
583 | | void SerializeWithCachedSizes( |
584 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
585 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
586 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
587 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
588 | | private: |
589 | | void SharedCtor(); |
590 | | void SharedDtor(); |
591 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
592 | | void InternalSwap(EmptyMessagePB* other); |
593 | | private: |
594 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
595 | 0 | return NULL; |
596 | 0 | } |
597 | 0 | inline void* MaybeArenaPtr() const { |
598 | 0 | return NULL; |
599 | 0 | } |
600 | | public: |
601 | | |
602 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
603 | | |
604 | | // nested types ---------------------------------------------------- |
605 | | |
606 | | // accessors ------------------------------------------------------- |
607 | | |
608 | | // @@protoc_insertion_point(class_scope:yb.rpc.EmptyMessagePB) |
609 | | private: |
610 | | |
611 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
612 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
613 | | mutable int _cached_size_; |
614 | | friend struct ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::TableStruct; |
615 | | friend void ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::InitDefaultsEmptyMessagePBImpl(); |
616 | | }; |
617 | | // ------------------------------------------------------------------- |
618 | | |
619 | | class ErrorStatusPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.rpc.ErrorStatusPB) */ { |
620 | | public: |
621 | | ErrorStatusPB(); |
622 | | virtual ~ErrorStatusPB(); |
623 | | |
624 | | ErrorStatusPB(const ErrorStatusPB& from); |
625 | | |
626 | 0 | inline ErrorStatusPB& operator=(const ErrorStatusPB& from) { |
627 | 0 | CopyFrom(from); |
628 | 0 | return *this; |
629 | 0 | } |
630 | | #if LANG_CXX11 |
631 | | ErrorStatusPB(ErrorStatusPB&& from) noexcept |
632 | 0 | : ErrorStatusPB() { |
633 | 0 | *this = ::std::move(from); |
634 | 0 | } |
635 | | |
636 | 0 | inline ErrorStatusPB& operator=(ErrorStatusPB&& from) noexcept { |
637 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
638 | 0 | if (this != &from) InternalSwap(&from); |
639 | 0 | } else { |
640 | 0 | CopyFrom(from); |
641 | 0 | } |
642 | 0 | return *this; |
643 | 0 | } |
644 | | #endif |
645 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
646 | 0 | return _internal_metadata_.unknown_fields(); |
647 | 0 | } |
648 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
649 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
650 | 0 | } |
651 | | |
652 | | static const ::google::protobuf::Descriptor* descriptor(); |
653 | | static const ErrorStatusPB& default_instance(); |
654 | | |
655 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
656 | 38.8k | static inline const ErrorStatusPB* internal_default_instance() { |
657 | 38.8k | return reinterpret_cast<const ErrorStatusPB*>( |
658 | 38.8k | &_ErrorStatusPB_default_instance_); |
659 | 38.8k | } |
660 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
661 | | 4; |
662 | | |
663 | | void Swap(ErrorStatusPB* other); |
664 | 0 | friend void swap(ErrorStatusPB& a, ErrorStatusPB& b) { |
665 | 0 | a.Swap(&b); |
666 | 0 | } |
667 | | |
668 | | // implements Message ---------------------------------------------- |
669 | | |
670 | 0 | inline ErrorStatusPB* New() const PROTOBUF_FINAL { return New(NULL); } |
671 | | |
672 | | ErrorStatusPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
673 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
674 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
675 | | void CopyFrom(const ErrorStatusPB& from); |
676 | | void MergeFrom(const ErrorStatusPB& from); |
677 | | void Clear() PROTOBUF_FINAL; |
678 | | bool IsInitialized() const PROTOBUF_FINAL; |
679 | | |
680 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
681 | | bool MergePartialFromCodedStream( |
682 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
683 | | void SerializeWithCachedSizes( |
684 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
685 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
686 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
687 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
688 | | private: |
689 | | void SharedCtor(); |
690 | | void SharedDtor(); |
691 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
692 | | void InternalSwap(ErrorStatusPB* other); |
693 | | private: |
694 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
695 | 0 | return NULL; |
696 | 0 | } |
697 | 0 | inline void* MaybeArenaPtr() const { |
698 | 0 | return NULL; |
699 | 0 | } |
700 | | public: |
701 | | |
702 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
703 | | |
704 | | // nested types ---------------------------------------------------- |
705 | | |
706 | | typedef ErrorStatusPB_RpcErrorCodePB RpcErrorCodePB; |
707 | | static const RpcErrorCodePB FATAL_UNKNOWN = |
708 | | ErrorStatusPB_RpcErrorCodePB_FATAL_UNKNOWN; |
709 | | static const RpcErrorCodePB ERROR_APPLICATION = |
710 | | ErrorStatusPB_RpcErrorCodePB_ERROR_APPLICATION; |
711 | | static const RpcErrorCodePB ERROR_NO_SUCH_METHOD = |
712 | | ErrorStatusPB_RpcErrorCodePB_ERROR_NO_SUCH_METHOD; |
713 | | static const RpcErrorCodePB ERROR_NO_SUCH_SERVICE = |
714 | | ErrorStatusPB_RpcErrorCodePB_ERROR_NO_SUCH_SERVICE; |
715 | | static const RpcErrorCodePB ERROR_SERVER_TOO_BUSY = |
716 | | ErrorStatusPB_RpcErrorCodePB_ERROR_SERVER_TOO_BUSY; |
717 | | static const RpcErrorCodePB ERROR_INVALID_REQUEST = |
718 | | ErrorStatusPB_RpcErrorCodePB_ERROR_INVALID_REQUEST; |
719 | | static const RpcErrorCodePB FATAL_SERVER_SHUTTING_DOWN = |
720 | | ErrorStatusPB_RpcErrorCodePB_FATAL_SERVER_SHUTTING_DOWN; |
721 | | static const RpcErrorCodePB FATAL_DESERIALIZING_REQUEST = |
722 | | ErrorStatusPB_RpcErrorCodePB_FATAL_DESERIALIZING_REQUEST; |
723 | | static const RpcErrorCodePB FATAL_VERSION_MISMATCH = |
724 | | ErrorStatusPB_RpcErrorCodePB_FATAL_VERSION_MISMATCH; |
725 | | static const RpcErrorCodePB FATAL_UNAUTHORIZED = |
726 | | ErrorStatusPB_RpcErrorCodePB_FATAL_UNAUTHORIZED; |
727 | 0 | static inline bool RpcErrorCodePB_IsValid(int value) { |
728 | 0 | return ErrorStatusPB_RpcErrorCodePB_IsValid(value); |
729 | 0 | } |
730 | | static const RpcErrorCodePB RpcErrorCodePB_MIN = |
731 | | ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_MIN; |
732 | | static const RpcErrorCodePB RpcErrorCodePB_MAX = |
733 | | ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_MAX; |
734 | | static const int RpcErrorCodePB_ARRAYSIZE = |
735 | | ErrorStatusPB_RpcErrorCodePB_RpcErrorCodePB_ARRAYSIZE; |
736 | | static inline const ::google::protobuf::EnumDescriptor* |
737 | 0 | RpcErrorCodePB_descriptor() { |
738 | 0 | return ErrorStatusPB_RpcErrorCodePB_descriptor(); |
739 | 0 | } |
740 | 0 | static inline const ::std::string& RpcErrorCodePB_Name(RpcErrorCodePB value) { |
741 | 0 | return ErrorStatusPB_RpcErrorCodePB_Name(value); |
742 | 0 | } |
743 | | static inline bool RpcErrorCodePB_Parse(const ::std::string& name, |
744 | 0 | RpcErrorCodePB* value) { |
745 | 0 | return ErrorStatusPB_RpcErrorCodePB_Parse(name, value); |
746 | 0 | } |
747 | | |
748 | | // accessors ------------------------------------------------------- |
749 | | |
750 | | // required string message = 1; |
751 | | bool has_message() const; |
752 | | void clear_message(); |
753 | | static const int kMessageFieldNumber = 1; |
754 | | const ::std::string& message() const; |
755 | | void set_message(const ::std::string& value); |
756 | | #if LANG_CXX11 |
757 | | void set_message(::std::string&& value); |
758 | | #endif |
759 | | void set_message(const char* value); |
760 | | void set_message(const char* value, size_t size); |
761 | | ::std::string* mutable_message(); |
762 | | ::std::string* release_message(); |
763 | | void set_allocated_message(::std::string* message); |
764 | | |
765 | | // optional .yb.rpc.ErrorStatusPB.RpcErrorCodePB code = 2; |
766 | | bool has_code() const; |
767 | | void clear_code(); |
768 | | static const int kCodeFieldNumber = 2; |
769 | | ::yb::rpc::ErrorStatusPB_RpcErrorCodePB code() const; |
770 | | void set_code(::yb::rpc::ErrorStatusPB_RpcErrorCodePB value); |
771 | | |
772 | | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ErrorStatusPB) |
773 | | // @@protoc_insertion_point(class_scope:yb.rpc.ErrorStatusPB) |
774 | | private: |
775 | | void set_has_message(); |
776 | | void clear_has_message(); |
777 | | void set_has_code(); |
778 | | void clear_has_code(); |
779 | | |
780 | | ::google::protobuf::internal::ExtensionSet _extensions_; |
781 | | |
782 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
783 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
784 | | mutable int _cached_size_; |
785 | | ::google::protobuf::internal::ArenaStringPtr message_; |
786 | | int code_; |
787 | | friend struct ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::TableStruct; |
788 | | friend void ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::InitDefaultsErrorStatusPBImpl(); |
789 | | }; |
790 | | // =================================================================== |
791 | | |
792 | | |
793 | | // =================================================================== |
794 | | |
795 | | #ifdef __GNUC__ |
796 | | #pragma GCC diagnostic push |
797 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
798 | | #endif // __GNUC__ |
799 | | // RemoteMethodPB |
800 | | |
801 | | // required string service_name = 1; |
802 | 0 | inline bool RemoteMethodPB::has_service_name() const { |
803 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
804 | 0 | } |
805 | 1.60M | inline void RemoteMethodPB::set_has_service_name() { |
806 | 1.60M | _has_bits_[0] |= 0x00000001u; |
807 | 1.60M | } |
808 | 1.60M | inline void RemoteMethodPB::clear_has_service_name() { |
809 | 1.60M | _has_bits_[0] &= ~0x00000001u; |
810 | 1.60M | } |
811 | 0 | inline void RemoteMethodPB::clear_service_name() { |
812 | 0 | service_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
813 | 0 | clear_has_service_name(); |
814 | 0 | } |
815 | 6.40M | inline const ::std::string& RemoteMethodPB::service_name() const { |
816 | | // @@protoc_insertion_point(field_get:yb.rpc.RemoteMethodPB.service_name) |
817 | 6.40M | return service_name_.GetNoArena(); |
818 | 6.40M | } |
819 | 1 | inline void RemoteMethodPB::set_service_name(const ::std::string& value) { |
820 | 1 | set_has_service_name(); |
821 | 1 | service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
822 | | // @@protoc_insertion_point(field_set:yb.rpc.RemoteMethodPB.service_name) |
823 | 1 | } |
824 | | #if LANG_CXX11 |
825 | 1 | inline void RemoteMethodPB::set_service_name(::std::string&& value) { |
826 | 1 | set_has_service_name(); |
827 | 1 | service_name_.SetNoArena( |
828 | 1 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
829 | | // @@protoc_insertion_point(field_set_rvalue:yb.rpc.RemoteMethodPB.service_name) |
830 | 1 | } |
831 | | #endif |
832 | 0 | inline void RemoteMethodPB::set_service_name(const char* value) { |
833 | 0 | GOOGLE_DCHECK(value != NULL); |
834 | 0 | set_has_service_name(); |
835 | 0 | service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
836 | 0 | // @@protoc_insertion_point(field_set_char:yb.rpc.RemoteMethodPB.service_name) |
837 | 0 | } |
838 | 0 | inline void RemoteMethodPB::set_service_name(const char* value, size_t size) { |
839 | 0 | set_has_service_name(); |
840 | 0 | service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
841 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
842 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.rpc.RemoteMethodPB.service_name) |
843 | 0 | } |
844 | 0 | inline ::std::string* RemoteMethodPB::mutable_service_name() { |
845 | 0 | set_has_service_name(); |
846 | 0 | // @@protoc_insertion_point(field_mutable:yb.rpc.RemoteMethodPB.service_name) |
847 | 0 | return service_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
848 | 0 | } |
849 | 1.60M | inline ::std::string* RemoteMethodPB::release_service_name() { |
850 | | // @@protoc_insertion_point(field_release:yb.rpc.RemoteMethodPB.service_name) |
851 | 1.60M | clear_has_service_name(); |
852 | 1.60M | return service_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
853 | 1.60M | } |
854 | 1.60M | inline void RemoteMethodPB::set_allocated_service_name(::std::string* service_name) { |
855 | 1.60M | if (service_name != NULL) { |
856 | 1.60M | set_has_service_name(); |
857 | 1 | } else { |
858 | 1 | clear_has_service_name(); |
859 | 1 | } |
860 | 1.60M | service_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service_name); |
861 | | // @@protoc_insertion_point(field_set_allocated:yb.rpc.RemoteMethodPB.service_name) |
862 | 1.60M | } |
863 | | |
864 | | // required string method_name = 2; |
865 | 0 | inline bool RemoteMethodPB::has_method_name() const { |
866 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
867 | 0 | } |
868 | 1.60M | inline void RemoteMethodPB::set_has_method_name() { |
869 | 1.60M | _has_bits_[0] |= 0x00000002u; |
870 | 1.60M | } |
871 | 1.60M | inline void RemoteMethodPB::clear_has_method_name() { |
872 | 1.60M | _has_bits_[0] &= ~0x00000002u; |
873 | 1.60M | } |
874 | 0 | inline void RemoteMethodPB::clear_method_name() { |
875 | 0 | method_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
876 | 0 | clear_has_method_name(); |
877 | 0 | } |
878 | 6.40M | inline const ::std::string& RemoteMethodPB::method_name() const { |
879 | | // @@protoc_insertion_point(field_get:yb.rpc.RemoteMethodPB.method_name) |
880 | 6.40M | return method_name_.GetNoArena(); |
881 | 6.40M | } |
882 | 1 | inline void RemoteMethodPB::set_method_name(const ::std::string& value) { |
883 | 1 | set_has_method_name(); |
884 | 1 | method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
885 | | // @@protoc_insertion_point(field_set:yb.rpc.RemoteMethodPB.method_name) |
886 | 1 | } |
887 | | #if LANG_CXX11 |
888 | 1 | inline void RemoteMethodPB::set_method_name(::std::string&& value) { |
889 | 1 | set_has_method_name(); |
890 | 1 | method_name_.SetNoArena( |
891 | 1 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
892 | | // @@protoc_insertion_point(field_set_rvalue:yb.rpc.RemoteMethodPB.method_name) |
893 | 1 | } |
894 | | #endif |
895 | 0 | inline void RemoteMethodPB::set_method_name(const char* value) { |
896 | 0 | GOOGLE_DCHECK(value != NULL); |
897 | 0 | set_has_method_name(); |
898 | 0 | method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
899 | 0 | // @@protoc_insertion_point(field_set_char:yb.rpc.RemoteMethodPB.method_name) |
900 | 0 | } |
901 | 0 | inline void RemoteMethodPB::set_method_name(const char* value, size_t size) { |
902 | 0 | set_has_method_name(); |
903 | 0 | method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
904 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
905 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.rpc.RemoteMethodPB.method_name) |
906 | 0 | } |
907 | 0 | inline ::std::string* RemoteMethodPB::mutable_method_name() { |
908 | 0 | set_has_method_name(); |
909 | 0 | // @@protoc_insertion_point(field_mutable:yb.rpc.RemoteMethodPB.method_name) |
910 | 0 | return method_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
911 | 0 | } |
912 | 1.60M | inline ::std::string* RemoteMethodPB::release_method_name() { |
913 | | // @@protoc_insertion_point(field_release:yb.rpc.RemoteMethodPB.method_name) |
914 | 1.60M | clear_has_method_name(); |
915 | 1.60M | return method_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
916 | 1.60M | } |
917 | 1.60M | inline void RemoteMethodPB::set_allocated_method_name(::std::string* method_name) { |
918 | 1.60M | if (method_name != NULL) { |
919 | 1.60M | set_has_method_name(); |
920 | 18.4E | } else { |
921 | 18.4E | clear_has_method_name(); |
922 | 18.4E | } |
923 | 1.60M | method_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), method_name); |
924 | | // @@protoc_insertion_point(field_set_allocated:yb.rpc.RemoteMethodPB.method_name) |
925 | 1.60M | } |
926 | | |
927 | | // ------------------------------------------------------------------- |
928 | | |
929 | | // RequestHeader |
930 | | |
931 | | // optional int32 call_id = 1; |
932 | 1.60M | inline bool RequestHeader::has_call_id() const { |
933 | 1.60M | return (_has_bits_[0] & 0x00000002u) != 0; |
934 | 1.60M | } |
935 | 2 | inline void RequestHeader::set_has_call_id() { |
936 | 2 | _has_bits_[0] |= 0x00000002u; |
937 | 2 | } |
938 | 0 | inline void RequestHeader::clear_has_call_id() { |
939 | 0 | _has_bits_[0] &= ~0x00000002u; |
940 | 0 | } |
941 | 0 | inline void RequestHeader::clear_call_id() { |
942 | 0 | call_id_ = 0; |
943 | 0 | clear_has_call_id(); |
944 | 0 | } |
945 | 0 | inline ::google::protobuf::int32 RequestHeader::call_id() const { |
946 | 0 | // @@protoc_insertion_point(field_get:yb.rpc.RequestHeader.call_id) |
947 | 0 | return call_id_; |
948 | 0 | } |
949 | 2 | inline void RequestHeader::set_call_id(::google::protobuf::int32 value) { |
950 | 2 | set_has_call_id(); |
951 | 2 | call_id_ = value; |
952 | | // @@protoc_insertion_point(field_set:yb.rpc.RequestHeader.call_id) |
953 | 2 | } |
954 | | |
955 | | // optional .yb.rpc.RemoteMethodPB remote_method = 2; |
956 | 3.20M | inline bool RequestHeader::has_remote_method() const { |
957 | 3.20M | return (_has_bits_[0] & 0x00000001u) != 0; |
958 | 3.20M | } |
959 | 6.40M | inline void RequestHeader::set_has_remote_method() { |
960 | 6.40M | _has_bits_[0] |= 0x00000001u; |
961 | 6.40M | } |
962 | 0 | inline void RequestHeader::clear_has_remote_method() { |
963 | 0 | _has_bits_[0] &= ~0x00000001u; |
964 | 0 | } |
965 | 0 | inline void RequestHeader::clear_remote_method() { |
966 | 0 | if (remote_method_ != NULL) remote_method_->Clear(); |
967 | 0 | clear_has_remote_method(); |
968 | 0 | } |
969 | 2 | inline const ::yb::rpc::RemoteMethodPB& RequestHeader::remote_method() const { |
970 | 2 | const ::yb::rpc::RemoteMethodPB* p = remote_method_; |
971 | | // @@protoc_insertion_point(field_get:yb.rpc.RequestHeader.remote_method) |
972 | 2 | return p != NULL ? *p : *reinterpret_cast<const ::yb::rpc::RemoteMethodPB*>( |
973 | 0 | &::yb::rpc::_RemoteMethodPB_default_instance_); |
974 | 2 | } |
975 | 0 | inline ::yb::rpc::RemoteMethodPB* RequestHeader::release_remote_method() { |
976 | 0 | // @@protoc_insertion_point(field_release:yb.rpc.RequestHeader.remote_method) |
977 | 0 | clear_has_remote_method(); |
978 | 0 | ::yb::rpc::RemoteMethodPB* temp = remote_method_; |
979 | 0 | remote_method_ = NULL; |
980 | 0 | return temp; |
981 | 0 | } |
982 | 6.40M | inline ::yb::rpc::RemoteMethodPB* RequestHeader::mutable_remote_method() { |
983 | 6.40M | set_has_remote_method(); |
984 | 6.40M | if (remote_method_ == NULL) { |
985 | 1.60M | remote_method_ = new ::yb::rpc::RemoteMethodPB; |
986 | 1.60M | } |
987 | | // @@protoc_insertion_point(field_mutable:yb.rpc.RequestHeader.remote_method) |
988 | 6.40M | return remote_method_; |
989 | 6.40M | } |
990 | 0 | inline void RequestHeader::set_allocated_remote_method(::yb::rpc::RemoteMethodPB* remote_method) { |
991 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
992 | 0 | if (message_arena == NULL) { |
993 | 0 | delete remote_method_; |
994 | 0 | } |
995 | 0 | if (remote_method) { |
996 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
997 | 0 | if (message_arena != submessage_arena) { |
998 | 0 | remote_method = ::google::protobuf::internal::GetOwnedMessage( |
999 | 0 | message_arena, remote_method, submessage_arena); |
1000 | 0 | } |
1001 | 0 | set_has_remote_method(); |
1002 | 0 | } else { |
1003 | 0 | clear_has_remote_method(); |
1004 | 0 | } |
1005 | 0 | remote_method_ = remote_method; |
1006 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.rpc.RequestHeader.remote_method) |
1007 | 0 | } |
1008 | | |
1009 | | // optional uint32 timeout_millis = 3; |
1010 | 1.60M | inline bool RequestHeader::has_timeout_millis() const { |
1011 | 1.60M | return (_has_bits_[0] & 0x00000004u) != 0; |
1012 | 1.60M | } |
1013 | 1 | inline void RequestHeader::set_has_timeout_millis() { |
1014 | 1 | _has_bits_[0] |= 0x00000004u; |
1015 | 1 | } |
1016 | 0 | inline void RequestHeader::clear_has_timeout_millis() { |
1017 | 0 | _has_bits_[0] &= ~0x00000004u; |
1018 | 0 | } |
1019 | 0 | inline void RequestHeader::clear_timeout_millis() { |
1020 | 0 | timeout_millis_ = 0u; |
1021 | 0 | clear_has_timeout_millis(); |
1022 | 0 | } |
1023 | 0 | inline ::google::protobuf::uint32 RequestHeader::timeout_millis() const { |
1024 | 0 | // @@protoc_insertion_point(field_get:yb.rpc.RequestHeader.timeout_millis) |
1025 | 0 | return timeout_millis_; |
1026 | 0 | } |
1027 | 1 | inline void RequestHeader::set_timeout_millis(::google::protobuf::uint32 value) { |
1028 | 1 | set_has_timeout_millis(); |
1029 | 1 | timeout_millis_ = value; |
1030 | | // @@protoc_insertion_point(field_set:yb.rpc.RequestHeader.timeout_millis) |
1031 | 1 | } |
1032 | | |
1033 | | // ------------------------------------------------------------------- |
1034 | | |
1035 | | // ResponseHeader |
1036 | | |
1037 | | // required int32 call_id = 1; |
1038 | 19.5M | inline bool ResponseHeader::has_call_id() const { |
1039 | 19.5M | return (_has_bits_[0] & 0x00000001u) != 0; |
1040 | 19.5M | } |
1041 | 39.1M | inline void ResponseHeader::set_has_call_id() { |
1042 | 39.1M | _has_bits_[0] |= 0x00000001u; |
1043 | 39.1M | } |
1044 | 0 | inline void ResponseHeader::clear_has_call_id() { |
1045 | 0 | _has_bits_[0] &= ~0x00000001u; |
1046 | 0 | } |
1047 | 0 | inline void ResponseHeader::clear_call_id() { |
1048 | 0 | call_id_ = 0; |
1049 | 0 | clear_has_call_id(); |
1050 | 0 | } |
1051 | 58.7M | inline ::google::protobuf::int32 ResponseHeader::call_id() const { |
1052 | | // @@protoc_insertion_point(field_get:yb.rpc.ResponseHeader.call_id) |
1053 | 58.7M | return call_id_; |
1054 | 58.7M | } |
1055 | 19.5M | inline void ResponseHeader::set_call_id(::google::protobuf::int32 value) { |
1056 | 19.5M | set_has_call_id(); |
1057 | 19.5M | call_id_ = value; |
1058 | | // @@protoc_insertion_point(field_set:yb.rpc.ResponseHeader.call_id) |
1059 | 19.5M | } |
1060 | | |
1061 | | // optional bool is_error = 2 [default = false]; |
1062 | 19.5M | inline bool ResponseHeader::has_is_error() const { |
1063 | 19.5M | return (_has_bits_[0] & 0x00000002u) != 0; |
1064 | 19.5M | } |
1065 | 39.0M | inline void ResponseHeader::set_has_is_error() { |
1066 | 39.0M | _has_bits_[0] |= 0x00000002u; |
1067 | 39.0M | } |
1068 | 0 | inline void ResponseHeader::clear_has_is_error() { |
1069 | 0 | _has_bits_[0] &= ~0x00000002u; |
1070 | 0 | } |
1071 | 0 | inline void ResponseHeader::clear_is_error() { |
1072 | 0 | is_error_ = false; |
1073 | 0 | clear_has_is_error(); |
1074 | 0 | } |
1075 | 39.0M | inline bool ResponseHeader::is_error() const { |
1076 | | // @@protoc_insertion_point(field_get:yb.rpc.ResponseHeader.is_error) |
1077 | 39.0M | return is_error_; |
1078 | 39.0M | } |
1079 | 19.5M | inline void ResponseHeader::set_is_error(bool value) { |
1080 | 19.5M | set_has_is_error(); |
1081 | 19.5M | is_error_ = value; |
1082 | | // @@protoc_insertion_point(field_set:yb.rpc.ResponseHeader.is_error) |
1083 | 19.5M | } |
1084 | | |
1085 | | // repeated uint32 sidecar_offsets = 3; |
1086 | 39.1M | inline int ResponseHeader::sidecar_offsets_size() const { |
1087 | 39.1M | return sidecar_offsets_.size(); |
1088 | 39.1M | } |
1089 | 0 | inline void ResponseHeader::clear_sidecar_offsets() { |
1090 | 0 | sidecar_offsets_.Clear(); |
1091 | 0 | } |
1092 | 1.79M | inline ::google::protobuf::uint32 ResponseHeader::sidecar_offsets(int index) const { |
1093 | | // @@protoc_insertion_point(field_get:yb.rpc.ResponseHeader.sidecar_offsets) |
1094 | 1.79M | return sidecar_offsets_.Get(index); |
1095 | 1.79M | } |
1096 | 0 | inline void ResponseHeader::set_sidecar_offsets(int index, ::google::protobuf::uint32 value) { |
1097 | 0 | sidecar_offsets_.Set(index, value); |
1098 | 0 | // @@protoc_insertion_point(field_set:yb.rpc.ResponseHeader.sidecar_offsets) |
1099 | 0 | } |
1100 | 0 | inline void ResponseHeader::add_sidecar_offsets(::google::protobuf::uint32 value) { |
1101 | 0 | sidecar_offsets_.Add(value); |
1102 | 0 | // @@protoc_insertion_point(field_add:yb.rpc.ResponseHeader.sidecar_offsets) |
1103 | 0 | } |
1104 | | inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
1105 | 1.79M | ResponseHeader::sidecar_offsets() const { |
1106 | | // @@protoc_insertion_point(field_list:yb.rpc.ResponseHeader.sidecar_offsets) |
1107 | 1.79M | return sidecar_offsets_; |
1108 | 1.79M | } |
1109 | | inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
1110 | 21.6M | ResponseHeader::mutable_sidecar_offsets() { |
1111 | | // @@protoc_insertion_point(field_mutable_list:yb.rpc.ResponseHeader.sidecar_offsets) |
1112 | 21.6M | return &sidecar_offsets_; |
1113 | 21.6M | } |
1114 | | |
1115 | | // ------------------------------------------------------------------- |
1116 | | |
1117 | | // EmptyMessagePB |
1118 | | |
1119 | | // ------------------------------------------------------------------- |
1120 | | |
1121 | | // ErrorStatusPB |
1122 | | |
1123 | | // required string message = 1; |
1124 | 4.66k | inline bool ErrorStatusPB::has_message() const { |
1125 | 4.66k | return (_has_bits_[0] & 0x00000001u) != 0; |
1126 | 4.66k | } |
1127 | 4.62k | inline void ErrorStatusPB::set_has_message() { |
1128 | 4.62k | _has_bits_[0] |= 0x00000001u; |
1129 | 4.62k | } |
1130 | 0 | inline void ErrorStatusPB::clear_has_message() { |
1131 | 0 | _has_bits_[0] &= ~0x00000001u; |
1132 | 0 | } |
1133 | 0 | inline void ErrorStatusPB::clear_message() { |
1134 | 0 | message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1135 | 0 | clear_has_message(); |
1136 | 0 | } |
1137 | 18.4k | inline const ::std::string& ErrorStatusPB::message() const { |
1138 | | // @@protoc_insertion_point(field_get:yb.rpc.ErrorStatusPB.message) |
1139 | 18.4k | return message_.GetNoArena(); |
1140 | 18.4k | } |
1141 | 1.02k | inline void ErrorStatusPB::set_message(const ::std::string& value) { |
1142 | 1.02k | set_has_message(); |
1143 | 1.02k | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1144 | | // @@protoc_insertion_point(field_set:yb.rpc.ErrorStatusPB.message) |
1145 | 1.02k | } |
1146 | | #if LANG_CXX11 |
1147 | 1.31k | inline void ErrorStatusPB::set_message(::std::string&& value) { |
1148 | 1.31k | set_has_message(); |
1149 | 1.31k | message_.SetNoArena( |
1150 | 1.31k | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1151 | | // @@protoc_insertion_point(field_set_rvalue:yb.rpc.ErrorStatusPB.message) |
1152 | 1.31k | } |
1153 | | #endif |
1154 | 0 | inline void ErrorStatusPB::set_message(const char* value) { |
1155 | 0 | GOOGLE_DCHECK(value != NULL); |
1156 | 0 | set_has_message(); |
1157 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1158 | 0 | // @@protoc_insertion_point(field_set_char:yb.rpc.ErrorStatusPB.message) |
1159 | 0 | } |
1160 | 0 | inline void ErrorStatusPB::set_message(const char* value, size_t size) { |
1161 | 0 | set_has_message(); |
1162 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1163 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1164 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.rpc.ErrorStatusPB.message) |
1165 | 0 | } |
1166 | 2.28k | inline ::std::string* ErrorStatusPB::mutable_message() { |
1167 | 2.28k | set_has_message(); |
1168 | | // @@protoc_insertion_point(field_mutable:yb.rpc.ErrorStatusPB.message) |
1169 | 2.28k | return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1170 | 2.28k | } |
1171 | 0 | inline ::std::string* ErrorStatusPB::release_message() { |
1172 | 0 | // @@protoc_insertion_point(field_release:yb.rpc.ErrorStatusPB.message) |
1173 | 0 | clear_has_message(); |
1174 | 0 | return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1175 | 0 | } |
1176 | 0 | inline void ErrorStatusPB::set_allocated_message(::std::string* message) { |
1177 | 0 | if (message != NULL) { |
1178 | 0 | set_has_message(); |
1179 | 0 | } else { |
1180 | 0 | clear_has_message(); |
1181 | 0 | } |
1182 | 0 | message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); |
1183 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.rpc.ErrorStatusPB.message) |
1184 | 0 | } |
1185 | | |
1186 | | // optional .yb.rpc.ErrorStatusPB.RpcErrorCodePB code = 2; |
1187 | 8.10k | inline bool ErrorStatusPB::has_code() const { |
1188 | 8.10k | return (_has_bits_[0] & 0x00000002u) != 0; |
1189 | 8.10k | } |
1190 | 2.57k | inline void ErrorStatusPB::set_has_code() { |
1191 | 2.57k | _has_bits_[0] |= 0x00000002u; |
1192 | 2.57k | } |
1193 | 0 | inline void ErrorStatusPB::clear_has_code() { |
1194 | 0 | _has_bits_[0] &= ~0x00000002u; |
1195 | 0 | } |
1196 | 0 | inline void ErrorStatusPB::clear_code() { |
1197 | 0 | code_ = 10; |
1198 | 0 | clear_has_code(); |
1199 | 0 | } |
1200 | 6.32k | inline ::yb::rpc::ErrorStatusPB_RpcErrorCodePB ErrorStatusPB::code() const { |
1201 | | // @@protoc_insertion_point(field_get:yb.rpc.ErrorStatusPB.code) |
1202 | 6.32k | return static_cast< ::yb::rpc::ErrorStatusPB_RpcErrorCodePB >(code_); |
1203 | 6.32k | } |
1204 | 2.56k | inline void ErrorStatusPB::set_code(::yb::rpc::ErrorStatusPB_RpcErrorCodePB value) { |
1205 | 2.56k | assert(::yb::rpc::ErrorStatusPB_RpcErrorCodePB_IsValid(value)); |
1206 | 2.56k | set_has_code(); |
1207 | 2.56k | code_ = value; |
1208 | | // @@protoc_insertion_point(field_set:yb.rpc.ErrorStatusPB.code) |
1209 | 2.56k | } |
1210 | | |
1211 | | #ifdef __GNUC__ |
1212 | | #pragma GCC diagnostic pop |
1213 | | #endif // __GNUC__ |
1214 | | // ------------------------------------------------------------------- |
1215 | | |
1216 | | // ------------------------------------------------------------------- |
1217 | | |
1218 | | // ------------------------------------------------------------------- |
1219 | | |
1220 | | // ------------------------------------------------------------------- |
1221 | | |
1222 | | |
1223 | | // @@protoc_insertion_point(namespace_scope) |
1224 | | |
1225 | | } // namespace rpc |
1226 | | } // namespace yb |
1227 | | |
1228 | | namespace google { |
1229 | | namespace protobuf { |
1230 | | |
1231 | | template <> struct is_proto_enum< ::yb::rpc::ErrorStatusPB_RpcErrorCodePB> : ::google::protobuf::internal::true_type {}; |
1232 | | template <> |
1233 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::rpc::ErrorStatusPB_RpcErrorCodePB>() { |
1234 | 0 | return ::yb::rpc::ErrorStatusPB_RpcErrorCodePB_descriptor(); |
1235 | 0 | } |
1236 | | |
1237 | | } // namespace protobuf |
1238 | | } // namespace google |
1239 | | |
1240 | | // @@protoc_insertion_point(global_scope) |
1241 | | |
1242 | | #endif // PROTOBUF_yb_2frpc_2frpc_5fheader_2eproto__INCLUDED |