/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/rpc/any.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/rpc/any.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2frpc_2fany_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2frpc_2fany_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/unknown_field_set.h> |
32 | | // @@protoc_insertion_point(includes) |
33 | | |
34 | | namespace protobuf_yb_2frpc_2fany_2eproto { |
35 | | // Internal implementation detail -- do not use these members. |
36 | | struct TableStruct { |
37 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
38 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
39 | | static const ::google::protobuf::internal::ParseTable schema[1]; |
40 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
41 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
42 | | static const ::google::protobuf::uint32 offsets[]; |
43 | | }; |
44 | | void AddDescriptors(); |
45 | | void InitDefaultsAnyImpl(); |
46 | | void InitDefaultsAny(); |
47 | 123 | inline void InitDefaults() { |
48 | 123 | InitDefaultsAny(); |
49 | 123 | } |
50 | | } // namespace protobuf_yb_2frpc_2fany_2eproto |
51 | | namespace yb { |
52 | | namespace rpc { |
53 | | class Any; |
54 | | class AnyDefaultTypeInternal; |
55 | | extern AnyDefaultTypeInternal _Any_default_instance_; |
56 | | } // namespace rpc |
57 | | } // namespace yb |
58 | | namespace yb { |
59 | | namespace rpc { |
60 | | |
61 | | // =================================================================== |
62 | | |
63 | | class Any : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.rpc.Any) */ { |
64 | | public: |
65 | | Any(); |
66 | | virtual ~Any(); |
67 | | |
68 | | Any(const Any& from); |
69 | | |
70 | 0 | inline Any& operator=(const Any& from) { |
71 | 0 | CopyFrom(from); |
72 | 0 | return *this; |
73 | 0 | } |
74 | | #if LANG_CXX11 |
75 | | Any(Any&& from) noexcept |
76 | 0 | : Any() { |
77 | 0 | *this = ::std::move(from); |
78 | 0 | } |
79 | | |
80 | 0 | inline Any& operator=(Any&& from) noexcept { |
81 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
82 | 0 | if (this != &from) InternalSwap(&from); |
83 | 0 | } else { |
84 | 0 | CopyFrom(from); |
85 | 0 | } |
86 | 0 | return *this; |
87 | 0 | } |
88 | | #endif |
89 | | static const ::google::protobuf::Descriptor* descriptor(); |
90 | | static const Any& default_instance(); |
91 | | |
92 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
93 | 123 | static inline const Any* internal_default_instance() { |
94 | 123 | return reinterpret_cast<const Any*>( |
95 | 123 | &_Any_default_instance_); |
96 | 123 | } |
97 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
98 | | 0; |
99 | | |
100 | | void Swap(Any* other); |
101 | 0 | friend void swap(Any& a, Any& b) { |
102 | 0 | a.Swap(&b); |
103 | 0 | } |
104 | | |
105 | | // implements Message ---------------------------------------------- |
106 | | |
107 | 0 | inline Any* New() const PROTOBUF_FINAL { return New(NULL); } |
108 | | |
109 | | Any* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
110 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
111 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
112 | | void CopyFrom(const Any& from); |
113 | | void MergeFrom(const Any& from); |
114 | | void Clear() PROTOBUF_FINAL; |
115 | | bool IsInitialized() const PROTOBUF_FINAL; |
116 | | |
117 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
118 | | bool MergePartialFromCodedStream( |
119 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
120 | | void SerializeWithCachedSizes( |
121 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
122 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
123 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
124 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
125 | | private: |
126 | | void SharedCtor(); |
127 | | void SharedDtor(); |
128 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
129 | | void InternalSwap(Any* other); |
130 | | private: |
131 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
132 | 0 | return NULL; |
133 | 0 | } |
134 | 0 | inline void* MaybeArenaPtr() const { |
135 | 0 | return NULL; |
136 | 0 | } |
137 | | public: |
138 | | |
139 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
140 | | |
141 | | // nested types ---------------------------------------------------- |
142 | | |
143 | | // accessors ------------------------------------------------------- |
144 | | |
145 | | // string type_url = 1; |
146 | | void clear_type_url(); |
147 | | static const int kTypeUrlFieldNumber = 1; |
148 | | const ::std::string& type_url() const; |
149 | | void set_type_url(const ::std::string& value); |
150 | | #if LANG_CXX11 |
151 | | void set_type_url(::std::string&& value); |
152 | | #endif |
153 | | void set_type_url(const char* value); |
154 | | void set_type_url(const char* value, size_t size); |
155 | | ::std::string* mutable_type_url(); |
156 | | ::std::string* release_type_url(); |
157 | | void set_allocated_type_url(::std::string* type_url); |
158 | | |
159 | | // bytes value = 2; |
160 | | void clear_value(); |
161 | | static const int kValueFieldNumber = 2; |
162 | | const ::std::string& value() const; |
163 | | void set_value(const ::std::string& value); |
164 | | #if LANG_CXX11 |
165 | | void set_value(::std::string&& value); |
166 | | #endif |
167 | | void set_value(const char* value); |
168 | | void set_value(const void* value, size_t size); |
169 | | ::std::string* mutable_value(); |
170 | | ::std::string* release_value(); |
171 | | void set_allocated_value(::std::string* value); |
172 | | |
173 | | // @@protoc_insertion_point(class_scope:yb.rpc.Any) |
174 | | private: |
175 | | |
176 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
177 | | ::google::protobuf::internal::ArenaStringPtr type_url_; |
178 | | ::google::protobuf::internal::ArenaStringPtr value_; |
179 | | mutable int _cached_size_; |
180 | | friend struct ::protobuf_yb_2frpc_2fany_2eproto::TableStruct; |
181 | | friend void ::protobuf_yb_2frpc_2fany_2eproto::InitDefaultsAnyImpl(); |
182 | | }; |
183 | | // =================================================================== |
184 | | |
185 | | |
186 | | // =================================================================== |
187 | | |
188 | | #ifdef __GNUC__ |
189 | | #pragma GCC diagnostic push |
190 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
191 | | #endif // __GNUC__ |
192 | | // Any |
193 | | |
194 | | // string type_url = 1; |
195 | 0 | inline void Any::clear_type_url() { |
196 | 0 | type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
197 | 0 | } |
198 | 0 | inline const ::std::string& Any::type_url() const { |
199 | 0 | // @@protoc_insertion_point(field_get:yb.rpc.Any.type_url) |
200 | 0 | return type_url_.GetNoArena(); |
201 | 0 | } |
202 | 0 | inline void Any::set_type_url(const ::std::string& value) { |
203 | 0 | |
204 | 0 | type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
205 | 0 | // @@protoc_insertion_point(field_set:yb.rpc.Any.type_url) |
206 | 0 | } |
207 | | #if LANG_CXX11 |
208 | 0 | inline void Any::set_type_url(::std::string&& value) { |
209 | 0 | |
210 | 0 | type_url_.SetNoArena( |
211 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
212 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.rpc.Any.type_url) |
213 | 0 | } |
214 | | #endif |
215 | 0 | inline void Any::set_type_url(const char* value) { |
216 | 0 | GOOGLE_DCHECK(value != NULL); |
217 | 0 | |
218 | 0 | type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
219 | 0 | // @@protoc_insertion_point(field_set_char:yb.rpc.Any.type_url) |
220 | 0 | } |
221 | 0 | inline void Any::set_type_url(const char* value, size_t size) { |
222 | 0 | |
223 | 0 | type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
224 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
225 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.rpc.Any.type_url) |
226 | 0 | } |
227 | 0 | inline ::std::string* Any::mutable_type_url() { |
228 | 0 | |
229 | 0 | // @@protoc_insertion_point(field_mutable:yb.rpc.Any.type_url) |
230 | 0 | return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
231 | 0 | } |
232 | 0 | inline ::std::string* Any::release_type_url() { |
233 | 0 | // @@protoc_insertion_point(field_release:yb.rpc.Any.type_url) |
234 | 0 | |
235 | 0 | return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
236 | 0 | } |
237 | 0 | inline void Any::set_allocated_type_url(::std::string* type_url) { |
238 | 0 | if (type_url != NULL) { |
239 | 0 | |
240 | 0 | } else { |
241 | 0 | |
242 | 0 | } |
243 | 0 | type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url); |
244 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.rpc.Any.type_url) |
245 | 0 | } |
246 | | |
247 | | // bytes value = 2; |
248 | 0 | inline void Any::clear_value() { |
249 | 0 | value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
250 | 0 | } |
251 | 0 | inline const ::std::string& Any::value() const { |
252 | 0 | // @@protoc_insertion_point(field_get:yb.rpc.Any.value) |
253 | 0 | return value_.GetNoArena(); |
254 | 0 | } |
255 | 0 | inline void Any::set_value(const ::std::string& value) { |
256 | 0 | |
257 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
258 | 0 | // @@protoc_insertion_point(field_set:yb.rpc.Any.value) |
259 | 0 | } |
260 | | #if LANG_CXX11 |
261 | 0 | inline void Any::set_value(::std::string&& value) { |
262 | 0 | |
263 | 0 | value_.SetNoArena( |
264 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
265 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.rpc.Any.value) |
266 | 0 | } |
267 | | #endif |
268 | 0 | inline void Any::set_value(const char* value) { |
269 | 0 | GOOGLE_DCHECK(value != NULL); |
270 | 0 | |
271 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
272 | 0 | // @@protoc_insertion_point(field_set_char:yb.rpc.Any.value) |
273 | 0 | } |
274 | 0 | inline void Any::set_value(const void* value, size_t size) { |
275 | 0 | |
276 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
277 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
278 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.rpc.Any.value) |
279 | 0 | } |
280 | 0 | inline ::std::string* Any::mutable_value() { |
281 | 0 | |
282 | 0 | // @@protoc_insertion_point(field_mutable:yb.rpc.Any.value) |
283 | 0 | return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
284 | 0 | } |
285 | 0 | inline ::std::string* Any::release_value() { |
286 | 0 | // @@protoc_insertion_point(field_release:yb.rpc.Any.value) |
287 | 0 | |
288 | 0 | return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
289 | 0 | } |
290 | 0 | inline void Any::set_allocated_value(::std::string* value) { |
291 | 0 | if (value != NULL) { |
292 | 0 | |
293 | 0 | } else { |
294 | 0 | |
295 | 0 | } |
296 | 0 | value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
297 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.rpc.Any.value) |
298 | 0 | } |
299 | | |
300 | | #ifdef __GNUC__ |
301 | | #pragma GCC diagnostic pop |
302 | | #endif // __GNUC__ |
303 | | |
304 | | // @@protoc_insertion_point(namespace_scope) |
305 | | |
306 | | } // namespace rpc |
307 | | } // namespace yb |
308 | | |
309 | | // @@protoc_insertion_point(global_scope) |
310 | | |
311 | | #endif // PROTOBUF_yb_2frpc_2fany_2eproto__INCLUDED |