/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_admin.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/master/master_admin.proto |
3 | | |
4 | | #include "yb/master/master_admin.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/stubs/common.h> |
9 | | #include <google/protobuf/stubs/port.h> |
10 | | #include <google/protobuf/stubs/once.h> |
11 | | #include <google/protobuf/io/coded_stream.h> |
12 | | #include <google/protobuf/wire_format_lite_inl.h> |
13 | | #include <google/protobuf/descriptor.h> |
14 | | #include <google/protobuf/generated_message_reflection.h> |
15 | | #include <google/protobuf/reflection_ops.h> |
16 | | #include <google/protobuf/wire_format.h> |
17 | | // This is a temporary google only hack |
18 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
19 | | #include "third_party/protobuf/version.h" |
20 | | #endif |
21 | | #include "yb/util/protobuf-annotations.h" |
22 | | // @@protoc_insertion_point(includes) |
23 | | namespace yb { |
24 | | namespace master { |
25 | | class FlushTablesRequestPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<FlushTablesRequestPB> |
28 | | _instance; |
29 | | } _FlushTablesRequestPB_default_instance_; |
30 | | class FlushTablesResponsePBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<FlushTablesResponsePB> |
33 | | _instance; |
34 | | } _FlushTablesResponsePB_default_instance_; |
35 | | class IsFlushTablesDoneRequestPBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<IsFlushTablesDoneRequestPB> |
38 | | _instance; |
39 | | } _IsFlushTablesDoneRequestPB_default_instance_; |
40 | | class IsFlushTablesDoneResponsePBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<IsFlushTablesDoneResponsePB> |
43 | | _instance; |
44 | | } _IsFlushTablesDoneResponsePB_default_instance_; |
45 | | class FlushSysCatalogRequestPBDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<FlushSysCatalogRequestPB> |
48 | | _instance; |
49 | | } _FlushSysCatalogRequestPB_default_instance_; |
50 | | class FlushSysCatalogResponsePBDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<FlushSysCatalogResponsePB> |
53 | | _instance; |
54 | | } _FlushSysCatalogResponsePB_default_instance_; |
55 | | class CompactSysCatalogRequestPBDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<CompactSysCatalogRequestPB> |
58 | | _instance; |
59 | | } _CompactSysCatalogRequestPB_default_instance_; |
60 | | class CompactSysCatalogResponsePBDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<CompactSysCatalogResponsePB> |
63 | | _instance; |
64 | | } _CompactSysCatalogResponsePB_default_instance_; |
65 | | class IsInitDbDoneRequestPBDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<IsInitDbDoneRequestPB> |
68 | | _instance; |
69 | | } _IsInitDbDoneRequestPB_default_instance_; |
70 | | class IsInitDbDoneResponsePBDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<IsInitDbDoneResponsePB> |
73 | | _instance; |
74 | | } _IsInitDbDoneResponsePB_default_instance_; |
75 | | class SplitTabletRequestPBDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<SplitTabletRequestPB> |
78 | | _instance; |
79 | | } _SplitTabletRequestPB_default_instance_; |
80 | | class SplitTabletResponsePBDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<SplitTabletResponsePB> |
83 | | _instance; |
84 | | } _SplitTabletResponsePB_default_instance_; |
85 | | class CreateTransactionStatusTableRequestPBDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<CreateTransactionStatusTableRequestPB> |
88 | | _instance; |
89 | | } _CreateTransactionStatusTableRequestPB_default_instance_; |
90 | | class CreateTransactionStatusTableResponsePBDefaultTypeInternal { |
91 | | public: |
92 | | ::google::protobuf::internal::ExplicitlyConstructed<CreateTransactionStatusTableResponsePB> |
93 | | _instance; |
94 | | } _CreateTransactionStatusTableResponsePB_default_instance_; |
95 | | class DeleteNotServingTabletRequestPBDefaultTypeInternal { |
96 | | public: |
97 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteNotServingTabletRequestPB> |
98 | | _instance; |
99 | | } _DeleteNotServingTabletRequestPB_default_instance_; |
100 | | class DeleteNotServingTabletResponsePBDefaultTypeInternal { |
101 | | public: |
102 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteNotServingTabletResponsePB> |
103 | | _instance; |
104 | | } _DeleteNotServingTabletResponsePB_default_instance_; |
105 | | class DdlLogRequestPBDefaultTypeInternal { |
106 | | public: |
107 | | ::google::protobuf::internal::ExplicitlyConstructed<DdlLogRequestPB> |
108 | | _instance; |
109 | | } _DdlLogRequestPB_default_instance_; |
110 | | class DdlLogResponsePBDefaultTypeInternal { |
111 | | public: |
112 | | ::google::protobuf::internal::ExplicitlyConstructed<DdlLogResponsePB> |
113 | | _instance; |
114 | | } _DdlLogResponsePB_default_instance_; |
115 | | } // namespace master |
116 | | } // namespace yb |
117 | | namespace protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto { |
118 | 15.8k | void InitDefaultsFlushTablesRequestPBImpl() { |
119 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
120 | | |
121 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
122 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
123 | | #else |
124 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
125 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
126 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTableIdentifierPB(); |
127 | 15.8k | { |
128 | 15.8k | void* ptr = &::yb::master::_FlushTablesRequestPB_default_instance_; |
129 | 15.8k | new (ptr) ::yb::master::FlushTablesRequestPB(); |
130 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
131 | 15.8k | } |
132 | 15.8k | ::yb::master::FlushTablesRequestPB::InitAsDefaultInstance(); |
133 | 15.8k | } |
134 | | |
135 | 15.8k | void InitDefaultsFlushTablesRequestPB() { |
136 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
137 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFlushTablesRequestPBImpl); |
138 | 15.8k | } |
139 | | |
140 | 15.8k | void InitDefaultsFlushTablesResponsePBImpl() { |
141 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
142 | | |
143 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
144 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
145 | | #else |
146 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
147 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
148 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
149 | 15.8k | { |
150 | 15.8k | void* ptr = &::yb::master::_FlushTablesResponsePB_default_instance_; |
151 | 15.8k | new (ptr) ::yb::master::FlushTablesResponsePB(); |
152 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
153 | 15.8k | } |
154 | 15.8k | ::yb::master::FlushTablesResponsePB::InitAsDefaultInstance(); |
155 | 15.8k | } |
156 | | |
157 | 15.8k | void InitDefaultsFlushTablesResponsePB() { |
158 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
159 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFlushTablesResponsePBImpl); |
160 | 15.8k | } |
161 | | |
162 | 15.8k | void InitDefaultsIsFlushTablesDoneRequestPBImpl() { |
163 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
164 | | |
165 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
166 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
167 | | #else |
168 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
169 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
170 | 15.8k | { |
171 | 15.8k | void* ptr = &::yb::master::_IsFlushTablesDoneRequestPB_default_instance_; |
172 | 15.8k | new (ptr) ::yb::master::IsFlushTablesDoneRequestPB(); |
173 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
174 | 15.8k | } |
175 | 15.8k | ::yb::master::IsFlushTablesDoneRequestPB::InitAsDefaultInstance(); |
176 | 15.8k | } |
177 | | |
178 | 15.8k | void InitDefaultsIsFlushTablesDoneRequestPB() { |
179 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
180 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsFlushTablesDoneRequestPBImpl); |
181 | 15.8k | } |
182 | | |
183 | 15.8k | void InitDefaultsIsFlushTablesDoneResponsePBImpl() { |
184 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
185 | | |
186 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
187 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
188 | | #else |
189 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
190 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
191 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
192 | 15.8k | { |
193 | 15.8k | void* ptr = &::yb::master::_IsFlushTablesDoneResponsePB_default_instance_; |
194 | 15.8k | new (ptr) ::yb::master::IsFlushTablesDoneResponsePB(); |
195 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
196 | 15.8k | } |
197 | 15.8k | ::yb::master::IsFlushTablesDoneResponsePB::InitAsDefaultInstance(); |
198 | 15.8k | } |
199 | | |
200 | 15.8k | void InitDefaultsIsFlushTablesDoneResponsePB() { |
201 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
202 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsFlushTablesDoneResponsePBImpl); |
203 | 15.8k | } |
204 | | |
205 | 15.8k | void InitDefaultsFlushSysCatalogRequestPBImpl() { |
206 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
207 | | |
208 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
209 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
210 | | #else |
211 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
212 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
213 | 15.8k | { |
214 | 15.8k | void* ptr = &::yb::master::_FlushSysCatalogRequestPB_default_instance_; |
215 | 15.8k | new (ptr) ::yb::master::FlushSysCatalogRequestPB(); |
216 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
217 | 15.8k | } |
218 | 15.8k | ::yb::master::FlushSysCatalogRequestPB::InitAsDefaultInstance(); |
219 | 15.8k | } |
220 | | |
221 | 15.8k | void InitDefaultsFlushSysCatalogRequestPB() { |
222 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
223 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFlushSysCatalogRequestPBImpl); |
224 | 15.8k | } |
225 | | |
226 | 15.8k | void InitDefaultsFlushSysCatalogResponsePBImpl() { |
227 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
228 | | |
229 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
230 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
231 | | #else |
232 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
233 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
234 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
235 | 15.8k | { |
236 | 15.8k | void* ptr = &::yb::master::_FlushSysCatalogResponsePB_default_instance_; |
237 | 15.8k | new (ptr) ::yb::master::FlushSysCatalogResponsePB(); |
238 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
239 | 15.8k | } |
240 | 15.8k | ::yb::master::FlushSysCatalogResponsePB::InitAsDefaultInstance(); |
241 | 15.8k | } |
242 | | |
243 | 15.8k | void InitDefaultsFlushSysCatalogResponsePB() { |
244 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
245 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFlushSysCatalogResponsePBImpl); |
246 | 15.8k | } |
247 | | |
248 | 15.8k | void InitDefaultsCompactSysCatalogRequestPBImpl() { |
249 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
250 | | |
251 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
252 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
253 | | #else |
254 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
255 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
256 | 15.8k | { |
257 | 15.8k | void* ptr = &::yb::master::_CompactSysCatalogRequestPB_default_instance_; |
258 | 15.8k | new (ptr) ::yb::master::CompactSysCatalogRequestPB(); |
259 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
260 | 15.8k | } |
261 | 15.8k | ::yb::master::CompactSysCatalogRequestPB::InitAsDefaultInstance(); |
262 | 15.8k | } |
263 | | |
264 | 15.8k | void InitDefaultsCompactSysCatalogRequestPB() { |
265 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
266 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCompactSysCatalogRequestPBImpl); |
267 | 15.8k | } |
268 | | |
269 | 15.8k | void InitDefaultsCompactSysCatalogResponsePBImpl() { |
270 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
271 | | |
272 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
273 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
274 | | #else |
275 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
276 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
277 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
278 | 15.8k | { |
279 | 15.8k | void* ptr = &::yb::master::_CompactSysCatalogResponsePB_default_instance_; |
280 | 15.8k | new (ptr) ::yb::master::CompactSysCatalogResponsePB(); |
281 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
282 | 15.8k | } |
283 | 15.8k | ::yb::master::CompactSysCatalogResponsePB::InitAsDefaultInstance(); |
284 | 15.8k | } |
285 | | |
286 | 15.8k | void InitDefaultsCompactSysCatalogResponsePB() { |
287 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
288 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCompactSysCatalogResponsePBImpl); |
289 | 15.8k | } |
290 | | |
291 | 15.8k | void InitDefaultsIsInitDbDoneRequestPBImpl() { |
292 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
293 | | |
294 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
295 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
296 | | #else |
297 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
298 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
299 | 15.8k | { |
300 | 15.8k | void* ptr = &::yb::master::_IsInitDbDoneRequestPB_default_instance_; |
301 | 15.8k | new (ptr) ::yb::master::IsInitDbDoneRequestPB(); |
302 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
303 | 15.8k | } |
304 | 15.8k | ::yb::master::IsInitDbDoneRequestPB::InitAsDefaultInstance(); |
305 | 15.8k | } |
306 | | |
307 | 16.7k | void InitDefaultsIsInitDbDoneRequestPB() { |
308 | 16.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
309 | 16.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsInitDbDoneRequestPBImpl); |
310 | 16.7k | } |
311 | | |
312 | 15.8k | void InitDefaultsIsInitDbDoneResponsePBImpl() { |
313 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
314 | | |
315 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
316 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
317 | | #else |
318 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
319 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
320 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
321 | 15.8k | { |
322 | 15.8k | void* ptr = &::yb::master::_IsInitDbDoneResponsePB_default_instance_; |
323 | 15.8k | new (ptr) ::yb::master::IsInitDbDoneResponsePB(); |
324 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
325 | 15.8k | } |
326 | 15.8k | ::yb::master::IsInitDbDoneResponsePB::InitAsDefaultInstance(); |
327 | 15.8k | } |
328 | | |
329 | 16.7k | void InitDefaultsIsInitDbDoneResponsePB() { |
330 | 16.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
331 | 16.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsInitDbDoneResponsePBImpl); |
332 | 16.7k | } |
333 | | |
334 | 15.8k | void InitDefaultsSplitTabletRequestPBImpl() { |
335 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
336 | | |
337 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
338 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
339 | | #else |
340 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
341 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
342 | 15.8k | { |
343 | 15.8k | void* ptr = &::yb::master::_SplitTabletRequestPB_default_instance_; |
344 | 15.8k | new (ptr) ::yb::master::SplitTabletRequestPB(); |
345 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
346 | 15.8k | } |
347 | 15.8k | ::yb::master::SplitTabletRequestPB::InitAsDefaultInstance(); |
348 | 15.8k | } |
349 | | |
350 | 15.9k | void InitDefaultsSplitTabletRequestPB() { |
351 | 15.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
352 | 15.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSplitTabletRequestPBImpl); |
353 | 15.9k | } |
354 | | |
355 | 15.8k | void InitDefaultsSplitTabletResponsePBImpl() { |
356 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
357 | | |
358 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
359 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
360 | | #else |
361 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
362 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
363 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
364 | 15.8k | { |
365 | 15.8k | void* ptr = &::yb::master::_SplitTabletResponsePB_default_instance_; |
366 | 15.8k | new (ptr) ::yb::master::SplitTabletResponsePB(); |
367 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
368 | 15.8k | } |
369 | 15.8k | ::yb::master::SplitTabletResponsePB::InitAsDefaultInstance(); |
370 | 15.8k | } |
371 | | |
372 | 15.9k | void InitDefaultsSplitTabletResponsePB() { |
373 | 15.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
374 | 15.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSplitTabletResponsePBImpl); |
375 | 15.9k | } |
376 | | |
377 | 15.8k | void InitDefaultsCreateTransactionStatusTableRequestPBImpl() { |
378 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
379 | | |
380 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
381 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
382 | | #else |
383 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
384 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
385 | 15.8k | { |
386 | 15.8k | void* ptr = &::yb::master::_CreateTransactionStatusTableRequestPB_default_instance_; |
387 | 15.8k | new (ptr) ::yb::master::CreateTransactionStatusTableRequestPB(); |
388 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
389 | 15.8k | } |
390 | 15.8k | ::yb::master::CreateTransactionStatusTableRequestPB::InitAsDefaultInstance(); |
391 | 15.8k | } |
392 | | |
393 | 15.8k | void InitDefaultsCreateTransactionStatusTableRequestPB() { |
394 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
395 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateTransactionStatusTableRequestPBImpl); |
396 | 15.8k | } |
397 | | |
398 | 15.8k | void InitDefaultsCreateTransactionStatusTableResponsePBImpl() { |
399 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
400 | | |
401 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
402 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
403 | | #else |
404 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
405 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
406 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
407 | 15.8k | { |
408 | 15.8k | void* ptr = &::yb::master::_CreateTransactionStatusTableResponsePB_default_instance_; |
409 | 15.8k | new (ptr) ::yb::master::CreateTransactionStatusTableResponsePB(); |
410 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
411 | 15.8k | } |
412 | 15.8k | ::yb::master::CreateTransactionStatusTableResponsePB::InitAsDefaultInstance(); |
413 | 15.8k | } |
414 | | |
415 | 15.8k | void InitDefaultsCreateTransactionStatusTableResponsePB() { |
416 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
417 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateTransactionStatusTableResponsePBImpl); |
418 | 15.8k | } |
419 | | |
420 | 15.8k | void InitDefaultsDeleteNotServingTabletRequestPBImpl() { |
421 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
422 | | |
423 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
424 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
425 | | #else |
426 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
427 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
428 | 15.8k | { |
429 | 15.8k | void* ptr = &::yb::master::_DeleteNotServingTabletRequestPB_default_instance_; |
430 | 15.8k | new (ptr) ::yb::master::DeleteNotServingTabletRequestPB(); |
431 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
432 | 15.8k | } |
433 | 15.8k | ::yb::master::DeleteNotServingTabletRequestPB::InitAsDefaultInstance(); |
434 | 15.8k | } |
435 | | |
436 | 15.8k | void InitDefaultsDeleteNotServingTabletRequestPB() { |
437 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
438 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteNotServingTabletRequestPBImpl); |
439 | 15.8k | } |
440 | | |
441 | 15.8k | void InitDefaultsDeleteNotServingTabletResponsePBImpl() { |
442 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
443 | | |
444 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
445 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
446 | | #else |
447 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
448 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
449 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
450 | 15.8k | { |
451 | 15.8k | void* ptr = &::yb::master::_DeleteNotServingTabletResponsePB_default_instance_; |
452 | 15.8k | new (ptr) ::yb::master::DeleteNotServingTabletResponsePB(); |
453 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
454 | 15.8k | } |
455 | 15.8k | ::yb::master::DeleteNotServingTabletResponsePB::InitAsDefaultInstance(); |
456 | 15.8k | } |
457 | | |
458 | 15.8k | void InitDefaultsDeleteNotServingTabletResponsePB() { |
459 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
460 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteNotServingTabletResponsePBImpl); |
461 | 15.8k | } |
462 | | |
463 | 15.8k | void InitDefaultsDdlLogRequestPBImpl() { |
464 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
465 | | |
466 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
467 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
468 | | #else |
469 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
470 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
471 | 15.8k | { |
472 | 15.8k | void* ptr = &::yb::master::_DdlLogRequestPB_default_instance_; |
473 | 15.8k | new (ptr) ::yb::master::DdlLogRequestPB(); |
474 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
475 | 15.8k | } |
476 | 15.8k | ::yb::master::DdlLogRequestPB::InitAsDefaultInstance(); |
477 | 15.8k | } |
478 | | |
479 | 15.8k | void InitDefaultsDdlLogRequestPB() { |
480 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
481 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDdlLogRequestPBImpl); |
482 | 15.8k | } |
483 | | |
484 | 15.8k | void InitDefaultsDdlLogResponsePBImpl() { |
485 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
486 | | |
487 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
488 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
489 | | #else |
490 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
491 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
492 | 15.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
493 | 15.8k | protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsDdlLogEntryPB(); |
494 | 15.8k | { |
495 | 15.8k | void* ptr = &::yb::master::_DdlLogResponsePB_default_instance_; |
496 | 15.8k | new (ptr) ::yb::master::DdlLogResponsePB(); |
497 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
498 | 15.8k | } |
499 | 15.8k | ::yb::master::DdlLogResponsePB::InitAsDefaultInstance(); |
500 | 15.8k | } |
501 | | |
502 | 15.8k | void InitDefaultsDdlLogResponsePB() { |
503 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
504 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDdlLogResponsePBImpl); |
505 | 15.8k | } |
506 | | |
507 | | ::google::protobuf::Metadata file_level_metadata[18]; |
508 | | |
509 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
510 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesRequestPB, _has_bits_), |
511 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesRequestPB, _internal_metadata_), |
512 | | ~0u, // no _extensions_ |
513 | | ~0u, // no _oneof_case_ |
514 | | ~0u, // no _weak_field_map_ |
515 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesRequestPB, tables_), |
516 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesRequestPB, is_compaction_), |
517 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesRequestPB, add_indexes_), |
518 | | ~0u, |
519 | | 0, |
520 | | 1, |
521 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesResponsePB, _has_bits_), |
522 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesResponsePB, _internal_metadata_), |
523 | | ~0u, // no _extensions_ |
524 | | ~0u, // no _oneof_case_ |
525 | | ~0u, // no _weak_field_map_ |
526 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesResponsePB, error_), |
527 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushTablesResponsePB, flush_request_id_), |
528 | | 1, |
529 | | 0, |
530 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneRequestPB, _has_bits_), |
531 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneRequestPB, _internal_metadata_), |
532 | | ~0u, // no _extensions_ |
533 | | ~0u, // no _oneof_case_ |
534 | | ~0u, // no _weak_field_map_ |
535 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneRequestPB, flush_request_id_), |
536 | | 0, |
537 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneResponsePB, _has_bits_), |
538 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneResponsePB, _internal_metadata_), |
539 | | ~0u, // no _extensions_ |
540 | | ~0u, // no _oneof_case_ |
541 | | ~0u, // no _weak_field_map_ |
542 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneResponsePB, error_), |
543 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneResponsePB, done_), |
544 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsFlushTablesDoneResponsePB, success_), |
545 | | 0, |
546 | | 1, |
547 | | 2, |
548 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushSysCatalogRequestPB, _has_bits_), |
549 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushSysCatalogRequestPB, _internal_metadata_), |
550 | | ~0u, // no _extensions_ |
551 | | ~0u, // no _oneof_case_ |
552 | | ~0u, // no _weak_field_map_ |
553 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushSysCatalogResponsePB, _has_bits_), |
554 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushSysCatalogResponsePB, _internal_metadata_), |
555 | | ~0u, // no _extensions_ |
556 | | ~0u, // no _oneof_case_ |
557 | | ~0u, // no _weak_field_map_ |
558 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::FlushSysCatalogResponsePB, error_), |
559 | | 0, |
560 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CompactSysCatalogRequestPB, _has_bits_), |
561 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CompactSysCatalogRequestPB, _internal_metadata_), |
562 | | ~0u, // no _extensions_ |
563 | | ~0u, // no _oneof_case_ |
564 | | ~0u, // no _weak_field_map_ |
565 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CompactSysCatalogResponsePB, _has_bits_), |
566 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CompactSysCatalogResponsePB, _internal_metadata_), |
567 | | ~0u, // no _extensions_ |
568 | | ~0u, // no _oneof_case_ |
569 | | ~0u, // no _weak_field_map_ |
570 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CompactSysCatalogResponsePB, error_), |
571 | | 0, |
572 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneRequestPB, _has_bits_), |
573 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneRequestPB, _internal_metadata_), |
574 | | ~0u, // no _extensions_ |
575 | | ~0u, // no _oneof_case_ |
576 | | ~0u, // no _weak_field_map_ |
577 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneResponsePB, _has_bits_), |
578 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneResponsePB, _internal_metadata_), |
579 | | ~0u, // no _extensions_ |
580 | | ~0u, // no _oneof_case_ |
581 | | ~0u, // no _weak_field_map_ |
582 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneResponsePB, error_), |
583 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneResponsePB, pg_proc_exists_), |
584 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneResponsePB, done_), |
585 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsInitDbDoneResponsePB, initdb_error_), |
586 | | 1, |
587 | | 2, |
588 | | 3, |
589 | | 0, |
590 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SplitTabletRequestPB, _has_bits_), |
591 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SplitTabletRequestPB, _internal_metadata_), |
592 | | ~0u, // no _extensions_ |
593 | | ~0u, // no _oneof_case_ |
594 | | ~0u, // no _weak_field_map_ |
595 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SplitTabletRequestPB, tablet_id_), |
596 | | 0, |
597 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SplitTabletResponsePB, _has_bits_), |
598 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SplitTabletResponsePB, _internal_metadata_), |
599 | | ~0u, // no _extensions_ |
600 | | ~0u, // no _oneof_case_ |
601 | | ~0u, // no _weak_field_map_ |
602 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SplitTabletResponsePB, error_), |
603 | | 0, |
604 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateTransactionStatusTableRequestPB, _has_bits_), |
605 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateTransactionStatusTableRequestPB, _internal_metadata_), |
606 | | ~0u, // no _extensions_ |
607 | | ~0u, // no _oneof_case_ |
608 | | ~0u, // no _weak_field_map_ |
609 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateTransactionStatusTableRequestPB, table_name_), |
610 | | 0, |
611 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateTransactionStatusTableResponsePB, _has_bits_), |
612 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateTransactionStatusTableResponsePB, _internal_metadata_), |
613 | | ~0u, // no _extensions_ |
614 | | ~0u, // no _oneof_case_ |
615 | | ~0u, // no _weak_field_map_ |
616 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateTransactionStatusTableResponsePB, error_), |
617 | | 0, |
618 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteNotServingTabletRequestPB, _has_bits_), |
619 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteNotServingTabletRequestPB, _internal_metadata_), |
620 | | ~0u, // no _extensions_ |
621 | | ~0u, // no _oneof_case_ |
622 | | ~0u, // no _weak_field_map_ |
623 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteNotServingTabletRequestPB, tablet_id_), |
624 | | 0, |
625 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteNotServingTabletResponsePB, _has_bits_), |
626 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteNotServingTabletResponsePB, _internal_metadata_), |
627 | | ~0u, // no _extensions_ |
628 | | ~0u, // no _oneof_case_ |
629 | | ~0u, // no _weak_field_map_ |
630 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteNotServingTabletResponsePB, error_), |
631 | | 0, |
632 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogRequestPB, _has_bits_), |
633 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogRequestPB, _internal_metadata_), |
634 | | ~0u, // no _extensions_ |
635 | | ~0u, // no _oneof_case_ |
636 | | ~0u, // no _weak_field_map_ |
637 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogResponsePB, _has_bits_), |
638 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogResponsePB, _internal_metadata_), |
639 | | ~0u, // no _extensions_ |
640 | | ~0u, // no _oneof_case_ |
641 | | ~0u, // no _weak_field_map_ |
642 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogResponsePB, error_), |
643 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogResponsePB, entries_), |
644 | | 0, |
645 | | ~0u, |
646 | | }; |
647 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
648 | | { 0, 8, sizeof(::yb::master::FlushTablesRequestPB)}, |
649 | | { 11, 18, sizeof(::yb::master::FlushTablesResponsePB)}, |
650 | | { 20, 26, sizeof(::yb::master::IsFlushTablesDoneRequestPB)}, |
651 | | { 27, 35, sizeof(::yb::master::IsFlushTablesDoneResponsePB)}, |
652 | | { 38, 43, sizeof(::yb::master::FlushSysCatalogRequestPB)}, |
653 | | { 43, 49, sizeof(::yb::master::FlushSysCatalogResponsePB)}, |
654 | | { 50, 55, sizeof(::yb::master::CompactSysCatalogRequestPB)}, |
655 | | { 55, 61, sizeof(::yb::master::CompactSysCatalogResponsePB)}, |
656 | | { 62, 67, sizeof(::yb::master::IsInitDbDoneRequestPB)}, |
657 | | { 67, 76, sizeof(::yb::master::IsInitDbDoneResponsePB)}, |
658 | | { 80, 86, sizeof(::yb::master::SplitTabletRequestPB)}, |
659 | | { 87, 93, sizeof(::yb::master::SplitTabletResponsePB)}, |
660 | | { 94, 100, sizeof(::yb::master::CreateTransactionStatusTableRequestPB)}, |
661 | | { 101, 107, sizeof(::yb::master::CreateTransactionStatusTableResponsePB)}, |
662 | | { 108, 114, sizeof(::yb::master::DeleteNotServingTabletRequestPB)}, |
663 | | { 115, 121, sizeof(::yb::master::DeleteNotServingTabletResponsePB)}, |
664 | | { 122, 127, sizeof(::yb::master::DdlLogRequestPB)}, |
665 | | { 127, 134, sizeof(::yb::master::DdlLogResponsePB)}, |
666 | | }; |
667 | | |
668 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
669 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_FlushTablesRequestPB_default_instance_), |
670 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_FlushTablesResponsePB_default_instance_), |
671 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_IsFlushTablesDoneRequestPB_default_instance_), |
672 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_IsFlushTablesDoneResponsePB_default_instance_), |
673 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_FlushSysCatalogRequestPB_default_instance_), |
674 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_FlushSysCatalogResponsePB_default_instance_), |
675 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CompactSysCatalogRequestPB_default_instance_), |
676 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CompactSysCatalogResponsePB_default_instance_), |
677 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_IsInitDbDoneRequestPB_default_instance_), |
678 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_IsInitDbDoneResponsePB_default_instance_), |
679 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SplitTabletRequestPB_default_instance_), |
680 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SplitTabletResponsePB_default_instance_), |
681 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CreateTransactionStatusTableRequestPB_default_instance_), |
682 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CreateTransactionStatusTableResponsePB_default_instance_), |
683 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteNotServingTabletRequestPB_default_instance_), |
684 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteNotServingTabletResponsePB_default_instance_), |
685 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DdlLogRequestPB_default_instance_), |
686 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DdlLogResponsePB_default_instance_), |
687 | | }; |
688 | | |
689 | 372 | void protobuf_AssignDescriptors() { |
690 | 372 | AddDescriptors(); |
691 | 372 | ::google::protobuf::MessageFactory* factory = NULL; |
692 | 372 | AssignDescriptors( |
693 | 372 | "yb/master/master_admin.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
694 | 372 | file_level_metadata, NULL, NULL); |
695 | 372 | } |
696 | | |
697 | 961 | void protobuf_AssignDescriptorsOnce() { |
698 | 961 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
699 | 961 | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
700 | 961 | } |
701 | | |
702 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
703 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
704 | 0 | protobuf_AssignDescriptorsOnce(); |
705 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 18); |
706 | 0 | } |
707 | | |
708 | 15.8k | void AddDescriptorsImpl() { |
709 | 15.8k | InitDefaults(); |
710 | 15.8k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
711 | 15.8k | "\n\034yb/master/master_admin.proto\022\tyb.maste" |
712 | 15.8k | "r\032#yb/master/catalog_entity_info.proto\032\034" |
713 | 15.8k | "yb/master/master_types.proto\032\024yb/rpc/ser" |
714 | 15.8k | "vice.proto\"p\n\024FlushTablesRequestPB\022,\n\006ta" |
715 | 15.8k | "bles\030\001 \003(\0132\034.yb.master.TableIdentifierPB" |
716 | 15.8k | "\022\025\n\ris_compaction\030\002 \001(\010\022\023\n\013add_indexes\030\003" |
717 | 15.8k | " \001(\010\"Z\n\025FlushTablesResponsePB\022\'\n\005error\030\001" |
718 | 15.8k | " \001(\0132\030.yb.master.MasterErrorPB\022\030\n\020flush_" |
719 | 15.8k | "request_id\030\002 \001(\014\"6\n\032IsFlushTablesDoneReq" |
720 | 15.8k | "uestPB\022\030\n\020flush_request_id\030\001 \001(\014\"e\n\033IsFl" |
721 | 15.8k | "ushTablesDoneResponsePB\022\'\n\005error\030\001 \001(\0132\030" |
722 | 15.8k | ".yb.master.MasterErrorPB\022\014\n\004done\030\002 \001(\010\022\017" |
723 | 15.8k | "\n\007success\030\003 \001(\010\"\032\n\030FlushSysCatalogReques" |
724 | 15.8k | "tPB\"D\n\031FlushSysCatalogResponsePB\022\'\n\005erro" |
725 | 15.8k | "r\030\001 \001(\0132\030.yb.master.MasterErrorPB\"\034\n\032Com" |
726 | 15.8k | "pactSysCatalogRequestPB\"F\n\033CompactSysCat" |
727 | 15.8k | "alogResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.maste" |
728 | 15.8k | "r.MasterErrorPB\"\027\n\025IsInitDbDoneRequestPB" |
729 | 15.8k | "\"}\n\026IsInitDbDoneResponsePB\022\'\n\005error\030\001 \001(" |
730 | 15.8k | "\0132\030.yb.master.MasterErrorPB\022\026\n\016pg_proc_e" |
731 | 15.8k | "xists\030\002 \001(\010\022\014\n\004done\030\004 \001(\010\022\024\n\014initdb_erro" |
732 | 15.8k | "r\030\005 \001(\t\")\n\024SplitTabletRequestPB\022\021\n\ttable" |
733 | 15.8k | "t_id\030\001 \002(\014\"@\n\025SplitTabletResponsePB\022\'\n\005e" |
734 | 15.8k | "rror\030\001 \001(\0132\030.yb.master.MasterErrorPB\";\n%" |
735 | 15.8k | "CreateTransactionStatusTableRequestPB\022\022\n" |
736 | 15.8k | "\ntable_name\030\001 \002(\t\"Q\n&CreateTransactionSt" |
737 | 15.8k | "atusTableResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb." |
738 | 15.8k | "master.MasterErrorPB\"4\n\037DeleteNotServing" |
739 | 15.8k | "TabletRequestPB\022\021\n\ttablet_id\030\001 \002(\014\"K\n De" |
740 | 15.8k | "leteNotServingTabletResponsePB\022\'\n\005error\030" |
741 | 15.8k | "\001 \001(\0132\030.yb.master.MasterErrorPB\"\021\n\017DdlLo" |
742 | 15.8k | "gRequestPB\"f\n\020DdlLogResponsePB\022\'\n\005error\030" |
743 | 15.8k | "\001 \001(\0132\030.yb.master.MasterErrorPB\022)\n\007entri" |
744 | 15.8k | "es\030\002 \003(\0132\030.yb.master.DdlLogEntryPB2\205\007\n\013M" |
745 | 15.8k | "asterAdmin\022P\n\013FlushTables\022\037.yb.master.Fl" |
746 | 15.8k | "ushTablesRequestPB\032 .yb.master.FlushTabl" |
747 | 15.8k | "esResponsePB\022b\n\021IsFlushTablesDone\022%.yb.m" |
748 | 15.8k | "aster.IsFlushTablesDoneRequestPB\032&.yb.ma" |
749 | 15.8k | "ster.IsFlushTablesDoneResponsePB\022\\\n\017Flus" |
750 | 15.8k | "hSysCatalog\022#.yb.master.FlushSysCatalogR" |
751 | 15.8k | "equestPB\032$.yb.master.FlushSysCatalogResp" |
752 | 15.8k | "onsePB\022b\n\021CompactSysCatalog\022%.yb.master." |
753 | 15.8k | "CompactSysCatalogRequestPB\032&.yb.master.C" |
754 | 15.8k | "ompactSysCatalogResponsePB\022S\n\014IsInitDbDo" |
755 | 15.8k | "ne\022 .yb.master.IsInitDbDoneRequestPB\032!.y" |
756 | 15.8k | "b.master.IsInitDbDoneResponsePB\022P\n\013Split" |
757 | 15.8k | "Tablet\022\037.yb.master.SplitTabletRequestPB\032" |
758 | 15.8k | " .yb.master.SplitTabletResponsePB\022\203\001\n\034Cr" |
759 | 15.8k | "eateTransactionStatusTable\0220.yb.master.C" |
760 | 15.8k | "reateTransactionStatusTableRequestPB\0321.y" |
761 | 15.8k | "b.master.CreateTransactionStatusTableRes" |
762 | 15.8k | "ponsePB\022q\n\026DeleteNotServingTablet\022*.yb.m" |
763 | 15.8k | "aster.DeleteNotServingTabletRequestPB\032+." |
764 | 15.8k | "yb.master.DeleteNotServingTabletResponse" |
765 | 15.8k | "PB\022A\n\006DdlLog\022\032.yb.master.DdlLogRequestPB" |
766 | 15.8k | "\032\033.yb.master.DdlLogResponsePB\032\033\332\265\030\027yb.ma" |
767 | 15.8k | "ster.MasterServiceB\017\n\rorg.yb.master" |
768 | 15.8k | }; |
769 | 15.8k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
770 | 15.8k | descriptor, 2275); |
771 | 15.8k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
772 | 15.8k | "yb/master/master_admin.proto", &protobuf_RegisterTypes); |
773 | 15.8k | ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::AddDescriptors(); |
774 | 15.8k | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors(); |
775 | 15.8k | ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors(); |
776 | 15.8k | } |
777 | | |
778 | 16.2k | void AddDescriptors() { |
779 | 16.2k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
780 | 16.2k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
781 | 16.2k | } |
782 | | // Force AddDescriptors() to be called at dynamic initialization time. |
783 | | struct StaticDescriptorInitializer { |
784 | 15.8k | StaticDescriptorInitializer() { |
785 | 15.8k | AddDescriptors(); |
786 | 15.8k | } |
787 | | } static_descriptor_initializer; |
788 | | } // namespace protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto |
789 | | namespace yb { |
790 | | namespace master { |
791 | | |
792 | | // =================================================================== |
793 | | |
794 | 15.8k | void FlushTablesRequestPB::InitAsDefaultInstance() { |
795 | 15.8k | } |
796 | 0 | void FlushTablesRequestPB::clear_tables() { |
797 | 0 | tables_.Clear(); |
798 | 0 | } |
799 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
800 | | const int FlushTablesRequestPB::kTablesFieldNumber; |
801 | | const int FlushTablesRequestPB::kIsCompactionFieldNumber; |
802 | | const int FlushTablesRequestPB::kAddIndexesFieldNumber; |
803 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
804 | | |
805 | | FlushTablesRequestPB::FlushTablesRequestPB() |
806 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
807 | 14 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
808 | 14 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushTablesRequestPB(); |
809 | 14 | } |
810 | 15.8k | SharedCtor(); |
811 | | // @@protoc_insertion_point(constructor:yb.master.FlushTablesRequestPB) |
812 | 15.8k | } |
813 | | FlushTablesRequestPB::FlushTablesRequestPB(const FlushTablesRequestPB& from) |
814 | | : ::google::protobuf::Message(), |
815 | | _internal_metadata_(NULL), |
816 | | _has_bits_(from._has_bits_), |
817 | | _cached_size_(0), |
818 | 0 | tables_(from.tables_) { |
819 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
820 | 0 | ::memcpy(&is_compaction_, &from.is_compaction_, |
821 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&add_indexes_) - |
822 | 0 | reinterpret_cast<char*>(&is_compaction_)) + sizeof(add_indexes_)); |
823 | | // @@protoc_insertion_point(copy_constructor:yb.master.FlushTablesRequestPB) |
824 | 0 | } |
825 | | |
826 | 15.8k | void FlushTablesRequestPB::SharedCtor() { |
827 | 15.8k | _cached_size_ = 0; |
828 | 15.8k | ::memset(&is_compaction_, 0, static_cast<size_t>( |
829 | 15.8k | reinterpret_cast<char*>(&add_indexes_) - |
830 | 15.8k | reinterpret_cast<char*>(&is_compaction_)) + sizeof(add_indexes_)); |
831 | 15.8k | } |
832 | | |
833 | 14 | FlushTablesRequestPB::~FlushTablesRequestPB() { |
834 | | // @@protoc_insertion_point(destructor:yb.master.FlushTablesRequestPB) |
835 | 14 | SharedDtor(); |
836 | 14 | } |
837 | | |
838 | 14 | void FlushTablesRequestPB::SharedDtor() { |
839 | 14 | } |
840 | | |
841 | 0 | void FlushTablesRequestPB::SetCachedSize(int size) const { |
842 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
843 | 0 | _cached_size_ = size; |
844 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
845 | 0 | } |
846 | 0 | const ::google::protobuf::Descriptor* FlushTablesRequestPB::descriptor() { |
847 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
848 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
849 | 0 | } |
850 | | |
851 | 0 | const FlushTablesRequestPB& FlushTablesRequestPB::default_instance() { |
852 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushTablesRequestPB(); |
853 | 0 | return *internal_default_instance(); |
854 | 0 | } |
855 | | |
856 | 0 | FlushTablesRequestPB* FlushTablesRequestPB::New(::google::protobuf::Arena* arena) const { |
857 | 0 | FlushTablesRequestPB* n = new FlushTablesRequestPB; |
858 | 0 | if (arena != NULL) { |
859 | 0 | arena->Own(n); |
860 | 0 | } |
861 | 0 | return n; |
862 | 0 | } |
863 | | |
864 | 7 | void FlushTablesRequestPB::Clear() { |
865 | | // @@protoc_insertion_point(message_clear_start:yb.master.FlushTablesRequestPB) |
866 | 7 | ::google::protobuf::uint32 cached_has_bits = 0; |
867 | | // Prevent compiler warnings about cached_has_bits being unused |
868 | 7 | (void) cached_has_bits; |
869 | | |
870 | 7 | tables_.Clear(); |
871 | 7 | ::memset(&is_compaction_, 0, static_cast<size_t>( |
872 | 7 | reinterpret_cast<char*>(&add_indexes_) - |
873 | 7 | reinterpret_cast<char*>(&is_compaction_)) + sizeof(add_indexes_)); |
874 | 7 | _has_bits_.Clear(); |
875 | 7 | _internal_metadata_.Clear(); |
876 | 7 | } |
877 | | |
878 | | bool FlushTablesRequestPB::MergePartialFromCodedStream( |
879 | 7 | ::google::protobuf::io::CodedInputStream* input) { |
880 | 21 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
881 | 7 | ::google::protobuf::uint32 tag; |
882 | | // @@protoc_insertion_point(parse_start:yb.master.FlushTablesRequestPB) |
883 | 28 | for (;;) { |
884 | 28 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
885 | 28 | tag = p.first; |
886 | 28 | if (!p.second) goto handle_unusual; |
887 | 21 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
888 | | // repeated .yb.master.TableIdentifierPB tables = 1; |
889 | 7 | case 1: { |
890 | 7 | if (static_cast< ::google::protobuf::uint8>(tag) == |
891 | 7 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
892 | 7 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tables())); |
893 | 0 | } else { |
894 | 0 | goto handle_unusual; |
895 | 0 | } |
896 | 7 | break; |
897 | 7 | } |
898 | | |
899 | | // optional bool is_compaction = 2; |
900 | 7 | case 2: { |
901 | 7 | if (static_cast< ::google::protobuf::uint8>(tag) == |
902 | 7 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
903 | 7 | set_has_is_compaction(); |
904 | 7 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
905 | 7 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
906 | 7 | input, &is_compaction_))); |
907 | 0 | } else { |
908 | 0 | goto handle_unusual; |
909 | 0 | } |
910 | 7 | break; |
911 | 7 | } |
912 | | |
913 | | // optional bool add_indexes = 3; |
914 | 7 | case 3: { |
915 | 7 | if (static_cast< ::google::protobuf::uint8>(tag) == |
916 | 7 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
917 | 7 | set_has_add_indexes(); |
918 | 7 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
919 | 7 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
920 | 7 | input, &add_indexes_))); |
921 | 0 | } else { |
922 | 0 | goto handle_unusual; |
923 | 0 | } |
924 | 7 | break; |
925 | 7 | } |
926 | | |
927 | 0 | default: { |
928 | 7 | handle_unusual: |
929 | 7 | if (tag == 0) { |
930 | 7 | goto success; |
931 | 7 | } |
932 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
933 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
934 | 0 | break; |
935 | 0 | } |
936 | 21 | } |
937 | 21 | } |
938 | 7 | success: |
939 | | // @@protoc_insertion_point(parse_success:yb.master.FlushTablesRequestPB) |
940 | 7 | return true; |
941 | 0 | failure: |
942 | | // @@protoc_insertion_point(parse_failure:yb.master.FlushTablesRequestPB) |
943 | 0 | return false; |
944 | 7 | #undef DO_ |
945 | 7 | } |
946 | | |
947 | | void FlushTablesRequestPB::SerializeWithCachedSizes( |
948 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
949 | | // @@protoc_insertion_point(serialize_start:yb.master.FlushTablesRequestPB) |
950 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
951 | 0 | (void) cached_has_bits; |
952 | | |
953 | | // repeated .yb.master.TableIdentifierPB tables = 1; |
954 | 0 | for (unsigned int i = 0, |
955 | 0 | n = static_cast<unsigned int>(this->tables_size()); i < n; i++) { |
956 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
957 | 0 | 1, this->tables(static_cast<int>(i)), output); |
958 | 0 | } |
959 | |
|
960 | 0 | cached_has_bits = _has_bits_[0]; |
961 | | // optional bool is_compaction = 2; |
962 | 0 | if (cached_has_bits & 0x00000001u) { |
963 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_compaction(), output); |
964 | 0 | } |
965 | | |
966 | | // optional bool add_indexes = 3; |
967 | 0 | if (cached_has_bits & 0x00000002u) { |
968 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->add_indexes(), output); |
969 | 0 | } |
970 | |
|
971 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
972 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
973 | 0 | _internal_metadata_.unknown_fields(), output); |
974 | 0 | } |
975 | | // @@protoc_insertion_point(serialize_end:yb.master.FlushTablesRequestPB) |
976 | 0 | } |
977 | | |
978 | | ::google::protobuf::uint8* FlushTablesRequestPB::InternalSerializeWithCachedSizesToArray( |
979 | 7 | bool deterministic, ::google::protobuf::uint8* target) const { |
980 | 7 | (void)deterministic; // Unused |
981 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.FlushTablesRequestPB) |
982 | 7 | ::google::protobuf::uint32 cached_has_bits = 0; |
983 | 7 | (void) cached_has_bits; |
984 | | |
985 | | // repeated .yb.master.TableIdentifierPB tables = 1; |
986 | 7 | for (unsigned int i = 0, |
987 | 14 | n = static_cast<unsigned int>(this->tables_size()); i < n; i++) { |
988 | 7 | target = ::google::protobuf::internal::WireFormatLite:: |
989 | 7 | InternalWriteMessageToArray( |
990 | 7 | 1, this->tables(static_cast<int>(i)), deterministic, target); |
991 | 7 | } |
992 | | |
993 | 7 | cached_has_bits = _has_bits_[0]; |
994 | | // optional bool is_compaction = 2; |
995 | 7 | if (cached_has_bits & 0x00000001u) { |
996 | 7 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_compaction(), target); |
997 | 7 | } |
998 | | |
999 | | // optional bool add_indexes = 3; |
1000 | 7 | if (cached_has_bits & 0x00000002u) { |
1001 | 7 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->add_indexes(), target); |
1002 | 7 | } |
1003 | | |
1004 | 7 | if (_internal_metadata_.have_unknown_fields()) { |
1005 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1006 | 0 | _internal_metadata_.unknown_fields(), target); |
1007 | 0 | } |
1008 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.FlushTablesRequestPB) |
1009 | 7 | return target; |
1010 | 7 | } |
1011 | | |
1012 | 14 | size_t FlushTablesRequestPB::ByteSizeLong() const { |
1013 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.FlushTablesRequestPB) |
1014 | 14 | size_t total_size = 0; |
1015 | | |
1016 | 14 | if (_internal_metadata_.have_unknown_fields()) { |
1017 | 0 | total_size += |
1018 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1019 | 0 | _internal_metadata_.unknown_fields()); |
1020 | 0 | } |
1021 | | // repeated .yb.master.TableIdentifierPB tables = 1; |
1022 | 14 | { |
1023 | 14 | unsigned int count = static_cast<unsigned int>(this->tables_size()); |
1024 | 14 | total_size += 1UL * count; |
1025 | 28 | for (unsigned int i = 0; i < count; i++) { |
1026 | 14 | total_size += |
1027 | 14 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1028 | 14 | this->tables(static_cast<int>(i))); |
1029 | 14 | } |
1030 | 14 | } |
1031 | | |
1032 | 14 | if (_has_bits_[0 / 32] & 3u) { |
1033 | | // optional bool is_compaction = 2; |
1034 | 14 | if (has_is_compaction()) { |
1035 | 14 | total_size += 1 + 1; |
1036 | 14 | } |
1037 | | |
1038 | | // optional bool add_indexes = 3; |
1039 | 14 | if (has_add_indexes()) { |
1040 | 14 | total_size += 1 + 1; |
1041 | 14 | } |
1042 | | |
1043 | 14 | } |
1044 | 14 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1045 | 14 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1046 | 14 | _cached_size_ = cached_size; |
1047 | 14 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1048 | 14 | return total_size; |
1049 | 14 | } |
1050 | | |
1051 | 0 | void FlushTablesRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
1052 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.FlushTablesRequestPB) |
1053 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1054 | 0 | const FlushTablesRequestPB* source = |
1055 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const FlushTablesRequestPB>( |
1056 | 0 | &from); |
1057 | 0 | if (source == NULL) { |
1058 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.FlushTablesRequestPB) |
1059 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1060 | 0 | } else { |
1061 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.FlushTablesRequestPB) |
1062 | 0 | MergeFrom(*source); |
1063 | 0 | } |
1064 | 0 | } |
1065 | | |
1066 | 0 | void FlushTablesRequestPB::MergeFrom(const FlushTablesRequestPB& from) { |
1067 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.FlushTablesRequestPB) |
1068 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1069 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1070 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1071 | 0 | (void) cached_has_bits; |
1072 | |
|
1073 | 0 | tables_.MergeFrom(from.tables_); |
1074 | 0 | cached_has_bits = from._has_bits_[0]; |
1075 | 0 | if (cached_has_bits & 3u) { |
1076 | 0 | if (cached_has_bits & 0x00000001u) { |
1077 | 0 | is_compaction_ = from.is_compaction_; |
1078 | 0 | } |
1079 | 0 | if (cached_has_bits & 0x00000002u) { |
1080 | 0 | add_indexes_ = from.add_indexes_; |
1081 | 0 | } |
1082 | 0 | _has_bits_[0] |= cached_has_bits; |
1083 | 0 | } |
1084 | 0 | } |
1085 | | |
1086 | 0 | void FlushTablesRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
1087 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.FlushTablesRequestPB) |
1088 | 0 | if (&from == this) return; |
1089 | 0 | Clear(); |
1090 | 0 | MergeFrom(from); |
1091 | 0 | } |
1092 | | |
1093 | 0 | void FlushTablesRequestPB::CopyFrom(const FlushTablesRequestPB& from) { |
1094 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.FlushTablesRequestPB) |
1095 | 0 | if (&from == this) return; |
1096 | 0 | Clear(); |
1097 | 0 | MergeFrom(from); |
1098 | 0 | } |
1099 | | |
1100 | 14 | bool FlushTablesRequestPB::IsInitialized() const { |
1101 | 14 | return true; |
1102 | 14 | } |
1103 | | |
1104 | 0 | void FlushTablesRequestPB::Swap(FlushTablesRequestPB* other) { |
1105 | 0 | if (other == this) return; |
1106 | 0 | InternalSwap(other); |
1107 | 0 | } |
1108 | 0 | void FlushTablesRequestPB::InternalSwap(FlushTablesRequestPB* other) { |
1109 | 0 | using std::swap; |
1110 | 0 | tables_.InternalSwap(&other->tables_); |
1111 | 0 | swap(is_compaction_, other->is_compaction_); |
1112 | 0 | swap(add_indexes_, other->add_indexes_); |
1113 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1114 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1115 | 0 | swap(_cached_size_, other->_cached_size_); |
1116 | 0 | } |
1117 | | |
1118 | 21 | ::google::protobuf::Metadata FlushTablesRequestPB::GetMetadata() const { |
1119 | 21 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
1120 | 21 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
1121 | 21 | } |
1122 | | |
1123 | | |
1124 | | // =================================================================== |
1125 | | |
1126 | 15.8k | void FlushTablesResponsePB::InitAsDefaultInstance() { |
1127 | 15.8k | ::yb::master::_FlushTablesResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
1128 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
1129 | 15.8k | } |
1130 | 0 | void FlushTablesResponsePB::clear_error() { |
1131 | 0 | if (error_ != NULL) error_->Clear(); |
1132 | 0 | clear_has_error(); |
1133 | 0 | } |
1134 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1135 | | const int FlushTablesResponsePB::kErrorFieldNumber; |
1136 | | const int FlushTablesResponsePB::kFlushRequestIdFieldNumber; |
1137 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1138 | | |
1139 | | FlushTablesResponsePB::FlushTablesResponsePB() |
1140 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1141 | 14 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1142 | 14 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushTablesResponsePB(); |
1143 | 14 | } |
1144 | 15.8k | SharedCtor(); |
1145 | | // @@protoc_insertion_point(constructor:yb.master.FlushTablesResponsePB) |
1146 | 15.8k | } |
1147 | | FlushTablesResponsePB::FlushTablesResponsePB(const FlushTablesResponsePB& from) |
1148 | | : ::google::protobuf::Message(), |
1149 | | _internal_metadata_(NULL), |
1150 | | _has_bits_(from._has_bits_), |
1151 | 0 | _cached_size_(0) { |
1152 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1153 | 0 | flush_request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1154 | 0 | if (from.has_flush_request_id()) { |
1155 | 0 | flush_request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flush_request_id_); |
1156 | 0 | } |
1157 | 0 | if (from.has_error()) { |
1158 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
1159 | 0 | } else { |
1160 | 0 | error_ = NULL; |
1161 | 0 | } |
1162 | | // @@protoc_insertion_point(copy_constructor:yb.master.FlushTablesResponsePB) |
1163 | 0 | } |
1164 | | |
1165 | 15.8k | void FlushTablesResponsePB::SharedCtor() { |
1166 | 15.8k | _cached_size_ = 0; |
1167 | 15.8k | flush_request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1168 | 15.8k | error_ = NULL; |
1169 | 15.8k | } |
1170 | | |
1171 | 14 | FlushTablesResponsePB::~FlushTablesResponsePB() { |
1172 | | // @@protoc_insertion_point(destructor:yb.master.FlushTablesResponsePB) |
1173 | 14 | SharedDtor(); |
1174 | 14 | } |
1175 | | |
1176 | 14 | void FlushTablesResponsePB::SharedDtor() { |
1177 | 14 | flush_request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1178 | 14 | if (this != internal_default_instance()) delete error_; |
1179 | 14 | } |
1180 | | |
1181 | 0 | void FlushTablesResponsePB::SetCachedSize(int size) const { |
1182 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1183 | 0 | _cached_size_ = size; |
1184 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1185 | 0 | } |
1186 | 0 | const ::google::protobuf::Descriptor* FlushTablesResponsePB::descriptor() { |
1187 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
1188 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1189 | 0 | } |
1190 | | |
1191 | 0 | const FlushTablesResponsePB& FlushTablesResponsePB::default_instance() { |
1192 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushTablesResponsePB(); |
1193 | 0 | return *internal_default_instance(); |
1194 | 0 | } |
1195 | | |
1196 | 0 | FlushTablesResponsePB* FlushTablesResponsePB::New(::google::protobuf::Arena* arena) const { |
1197 | 0 | FlushTablesResponsePB* n = new FlushTablesResponsePB; |
1198 | 0 | if (arena != NULL) { |
1199 | 0 | arena->Own(n); |
1200 | 0 | } |
1201 | 0 | return n; |
1202 | 0 | } |
1203 | | |
1204 | 7 | void FlushTablesResponsePB::Clear() { |
1205 | | // @@protoc_insertion_point(message_clear_start:yb.master.FlushTablesResponsePB) |
1206 | 7 | ::google::protobuf::uint32 cached_has_bits = 0; |
1207 | | // Prevent compiler warnings about cached_has_bits being unused |
1208 | 7 | (void) cached_has_bits; |
1209 | | |
1210 | 7 | cached_has_bits = _has_bits_[0]; |
1211 | 7 | if (cached_has_bits & 3u) { |
1212 | 0 | if (cached_has_bits & 0x00000001u) { |
1213 | 0 | GOOGLE_DCHECK(!flush_request_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1214 | 0 | (*flush_request_id_.UnsafeRawStringPointer())->clear(); |
1215 | 0 | } |
1216 | 0 | if (cached_has_bits & 0x00000002u) { |
1217 | 0 | GOOGLE_DCHECK(error_ != NULL); |
1218 | 0 | error_->Clear(); |
1219 | 0 | } |
1220 | 0 | } |
1221 | 7 | _has_bits_.Clear(); |
1222 | 7 | _internal_metadata_.Clear(); |
1223 | 7 | } |
1224 | | |
1225 | | bool FlushTablesResponsePB::MergePartialFromCodedStream( |
1226 | 7 | ::google::protobuf::io::CodedInputStream* input) { |
1227 | 7 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1228 | 7 | ::google::protobuf::uint32 tag; |
1229 | | // @@protoc_insertion_point(parse_start:yb.master.FlushTablesResponsePB) |
1230 | 14 | for (;;) { |
1231 | 14 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1232 | 14 | tag = p.first; |
1233 | 14 | if (!p.second) goto handle_unusual; |
1234 | 7 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1235 | | // optional .yb.master.MasterErrorPB error = 1; |
1236 | 0 | case 1: { |
1237 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1238 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1239 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1240 | 0 | input, mutable_error())); |
1241 | 0 | } else { |
1242 | 0 | goto handle_unusual; |
1243 | 0 | } |
1244 | 0 | break; |
1245 | 0 | } |
1246 | | |
1247 | | // optional bytes flush_request_id = 2; |
1248 | 7 | case 2: { |
1249 | 7 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1250 | 7 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1251 | 7 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1252 | 7 | input, this->mutable_flush_request_id())); |
1253 | 0 | } else { |
1254 | 0 | goto handle_unusual; |
1255 | 0 | } |
1256 | 7 | break; |
1257 | 7 | } |
1258 | | |
1259 | 0 | default: { |
1260 | 7 | handle_unusual: |
1261 | 7 | if (tag == 0) { |
1262 | 7 | goto success; |
1263 | 7 | } |
1264 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1265 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1266 | 0 | break; |
1267 | 0 | } |
1268 | 7 | } |
1269 | 7 | } |
1270 | 7 | success: |
1271 | | // @@protoc_insertion_point(parse_success:yb.master.FlushTablesResponsePB) |
1272 | 7 | return true; |
1273 | 0 | failure: |
1274 | | // @@protoc_insertion_point(parse_failure:yb.master.FlushTablesResponsePB) |
1275 | 0 | return false; |
1276 | 7 | #undef DO_ |
1277 | 7 | } |
1278 | | |
1279 | | void FlushTablesResponsePB::SerializeWithCachedSizes( |
1280 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1281 | | // @@protoc_insertion_point(serialize_start:yb.master.FlushTablesResponsePB) |
1282 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1283 | 0 | (void) cached_has_bits; |
1284 | |
|
1285 | 0 | cached_has_bits = _has_bits_[0]; |
1286 | | // optional .yb.master.MasterErrorPB error = 1; |
1287 | 0 | if (cached_has_bits & 0x00000002u) { |
1288 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1289 | 0 | 1, *this->error_, output); |
1290 | 0 | } |
1291 | | |
1292 | | // optional bytes flush_request_id = 2; |
1293 | 0 | if (cached_has_bits & 0x00000001u) { |
1294 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1295 | 0 | 2, this->flush_request_id(), output); |
1296 | 0 | } |
1297 | |
|
1298 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1299 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1300 | 0 | _internal_metadata_.unknown_fields(), output); |
1301 | 0 | } |
1302 | | // @@protoc_insertion_point(serialize_end:yb.master.FlushTablesResponsePB) |
1303 | 0 | } |
1304 | | |
1305 | | ::google::protobuf::uint8* FlushTablesResponsePB::InternalSerializeWithCachedSizesToArray( |
1306 | 7 | bool deterministic, ::google::protobuf::uint8* target) const { |
1307 | 7 | (void)deterministic; // Unused |
1308 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.FlushTablesResponsePB) |
1309 | 7 | ::google::protobuf::uint32 cached_has_bits = 0; |
1310 | 7 | (void) cached_has_bits; |
1311 | | |
1312 | 7 | cached_has_bits = _has_bits_[0]; |
1313 | | // optional .yb.master.MasterErrorPB error = 1; |
1314 | 7 | if (cached_has_bits & 0x00000002u) { |
1315 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1316 | 0 | InternalWriteMessageToArray( |
1317 | 0 | 1, *this->error_, deterministic, target); |
1318 | 0 | } |
1319 | | |
1320 | | // optional bytes flush_request_id = 2; |
1321 | 7 | if (cached_has_bits & 0x00000001u) { |
1322 | 7 | target = |
1323 | 7 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1324 | 7 | 2, this->flush_request_id(), target); |
1325 | 7 | } |
1326 | | |
1327 | 7 | if (_internal_metadata_.have_unknown_fields()) { |
1328 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1329 | 0 | _internal_metadata_.unknown_fields(), target); |
1330 | 0 | } |
1331 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.FlushTablesResponsePB) |
1332 | 7 | return target; |
1333 | 7 | } |
1334 | | |
1335 | 14 | size_t FlushTablesResponsePB::ByteSizeLong() const { |
1336 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.FlushTablesResponsePB) |
1337 | 14 | size_t total_size = 0; |
1338 | | |
1339 | 14 | if (_internal_metadata_.have_unknown_fields()) { |
1340 | 0 | total_size += |
1341 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1342 | 0 | _internal_metadata_.unknown_fields()); |
1343 | 0 | } |
1344 | 14 | if (_has_bits_[0 / 32] & 3u) { |
1345 | | // optional bytes flush_request_id = 2; |
1346 | 14 | if (has_flush_request_id()) { |
1347 | 14 | total_size += 1 + |
1348 | 14 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1349 | 14 | this->flush_request_id()); |
1350 | 14 | } |
1351 | | |
1352 | | // optional .yb.master.MasterErrorPB error = 1; |
1353 | 14 | if (has_error()) { |
1354 | 0 | total_size += 1 + |
1355 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1356 | 0 | *this->error_); |
1357 | 0 | } |
1358 | | |
1359 | 14 | } |
1360 | 14 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1361 | 14 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1362 | 14 | _cached_size_ = cached_size; |
1363 | 14 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1364 | 14 | return total_size; |
1365 | 14 | } |
1366 | | |
1367 | 0 | void FlushTablesResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
1368 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.FlushTablesResponsePB) |
1369 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1370 | 0 | const FlushTablesResponsePB* source = |
1371 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const FlushTablesResponsePB>( |
1372 | 0 | &from); |
1373 | 0 | if (source == NULL) { |
1374 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.FlushTablesResponsePB) |
1375 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1376 | 0 | } else { |
1377 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.FlushTablesResponsePB) |
1378 | 0 | MergeFrom(*source); |
1379 | 0 | } |
1380 | 0 | } |
1381 | | |
1382 | 0 | void FlushTablesResponsePB::MergeFrom(const FlushTablesResponsePB& from) { |
1383 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.FlushTablesResponsePB) |
1384 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1385 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1386 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1387 | 0 | (void) cached_has_bits; |
1388 | |
|
1389 | 0 | cached_has_bits = from._has_bits_[0]; |
1390 | 0 | if (cached_has_bits & 3u) { |
1391 | 0 | if (cached_has_bits & 0x00000001u) { |
1392 | 0 | set_has_flush_request_id(); |
1393 | 0 | flush_request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flush_request_id_); |
1394 | 0 | } |
1395 | 0 | if (cached_has_bits & 0x00000002u) { |
1396 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
1397 | 0 | } |
1398 | 0 | } |
1399 | 0 | } |
1400 | | |
1401 | 0 | void FlushTablesResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
1402 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.FlushTablesResponsePB) |
1403 | 0 | if (&from == this) return; |
1404 | 0 | Clear(); |
1405 | 0 | MergeFrom(from); |
1406 | 0 | } |
1407 | | |
1408 | 0 | void FlushTablesResponsePB::CopyFrom(const FlushTablesResponsePB& from) { |
1409 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.FlushTablesResponsePB) |
1410 | 0 | if (&from == this) return; |
1411 | 0 | Clear(); |
1412 | 0 | MergeFrom(from); |
1413 | 0 | } |
1414 | | |
1415 | 14 | bool FlushTablesResponsePB::IsInitialized() const { |
1416 | 14 | if (has_error()) { |
1417 | 0 | if (!this->error_->IsInitialized()) return false; |
1418 | 14 | } |
1419 | 14 | return true; |
1420 | 14 | } |
1421 | | |
1422 | 0 | void FlushTablesResponsePB::Swap(FlushTablesResponsePB* other) { |
1423 | 0 | if (other == this) return; |
1424 | 0 | InternalSwap(other); |
1425 | 0 | } |
1426 | 0 | void FlushTablesResponsePB::InternalSwap(FlushTablesResponsePB* other) { |
1427 | 0 | using std::swap; |
1428 | 0 | flush_request_id_.Swap(&other->flush_request_id_); |
1429 | 0 | swap(error_, other->error_); |
1430 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1431 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1432 | 0 | swap(_cached_size_, other->_cached_size_); |
1433 | 0 | } |
1434 | | |
1435 | 0 | ::google::protobuf::Metadata FlushTablesResponsePB::GetMetadata() const { |
1436 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
1437 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
1438 | 0 | } |
1439 | | |
1440 | | |
1441 | | // =================================================================== |
1442 | | |
1443 | 15.8k | void IsFlushTablesDoneRequestPB::InitAsDefaultInstance() { |
1444 | 15.8k | } |
1445 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1446 | | const int IsFlushTablesDoneRequestPB::kFlushRequestIdFieldNumber; |
1447 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1448 | | |
1449 | | IsFlushTablesDoneRequestPB::IsFlushTablesDoneRequestPB() |
1450 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1451 | 38 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1452 | 38 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsFlushTablesDoneRequestPB(); |
1453 | 38 | } |
1454 | 15.8k | SharedCtor(); |
1455 | | // @@protoc_insertion_point(constructor:yb.master.IsFlushTablesDoneRequestPB) |
1456 | 15.8k | } |
1457 | | IsFlushTablesDoneRequestPB::IsFlushTablesDoneRequestPB(const IsFlushTablesDoneRequestPB& from) |
1458 | | : ::google::protobuf::Message(), |
1459 | | _internal_metadata_(NULL), |
1460 | | _has_bits_(from._has_bits_), |
1461 | 0 | _cached_size_(0) { |
1462 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1463 | 0 | flush_request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1464 | 0 | if (from.has_flush_request_id()) { |
1465 | 0 | flush_request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flush_request_id_); |
1466 | 0 | } |
1467 | | // @@protoc_insertion_point(copy_constructor:yb.master.IsFlushTablesDoneRequestPB) |
1468 | 0 | } |
1469 | | |
1470 | 15.8k | void IsFlushTablesDoneRequestPB::SharedCtor() { |
1471 | 15.8k | _cached_size_ = 0; |
1472 | 15.8k | flush_request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1473 | 15.8k | } |
1474 | | |
1475 | 38 | IsFlushTablesDoneRequestPB::~IsFlushTablesDoneRequestPB() { |
1476 | | // @@protoc_insertion_point(destructor:yb.master.IsFlushTablesDoneRequestPB) |
1477 | 38 | SharedDtor(); |
1478 | 38 | } |
1479 | | |
1480 | 38 | void IsFlushTablesDoneRequestPB::SharedDtor() { |
1481 | 38 | flush_request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1482 | 38 | } |
1483 | | |
1484 | 0 | void IsFlushTablesDoneRequestPB::SetCachedSize(int size) const { |
1485 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1486 | 0 | _cached_size_ = size; |
1487 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1488 | 0 | } |
1489 | 0 | const ::google::protobuf::Descriptor* IsFlushTablesDoneRequestPB::descriptor() { |
1490 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
1491 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1492 | 0 | } |
1493 | | |
1494 | 0 | const IsFlushTablesDoneRequestPB& IsFlushTablesDoneRequestPB::default_instance() { |
1495 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsFlushTablesDoneRequestPB(); |
1496 | 0 | return *internal_default_instance(); |
1497 | 0 | } |
1498 | | |
1499 | 0 | IsFlushTablesDoneRequestPB* IsFlushTablesDoneRequestPB::New(::google::protobuf::Arena* arena) const { |
1500 | 0 | IsFlushTablesDoneRequestPB* n = new IsFlushTablesDoneRequestPB; |
1501 | 0 | if (arena != NULL) { |
1502 | 0 | arena->Own(n); |
1503 | 0 | } |
1504 | 0 | return n; |
1505 | 0 | } |
1506 | | |
1507 | 19 | void IsFlushTablesDoneRequestPB::Clear() { |
1508 | | // @@protoc_insertion_point(message_clear_start:yb.master.IsFlushTablesDoneRequestPB) |
1509 | 19 | ::google::protobuf::uint32 cached_has_bits = 0; |
1510 | | // Prevent compiler warnings about cached_has_bits being unused |
1511 | 19 | (void) cached_has_bits; |
1512 | | |
1513 | 19 | cached_has_bits = _has_bits_[0]; |
1514 | 19 | if (cached_has_bits & 0x00000001u) { |
1515 | 0 | GOOGLE_DCHECK(!flush_request_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1516 | 0 | (*flush_request_id_.UnsafeRawStringPointer())->clear(); |
1517 | 0 | } |
1518 | 19 | _has_bits_.Clear(); |
1519 | 19 | _internal_metadata_.Clear(); |
1520 | 19 | } |
1521 | | |
1522 | | bool IsFlushTablesDoneRequestPB::MergePartialFromCodedStream( |
1523 | 19 | ::google::protobuf::io::CodedInputStream* input) { |
1524 | 19 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1525 | 19 | ::google::protobuf::uint32 tag; |
1526 | | // @@protoc_insertion_point(parse_start:yb.master.IsFlushTablesDoneRequestPB) |
1527 | 38 | for (;;) { |
1528 | 38 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1529 | 38 | tag = p.first; |
1530 | 38 | if (!p.second) goto handle_unusual; |
1531 | 19 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1532 | | // optional bytes flush_request_id = 1; |
1533 | 19 | case 1: { |
1534 | 19 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1535 | 19 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1536 | 19 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1537 | 19 | input, this->mutable_flush_request_id())); |
1538 | 0 | } else { |
1539 | 0 | goto handle_unusual; |
1540 | 0 | } |
1541 | 19 | break; |
1542 | 19 | } |
1543 | | |
1544 | 0 | default: { |
1545 | 19 | handle_unusual: |
1546 | 19 | if (tag == 0) { |
1547 | 19 | goto success; |
1548 | 19 | } |
1549 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1550 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1551 | 0 | break; |
1552 | 0 | } |
1553 | 19 | } |
1554 | 19 | } |
1555 | 19 | success: |
1556 | | // @@protoc_insertion_point(parse_success:yb.master.IsFlushTablesDoneRequestPB) |
1557 | 19 | return true; |
1558 | 0 | failure: |
1559 | | // @@protoc_insertion_point(parse_failure:yb.master.IsFlushTablesDoneRequestPB) |
1560 | 0 | return false; |
1561 | 19 | #undef DO_ |
1562 | 19 | } |
1563 | | |
1564 | | void IsFlushTablesDoneRequestPB::SerializeWithCachedSizes( |
1565 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1566 | | // @@protoc_insertion_point(serialize_start:yb.master.IsFlushTablesDoneRequestPB) |
1567 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1568 | 0 | (void) cached_has_bits; |
1569 | |
|
1570 | 0 | cached_has_bits = _has_bits_[0]; |
1571 | | // optional bytes flush_request_id = 1; |
1572 | 0 | if (cached_has_bits & 0x00000001u) { |
1573 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1574 | 0 | 1, this->flush_request_id(), output); |
1575 | 0 | } |
1576 | |
|
1577 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1578 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1579 | 0 | _internal_metadata_.unknown_fields(), output); |
1580 | 0 | } |
1581 | | // @@protoc_insertion_point(serialize_end:yb.master.IsFlushTablesDoneRequestPB) |
1582 | 0 | } |
1583 | | |
1584 | | ::google::protobuf::uint8* IsFlushTablesDoneRequestPB::InternalSerializeWithCachedSizesToArray( |
1585 | 19 | bool deterministic, ::google::protobuf::uint8* target) const { |
1586 | 19 | (void)deterministic; // Unused |
1587 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.IsFlushTablesDoneRequestPB) |
1588 | 19 | ::google::protobuf::uint32 cached_has_bits = 0; |
1589 | 19 | (void) cached_has_bits; |
1590 | | |
1591 | 19 | cached_has_bits = _has_bits_[0]; |
1592 | | // optional bytes flush_request_id = 1; |
1593 | 19 | if (cached_has_bits & 0x00000001u) { |
1594 | 19 | target = |
1595 | 19 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1596 | 19 | 1, this->flush_request_id(), target); |
1597 | 19 | } |
1598 | | |
1599 | 19 | if (_internal_metadata_.have_unknown_fields()) { |
1600 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1601 | 0 | _internal_metadata_.unknown_fields(), target); |
1602 | 0 | } |
1603 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.IsFlushTablesDoneRequestPB) |
1604 | 19 | return target; |
1605 | 19 | } |
1606 | | |
1607 | 38 | size_t IsFlushTablesDoneRequestPB::ByteSizeLong() const { |
1608 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.IsFlushTablesDoneRequestPB) |
1609 | 38 | size_t total_size = 0; |
1610 | | |
1611 | 38 | if (_internal_metadata_.have_unknown_fields()) { |
1612 | 0 | total_size += |
1613 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1614 | 0 | _internal_metadata_.unknown_fields()); |
1615 | 0 | } |
1616 | | // optional bytes flush_request_id = 1; |
1617 | 38 | if (has_flush_request_id()) { |
1618 | 38 | total_size += 1 + |
1619 | 38 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1620 | 38 | this->flush_request_id()); |
1621 | 38 | } |
1622 | | |
1623 | 38 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1624 | 38 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1625 | 38 | _cached_size_ = cached_size; |
1626 | 38 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1627 | 38 | return total_size; |
1628 | 38 | } |
1629 | | |
1630 | 0 | void IsFlushTablesDoneRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
1631 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.IsFlushTablesDoneRequestPB) |
1632 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1633 | 0 | const IsFlushTablesDoneRequestPB* source = |
1634 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsFlushTablesDoneRequestPB>( |
1635 | 0 | &from); |
1636 | 0 | if (source == NULL) { |
1637 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.IsFlushTablesDoneRequestPB) |
1638 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1639 | 0 | } else { |
1640 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.IsFlushTablesDoneRequestPB) |
1641 | 0 | MergeFrom(*source); |
1642 | 0 | } |
1643 | 0 | } |
1644 | | |
1645 | 0 | void IsFlushTablesDoneRequestPB::MergeFrom(const IsFlushTablesDoneRequestPB& from) { |
1646 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.IsFlushTablesDoneRequestPB) |
1647 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1648 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1649 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1650 | 0 | (void) cached_has_bits; |
1651 | |
|
1652 | 0 | if (from.has_flush_request_id()) { |
1653 | 0 | set_has_flush_request_id(); |
1654 | 0 | flush_request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flush_request_id_); |
1655 | 0 | } |
1656 | 0 | } |
1657 | | |
1658 | 0 | void IsFlushTablesDoneRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
1659 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.IsFlushTablesDoneRequestPB) |
1660 | 0 | if (&from == this) return; |
1661 | 0 | Clear(); |
1662 | 0 | MergeFrom(from); |
1663 | 0 | } |
1664 | | |
1665 | 0 | void IsFlushTablesDoneRequestPB::CopyFrom(const IsFlushTablesDoneRequestPB& from) { |
1666 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.IsFlushTablesDoneRequestPB) |
1667 | 0 | if (&from == this) return; |
1668 | 0 | Clear(); |
1669 | 0 | MergeFrom(from); |
1670 | 0 | } |
1671 | | |
1672 | 38 | bool IsFlushTablesDoneRequestPB::IsInitialized() const { |
1673 | 38 | return true; |
1674 | 38 | } |
1675 | | |
1676 | 0 | void IsFlushTablesDoneRequestPB::Swap(IsFlushTablesDoneRequestPB* other) { |
1677 | 0 | if (other == this) return; |
1678 | 0 | InternalSwap(other); |
1679 | 0 | } |
1680 | 0 | void IsFlushTablesDoneRequestPB::InternalSwap(IsFlushTablesDoneRequestPB* other) { |
1681 | 0 | using std::swap; |
1682 | 0 | flush_request_id_.Swap(&other->flush_request_id_); |
1683 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1684 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1685 | 0 | swap(_cached_size_, other->_cached_size_); |
1686 | 0 | } |
1687 | | |
1688 | 57 | ::google::protobuf::Metadata IsFlushTablesDoneRequestPB::GetMetadata() const { |
1689 | 57 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
1690 | 57 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
1691 | 57 | } |
1692 | | |
1693 | | |
1694 | | // =================================================================== |
1695 | | |
1696 | 15.8k | void IsFlushTablesDoneResponsePB::InitAsDefaultInstance() { |
1697 | 15.8k | ::yb::master::_IsFlushTablesDoneResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
1698 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
1699 | 15.8k | } |
1700 | 0 | void IsFlushTablesDoneResponsePB::clear_error() { |
1701 | 0 | if (error_ != NULL) error_->Clear(); |
1702 | 0 | clear_has_error(); |
1703 | 0 | } |
1704 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1705 | | const int IsFlushTablesDoneResponsePB::kErrorFieldNumber; |
1706 | | const int IsFlushTablesDoneResponsePB::kDoneFieldNumber; |
1707 | | const int IsFlushTablesDoneResponsePB::kSuccessFieldNumber; |
1708 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1709 | | |
1710 | | IsFlushTablesDoneResponsePB::IsFlushTablesDoneResponsePB() |
1711 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1712 | 38 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1713 | 38 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsFlushTablesDoneResponsePB(); |
1714 | 38 | } |
1715 | 15.8k | SharedCtor(); |
1716 | | // @@protoc_insertion_point(constructor:yb.master.IsFlushTablesDoneResponsePB) |
1717 | 15.8k | } |
1718 | | IsFlushTablesDoneResponsePB::IsFlushTablesDoneResponsePB(const IsFlushTablesDoneResponsePB& from) |
1719 | | : ::google::protobuf::Message(), |
1720 | | _internal_metadata_(NULL), |
1721 | | _has_bits_(from._has_bits_), |
1722 | 0 | _cached_size_(0) { |
1723 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1724 | 0 | if (from.has_error()) { |
1725 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
1726 | 0 | } else { |
1727 | 0 | error_ = NULL; |
1728 | 0 | } |
1729 | 0 | ::memcpy(&done_, &from.done_, |
1730 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&success_) - |
1731 | 0 | reinterpret_cast<char*>(&done_)) + sizeof(success_)); |
1732 | | // @@protoc_insertion_point(copy_constructor:yb.master.IsFlushTablesDoneResponsePB) |
1733 | 0 | } |
1734 | | |
1735 | 15.8k | void IsFlushTablesDoneResponsePB::SharedCtor() { |
1736 | 15.8k | _cached_size_ = 0; |
1737 | 15.8k | ::memset(&error_, 0, static_cast<size_t>( |
1738 | 15.8k | reinterpret_cast<char*>(&success_) - |
1739 | 15.8k | reinterpret_cast<char*>(&error_)) + sizeof(success_)); |
1740 | 15.8k | } |
1741 | | |
1742 | 38 | IsFlushTablesDoneResponsePB::~IsFlushTablesDoneResponsePB() { |
1743 | | // @@protoc_insertion_point(destructor:yb.master.IsFlushTablesDoneResponsePB) |
1744 | 38 | SharedDtor(); |
1745 | 38 | } |
1746 | | |
1747 | 38 | void IsFlushTablesDoneResponsePB::SharedDtor() { |
1748 | 38 | if (this != internal_default_instance()) delete error_; |
1749 | 38 | } |
1750 | | |
1751 | 0 | void IsFlushTablesDoneResponsePB::SetCachedSize(int size) const { |
1752 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1753 | 0 | _cached_size_ = size; |
1754 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1755 | 0 | } |
1756 | 0 | const ::google::protobuf::Descriptor* IsFlushTablesDoneResponsePB::descriptor() { |
1757 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
1758 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1759 | 0 | } |
1760 | | |
1761 | 0 | const IsFlushTablesDoneResponsePB& IsFlushTablesDoneResponsePB::default_instance() { |
1762 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsFlushTablesDoneResponsePB(); |
1763 | 0 | return *internal_default_instance(); |
1764 | 0 | } |
1765 | | |
1766 | 0 | IsFlushTablesDoneResponsePB* IsFlushTablesDoneResponsePB::New(::google::protobuf::Arena* arena) const { |
1767 | 0 | IsFlushTablesDoneResponsePB* n = new IsFlushTablesDoneResponsePB; |
1768 | 0 | if (arena != NULL) { |
1769 | 0 | arena->Own(n); |
1770 | 0 | } |
1771 | 0 | return n; |
1772 | 0 | } |
1773 | | |
1774 | 19 | void IsFlushTablesDoneResponsePB::Clear() { |
1775 | | // @@protoc_insertion_point(message_clear_start:yb.master.IsFlushTablesDoneResponsePB) |
1776 | 19 | ::google::protobuf::uint32 cached_has_bits = 0; |
1777 | | // Prevent compiler warnings about cached_has_bits being unused |
1778 | 19 | (void) cached_has_bits; |
1779 | | |
1780 | 19 | cached_has_bits = _has_bits_[0]; |
1781 | 19 | if (cached_has_bits & 0x00000001u) { |
1782 | 0 | GOOGLE_DCHECK(error_ != NULL); |
1783 | 0 | error_->Clear(); |
1784 | 0 | } |
1785 | 19 | ::memset(&done_, 0, static_cast<size_t>( |
1786 | 19 | reinterpret_cast<char*>(&success_) - |
1787 | 19 | reinterpret_cast<char*>(&done_)) + sizeof(success_)); |
1788 | 19 | _has_bits_.Clear(); |
1789 | 19 | _internal_metadata_.Clear(); |
1790 | 19 | } |
1791 | | |
1792 | | bool IsFlushTablesDoneResponsePB::MergePartialFromCodedStream( |
1793 | 19 | ::google::protobuf::io::CodedInputStream* input) { |
1794 | 38 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1795 | 19 | ::google::protobuf::uint32 tag; |
1796 | | // @@protoc_insertion_point(parse_start:yb.master.IsFlushTablesDoneResponsePB) |
1797 | 57 | for (;;) { |
1798 | 57 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1799 | 57 | tag = p.first; |
1800 | 57 | if (!p.second) goto handle_unusual; |
1801 | 38 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1802 | | // optional .yb.master.MasterErrorPB error = 1; |
1803 | 0 | case 1: { |
1804 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1805 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1806 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1807 | 0 | input, mutable_error())); |
1808 | 0 | } else { |
1809 | 0 | goto handle_unusual; |
1810 | 0 | } |
1811 | 0 | break; |
1812 | 0 | } |
1813 | | |
1814 | | // optional bool done = 2; |
1815 | 19 | case 2: { |
1816 | 19 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1817 | 19 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1818 | 19 | set_has_done(); |
1819 | 19 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1820 | 19 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1821 | 19 | input, &done_))); |
1822 | 0 | } else { |
1823 | 0 | goto handle_unusual; |
1824 | 0 | } |
1825 | 19 | break; |
1826 | 19 | } |
1827 | | |
1828 | | // optional bool success = 3; |
1829 | 19 | case 3: { |
1830 | 19 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1831 | 19 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
1832 | 19 | set_has_success(); |
1833 | 19 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1834 | 19 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1835 | 19 | input, &success_))); |
1836 | 0 | } else { |
1837 | 0 | goto handle_unusual; |
1838 | 0 | } |
1839 | 19 | break; |
1840 | 19 | } |
1841 | | |
1842 | 0 | default: { |
1843 | 19 | handle_unusual: |
1844 | 19 | if (tag == 0) { |
1845 | 19 | goto success; |
1846 | 19 | } |
1847 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1848 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1849 | 0 | break; |
1850 | 0 | } |
1851 | 38 | } |
1852 | 38 | } |
1853 | 19 | success: |
1854 | | // @@protoc_insertion_point(parse_success:yb.master.IsFlushTablesDoneResponsePB) |
1855 | 19 | return true; |
1856 | 0 | failure: |
1857 | | // @@protoc_insertion_point(parse_failure:yb.master.IsFlushTablesDoneResponsePB) |
1858 | 0 | return false; |
1859 | 19 | #undef DO_ |
1860 | 19 | } |
1861 | | |
1862 | | void IsFlushTablesDoneResponsePB::SerializeWithCachedSizes( |
1863 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1864 | | // @@protoc_insertion_point(serialize_start:yb.master.IsFlushTablesDoneResponsePB) |
1865 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1866 | 0 | (void) cached_has_bits; |
1867 | |
|
1868 | 0 | cached_has_bits = _has_bits_[0]; |
1869 | | // optional .yb.master.MasterErrorPB error = 1; |
1870 | 0 | if (cached_has_bits & 0x00000001u) { |
1871 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1872 | 0 | 1, *this->error_, output); |
1873 | 0 | } |
1874 | | |
1875 | | // optional bool done = 2; |
1876 | 0 | if (cached_has_bits & 0x00000002u) { |
1877 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->done(), output); |
1878 | 0 | } |
1879 | | |
1880 | | // optional bool success = 3; |
1881 | 0 | if (cached_has_bits & 0x00000004u) { |
1882 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->success(), output); |
1883 | 0 | } |
1884 | |
|
1885 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1886 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1887 | 0 | _internal_metadata_.unknown_fields(), output); |
1888 | 0 | } |
1889 | | // @@protoc_insertion_point(serialize_end:yb.master.IsFlushTablesDoneResponsePB) |
1890 | 0 | } |
1891 | | |
1892 | | ::google::protobuf::uint8* IsFlushTablesDoneResponsePB::InternalSerializeWithCachedSizesToArray( |
1893 | 19 | bool deterministic, ::google::protobuf::uint8* target) const { |
1894 | 19 | (void)deterministic; // Unused |
1895 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.IsFlushTablesDoneResponsePB) |
1896 | 19 | ::google::protobuf::uint32 cached_has_bits = 0; |
1897 | 19 | (void) cached_has_bits; |
1898 | | |
1899 | 19 | cached_has_bits = _has_bits_[0]; |
1900 | | // optional .yb.master.MasterErrorPB error = 1; |
1901 | 19 | if (cached_has_bits & 0x00000001u) { |
1902 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1903 | 0 | InternalWriteMessageToArray( |
1904 | 0 | 1, *this->error_, deterministic, target); |
1905 | 0 | } |
1906 | | |
1907 | | // optional bool done = 2; |
1908 | 19 | if (cached_has_bits & 0x00000002u) { |
1909 | 19 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->done(), target); |
1910 | 19 | } |
1911 | | |
1912 | | // optional bool success = 3; |
1913 | 19 | if (cached_has_bits & 0x00000004u) { |
1914 | 19 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->success(), target); |
1915 | 19 | } |
1916 | | |
1917 | 19 | if (_internal_metadata_.have_unknown_fields()) { |
1918 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1919 | 0 | _internal_metadata_.unknown_fields(), target); |
1920 | 0 | } |
1921 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.IsFlushTablesDoneResponsePB) |
1922 | 19 | return target; |
1923 | 19 | } |
1924 | | |
1925 | 38 | size_t IsFlushTablesDoneResponsePB::ByteSizeLong() const { |
1926 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.IsFlushTablesDoneResponsePB) |
1927 | 38 | size_t total_size = 0; |
1928 | | |
1929 | 38 | if (_internal_metadata_.have_unknown_fields()) { |
1930 | 0 | total_size += |
1931 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1932 | 0 | _internal_metadata_.unknown_fields()); |
1933 | 0 | } |
1934 | 38 | if (_has_bits_[0 / 32] & 7u) { |
1935 | | // optional .yb.master.MasterErrorPB error = 1; |
1936 | 38 | if (has_error()) { |
1937 | 0 | total_size += 1 + |
1938 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1939 | 0 | *this->error_); |
1940 | 0 | } |
1941 | | |
1942 | | // optional bool done = 2; |
1943 | 38 | if (has_done()) { |
1944 | 38 | total_size += 1 + 1; |
1945 | 38 | } |
1946 | | |
1947 | | // optional bool success = 3; |
1948 | 38 | if (has_success()) { |
1949 | 38 | total_size += 1 + 1; |
1950 | 38 | } |
1951 | | |
1952 | 38 | } |
1953 | 38 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1954 | 38 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1955 | 38 | _cached_size_ = cached_size; |
1956 | 38 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1957 | 38 | return total_size; |
1958 | 38 | } |
1959 | | |
1960 | 0 | void IsFlushTablesDoneResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
1961 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.IsFlushTablesDoneResponsePB) |
1962 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1963 | 0 | const IsFlushTablesDoneResponsePB* source = |
1964 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsFlushTablesDoneResponsePB>( |
1965 | 0 | &from); |
1966 | 0 | if (source == NULL) { |
1967 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.IsFlushTablesDoneResponsePB) |
1968 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1969 | 0 | } else { |
1970 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.IsFlushTablesDoneResponsePB) |
1971 | 0 | MergeFrom(*source); |
1972 | 0 | } |
1973 | 0 | } |
1974 | | |
1975 | 0 | void IsFlushTablesDoneResponsePB::MergeFrom(const IsFlushTablesDoneResponsePB& from) { |
1976 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.IsFlushTablesDoneResponsePB) |
1977 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1978 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1979 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1980 | 0 | (void) cached_has_bits; |
1981 | |
|
1982 | 0 | cached_has_bits = from._has_bits_[0]; |
1983 | 0 | if (cached_has_bits & 7u) { |
1984 | 0 | if (cached_has_bits & 0x00000001u) { |
1985 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
1986 | 0 | } |
1987 | 0 | if (cached_has_bits & 0x00000002u) { |
1988 | 0 | done_ = from.done_; |
1989 | 0 | } |
1990 | 0 | if (cached_has_bits & 0x00000004u) { |
1991 | 0 | success_ = from.success_; |
1992 | 0 | } |
1993 | 0 | _has_bits_[0] |= cached_has_bits; |
1994 | 0 | } |
1995 | 0 | } |
1996 | | |
1997 | 0 | void IsFlushTablesDoneResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
1998 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.IsFlushTablesDoneResponsePB) |
1999 | 0 | if (&from == this) return; |
2000 | 0 | Clear(); |
2001 | 0 | MergeFrom(from); |
2002 | 0 | } |
2003 | | |
2004 | 0 | void IsFlushTablesDoneResponsePB::CopyFrom(const IsFlushTablesDoneResponsePB& from) { |
2005 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.IsFlushTablesDoneResponsePB) |
2006 | 0 | if (&from == this) return; |
2007 | 0 | Clear(); |
2008 | 0 | MergeFrom(from); |
2009 | 0 | } |
2010 | | |
2011 | 38 | bool IsFlushTablesDoneResponsePB::IsInitialized() const { |
2012 | 38 | if (has_error()) { |
2013 | 0 | if (!this->error_->IsInitialized()) return false; |
2014 | 38 | } |
2015 | 38 | return true; |
2016 | 38 | } |
2017 | | |
2018 | 0 | void IsFlushTablesDoneResponsePB::Swap(IsFlushTablesDoneResponsePB* other) { |
2019 | 0 | if (other == this) return; |
2020 | 0 | InternalSwap(other); |
2021 | 0 | } |
2022 | 0 | void IsFlushTablesDoneResponsePB::InternalSwap(IsFlushTablesDoneResponsePB* other) { |
2023 | 0 | using std::swap; |
2024 | 0 | swap(error_, other->error_); |
2025 | 0 | swap(done_, other->done_); |
2026 | 0 | swap(success_, other->success_); |
2027 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2028 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2029 | 0 | swap(_cached_size_, other->_cached_size_); |
2030 | 0 | } |
2031 | | |
2032 | 0 | ::google::protobuf::Metadata IsFlushTablesDoneResponsePB::GetMetadata() const { |
2033 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2034 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
2035 | 0 | } |
2036 | | |
2037 | | |
2038 | | // =================================================================== |
2039 | | |
2040 | 15.8k | void FlushSysCatalogRequestPB::InitAsDefaultInstance() { |
2041 | 15.8k | } |
2042 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2043 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2044 | | |
2045 | | FlushSysCatalogRequestPB::FlushSysCatalogRequestPB() |
2046 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2047 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2048 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushSysCatalogRequestPB(); |
2049 | 0 | } |
2050 | 15.8k | SharedCtor(); |
2051 | | // @@protoc_insertion_point(constructor:yb.master.FlushSysCatalogRequestPB) |
2052 | 15.8k | } |
2053 | | FlushSysCatalogRequestPB::FlushSysCatalogRequestPB(const FlushSysCatalogRequestPB& from) |
2054 | | : ::google::protobuf::Message(), |
2055 | | _internal_metadata_(NULL), |
2056 | | _has_bits_(from._has_bits_), |
2057 | 0 | _cached_size_(0) { |
2058 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2059 | | // @@protoc_insertion_point(copy_constructor:yb.master.FlushSysCatalogRequestPB) |
2060 | 0 | } |
2061 | | |
2062 | 15.8k | void FlushSysCatalogRequestPB::SharedCtor() { |
2063 | 15.8k | _cached_size_ = 0; |
2064 | 15.8k | } |
2065 | | |
2066 | 0 | FlushSysCatalogRequestPB::~FlushSysCatalogRequestPB() { |
2067 | | // @@protoc_insertion_point(destructor:yb.master.FlushSysCatalogRequestPB) |
2068 | 0 | SharedDtor(); |
2069 | 0 | } |
2070 | | |
2071 | 0 | void FlushSysCatalogRequestPB::SharedDtor() { |
2072 | 0 | } |
2073 | | |
2074 | 0 | void FlushSysCatalogRequestPB::SetCachedSize(int size) const { |
2075 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2076 | 0 | _cached_size_ = size; |
2077 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2078 | 0 | } |
2079 | 0 | const ::google::protobuf::Descriptor* FlushSysCatalogRequestPB::descriptor() { |
2080 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2081 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2082 | 0 | } |
2083 | | |
2084 | 0 | const FlushSysCatalogRequestPB& FlushSysCatalogRequestPB::default_instance() { |
2085 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushSysCatalogRequestPB(); |
2086 | 0 | return *internal_default_instance(); |
2087 | 0 | } |
2088 | | |
2089 | 0 | FlushSysCatalogRequestPB* FlushSysCatalogRequestPB::New(::google::protobuf::Arena* arena) const { |
2090 | 0 | FlushSysCatalogRequestPB* n = new FlushSysCatalogRequestPB; |
2091 | 0 | if (arena != NULL) { |
2092 | 0 | arena->Own(n); |
2093 | 0 | } |
2094 | 0 | return n; |
2095 | 0 | } |
2096 | | |
2097 | 0 | void FlushSysCatalogRequestPB::Clear() { |
2098 | | // @@protoc_insertion_point(message_clear_start:yb.master.FlushSysCatalogRequestPB) |
2099 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2100 | | // Prevent compiler warnings about cached_has_bits being unused |
2101 | 0 | (void) cached_has_bits; |
2102 | |
|
2103 | 0 | _has_bits_.Clear(); |
2104 | 0 | _internal_metadata_.Clear(); |
2105 | 0 | } |
2106 | | |
2107 | | bool FlushSysCatalogRequestPB::MergePartialFromCodedStream( |
2108 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2109 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2110 | 0 | ::google::protobuf::uint32 tag; |
2111 | | // @@protoc_insertion_point(parse_start:yb.master.FlushSysCatalogRequestPB) |
2112 | 0 | for (;;) { |
2113 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2114 | 0 | tag = p.first; |
2115 | 0 | if (!p.second) goto handle_unusual; |
2116 | 0 | handle_unusual: |
2117 | 0 | if (tag == 0) { |
2118 | 0 | goto success; |
2119 | 0 | } |
2120 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2121 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2122 | 0 | } |
2123 | 0 | success: |
2124 | | // @@protoc_insertion_point(parse_success:yb.master.FlushSysCatalogRequestPB) |
2125 | 0 | return true; |
2126 | 0 | failure: |
2127 | | // @@protoc_insertion_point(parse_failure:yb.master.FlushSysCatalogRequestPB) |
2128 | 0 | return false; |
2129 | 0 | #undef DO_ |
2130 | 0 | } |
2131 | | |
2132 | | void FlushSysCatalogRequestPB::SerializeWithCachedSizes( |
2133 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2134 | | // @@protoc_insertion_point(serialize_start:yb.master.FlushSysCatalogRequestPB) |
2135 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2136 | 0 | (void) cached_has_bits; |
2137 | |
|
2138 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2139 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2140 | 0 | _internal_metadata_.unknown_fields(), output); |
2141 | 0 | } |
2142 | | // @@protoc_insertion_point(serialize_end:yb.master.FlushSysCatalogRequestPB) |
2143 | 0 | } |
2144 | | |
2145 | | ::google::protobuf::uint8* FlushSysCatalogRequestPB::InternalSerializeWithCachedSizesToArray( |
2146 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2147 | 0 | (void)deterministic; // Unused |
2148 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.FlushSysCatalogRequestPB) |
2149 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2150 | 0 | (void) cached_has_bits; |
2151 | |
|
2152 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2153 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2154 | 0 | _internal_metadata_.unknown_fields(), target); |
2155 | 0 | } |
2156 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.FlushSysCatalogRequestPB) |
2157 | 0 | return target; |
2158 | 0 | } |
2159 | | |
2160 | 0 | size_t FlushSysCatalogRequestPB::ByteSizeLong() const { |
2161 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.FlushSysCatalogRequestPB) |
2162 | 0 | size_t total_size = 0; |
2163 | |
|
2164 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2165 | 0 | total_size += |
2166 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2167 | 0 | _internal_metadata_.unknown_fields()); |
2168 | 0 | } |
2169 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2170 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2171 | 0 | _cached_size_ = cached_size; |
2172 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2173 | 0 | return total_size; |
2174 | 0 | } |
2175 | | |
2176 | 0 | void FlushSysCatalogRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
2177 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.FlushSysCatalogRequestPB) |
2178 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2179 | 0 | const FlushSysCatalogRequestPB* source = |
2180 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const FlushSysCatalogRequestPB>( |
2181 | 0 | &from); |
2182 | 0 | if (source == NULL) { |
2183 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.FlushSysCatalogRequestPB) |
2184 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2185 | 0 | } else { |
2186 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.FlushSysCatalogRequestPB) |
2187 | 0 | MergeFrom(*source); |
2188 | 0 | } |
2189 | 0 | } |
2190 | | |
2191 | 0 | void FlushSysCatalogRequestPB::MergeFrom(const FlushSysCatalogRequestPB& from) { |
2192 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.FlushSysCatalogRequestPB) |
2193 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2194 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2195 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2196 | 0 | (void) cached_has_bits; |
2197 | |
|
2198 | 0 | } |
2199 | | |
2200 | 0 | void FlushSysCatalogRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
2201 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.FlushSysCatalogRequestPB) |
2202 | 0 | if (&from == this) return; |
2203 | 0 | Clear(); |
2204 | 0 | MergeFrom(from); |
2205 | 0 | } |
2206 | | |
2207 | 0 | void FlushSysCatalogRequestPB::CopyFrom(const FlushSysCatalogRequestPB& from) { |
2208 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.FlushSysCatalogRequestPB) |
2209 | 0 | if (&from == this) return; |
2210 | 0 | Clear(); |
2211 | 0 | MergeFrom(from); |
2212 | 0 | } |
2213 | | |
2214 | 0 | bool FlushSysCatalogRequestPB::IsInitialized() const { |
2215 | 0 | return true; |
2216 | 0 | } |
2217 | | |
2218 | 0 | void FlushSysCatalogRequestPB::Swap(FlushSysCatalogRequestPB* other) { |
2219 | 0 | if (other == this) return; |
2220 | 0 | InternalSwap(other); |
2221 | 0 | } |
2222 | 0 | void FlushSysCatalogRequestPB::InternalSwap(FlushSysCatalogRequestPB* other) { |
2223 | 0 | using std::swap; |
2224 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2225 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2226 | 0 | swap(_cached_size_, other->_cached_size_); |
2227 | 0 | } |
2228 | | |
2229 | 0 | ::google::protobuf::Metadata FlushSysCatalogRequestPB::GetMetadata() const { |
2230 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2231 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
2232 | 0 | } |
2233 | | |
2234 | | |
2235 | | // =================================================================== |
2236 | | |
2237 | 15.8k | void FlushSysCatalogResponsePB::InitAsDefaultInstance() { |
2238 | 15.8k | ::yb::master::_FlushSysCatalogResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
2239 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
2240 | 15.8k | } |
2241 | 0 | void FlushSysCatalogResponsePB::clear_error() { |
2242 | 0 | if (error_ != NULL) error_->Clear(); |
2243 | 0 | clear_has_error(); |
2244 | 0 | } |
2245 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2246 | | const int FlushSysCatalogResponsePB::kErrorFieldNumber; |
2247 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2248 | | |
2249 | | FlushSysCatalogResponsePB::FlushSysCatalogResponsePB() |
2250 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2251 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2252 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushSysCatalogResponsePB(); |
2253 | 0 | } |
2254 | 15.8k | SharedCtor(); |
2255 | | // @@protoc_insertion_point(constructor:yb.master.FlushSysCatalogResponsePB) |
2256 | 15.8k | } |
2257 | | FlushSysCatalogResponsePB::FlushSysCatalogResponsePB(const FlushSysCatalogResponsePB& from) |
2258 | | : ::google::protobuf::Message(), |
2259 | | _internal_metadata_(NULL), |
2260 | | _has_bits_(from._has_bits_), |
2261 | 0 | _cached_size_(0) { |
2262 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2263 | 0 | if (from.has_error()) { |
2264 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
2265 | 0 | } else { |
2266 | 0 | error_ = NULL; |
2267 | 0 | } |
2268 | | // @@protoc_insertion_point(copy_constructor:yb.master.FlushSysCatalogResponsePB) |
2269 | 0 | } |
2270 | | |
2271 | 15.8k | void FlushSysCatalogResponsePB::SharedCtor() { |
2272 | 15.8k | _cached_size_ = 0; |
2273 | 15.8k | error_ = NULL; |
2274 | 15.8k | } |
2275 | | |
2276 | 0 | FlushSysCatalogResponsePB::~FlushSysCatalogResponsePB() { |
2277 | | // @@protoc_insertion_point(destructor:yb.master.FlushSysCatalogResponsePB) |
2278 | 0 | SharedDtor(); |
2279 | 0 | } |
2280 | | |
2281 | 0 | void FlushSysCatalogResponsePB::SharedDtor() { |
2282 | 0 | if (this != internal_default_instance()) delete error_; |
2283 | 0 | } |
2284 | | |
2285 | 0 | void FlushSysCatalogResponsePB::SetCachedSize(int size) const { |
2286 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2287 | 0 | _cached_size_ = size; |
2288 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2289 | 0 | } |
2290 | 0 | const ::google::protobuf::Descriptor* FlushSysCatalogResponsePB::descriptor() { |
2291 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2292 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2293 | 0 | } |
2294 | | |
2295 | 0 | const FlushSysCatalogResponsePB& FlushSysCatalogResponsePB::default_instance() { |
2296 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsFlushSysCatalogResponsePB(); |
2297 | 0 | return *internal_default_instance(); |
2298 | 0 | } |
2299 | | |
2300 | 0 | FlushSysCatalogResponsePB* FlushSysCatalogResponsePB::New(::google::protobuf::Arena* arena) const { |
2301 | 0 | FlushSysCatalogResponsePB* n = new FlushSysCatalogResponsePB; |
2302 | 0 | if (arena != NULL) { |
2303 | 0 | arena->Own(n); |
2304 | 0 | } |
2305 | 0 | return n; |
2306 | 0 | } |
2307 | | |
2308 | 0 | void FlushSysCatalogResponsePB::Clear() { |
2309 | | // @@protoc_insertion_point(message_clear_start:yb.master.FlushSysCatalogResponsePB) |
2310 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2311 | | // Prevent compiler warnings about cached_has_bits being unused |
2312 | 0 | (void) cached_has_bits; |
2313 | |
|
2314 | 0 | cached_has_bits = _has_bits_[0]; |
2315 | 0 | if (cached_has_bits & 0x00000001u) { |
2316 | 0 | GOOGLE_DCHECK(error_ != NULL); |
2317 | 0 | error_->Clear(); |
2318 | 0 | } |
2319 | 0 | _has_bits_.Clear(); |
2320 | 0 | _internal_metadata_.Clear(); |
2321 | 0 | } |
2322 | | |
2323 | | bool FlushSysCatalogResponsePB::MergePartialFromCodedStream( |
2324 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2325 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2326 | 0 | ::google::protobuf::uint32 tag; |
2327 | | // @@protoc_insertion_point(parse_start:yb.master.FlushSysCatalogResponsePB) |
2328 | 0 | for (;;) { |
2329 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2330 | 0 | tag = p.first; |
2331 | 0 | if (!p.second) goto handle_unusual; |
2332 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2333 | | // optional .yb.master.MasterErrorPB error = 1; |
2334 | 0 | case 1: { |
2335 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2336 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2337 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2338 | 0 | input, mutable_error())); |
2339 | 0 | } else { |
2340 | 0 | goto handle_unusual; |
2341 | 0 | } |
2342 | 0 | break; |
2343 | 0 | } |
2344 | | |
2345 | 0 | default: { |
2346 | 0 | handle_unusual: |
2347 | 0 | if (tag == 0) { |
2348 | 0 | goto success; |
2349 | 0 | } |
2350 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2351 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2352 | 0 | break; |
2353 | 0 | } |
2354 | 0 | } |
2355 | 0 | } |
2356 | 0 | success: |
2357 | | // @@protoc_insertion_point(parse_success:yb.master.FlushSysCatalogResponsePB) |
2358 | 0 | return true; |
2359 | 0 | failure: |
2360 | | // @@protoc_insertion_point(parse_failure:yb.master.FlushSysCatalogResponsePB) |
2361 | 0 | return false; |
2362 | 0 | #undef DO_ |
2363 | 0 | } |
2364 | | |
2365 | | void FlushSysCatalogResponsePB::SerializeWithCachedSizes( |
2366 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2367 | | // @@protoc_insertion_point(serialize_start:yb.master.FlushSysCatalogResponsePB) |
2368 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2369 | 0 | (void) cached_has_bits; |
2370 | |
|
2371 | 0 | cached_has_bits = _has_bits_[0]; |
2372 | | // optional .yb.master.MasterErrorPB error = 1; |
2373 | 0 | if (cached_has_bits & 0x00000001u) { |
2374 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2375 | 0 | 1, *this->error_, output); |
2376 | 0 | } |
2377 | |
|
2378 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2379 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2380 | 0 | _internal_metadata_.unknown_fields(), output); |
2381 | 0 | } |
2382 | | // @@protoc_insertion_point(serialize_end:yb.master.FlushSysCatalogResponsePB) |
2383 | 0 | } |
2384 | | |
2385 | | ::google::protobuf::uint8* FlushSysCatalogResponsePB::InternalSerializeWithCachedSizesToArray( |
2386 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2387 | 0 | (void)deterministic; // Unused |
2388 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.FlushSysCatalogResponsePB) |
2389 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2390 | 0 | (void) cached_has_bits; |
2391 | |
|
2392 | 0 | cached_has_bits = _has_bits_[0]; |
2393 | | // optional .yb.master.MasterErrorPB error = 1; |
2394 | 0 | if (cached_has_bits & 0x00000001u) { |
2395 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2396 | 0 | InternalWriteMessageToArray( |
2397 | 0 | 1, *this->error_, deterministic, target); |
2398 | 0 | } |
2399 | |
|
2400 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2401 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2402 | 0 | _internal_metadata_.unknown_fields(), target); |
2403 | 0 | } |
2404 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.FlushSysCatalogResponsePB) |
2405 | 0 | return target; |
2406 | 0 | } |
2407 | | |
2408 | 0 | size_t FlushSysCatalogResponsePB::ByteSizeLong() const { |
2409 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.FlushSysCatalogResponsePB) |
2410 | 0 | size_t total_size = 0; |
2411 | |
|
2412 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2413 | 0 | total_size += |
2414 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2415 | 0 | _internal_metadata_.unknown_fields()); |
2416 | 0 | } |
2417 | | // optional .yb.master.MasterErrorPB error = 1; |
2418 | 0 | if (has_error()) { |
2419 | 0 | total_size += 1 + |
2420 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2421 | 0 | *this->error_); |
2422 | 0 | } |
2423 | |
|
2424 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2425 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2426 | 0 | _cached_size_ = cached_size; |
2427 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2428 | 0 | return total_size; |
2429 | 0 | } |
2430 | | |
2431 | 0 | void FlushSysCatalogResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
2432 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.FlushSysCatalogResponsePB) |
2433 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2434 | 0 | const FlushSysCatalogResponsePB* source = |
2435 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const FlushSysCatalogResponsePB>( |
2436 | 0 | &from); |
2437 | 0 | if (source == NULL) { |
2438 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.FlushSysCatalogResponsePB) |
2439 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2440 | 0 | } else { |
2441 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.FlushSysCatalogResponsePB) |
2442 | 0 | MergeFrom(*source); |
2443 | 0 | } |
2444 | 0 | } |
2445 | | |
2446 | 0 | void FlushSysCatalogResponsePB::MergeFrom(const FlushSysCatalogResponsePB& from) { |
2447 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.FlushSysCatalogResponsePB) |
2448 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2449 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2450 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2451 | 0 | (void) cached_has_bits; |
2452 | |
|
2453 | 0 | if (from.has_error()) { |
2454 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
2455 | 0 | } |
2456 | 0 | } |
2457 | | |
2458 | 0 | void FlushSysCatalogResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
2459 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.FlushSysCatalogResponsePB) |
2460 | 0 | if (&from == this) return; |
2461 | 0 | Clear(); |
2462 | 0 | MergeFrom(from); |
2463 | 0 | } |
2464 | | |
2465 | 0 | void FlushSysCatalogResponsePB::CopyFrom(const FlushSysCatalogResponsePB& from) { |
2466 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.FlushSysCatalogResponsePB) |
2467 | 0 | if (&from == this) return; |
2468 | 0 | Clear(); |
2469 | 0 | MergeFrom(from); |
2470 | 0 | } |
2471 | | |
2472 | 0 | bool FlushSysCatalogResponsePB::IsInitialized() const { |
2473 | 0 | if (has_error()) { |
2474 | 0 | if (!this->error_->IsInitialized()) return false; |
2475 | 0 | } |
2476 | 0 | return true; |
2477 | 0 | } |
2478 | | |
2479 | 0 | void FlushSysCatalogResponsePB::Swap(FlushSysCatalogResponsePB* other) { |
2480 | 0 | if (other == this) return; |
2481 | 0 | InternalSwap(other); |
2482 | 0 | } |
2483 | 0 | void FlushSysCatalogResponsePB::InternalSwap(FlushSysCatalogResponsePB* other) { |
2484 | 0 | using std::swap; |
2485 | 0 | swap(error_, other->error_); |
2486 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2487 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2488 | 0 | swap(_cached_size_, other->_cached_size_); |
2489 | 0 | } |
2490 | | |
2491 | 0 | ::google::protobuf::Metadata FlushSysCatalogResponsePB::GetMetadata() const { |
2492 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2493 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
2494 | 0 | } |
2495 | | |
2496 | | |
2497 | | // =================================================================== |
2498 | | |
2499 | 15.8k | void CompactSysCatalogRequestPB::InitAsDefaultInstance() { |
2500 | 15.8k | } |
2501 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2502 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2503 | | |
2504 | | CompactSysCatalogRequestPB::CompactSysCatalogRequestPB() |
2505 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2506 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2507 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCompactSysCatalogRequestPB(); |
2508 | 0 | } |
2509 | 15.8k | SharedCtor(); |
2510 | | // @@protoc_insertion_point(constructor:yb.master.CompactSysCatalogRequestPB) |
2511 | 15.8k | } |
2512 | | CompactSysCatalogRequestPB::CompactSysCatalogRequestPB(const CompactSysCatalogRequestPB& from) |
2513 | | : ::google::protobuf::Message(), |
2514 | | _internal_metadata_(NULL), |
2515 | | _has_bits_(from._has_bits_), |
2516 | 0 | _cached_size_(0) { |
2517 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2518 | | // @@protoc_insertion_point(copy_constructor:yb.master.CompactSysCatalogRequestPB) |
2519 | 0 | } |
2520 | | |
2521 | 15.8k | void CompactSysCatalogRequestPB::SharedCtor() { |
2522 | 15.8k | _cached_size_ = 0; |
2523 | 15.8k | } |
2524 | | |
2525 | 0 | CompactSysCatalogRequestPB::~CompactSysCatalogRequestPB() { |
2526 | | // @@protoc_insertion_point(destructor:yb.master.CompactSysCatalogRequestPB) |
2527 | 0 | SharedDtor(); |
2528 | 0 | } |
2529 | | |
2530 | 0 | void CompactSysCatalogRequestPB::SharedDtor() { |
2531 | 0 | } |
2532 | | |
2533 | 0 | void CompactSysCatalogRequestPB::SetCachedSize(int size) const { |
2534 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2535 | 0 | _cached_size_ = size; |
2536 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2537 | 0 | } |
2538 | 0 | const ::google::protobuf::Descriptor* CompactSysCatalogRequestPB::descriptor() { |
2539 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2540 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2541 | 0 | } |
2542 | | |
2543 | 0 | const CompactSysCatalogRequestPB& CompactSysCatalogRequestPB::default_instance() { |
2544 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCompactSysCatalogRequestPB(); |
2545 | 0 | return *internal_default_instance(); |
2546 | 0 | } |
2547 | | |
2548 | 0 | CompactSysCatalogRequestPB* CompactSysCatalogRequestPB::New(::google::protobuf::Arena* arena) const { |
2549 | 0 | CompactSysCatalogRequestPB* n = new CompactSysCatalogRequestPB; |
2550 | 0 | if (arena != NULL) { |
2551 | 0 | arena->Own(n); |
2552 | 0 | } |
2553 | 0 | return n; |
2554 | 0 | } |
2555 | | |
2556 | 0 | void CompactSysCatalogRequestPB::Clear() { |
2557 | | // @@protoc_insertion_point(message_clear_start:yb.master.CompactSysCatalogRequestPB) |
2558 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2559 | | // Prevent compiler warnings about cached_has_bits being unused |
2560 | 0 | (void) cached_has_bits; |
2561 | |
|
2562 | 0 | _has_bits_.Clear(); |
2563 | 0 | _internal_metadata_.Clear(); |
2564 | 0 | } |
2565 | | |
2566 | | bool CompactSysCatalogRequestPB::MergePartialFromCodedStream( |
2567 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2568 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2569 | 0 | ::google::protobuf::uint32 tag; |
2570 | | // @@protoc_insertion_point(parse_start:yb.master.CompactSysCatalogRequestPB) |
2571 | 0 | for (;;) { |
2572 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2573 | 0 | tag = p.first; |
2574 | 0 | if (!p.second) goto handle_unusual; |
2575 | 0 | handle_unusual: |
2576 | 0 | if (tag == 0) { |
2577 | 0 | goto success; |
2578 | 0 | } |
2579 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2580 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2581 | 0 | } |
2582 | 0 | success: |
2583 | | // @@protoc_insertion_point(parse_success:yb.master.CompactSysCatalogRequestPB) |
2584 | 0 | return true; |
2585 | 0 | failure: |
2586 | | // @@protoc_insertion_point(parse_failure:yb.master.CompactSysCatalogRequestPB) |
2587 | 0 | return false; |
2588 | 0 | #undef DO_ |
2589 | 0 | } |
2590 | | |
2591 | | void CompactSysCatalogRequestPB::SerializeWithCachedSizes( |
2592 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2593 | | // @@protoc_insertion_point(serialize_start:yb.master.CompactSysCatalogRequestPB) |
2594 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2595 | 0 | (void) cached_has_bits; |
2596 | |
|
2597 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2598 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2599 | 0 | _internal_metadata_.unknown_fields(), output); |
2600 | 0 | } |
2601 | | // @@protoc_insertion_point(serialize_end:yb.master.CompactSysCatalogRequestPB) |
2602 | 0 | } |
2603 | | |
2604 | | ::google::protobuf::uint8* CompactSysCatalogRequestPB::InternalSerializeWithCachedSizesToArray( |
2605 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2606 | 0 | (void)deterministic; // Unused |
2607 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CompactSysCatalogRequestPB) |
2608 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2609 | 0 | (void) cached_has_bits; |
2610 | |
|
2611 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2612 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2613 | 0 | _internal_metadata_.unknown_fields(), target); |
2614 | 0 | } |
2615 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CompactSysCatalogRequestPB) |
2616 | 0 | return target; |
2617 | 0 | } |
2618 | | |
2619 | 0 | size_t CompactSysCatalogRequestPB::ByteSizeLong() const { |
2620 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CompactSysCatalogRequestPB) |
2621 | 0 | size_t total_size = 0; |
2622 | |
|
2623 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2624 | 0 | total_size += |
2625 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2626 | 0 | _internal_metadata_.unknown_fields()); |
2627 | 0 | } |
2628 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2629 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2630 | 0 | _cached_size_ = cached_size; |
2631 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2632 | 0 | return total_size; |
2633 | 0 | } |
2634 | | |
2635 | 0 | void CompactSysCatalogRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
2636 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CompactSysCatalogRequestPB) |
2637 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2638 | 0 | const CompactSysCatalogRequestPB* source = |
2639 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CompactSysCatalogRequestPB>( |
2640 | 0 | &from); |
2641 | 0 | if (source == NULL) { |
2642 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CompactSysCatalogRequestPB) |
2643 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2644 | 0 | } else { |
2645 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CompactSysCatalogRequestPB) |
2646 | 0 | MergeFrom(*source); |
2647 | 0 | } |
2648 | 0 | } |
2649 | | |
2650 | 0 | void CompactSysCatalogRequestPB::MergeFrom(const CompactSysCatalogRequestPB& from) { |
2651 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CompactSysCatalogRequestPB) |
2652 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2653 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2654 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2655 | 0 | (void) cached_has_bits; |
2656 | |
|
2657 | 0 | } |
2658 | | |
2659 | 0 | void CompactSysCatalogRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
2660 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CompactSysCatalogRequestPB) |
2661 | 0 | if (&from == this) return; |
2662 | 0 | Clear(); |
2663 | 0 | MergeFrom(from); |
2664 | 0 | } |
2665 | | |
2666 | 0 | void CompactSysCatalogRequestPB::CopyFrom(const CompactSysCatalogRequestPB& from) { |
2667 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CompactSysCatalogRequestPB) |
2668 | 0 | if (&from == this) return; |
2669 | 0 | Clear(); |
2670 | 0 | MergeFrom(from); |
2671 | 0 | } |
2672 | | |
2673 | 0 | bool CompactSysCatalogRequestPB::IsInitialized() const { |
2674 | 0 | return true; |
2675 | 0 | } |
2676 | | |
2677 | 0 | void CompactSysCatalogRequestPB::Swap(CompactSysCatalogRequestPB* other) { |
2678 | 0 | if (other == this) return; |
2679 | 0 | InternalSwap(other); |
2680 | 0 | } |
2681 | 0 | void CompactSysCatalogRequestPB::InternalSwap(CompactSysCatalogRequestPB* other) { |
2682 | 0 | using std::swap; |
2683 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2684 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2685 | 0 | swap(_cached_size_, other->_cached_size_); |
2686 | 0 | } |
2687 | | |
2688 | 0 | ::google::protobuf::Metadata CompactSysCatalogRequestPB::GetMetadata() const { |
2689 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2690 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
2691 | 0 | } |
2692 | | |
2693 | | |
2694 | | // =================================================================== |
2695 | | |
2696 | 15.8k | void CompactSysCatalogResponsePB::InitAsDefaultInstance() { |
2697 | 15.8k | ::yb::master::_CompactSysCatalogResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
2698 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
2699 | 15.8k | } |
2700 | 0 | void CompactSysCatalogResponsePB::clear_error() { |
2701 | 0 | if (error_ != NULL) error_->Clear(); |
2702 | 0 | clear_has_error(); |
2703 | 0 | } |
2704 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2705 | | const int CompactSysCatalogResponsePB::kErrorFieldNumber; |
2706 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2707 | | |
2708 | | CompactSysCatalogResponsePB::CompactSysCatalogResponsePB() |
2709 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2710 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2711 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCompactSysCatalogResponsePB(); |
2712 | 0 | } |
2713 | 15.8k | SharedCtor(); |
2714 | | // @@protoc_insertion_point(constructor:yb.master.CompactSysCatalogResponsePB) |
2715 | 15.8k | } |
2716 | | CompactSysCatalogResponsePB::CompactSysCatalogResponsePB(const CompactSysCatalogResponsePB& from) |
2717 | | : ::google::protobuf::Message(), |
2718 | | _internal_metadata_(NULL), |
2719 | | _has_bits_(from._has_bits_), |
2720 | 0 | _cached_size_(0) { |
2721 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2722 | 0 | if (from.has_error()) { |
2723 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
2724 | 0 | } else { |
2725 | 0 | error_ = NULL; |
2726 | 0 | } |
2727 | | // @@protoc_insertion_point(copy_constructor:yb.master.CompactSysCatalogResponsePB) |
2728 | 0 | } |
2729 | | |
2730 | 15.8k | void CompactSysCatalogResponsePB::SharedCtor() { |
2731 | 15.8k | _cached_size_ = 0; |
2732 | 15.8k | error_ = NULL; |
2733 | 15.8k | } |
2734 | | |
2735 | 0 | CompactSysCatalogResponsePB::~CompactSysCatalogResponsePB() { |
2736 | | // @@protoc_insertion_point(destructor:yb.master.CompactSysCatalogResponsePB) |
2737 | 0 | SharedDtor(); |
2738 | 0 | } |
2739 | | |
2740 | 0 | void CompactSysCatalogResponsePB::SharedDtor() { |
2741 | 0 | if (this != internal_default_instance()) delete error_; |
2742 | 0 | } |
2743 | | |
2744 | 0 | void CompactSysCatalogResponsePB::SetCachedSize(int size) const { |
2745 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2746 | 0 | _cached_size_ = size; |
2747 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2748 | 0 | } |
2749 | 0 | const ::google::protobuf::Descriptor* CompactSysCatalogResponsePB::descriptor() { |
2750 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2751 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2752 | 0 | } |
2753 | | |
2754 | 0 | const CompactSysCatalogResponsePB& CompactSysCatalogResponsePB::default_instance() { |
2755 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCompactSysCatalogResponsePB(); |
2756 | 0 | return *internal_default_instance(); |
2757 | 0 | } |
2758 | | |
2759 | 0 | CompactSysCatalogResponsePB* CompactSysCatalogResponsePB::New(::google::protobuf::Arena* arena) const { |
2760 | 0 | CompactSysCatalogResponsePB* n = new CompactSysCatalogResponsePB; |
2761 | 0 | if (arena != NULL) { |
2762 | 0 | arena->Own(n); |
2763 | 0 | } |
2764 | 0 | return n; |
2765 | 0 | } |
2766 | | |
2767 | 0 | void CompactSysCatalogResponsePB::Clear() { |
2768 | | // @@protoc_insertion_point(message_clear_start:yb.master.CompactSysCatalogResponsePB) |
2769 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2770 | | // Prevent compiler warnings about cached_has_bits being unused |
2771 | 0 | (void) cached_has_bits; |
2772 | |
|
2773 | 0 | cached_has_bits = _has_bits_[0]; |
2774 | 0 | if (cached_has_bits & 0x00000001u) { |
2775 | 0 | GOOGLE_DCHECK(error_ != NULL); |
2776 | 0 | error_->Clear(); |
2777 | 0 | } |
2778 | 0 | _has_bits_.Clear(); |
2779 | 0 | _internal_metadata_.Clear(); |
2780 | 0 | } |
2781 | | |
2782 | | bool CompactSysCatalogResponsePB::MergePartialFromCodedStream( |
2783 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2784 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2785 | 0 | ::google::protobuf::uint32 tag; |
2786 | | // @@protoc_insertion_point(parse_start:yb.master.CompactSysCatalogResponsePB) |
2787 | 0 | for (;;) { |
2788 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2789 | 0 | tag = p.first; |
2790 | 0 | if (!p.second) goto handle_unusual; |
2791 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2792 | | // optional .yb.master.MasterErrorPB error = 1; |
2793 | 0 | case 1: { |
2794 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2795 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2796 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2797 | 0 | input, mutable_error())); |
2798 | 0 | } else { |
2799 | 0 | goto handle_unusual; |
2800 | 0 | } |
2801 | 0 | break; |
2802 | 0 | } |
2803 | | |
2804 | 0 | default: { |
2805 | 0 | handle_unusual: |
2806 | 0 | if (tag == 0) { |
2807 | 0 | goto success; |
2808 | 0 | } |
2809 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2810 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2811 | 0 | break; |
2812 | 0 | } |
2813 | 0 | } |
2814 | 0 | } |
2815 | 0 | success: |
2816 | | // @@protoc_insertion_point(parse_success:yb.master.CompactSysCatalogResponsePB) |
2817 | 0 | return true; |
2818 | 0 | failure: |
2819 | | // @@protoc_insertion_point(parse_failure:yb.master.CompactSysCatalogResponsePB) |
2820 | 0 | return false; |
2821 | 0 | #undef DO_ |
2822 | 0 | } |
2823 | | |
2824 | | void CompactSysCatalogResponsePB::SerializeWithCachedSizes( |
2825 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2826 | | // @@protoc_insertion_point(serialize_start:yb.master.CompactSysCatalogResponsePB) |
2827 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2828 | 0 | (void) cached_has_bits; |
2829 | |
|
2830 | 0 | cached_has_bits = _has_bits_[0]; |
2831 | | // optional .yb.master.MasterErrorPB error = 1; |
2832 | 0 | if (cached_has_bits & 0x00000001u) { |
2833 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2834 | 0 | 1, *this->error_, output); |
2835 | 0 | } |
2836 | |
|
2837 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2838 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2839 | 0 | _internal_metadata_.unknown_fields(), output); |
2840 | 0 | } |
2841 | | // @@protoc_insertion_point(serialize_end:yb.master.CompactSysCatalogResponsePB) |
2842 | 0 | } |
2843 | | |
2844 | | ::google::protobuf::uint8* CompactSysCatalogResponsePB::InternalSerializeWithCachedSizesToArray( |
2845 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2846 | 0 | (void)deterministic; // Unused |
2847 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CompactSysCatalogResponsePB) |
2848 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2849 | 0 | (void) cached_has_bits; |
2850 | |
|
2851 | 0 | cached_has_bits = _has_bits_[0]; |
2852 | | // optional .yb.master.MasterErrorPB error = 1; |
2853 | 0 | if (cached_has_bits & 0x00000001u) { |
2854 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2855 | 0 | InternalWriteMessageToArray( |
2856 | 0 | 1, *this->error_, deterministic, target); |
2857 | 0 | } |
2858 | |
|
2859 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2860 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2861 | 0 | _internal_metadata_.unknown_fields(), target); |
2862 | 0 | } |
2863 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CompactSysCatalogResponsePB) |
2864 | 0 | return target; |
2865 | 0 | } |
2866 | | |
2867 | 0 | size_t CompactSysCatalogResponsePB::ByteSizeLong() const { |
2868 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CompactSysCatalogResponsePB) |
2869 | 0 | size_t total_size = 0; |
2870 | |
|
2871 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2872 | 0 | total_size += |
2873 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2874 | 0 | _internal_metadata_.unknown_fields()); |
2875 | 0 | } |
2876 | | // optional .yb.master.MasterErrorPB error = 1; |
2877 | 0 | if (has_error()) { |
2878 | 0 | total_size += 1 + |
2879 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2880 | 0 | *this->error_); |
2881 | 0 | } |
2882 | |
|
2883 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2884 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2885 | 0 | _cached_size_ = cached_size; |
2886 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2887 | 0 | return total_size; |
2888 | 0 | } |
2889 | | |
2890 | 0 | void CompactSysCatalogResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
2891 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CompactSysCatalogResponsePB) |
2892 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2893 | 0 | const CompactSysCatalogResponsePB* source = |
2894 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CompactSysCatalogResponsePB>( |
2895 | 0 | &from); |
2896 | 0 | if (source == NULL) { |
2897 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CompactSysCatalogResponsePB) |
2898 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2899 | 0 | } else { |
2900 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CompactSysCatalogResponsePB) |
2901 | 0 | MergeFrom(*source); |
2902 | 0 | } |
2903 | 0 | } |
2904 | | |
2905 | 0 | void CompactSysCatalogResponsePB::MergeFrom(const CompactSysCatalogResponsePB& from) { |
2906 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CompactSysCatalogResponsePB) |
2907 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2908 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2909 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2910 | 0 | (void) cached_has_bits; |
2911 | |
|
2912 | 0 | if (from.has_error()) { |
2913 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
2914 | 0 | } |
2915 | 0 | } |
2916 | | |
2917 | 0 | void CompactSysCatalogResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
2918 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CompactSysCatalogResponsePB) |
2919 | 0 | if (&from == this) return; |
2920 | 0 | Clear(); |
2921 | 0 | MergeFrom(from); |
2922 | 0 | } |
2923 | | |
2924 | 0 | void CompactSysCatalogResponsePB::CopyFrom(const CompactSysCatalogResponsePB& from) { |
2925 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CompactSysCatalogResponsePB) |
2926 | 0 | if (&from == this) return; |
2927 | 0 | Clear(); |
2928 | 0 | MergeFrom(from); |
2929 | 0 | } |
2930 | | |
2931 | 0 | bool CompactSysCatalogResponsePB::IsInitialized() const { |
2932 | 0 | if (has_error()) { |
2933 | 0 | if (!this->error_->IsInitialized()) return false; |
2934 | 0 | } |
2935 | 0 | return true; |
2936 | 0 | } |
2937 | | |
2938 | 0 | void CompactSysCatalogResponsePB::Swap(CompactSysCatalogResponsePB* other) { |
2939 | 0 | if (other == this) return; |
2940 | 0 | InternalSwap(other); |
2941 | 0 | } |
2942 | 0 | void CompactSysCatalogResponsePB::InternalSwap(CompactSysCatalogResponsePB* other) { |
2943 | 0 | using std::swap; |
2944 | 0 | swap(error_, other->error_); |
2945 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2946 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2947 | 0 | swap(_cached_size_, other->_cached_size_); |
2948 | 0 | } |
2949 | | |
2950 | 0 | ::google::protobuf::Metadata CompactSysCatalogResponsePB::GetMetadata() const { |
2951 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2952 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
2953 | 0 | } |
2954 | | |
2955 | | |
2956 | | // =================================================================== |
2957 | | |
2958 | 15.8k | void IsInitDbDoneRequestPB::InitAsDefaultInstance() { |
2959 | 15.8k | } |
2960 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2961 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2962 | | |
2963 | | IsInitDbDoneRequestPB::IsInitDbDoneRequestPB() |
2964 | 16.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2965 | 902 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2966 | 902 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsInitDbDoneRequestPB(); |
2967 | 902 | } |
2968 | 16.7k | SharedCtor(); |
2969 | | // @@protoc_insertion_point(constructor:yb.master.IsInitDbDoneRequestPB) |
2970 | 16.7k | } |
2971 | | IsInitDbDoneRequestPB::IsInitDbDoneRequestPB(const IsInitDbDoneRequestPB& from) |
2972 | | : ::google::protobuf::Message(), |
2973 | | _internal_metadata_(NULL), |
2974 | | _has_bits_(from._has_bits_), |
2975 | 0 | _cached_size_(0) { |
2976 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2977 | | // @@protoc_insertion_point(copy_constructor:yb.master.IsInitDbDoneRequestPB) |
2978 | 0 | } |
2979 | | |
2980 | 16.7k | void IsInitDbDoneRequestPB::SharedCtor() { |
2981 | 16.7k | _cached_size_ = 0; |
2982 | 16.7k | } |
2983 | | |
2984 | 902 | IsInitDbDoneRequestPB::~IsInitDbDoneRequestPB() { |
2985 | | // @@protoc_insertion_point(destructor:yb.master.IsInitDbDoneRequestPB) |
2986 | 902 | SharedDtor(); |
2987 | 902 | } |
2988 | | |
2989 | 902 | void IsInitDbDoneRequestPB::SharedDtor() { |
2990 | 902 | } |
2991 | | |
2992 | 0 | void IsInitDbDoneRequestPB::SetCachedSize(int size) const { |
2993 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2994 | 0 | _cached_size_ = size; |
2995 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2996 | 0 | } |
2997 | 0 | const ::google::protobuf::Descriptor* IsInitDbDoneRequestPB::descriptor() { |
2998 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
2999 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3000 | 0 | } |
3001 | | |
3002 | 0 | const IsInitDbDoneRequestPB& IsInitDbDoneRequestPB::default_instance() { |
3003 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsInitDbDoneRequestPB(); |
3004 | 0 | return *internal_default_instance(); |
3005 | 0 | } |
3006 | | |
3007 | 0 | IsInitDbDoneRequestPB* IsInitDbDoneRequestPB::New(::google::protobuf::Arena* arena) const { |
3008 | 0 | IsInitDbDoneRequestPB* n = new IsInitDbDoneRequestPB; |
3009 | 0 | if (arena != NULL) { |
3010 | 0 | arena->Own(n); |
3011 | 0 | } |
3012 | 0 | return n; |
3013 | 0 | } |
3014 | | |
3015 | 806 | void IsInitDbDoneRequestPB::Clear() { |
3016 | | // @@protoc_insertion_point(message_clear_start:yb.master.IsInitDbDoneRequestPB) |
3017 | 806 | ::google::protobuf::uint32 cached_has_bits = 0; |
3018 | | // Prevent compiler warnings about cached_has_bits being unused |
3019 | 806 | (void) cached_has_bits; |
3020 | | |
3021 | 806 | _has_bits_.Clear(); |
3022 | 806 | _internal_metadata_.Clear(); |
3023 | 806 | } |
3024 | | |
3025 | | bool IsInitDbDoneRequestPB::MergePartialFromCodedStream( |
3026 | 806 | ::google::protobuf::io::CodedInputStream* input) { |
3027 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3028 | 806 | ::google::protobuf::uint32 tag; |
3029 | | // @@protoc_insertion_point(parse_start:yb.master.IsInitDbDoneRequestPB) |
3030 | 806 | for (;;) { |
3031 | 806 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3032 | 806 | tag = p.first; |
3033 | 806 | if (!p.second) goto handle_unusual; |
3034 | 806 | handle_unusual: |
3035 | 806 | if (tag == 0) { |
3036 | 806 | goto success; |
3037 | 806 | } |
3038 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3039 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3040 | 0 | } |
3041 | 806 | success: |
3042 | | // @@protoc_insertion_point(parse_success:yb.master.IsInitDbDoneRequestPB) |
3043 | 806 | return true; |
3044 | 0 | failure: |
3045 | | // @@protoc_insertion_point(parse_failure:yb.master.IsInitDbDoneRequestPB) |
3046 | 0 | return false; |
3047 | 806 | #undef DO_ |
3048 | 806 | } |
3049 | | |
3050 | | void IsInitDbDoneRequestPB::SerializeWithCachedSizes( |
3051 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3052 | | // @@protoc_insertion_point(serialize_start:yb.master.IsInitDbDoneRequestPB) |
3053 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3054 | 0 | (void) cached_has_bits; |
3055 | |
|
3056 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3057 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3058 | 0 | _internal_metadata_.unknown_fields(), output); |
3059 | 0 | } |
3060 | | // @@protoc_insertion_point(serialize_end:yb.master.IsInitDbDoneRequestPB) |
3061 | 0 | } |
3062 | | |
3063 | | ::google::protobuf::uint8* IsInitDbDoneRequestPB::InternalSerializeWithCachedSizesToArray( |
3064 | 96 | bool deterministic, ::google::protobuf::uint8* target) const { |
3065 | 96 | (void)deterministic; // Unused |
3066 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.IsInitDbDoneRequestPB) |
3067 | 96 | ::google::protobuf::uint32 cached_has_bits = 0; |
3068 | 96 | (void) cached_has_bits; |
3069 | | |
3070 | 96 | if (_internal_metadata_.have_unknown_fields()) { |
3071 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3072 | 0 | _internal_metadata_.unknown_fields(), target); |
3073 | 0 | } |
3074 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.IsInitDbDoneRequestPB) |
3075 | 96 | return target; |
3076 | 96 | } |
3077 | | |
3078 | 192 | size_t IsInitDbDoneRequestPB::ByteSizeLong() const { |
3079 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.IsInitDbDoneRequestPB) |
3080 | 192 | size_t total_size = 0; |
3081 | | |
3082 | 192 | if (_internal_metadata_.have_unknown_fields()) { |
3083 | 0 | total_size += |
3084 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3085 | 0 | _internal_metadata_.unknown_fields()); |
3086 | 0 | } |
3087 | 192 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3088 | 192 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3089 | 192 | _cached_size_ = cached_size; |
3090 | 192 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3091 | 192 | return total_size; |
3092 | 192 | } |
3093 | | |
3094 | 0 | void IsInitDbDoneRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3095 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.IsInitDbDoneRequestPB) |
3096 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3097 | 0 | const IsInitDbDoneRequestPB* source = |
3098 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsInitDbDoneRequestPB>( |
3099 | 0 | &from); |
3100 | 0 | if (source == NULL) { |
3101 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.IsInitDbDoneRequestPB) |
3102 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3103 | 0 | } else { |
3104 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.IsInitDbDoneRequestPB) |
3105 | 0 | MergeFrom(*source); |
3106 | 0 | } |
3107 | 0 | } |
3108 | | |
3109 | 0 | void IsInitDbDoneRequestPB::MergeFrom(const IsInitDbDoneRequestPB& from) { |
3110 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.IsInitDbDoneRequestPB) |
3111 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3112 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3113 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3114 | 0 | (void) cached_has_bits; |
3115 | |
|
3116 | 0 | } |
3117 | | |
3118 | 0 | void IsInitDbDoneRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3119 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.IsInitDbDoneRequestPB) |
3120 | 0 | if (&from == this) return; |
3121 | 0 | Clear(); |
3122 | 0 | MergeFrom(from); |
3123 | 0 | } |
3124 | | |
3125 | 0 | void IsInitDbDoneRequestPB::CopyFrom(const IsInitDbDoneRequestPB& from) { |
3126 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.IsInitDbDoneRequestPB) |
3127 | 0 | if (&from == this) return; |
3128 | 0 | Clear(); |
3129 | 0 | MergeFrom(from); |
3130 | 0 | } |
3131 | | |
3132 | 902 | bool IsInitDbDoneRequestPB::IsInitialized() const { |
3133 | 902 | return true; |
3134 | 902 | } |
3135 | | |
3136 | 0 | void IsInitDbDoneRequestPB::Swap(IsInitDbDoneRequestPB* other) { |
3137 | 0 | if (other == this) return; |
3138 | 0 | InternalSwap(other); |
3139 | 0 | } |
3140 | 0 | void IsInitDbDoneRequestPB::InternalSwap(IsInitDbDoneRequestPB* other) { |
3141 | 0 | using std::swap; |
3142 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3143 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3144 | 0 | swap(_cached_size_, other->_cached_size_); |
3145 | 0 | } |
3146 | | |
3147 | 806 | ::google::protobuf::Metadata IsInitDbDoneRequestPB::GetMetadata() const { |
3148 | 806 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
3149 | 806 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
3150 | 806 | } |
3151 | | |
3152 | | |
3153 | | // =================================================================== |
3154 | | |
3155 | 15.8k | void IsInitDbDoneResponsePB::InitAsDefaultInstance() { |
3156 | 15.8k | ::yb::master::_IsInitDbDoneResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
3157 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
3158 | 15.8k | } |
3159 | 0 | void IsInitDbDoneResponsePB::clear_error() { |
3160 | 0 | if (error_ != NULL) error_->Clear(); |
3161 | 0 | clear_has_error(); |
3162 | 0 | } |
3163 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3164 | | const int IsInitDbDoneResponsePB::kErrorFieldNumber; |
3165 | | const int IsInitDbDoneResponsePB::kPgProcExistsFieldNumber; |
3166 | | const int IsInitDbDoneResponsePB::kDoneFieldNumber; |
3167 | | const int IsInitDbDoneResponsePB::kInitdbErrorFieldNumber; |
3168 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3169 | | |
3170 | | IsInitDbDoneResponsePB::IsInitDbDoneResponsePB() |
3171 | 16.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3172 | 902 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3173 | 902 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsInitDbDoneResponsePB(); |
3174 | 902 | } |
3175 | 16.7k | SharedCtor(); |
3176 | | // @@protoc_insertion_point(constructor:yb.master.IsInitDbDoneResponsePB) |
3177 | 16.7k | } |
3178 | | IsInitDbDoneResponsePB::IsInitDbDoneResponsePB(const IsInitDbDoneResponsePB& from) |
3179 | | : ::google::protobuf::Message(), |
3180 | | _internal_metadata_(NULL), |
3181 | | _has_bits_(from._has_bits_), |
3182 | 0 | _cached_size_(0) { |
3183 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3184 | 0 | initdb_error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3185 | 0 | if (from.has_initdb_error()) { |
3186 | 0 | initdb_error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.initdb_error_); |
3187 | 0 | } |
3188 | 0 | if (from.has_error()) { |
3189 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
3190 | 0 | } else { |
3191 | 0 | error_ = NULL; |
3192 | 0 | } |
3193 | 0 | ::memcpy(&pg_proc_exists_, &from.pg_proc_exists_, |
3194 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&done_) - |
3195 | 0 | reinterpret_cast<char*>(&pg_proc_exists_)) + sizeof(done_)); |
3196 | | // @@protoc_insertion_point(copy_constructor:yb.master.IsInitDbDoneResponsePB) |
3197 | 0 | } |
3198 | | |
3199 | 16.7k | void IsInitDbDoneResponsePB::SharedCtor() { |
3200 | 16.7k | _cached_size_ = 0; |
3201 | 16.7k | initdb_error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3202 | 16.7k | ::memset(&error_, 0, static_cast<size_t>( |
3203 | 16.7k | reinterpret_cast<char*>(&done_) - |
3204 | 16.7k | reinterpret_cast<char*>(&error_)) + sizeof(done_)); |
3205 | 16.7k | } |
3206 | | |
3207 | 902 | IsInitDbDoneResponsePB::~IsInitDbDoneResponsePB() { |
3208 | | // @@protoc_insertion_point(destructor:yb.master.IsInitDbDoneResponsePB) |
3209 | 902 | SharedDtor(); |
3210 | 902 | } |
3211 | | |
3212 | 902 | void IsInitDbDoneResponsePB::SharedDtor() { |
3213 | 902 | initdb_error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3214 | 902 | if (this != internal_default_instance()) delete error_; |
3215 | 902 | } |
3216 | | |
3217 | 0 | void IsInitDbDoneResponsePB::SetCachedSize(int size) const { |
3218 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3219 | 0 | _cached_size_ = size; |
3220 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3221 | 0 | } |
3222 | 0 | const ::google::protobuf::Descriptor* IsInitDbDoneResponsePB::descriptor() { |
3223 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
3224 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3225 | 0 | } |
3226 | | |
3227 | 0 | const IsInitDbDoneResponsePB& IsInitDbDoneResponsePB::default_instance() { |
3228 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsIsInitDbDoneResponsePB(); |
3229 | 0 | return *internal_default_instance(); |
3230 | 0 | } |
3231 | | |
3232 | 0 | IsInitDbDoneResponsePB* IsInitDbDoneResponsePB::New(::google::protobuf::Arena* arena) const { |
3233 | 0 | IsInitDbDoneResponsePB* n = new IsInitDbDoneResponsePB; |
3234 | 0 | if (arena != NULL) { |
3235 | 0 | arena->Own(n); |
3236 | 0 | } |
3237 | 0 | return n; |
3238 | 0 | } |
3239 | | |
3240 | 96 | void IsInitDbDoneResponsePB::Clear() { |
3241 | | // @@protoc_insertion_point(message_clear_start:yb.master.IsInitDbDoneResponsePB) |
3242 | 96 | ::google::protobuf::uint32 cached_has_bits = 0; |
3243 | | // Prevent compiler warnings about cached_has_bits being unused |
3244 | 96 | (void) cached_has_bits; |
3245 | | |
3246 | 96 | cached_has_bits = _has_bits_[0]; |
3247 | 96 | if (cached_has_bits & 3u) { |
3248 | 0 | if (cached_has_bits & 0x00000001u) { |
3249 | 0 | GOOGLE_DCHECK(!initdb_error_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3250 | 0 | (*initdb_error_.UnsafeRawStringPointer())->clear(); |
3251 | 0 | } |
3252 | 0 | if (cached_has_bits & 0x00000002u) { |
3253 | 0 | GOOGLE_DCHECK(error_ != NULL); |
3254 | 0 | error_->Clear(); |
3255 | 0 | } |
3256 | 0 | } |
3257 | 96 | ::memset(&pg_proc_exists_, 0, static_cast<size_t>( |
3258 | 96 | reinterpret_cast<char*>(&done_) - |
3259 | 96 | reinterpret_cast<char*>(&pg_proc_exists_)) + sizeof(done_)); |
3260 | 96 | _has_bits_.Clear(); |
3261 | 96 | _internal_metadata_.Clear(); |
3262 | 96 | } |
3263 | | |
3264 | | bool IsInitDbDoneResponsePB::MergePartialFromCodedStream( |
3265 | 96 | ::google::protobuf::io::CodedInputStream* input) { |
3266 | 101 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3267 | 96 | ::google::protobuf::uint32 tag; |
3268 | | // @@protoc_insertion_point(parse_start:yb.master.IsInitDbDoneResponsePB) |
3269 | 197 | for (;;) { |
3270 | 197 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3271 | 197 | tag = p.first; |
3272 | 197 | if (!p.second) goto handle_unusual; |
3273 | 101 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3274 | | // optional .yb.master.MasterErrorPB error = 1; |
3275 | 91 | case 1: { |
3276 | 91 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3277 | 91 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3278 | 91 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3279 | 91 | input, mutable_error())); |
3280 | 0 | } else { |
3281 | 0 | goto handle_unusual; |
3282 | 0 | } |
3283 | 91 | break; |
3284 | 91 | } |
3285 | | |
3286 | | // optional bool pg_proc_exists = 2; |
3287 | 5 | case 2: { |
3288 | 5 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3289 | 5 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3290 | 5 | set_has_pg_proc_exists(); |
3291 | 5 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3292 | 5 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3293 | 5 | input, &pg_proc_exists_))); |
3294 | 0 | } else { |
3295 | 0 | goto handle_unusual; |
3296 | 0 | } |
3297 | 5 | break; |
3298 | 5 | } |
3299 | | |
3300 | | // optional bool done = 4; |
3301 | 5 | case 4: { |
3302 | 5 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3303 | 5 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
3304 | 5 | set_has_done(); |
3305 | 5 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3306 | 5 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3307 | 5 | input, &done_))); |
3308 | 0 | } else { |
3309 | 0 | goto handle_unusual; |
3310 | 0 | } |
3311 | 5 | break; |
3312 | 5 | } |
3313 | | |
3314 | | // optional string initdb_error = 5; |
3315 | 0 | case 5: { |
3316 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3317 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
3318 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3319 | 0 | input, this->mutable_initdb_error())); |
3320 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3321 | 0 | this->initdb_error().data(), static_cast<int>(this->initdb_error().length()), |
3322 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3323 | 0 | "yb.master.IsInitDbDoneResponsePB.initdb_error"); |
3324 | 0 | } else { |
3325 | 0 | goto handle_unusual; |
3326 | 0 | } |
3327 | 0 | break; |
3328 | 96 | } |
3329 | | |
3330 | 0 | default: { |
3331 | 96 | handle_unusual: |
3332 | 96 | if (tag == 0) { |
3333 | 96 | goto success; |
3334 | 96 | } |
3335 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3336 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3337 | 0 | break; |
3338 | 0 | } |
3339 | 101 | } |
3340 | 101 | } |
3341 | 96 | success: |
3342 | | // @@protoc_insertion_point(parse_success:yb.master.IsInitDbDoneResponsePB) |
3343 | 96 | return true; |
3344 | 0 | failure: |
3345 | | // @@protoc_insertion_point(parse_failure:yb.master.IsInitDbDoneResponsePB) |
3346 | 0 | return false; |
3347 | 96 | #undef DO_ |
3348 | 96 | } |
3349 | | |
3350 | | void IsInitDbDoneResponsePB::SerializeWithCachedSizes( |
3351 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3352 | | // @@protoc_insertion_point(serialize_start:yb.master.IsInitDbDoneResponsePB) |
3353 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3354 | 0 | (void) cached_has_bits; |
3355 | |
|
3356 | 0 | cached_has_bits = _has_bits_[0]; |
3357 | | // optional .yb.master.MasterErrorPB error = 1; |
3358 | 0 | if (cached_has_bits & 0x00000002u) { |
3359 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3360 | 0 | 1, *this->error_, output); |
3361 | 0 | } |
3362 | | |
3363 | | // optional bool pg_proc_exists = 2; |
3364 | 0 | if (cached_has_bits & 0x00000004u) { |
3365 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->pg_proc_exists(), output); |
3366 | 0 | } |
3367 | | |
3368 | | // optional bool done = 4; |
3369 | 0 | if (cached_has_bits & 0x00000008u) { |
3370 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->done(), output); |
3371 | 0 | } |
3372 | | |
3373 | | // optional string initdb_error = 5; |
3374 | 0 | if (cached_has_bits & 0x00000001u) { |
3375 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3376 | 0 | this->initdb_error().data(), static_cast<int>(this->initdb_error().length()), |
3377 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3378 | 0 | "yb.master.IsInitDbDoneResponsePB.initdb_error"); |
3379 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3380 | 0 | 5, this->initdb_error(), output); |
3381 | 0 | } |
3382 | |
|
3383 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3384 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3385 | 0 | _internal_metadata_.unknown_fields(), output); |
3386 | 0 | } |
3387 | | // @@protoc_insertion_point(serialize_end:yb.master.IsInitDbDoneResponsePB) |
3388 | 0 | } |
3389 | | |
3390 | | ::google::protobuf::uint8* IsInitDbDoneResponsePB::InternalSerializeWithCachedSizesToArray( |
3391 | 806 | bool deterministic, ::google::protobuf::uint8* target) const { |
3392 | 806 | (void)deterministic; // Unused |
3393 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.IsInitDbDoneResponsePB) |
3394 | 806 | ::google::protobuf::uint32 cached_has_bits = 0; |
3395 | 806 | (void) cached_has_bits; |
3396 | | |
3397 | 806 | cached_has_bits = _has_bits_[0]; |
3398 | | // optional .yb.master.MasterErrorPB error = 1; |
3399 | 806 | if (cached_has_bits & 0x00000002u) { |
3400 | 91 | target = ::google::protobuf::internal::WireFormatLite:: |
3401 | 91 | InternalWriteMessageToArray( |
3402 | 91 | 1, *this->error_, deterministic, target); |
3403 | 91 | } |
3404 | | |
3405 | | // optional bool pg_proc_exists = 2; |
3406 | 806 | if (cached_has_bits & 0x00000004u) { |
3407 | 715 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->pg_proc_exists(), target); |
3408 | 715 | } |
3409 | | |
3410 | | // optional bool done = 4; |
3411 | 806 | if (cached_has_bits & 0x00000008u) { |
3412 | 715 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->done(), target); |
3413 | 715 | } |
3414 | | |
3415 | | // optional string initdb_error = 5; |
3416 | 806 | if (cached_has_bits & 0x00000001u) { |
3417 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3418 | 0 | this->initdb_error().data(), static_cast<int>(this->initdb_error().length()), |
3419 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3420 | 0 | "yb.master.IsInitDbDoneResponsePB.initdb_error"); |
3421 | 0 | target = |
3422 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3423 | 0 | 5, this->initdb_error(), target); |
3424 | 0 | } |
3425 | | |
3426 | 806 | if (_internal_metadata_.have_unknown_fields()) { |
3427 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3428 | 0 | _internal_metadata_.unknown_fields(), target); |
3429 | 0 | } |
3430 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.IsInitDbDoneResponsePB) |
3431 | 806 | return target; |
3432 | 806 | } |
3433 | | |
3434 | 1.61k | size_t IsInitDbDoneResponsePB::ByteSizeLong() const { |
3435 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.IsInitDbDoneResponsePB) |
3436 | 1.61k | size_t total_size = 0; |
3437 | | |
3438 | 1.61k | if (_internal_metadata_.have_unknown_fields()) { |
3439 | 0 | total_size += |
3440 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3441 | 0 | _internal_metadata_.unknown_fields()); |
3442 | 0 | } |
3443 | 1.61k | if (_has_bits_[0 / 32] & 15u) { |
3444 | | // optional string initdb_error = 5; |
3445 | 1.61k | if (has_initdb_error()) { |
3446 | 0 | total_size += 1 + |
3447 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3448 | 0 | this->initdb_error()); |
3449 | 0 | } |
3450 | | |
3451 | | // optional .yb.master.MasterErrorPB error = 1; |
3452 | 1.61k | if (has_error()) { |
3453 | 182 | total_size += 1 + |
3454 | 182 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3455 | 182 | *this->error_); |
3456 | 182 | } |
3457 | | |
3458 | | // optional bool pg_proc_exists = 2; |
3459 | 1.61k | if (has_pg_proc_exists()) { |
3460 | 1.43k | total_size += 1 + 1; |
3461 | 1.43k | } |
3462 | | |
3463 | | // optional bool done = 4; |
3464 | 1.61k | if (has_done()) { |
3465 | 1.43k | total_size += 1 + 1; |
3466 | 1.43k | } |
3467 | | |
3468 | 1.61k | } |
3469 | 1.61k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3470 | 1.61k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3471 | 1.61k | _cached_size_ = cached_size; |
3472 | 1.61k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3473 | 1.61k | return total_size; |
3474 | 1.61k | } |
3475 | | |
3476 | 0 | void IsInitDbDoneResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
3477 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.IsInitDbDoneResponsePB) |
3478 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3479 | 0 | const IsInitDbDoneResponsePB* source = |
3480 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsInitDbDoneResponsePB>( |
3481 | 0 | &from); |
3482 | 0 | if (source == NULL) { |
3483 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.IsInitDbDoneResponsePB) |
3484 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3485 | 0 | } else { |
3486 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.IsInitDbDoneResponsePB) |
3487 | 0 | MergeFrom(*source); |
3488 | 0 | } |
3489 | 0 | } |
3490 | | |
3491 | 0 | void IsInitDbDoneResponsePB::MergeFrom(const IsInitDbDoneResponsePB& from) { |
3492 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.IsInitDbDoneResponsePB) |
3493 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3494 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3495 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3496 | 0 | (void) cached_has_bits; |
3497 | |
|
3498 | 0 | cached_has_bits = from._has_bits_[0]; |
3499 | 0 | if (cached_has_bits & 15u) { |
3500 | 0 | if (cached_has_bits & 0x00000001u) { |
3501 | 0 | set_has_initdb_error(); |
3502 | 0 | initdb_error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.initdb_error_); |
3503 | 0 | } |
3504 | 0 | if (cached_has_bits & 0x00000002u) { |
3505 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
3506 | 0 | } |
3507 | 0 | if (cached_has_bits & 0x00000004u) { |
3508 | 0 | pg_proc_exists_ = from.pg_proc_exists_; |
3509 | 0 | } |
3510 | 0 | if (cached_has_bits & 0x00000008u) { |
3511 | 0 | done_ = from.done_; |
3512 | 0 | } |
3513 | 0 | _has_bits_[0] |= cached_has_bits; |
3514 | 0 | } |
3515 | 0 | } |
3516 | | |
3517 | 0 | void IsInitDbDoneResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
3518 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.IsInitDbDoneResponsePB) |
3519 | 0 | if (&from == this) return; |
3520 | 0 | Clear(); |
3521 | 0 | MergeFrom(from); |
3522 | 0 | } |
3523 | | |
3524 | 0 | void IsInitDbDoneResponsePB::CopyFrom(const IsInitDbDoneResponsePB& from) { |
3525 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.IsInitDbDoneResponsePB) |
3526 | 0 | if (&from == this) return; |
3527 | 0 | Clear(); |
3528 | 0 | MergeFrom(from); |
3529 | 0 | } |
3530 | | |
3531 | 902 | bool IsInitDbDoneResponsePB::IsInitialized() const { |
3532 | 902 | if (has_error()) { |
3533 | 182 | if (!this->error_->IsInitialized()) return false; |
3534 | 902 | } |
3535 | 902 | return true; |
3536 | 902 | } |
3537 | | |
3538 | 0 | void IsInitDbDoneResponsePB::Swap(IsInitDbDoneResponsePB* other) { |
3539 | 0 | if (other == this) return; |
3540 | 0 | InternalSwap(other); |
3541 | 0 | } |
3542 | 0 | void IsInitDbDoneResponsePB::InternalSwap(IsInitDbDoneResponsePB* other) { |
3543 | 0 | using std::swap; |
3544 | 0 | initdb_error_.Swap(&other->initdb_error_); |
3545 | 0 | swap(error_, other->error_); |
3546 | 0 | swap(pg_proc_exists_, other->pg_proc_exists_); |
3547 | 0 | swap(done_, other->done_); |
3548 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3549 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3550 | 0 | swap(_cached_size_, other->_cached_size_); |
3551 | 0 | } |
3552 | | |
3553 | 0 | ::google::protobuf::Metadata IsInitDbDoneResponsePB::GetMetadata() const { |
3554 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
3555 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
3556 | 0 | } |
3557 | | |
3558 | | |
3559 | | // =================================================================== |
3560 | | |
3561 | 15.8k | void SplitTabletRequestPB::InitAsDefaultInstance() { |
3562 | 15.8k | } |
3563 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3564 | | const int SplitTabletRequestPB::kTabletIdFieldNumber; |
3565 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3566 | | |
3567 | | SplitTabletRequestPB::SplitTabletRequestPB() |
3568 | 15.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3569 | 138 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3570 | 138 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsSplitTabletRequestPB(); |
3571 | 138 | } |
3572 | 15.9k | SharedCtor(); |
3573 | | // @@protoc_insertion_point(constructor:yb.master.SplitTabletRequestPB) |
3574 | 15.9k | } |
3575 | | SplitTabletRequestPB::SplitTabletRequestPB(const SplitTabletRequestPB& from) |
3576 | | : ::google::protobuf::Message(), |
3577 | | _internal_metadata_(NULL), |
3578 | | _has_bits_(from._has_bits_), |
3579 | 0 | _cached_size_(0) { |
3580 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3581 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3582 | 0 | if (from.has_tablet_id()) { |
3583 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
3584 | 0 | } |
3585 | | // @@protoc_insertion_point(copy_constructor:yb.master.SplitTabletRequestPB) |
3586 | 0 | } |
3587 | | |
3588 | 15.9k | void SplitTabletRequestPB::SharedCtor() { |
3589 | 15.9k | _cached_size_ = 0; |
3590 | 15.9k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3591 | 15.9k | } |
3592 | | |
3593 | 138 | SplitTabletRequestPB::~SplitTabletRequestPB() { |
3594 | | // @@protoc_insertion_point(destructor:yb.master.SplitTabletRequestPB) |
3595 | 138 | SharedDtor(); |
3596 | 138 | } |
3597 | | |
3598 | 138 | void SplitTabletRequestPB::SharedDtor() { |
3599 | 138 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3600 | 138 | } |
3601 | | |
3602 | 0 | void SplitTabletRequestPB::SetCachedSize(int size) const { |
3603 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3604 | 0 | _cached_size_ = size; |
3605 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3606 | 0 | } |
3607 | 0 | const ::google::protobuf::Descriptor* SplitTabletRequestPB::descriptor() { |
3608 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
3609 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3610 | 0 | } |
3611 | | |
3612 | 0 | const SplitTabletRequestPB& SplitTabletRequestPB::default_instance() { |
3613 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsSplitTabletRequestPB(); |
3614 | 0 | return *internal_default_instance(); |
3615 | 0 | } |
3616 | | |
3617 | 0 | SplitTabletRequestPB* SplitTabletRequestPB::New(::google::protobuf::Arena* arena) const { |
3618 | 0 | SplitTabletRequestPB* n = new SplitTabletRequestPB; |
3619 | 0 | if (arena != NULL) { |
3620 | 0 | arena->Own(n); |
3621 | 0 | } |
3622 | 0 | return n; |
3623 | 0 | } |
3624 | | |
3625 | 69 | void SplitTabletRequestPB::Clear() { |
3626 | | // @@protoc_insertion_point(message_clear_start:yb.master.SplitTabletRequestPB) |
3627 | 69 | ::google::protobuf::uint32 cached_has_bits = 0; |
3628 | | // Prevent compiler warnings about cached_has_bits being unused |
3629 | 69 | (void) cached_has_bits; |
3630 | | |
3631 | 69 | cached_has_bits = _has_bits_[0]; |
3632 | 69 | if (cached_has_bits & 0x00000001u) { |
3633 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3634 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
3635 | 0 | } |
3636 | 69 | _has_bits_.Clear(); |
3637 | 69 | _internal_metadata_.Clear(); |
3638 | 69 | } |
3639 | | |
3640 | | bool SplitTabletRequestPB::MergePartialFromCodedStream( |
3641 | 69 | ::google::protobuf::io::CodedInputStream* input) { |
3642 | 69 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3643 | 69 | ::google::protobuf::uint32 tag; |
3644 | | // @@protoc_insertion_point(parse_start:yb.master.SplitTabletRequestPB) |
3645 | 138 | for (;;) { |
3646 | 138 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3647 | 138 | tag = p.first; |
3648 | 138 | if (!p.second) goto handle_unusual; |
3649 | 69 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3650 | | // required bytes tablet_id = 1; |
3651 | 69 | case 1: { |
3652 | 69 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3653 | 69 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3654 | 69 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3655 | 69 | input, this->mutable_tablet_id())); |
3656 | 0 | } else { |
3657 | 0 | goto handle_unusual; |
3658 | 0 | } |
3659 | 69 | break; |
3660 | 69 | } |
3661 | | |
3662 | 0 | default: { |
3663 | 69 | handle_unusual: |
3664 | 69 | if (tag == 0) { |
3665 | 69 | goto success; |
3666 | 69 | } |
3667 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3668 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3669 | 0 | break; |
3670 | 0 | } |
3671 | 69 | } |
3672 | 69 | } |
3673 | 69 | success: |
3674 | | // @@protoc_insertion_point(parse_success:yb.master.SplitTabletRequestPB) |
3675 | 69 | return true; |
3676 | 0 | failure: |
3677 | | // @@protoc_insertion_point(parse_failure:yb.master.SplitTabletRequestPB) |
3678 | 0 | return false; |
3679 | 69 | #undef DO_ |
3680 | 69 | } |
3681 | | |
3682 | | void SplitTabletRequestPB::SerializeWithCachedSizes( |
3683 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3684 | | // @@protoc_insertion_point(serialize_start:yb.master.SplitTabletRequestPB) |
3685 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3686 | 0 | (void) cached_has_bits; |
3687 | |
|
3688 | 0 | cached_has_bits = _has_bits_[0]; |
3689 | | // required bytes tablet_id = 1; |
3690 | 0 | if (cached_has_bits & 0x00000001u) { |
3691 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
3692 | 0 | 1, this->tablet_id(), output); |
3693 | 0 | } |
3694 | |
|
3695 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3696 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3697 | 0 | _internal_metadata_.unknown_fields(), output); |
3698 | 0 | } |
3699 | | // @@protoc_insertion_point(serialize_end:yb.master.SplitTabletRequestPB) |
3700 | 0 | } |
3701 | | |
3702 | | ::google::protobuf::uint8* SplitTabletRequestPB::InternalSerializeWithCachedSizesToArray( |
3703 | 69 | bool deterministic, ::google::protobuf::uint8* target) const { |
3704 | 69 | (void)deterministic; // Unused |
3705 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.SplitTabletRequestPB) |
3706 | 69 | ::google::protobuf::uint32 cached_has_bits = 0; |
3707 | 69 | (void) cached_has_bits; |
3708 | | |
3709 | 69 | cached_has_bits = _has_bits_[0]; |
3710 | | // required bytes tablet_id = 1; |
3711 | 69 | if (cached_has_bits & 0x00000001u) { |
3712 | 69 | target = |
3713 | 69 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
3714 | 69 | 1, this->tablet_id(), target); |
3715 | 69 | } |
3716 | | |
3717 | 69 | if (_internal_metadata_.have_unknown_fields()) { |
3718 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3719 | 0 | _internal_metadata_.unknown_fields(), target); |
3720 | 0 | } |
3721 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.SplitTabletRequestPB) |
3722 | 69 | return target; |
3723 | 69 | } |
3724 | | |
3725 | 138 | size_t SplitTabletRequestPB::ByteSizeLong() const { |
3726 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.SplitTabletRequestPB) |
3727 | 138 | size_t total_size = 0; |
3728 | | |
3729 | 138 | if (_internal_metadata_.have_unknown_fields()) { |
3730 | 0 | total_size += |
3731 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3732 | 0 | _internal_metadata_.unknown_fields()); |
3733 | 0 | } |
3734 | | // required bytes tablet_id = 1; |
3735 | 138 | if (has_tablet_id()) { |
3736 | 138 | total_size += 1 + |
3737 | 138 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
3738 | 138 | this->tablet_id()); |
3739 | 138 | } |
3740 | 138 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3741 | 138 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3742 | 138 | _cached_size_ = cached_size; |
3743 | 138 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3744 | 138 | return total_size; |
3745 | 138 | } |
3746 | | |
3747 | 0 | void SplitTabletRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3748 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.SplitTabletRequestPB) |
3749 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3750 | 0 | const SplitTabletRequestPB* source = |
3751 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SplitTabletRequestPB>( |
3752 | 0 | &from); |
3753 | 0 | if (source == NULL) { |
3754 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SplitTabletRequestPB) |
3755 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3756 | 0 | } else { |
3757 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SplitTabletRequestPB) |
3758 | 0 | MergeFrom(*source); |
3759 | 0 | } |
3760 | 0 | } |
3761 | | |
3762 | 0 | void SplitTabletRequestPB::MergeFrom(const SplitTabletRequestPB& from) { |
3763 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SplitTabletRequestPB) |
3764 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3765 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3766 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3767 | 0 | (void) cached_has_bits; |
3768 | |
|
3769 | 0 | if (from.has_tablet_id()) { |
3770 | 0 | set_has_tablet_id(); |
3771 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
3772 | 0 | } |
3773 | 0 | } |
3774 | | |
3775 | 0 | void SplitTabletRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3776 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.SplitTabletRequestPB) |
3777 | 0 | if (&from == this) return; |
3778 | 0 | Clear(); |
3779 | 0 | MergeFrom(from); |
3780 | 0 | } |
3781 | | |
3782 | 0 | void SplitTabletRequestPB::CopyFrom(const SplitTabletRequestPB& from) { |
3783 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SplitTabletRequestPB) |
3784 | 0 | if (&from == this) return; |
3785 | 0 | Clear(); |
3786 | 0 | MergeFrom(from); |
3787 | 0 | } |
3788 | | |
3789 | 138 | bool SplitTabletRequestPB::IsInitialized() const { |
3790 | 138 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
3791 | 138 | return true; |
3792 | 138 | } |
3793 | | |
3794 | 0 | void SplitTabletRequestPB::Swap(SplitTabletRequestPB* other) { |
3795 | 0 | if (other == this) return; |
3796 | 0 | InternalSwap(other); |
3797 | 0 | } |
3798 | 0 | void SplitTabletRequestPB::InternalSwap(SplitTabletRequestPB* other) { |
3799 | 0 | using std::swap; |
3800 | 0 | tablet_id_.Swap(&other->tablet_id_); |
3801 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3802 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3803 | 0 | swap(_cached_size_, other->_cached_size_); |
3804 | 0 | } |
3805 | | |
3806 | 69 | ::google::protobuf::Metadata SplitTabletRequestPB::GetMetadata() const { |
3807 | 69 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
3808 | 69 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
3809 | 69 | } |
3810 | | |
3811 | | |
3812 | | // =================================================================== |
3813 | | |
3814 | 15.8k | void SplitTabletResponsePB::InitAsDefaultInstance() { |
3815 | 15.8k | ::yb::master::_SplitTabletResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
3816 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
3817 | 15.8k | } |
3818 | 0 | void SplitTabletResponsePB::clear_error() { |
3819 | 0 | if (error_ != NULL) error_->Clear(); |
3820 | 0 | clear_has_error(); |
3821 | 0 | } |
3822 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3823 | | const int SplitTabletResponsePB::kErrorFieldNumber; |
3824 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3825 | | |
3826 | | SplitTabletResponsePB::SplitTabletResponsePB() |
3827 | 15.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3828 | 138 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3829 | 138 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsSplitTabletResponsePB(); |
3830 | 138 | } |
3831 | 15.9k | SharedCtor(); |
3832 | | // @@protoc_insertion_point(constructor:yb.master.SplitTabletResponsePB) |
3833 | 15.9k | } |
3834 | | SplitTabletResponsePB::SplitTabletResponsePB(const SplitTabletResponsePB& from) |
3835 | | : ::google::protobuf::Message(), |
3836 | | _internal_metadata_(NULL), |
3837 | | _has_bits_(from._has_bits_), |
3838 | 0 | _cached_size_(0) { |
3839 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3840 | 0 | if (from.has_error()) { |
3841 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
3842 | 0 | } else { |
3843 | 0 | error_ = NULL; |
3844 | 0 | } |
3845 | | // @@protoc_insertion_point(copy_constructor:yb.master.SplitTabletResponsePB) |
3846 | 0 | } |
3847 | | |
3848 | 15.9k | void SplitTabletResponsePB::SharedCtor() { |
3849 | 15.9k | _cached_size_ = 0; |
3850 | 15.9k | error_ = NULL; |
3851 | 15.9k | } |
3852 | | |
3853 | 138 | SplitTabletResponsePB::~SplitTabletResponsePB() { |
3854 | | // @@protoc_insertion_point(destructor:yb.master.SplitTabletResponsePB) |
3855 | 138 | SharedDtor(); |
3856 | 138 | } |
3857 | | |
3858 | 138 | void SplitTabletResponsePB::SharedDtor() { |
3859 | 138 | if (this != internal_default_instance()) delete error_; |
3860 | 138 | } |
3861 | | |
3862 | 0 | void SplitTabletResponsePB::SetCachedSize(int size) const { |
3863 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3864 | 0 | _cached_size_ = size; |
3865 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3866 | 0 | } |
3867 | 0 | const ::google::protobuf::Descriptor* SplitTabletResponsePB::descriptor() { |
3868 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
3869 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3870 | 0 | } |
3871 | | |
3872 | 0 | const SplitTabletResponsePB& SplitTabletResponsePB::default_instance() { |
3873 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsSplitTabletResponsePB(); |
3874 | 0 | return *internal_default_instance(); |
3875 | 0 | } |
3876 | | |
3877 | 0 | SplitTabletResponsePB* SplitTabletResponsePB::New(::google::protobuf::Arena* arena) const { |
3878 | 0 | SplitTabletResponsePB* n = new SplitTabletResponsePB; |
3879 | 0 | if (arena != NULL) { |
3880 | 0 | arena->Own(n); |
3881 | 0 | } |
3882 | 0 | return n; |
3883 | 0 | } |
3884 | | |
3885 | 69 | void SplitTabletResponsePB::Clear() { |
3886 | | // @@protoc_insertion_point(message_clear_start:yb.master.SplitTabletResponsePB) |
3887 | 69 | ::google::protobuf::uint32 cached_has_bits = 0; |
3888 | | // Prevent compiler warnings about cached_has_bits being unused |
3889 | 69 | (void) cached_has_bits; |
3890 | | |
3891 | 69 | cached_has_bits = _has_bits_[0]; |
3892 | 69 | if (cached_has_bits & 0x00000001u) { |
3893 | 0 | GOOGLE_DCHECK(error_ != NULL); |
3894 | 0 | error_->Clear(); |
3895 | 0 | } |
3896 | 69 | _has_bits_.Clear(); |
3897 | 69 | _internal_metadata_.Clear(); |
3898 | 69 | } |
3899 | | |
3900 | | bool SplitTabletResponsePB::MergePartialFromCodedStream( |
3901 | 69 | ::google::protobuf::io::CodedInputStream* input) { |
3902 | 59 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3903 | 69 | ::google::protobuf::uint32 tag; |
3904 | | // @@protoc_insertion_point(parse_start:yb.master.SplitTabletResponsePB) |
3905 | 128 | for (;;) { |
3906 | 128 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3907 | 128 | tag = p.first; |
3908 | 128 | if (!p.second) goto handle_unusual; |
3909 | 59 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3910 | | // optional .yb.master.MasterErrorPB error = 1; |
3911 | 59 | case 1: { |
3912 | 59 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3913 | 59 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3914 | 59 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3915 | 59 | input, mutable_error())); |
3916 | 0 | } else { |
3917 | 0 | goto handle_unusual; |
3918 | 0 | } |
3919 | 59 | break; |
3920 | 69 | } |
3921 | | |
3922 | 0 | default: { |
3923 | 69 | handle_unusual: |
3924 | 69 | if (tag == 0) { |
3925 | 69 | goto success; |
3926 | 69 | } |
3927 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3928 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3929 | 0 | break; |
3930 | 0 | } |
3931 | 59 | } |
3932 | 59 | } |
3933 | 69 | success: |
3934 | | // @@protoc_insertion_point(parse_success:yb.master.SplitTabletResponsePB) |
3935 | 69 | return true; |
3936 | 0 | failure: |
3937 | | // @@protoc_insertion_point(parse_failure:yb.master.SplitTabletResponsePB) |
3938 | 0 | return false; |
3939 | 69 | #undef DO_ |
3940 | 69 | } |
3941 | | |
3942 | | void SplitTabletResponsePB::SerializeWithCachedSizes( |
3943 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3944 | | // @@protoc_insertion_point(serialize_start:yb.master.SplitTabletResponsePB) |
3945 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3946 | 0 | (void) cached_has_bits; |
3947 | |
|
3948 | 0 | cached_has_bits = _has_bits_[0]; |
3949 | | // optional .yb.master.MasterErrorPB error = 1; |
3950 | 0 | if (cached_has_bits & 0x00000001u) { |
3951 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3952 | 0 | 1, *this->error_, output); |
3953 | 0 | } |
3954 | |
|
3955 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3956 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3957 | 0 | _internal_metadata_.unknown_fields(), output); |
3958 | 0 | } |
3959 | | // @@protoc_insertion_point(serialize_end:yb.master.SplitTabletResponsePB) |
3960 | 0 | } |
3961 | | |
3962 | | ::google::protobuf::uint8* SplitTabletResponsePB::InternalSerializeWithCachedSizesToArray( |
3963 | 69 | bool deterministic, ::google::protobuf::uint8* target) const { |
3964 | 69 | (void)deterministic; // Unused |
3965 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.SplitTabletResponsePB) |
3966 | 69 | ::google::protobuf::uint32 cached_has_bits = 0; |
3967 | 69 | (void) cached_has_bits; |
3968 | | |
3969 | 69 | cached_has_bits = _has_bits_[0]; |
3970 | | // optional .yb.master.MasterErrorPB error = 1; |
3971 | 69 | if (cached_has_bits & 0x00000001u) { |
3972 | 59 | target = ::google::protobuf::internal::WireFormatLite:: |
3973 | 59 | InternalWriteMessageToArray( |
3974 | 59 | 1, *this->error_, deterministic, target); |
3975 | 59 | } |
3976 | | |
3977 | 69 | if (_internal_metadata_.have_unknown_fields()) { |
3978 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3979 | 0 | _internal_metadata_.unknown_fields(), target); |
3980 | 0 | } |
3981 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.SplitTabletResponsePB) |
3982 | 69 | return target; |
3983 | 69 | } |
3984 | | |
3985 | 138 | size_t SplitTabletResponsePB::ByteSizeLong() const { |
3986 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.SplitTabletResponsePB) |
3987 | 138 | size_t total_size = 0; |
3988 | | |
3989 | 138 | if (_internal_metadata_.have_unknown_fields()) { |
3990 | 0 | total_size += |
3991 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3992 | 0 | _internal_metadata_.unknown_fields()); |
3993 | 0 | } |
3994 | | // optional .yb.master.MasterErrorPB error = 1; |
3995 | 138 | if (has_error()) { |
3996 | 118 | total_size += 1 + |
3997 | 118 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3998 | 118 | *this->error_); |
3999 | 118 | } |
4000 | | |
4001 | 138 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4002 | 138 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4003 | 138 | _cached_size_ = cached_size; |
4004 | 138 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4005 | 138 | return total_size; |
4006 | 138 | } |
4007 | | |
4008 | 0 | void SplitTabletResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
4009 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.SplitTabletResponsePB) |
4010 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4011 | 0 | const SplitTabletResponsePB* source = |
4012 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SplitTabletResponsePB>( |
4013 | 0 | &from); |
4014 | 0 | if (source == NULL) { |
4015 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SplitTabletResponsePB) |
4016 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4017 | 0 | } else { |
4018 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SplitTabletResponsePB) |
4019 | 0 | MergeFrom(*source); |
4020 | 0 | } |
4021 | 0 | } |
4022 | | |
4023 | 0 | void SplitTabletResponsePB::MergeFrom(const SplitTabletResponsePB& from) { |
4024 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SplitTabletResponsePB) |
4025 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4026 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4027 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4028 | 0 | (void) cached_has_bits; |
4029 | |
|
4030 | 0 | if (from.has_error()) { |
4031 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
4032 | 0 | } |
4033 | 0 | } |
4034 | | |
4035 | 0 | void SplitTabletResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
4036 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.SplitTabletResponsePB) |
4037 | 0 | if (&from == this) return; |
4038 | 0 | Clear(); |
4039 | 0 | MergeFrom(from); |
4040 | 0 | } |
4041 | | |
4042 | 0 | void SplitTabletResponsePB::CopyFrom(const SplitTabletResponsePB& from) { |
4043 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SplitTabletResponsePB) |
4044 | 0 | if (&from == this) return; |
4045 | 0 | Clear(); |
4046 | 0 | MergeFrom(from); |
4047 | 0 | } |
4048 | | |
4049 | 138 | bool SplitTabletResponsePB::IsInitialized() const { |
4050 | 138 | if (has_error()) { |
4051 | 118 | if (!this->error_->IsInitialized()) return false; |
4052 | 138 | } |
4053 | 138 | return true; |
4054 | 138 | } |
4055 | | |
4056 | 0 | void SplitTabletResponsePB::Swap(SplitTabletResponsePB* other) { |
4057 | 0 | if (other == this) return; |
4058 | 0 | InternalSwap(other); |
4059 | 0 | } |
4060 | 0 | void SplitTabletResponsePB::InternalSwap(SplitTabletResponsePB* other) { |
4061 | 0 | using std::swap; |
4062 | 0 | swap(error_, other->error_); |
4063 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4064 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4065 | 0 | swap(_cached_size_, other->_cached_size_); |
4066 | 0 | } |
4067 | | |
4068 | 0 | ::google::protobuf::Metadata SplitTabletResponsePB::GetMetadata() const { |
4069 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4070 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
4071 | 0 | } |
4072 | | |
4073 | | |
4074 | | // =================================================================== |
4075 | | |
4076 | 15.8k | void CreateTransactionStatusTableRequestPB::InitAsDefaultInstance() { |
4077 | 15.8k | } |
4078 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4079 | | const int CreateTransactionStatusTableRequestPB::kTableNameFieldNumber; |
4080 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4081 | | |
4082 | | CreateTransactionStatusTableRequestPB::CreateTransactionStatusTableRequestPB() |
4083 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4084 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4085 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCreateTransactionStatusTableRequestPB(); |
4086 | 0 | } |
4087 | 15.8k | SharedCtor(); |
4088 | | // @@protoc_insertion_point(constructor:yb.master.CreateTransactionStatusTableRequestPB) |
4089 | 15.8k | } |
4090 | | CreateTransactionStatusTableRequestPB::CreateTransactionStatusTableRequestPB(const CreateTransactionStatusTableRequestPB& from) |
4091 | | : ::google::protobuf::Message(), |
4092 | | _internal_metadata_(NULL), |
4093 | | _has_bits_(from._has_bits_), |
4094 | 0 | _cached_size_(0) { |
4095 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4096 | 0 | table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4097 | 0 | if (from.has_table_name()) { |
4098 | 0 | table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); |
4099 | 0 | } |
4100 | | // @@protoc_insertion_point(copy_constructor:yb.master.CreateTransactionStatusTableRequestPB) |
4101 | 0 | } |
4102 | | |
4103 | 15.8k | void CreateTransactionStatusTableRequestPB::SharedCtor() { |
4104 | 15.8k | _cached_size_ = 0; |
4105 | 15.8k | table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4106 | 15.8k | } |
4107 | | |
4108 | 0 | CreateTransactionStatusTableRequestPB::~CreateTransactionStatusTableRequestPB() { |
4109 | | // @@protoc_insertion_point(destructor:yb.master.CreateTransactionStatusTableRequestPB) |
4110 | 0 | SharedDtor(); |
4111 | 0 | } |
4112 | | |
4113 | 0 | void CreateTransactionStatusTableRequestPB::SharedDtor() { |
4114 | 0 | table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4115 | 0 | } |
4116 | | |
4117 | 0 | void CreateTransactionStatusTableRequestPB::SetCachedSize(int size) const { |
4118 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4119 | 0 | _cached_size_ = size; |
4120 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4121 | 0 | } |
4122 | 0 | const ::google::protobuf::Descriptor* CreateTransactionStatusTableRequestPB::descriptor() { |
4123 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4124 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4125 | 0 | } |
4126 | | |
4127 | 0 | const CreateTransactionStatusTableRequestPB& CreateTransactionStatusTableRequestPB::default_instance() { |
4128 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCreateTransactionStatusTableRequestPB(); |
4129 | 0 | return *internal_default_instance(); |
4130 | 0 | } |
4131 | | |
4132 | 0 | CreateTransactionStatusTableRequestPB* CreateTransactionStatusTableRequestPB::New(::google::protobuf::Arena* arena) const { |
4133 | 0 | CreateTransactionStatusTableRequestPB* n = new CreateTransactionStatusTableRequestPB; |
4134 | 0 | if (arena != NULL) { |
4135 | 0 | arena->Own(n); |
4136 | 0 | } |
4137 | 0 | return n; |
4138 | 0 | } |
4139 | | |
4140 | 0 | void CreateTransactionStatusTableRequestPB::Clear() { |
4141 | | // @@protoc_insertion_point(message_clear_start:yb.master.CreateTransactionStatusTableRequestPB) |
4142 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4143 | | // Prevent compiler warnings about cached_has_bits being unused |
4144 | 0 | (void) cached_has_bits; |
4145 | |
|
4146 | 0 | cached_has_bits = _has_bits_[0]; |
4147 | 0 | if (cached_has_bits & 0x00000001u) { |
4148 | 0 | GOOGLE_DCHECK(!table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4149 | 0 | (*table_name_.UnsafeRawStringPointer())->clear(); |
4150 | 0 | } |
4151 | 0 | _has_bits_.Clear(); |
4152 | 0 | _internal_metadata_.Clear(); |
4153 | 0 | } |
4154 | | |
4155 | | bool CreateTransactionStatusTableRequestPB::MergePartialFromCodedStream( |
4156 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4157 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4158 | 0 | ::google::protobuf::uint32 tag; |
4159 | | // @@protoc_insertion_point(parse_start:yb.master.CreateTransactionStatusTableRequestPB) |
4160 | 0 | for (;;) { |
4161 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4162 | 0 | tag = p.first; |
4163 | 0 | if (!p.second) goto handle_unusual; |
4164 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4165 | | // required string table_name = 1; |
4166 | 0 | case 1: { |
4167 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4168 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4169 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4170 | 0 | input, this->mutable_table_name())); |
4171 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4172 | 0 | this->table_name().data(), static_cast<int>(this->table_name().length()), |
4173 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
4174 | 0 | "yb.master.CreateTransactionStatusTableRequestPB.table_name"); |
4175 | 0 | } else { |
4176 | 0 | goto handle_unusual; |
4177 | 0 | } |
4178 | 0 | break; |
4179 | 0 | } |
4180 | | |
4181 | 0 | default: { |
4182 | 0 | handle_unusual: |
4183 | 0 | if (tag == 0) { |
4184 | 0 | goto success; |
4185 | 0 | } |
4186 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4187 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4188 | 0 | break; |
4189 | 0 | } |
4190 | 0 | } |
4191 | 0 | } |
4192 | 0 | success: |
4193 | | // @@protoc_insertion_point(parse_success:yb.master.CreateTransactionStatusTableRequestPB) |
4194 | 0 | return true; |
4195 | 0 | failure: |
4196 | | // @@protoc_insertion_point(parse_failure:yb.master.CreateTransactionStatusTableRequestPB) |
4197 | 0 | return false; |
4198 | 0 | #undef DO_ |
4199 | 0 | } |
4200 | | |
4201 | | void CreateTransactionStatusTableRequestPB::SerializeWithCachedSizes( |
4202 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4203 | | // @@protoc_insertion_point(serialize_start:yb.master.CreateTransactionStatusTableRequestPB) |
4204 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4205 | 0 | (void) cached_has_bits; |
4206 | |
|
4207 | 0 | cached_has_bits = _has_bits_[0]; |
4208 | | // required string table_name = 1; |
4209 | 0 | if (cached_has_bits & 0x00000001u) { |
4210 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4211 | 0 | this->table_name().data(), static_cast<int>(this->table_name().length()), |
4212 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4213 | 0 | "yb.master.CreateTransactionStatusTableRequestPB.table_name"); |
4214 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
4215 | 0 | 1, this->table_name(), output); |
4216 | 0 | } |
4217 | |
|
4218 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4219 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4220 | 0 | _internal_metadata_.unknown_fields(), output); |
4221 | 0 | } |
4222 | | // @@protoc_insertion_point(serialize_end:yb.master.CreateTransactionStatusTableRequestPB) |
4223 | 0 | } |
4224 | | |
4225 | | ::google::protobuf::uint8* CreateTransactionStatusTableRequestPB::InternalSerializeWithCachedSizesToArray( |
4226 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4227 | 0 | (void)deterministic; // Unused |
4228 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CreateTransactionStatusTableRequestPB) |
4229 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4230 | 0 | (void) cached_has_bits; |
4231 | |
|
4232 | 0 | cached_has_bits = _has_bits_[0]; |
4233 | | // required string table_name = 1; |
4234 | 0 | if (cached_has_bits & 0x00000001u) { |
4235 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4236 | 0 | this->table_name().data(), static_cast<int>(this->table_name().length()), |
4237 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4238 | 0 | "yb.master.CreateTransactionStatusTableRequestPB.table_name"); |
4239 | 0 | target = |
4240 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4241 | 0 | 1, this->table_name(), target); |
4242 | 0 | } |
4243 | |
|
4244 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4245 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4246 | 0 | _internal_metadata_.unknown_fields(), target); |
4247 | 0 | } |
4248 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CreateTransactionStatusTableRequestPB) |
4249 | 0 | return target; |
4250 | 0 | } |
4251 | | |
4252 | 0 | size_t CreateTransactionStatusTableRequestPB::ByteSizeLong() const { |
4253 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CreateTransactionStatusTableRequestPB) |
4254 | 0 | size_t total_size = 0; |
4255 | |
|
4256 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4257 | 0 | total_size += |
4258 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4259 | 0 | _internal_metadata_.unknown_fields()); |
4260 | 0 | } |
4261 | | // required string table_name = 1; |
4262 | 0 | if (has_table_name()) { |
4263 | 0 | total_size += 1 + |
4264 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
4265 | 0 | this->table_name()); |
4266 | 0 | } |
4267 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4268 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4269 | 0 | _cached_size_ = cached_size; |
4270 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4271 | 0 | return total_size; |
4272 | 0 | } |
4273 | | |
4274 | 0 | void CreateTransactionStatusTableRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
4275 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CreateTransactionStatusTableRequestPB) |
4276 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4277 | 0 | const CreateTransactionStatusTableRequestPB* source = |
4278 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CreateTransactionStatusTableRequestPB>( |
4279 | 0 | &from); |
4280 | 0 | if (source == NULL) { |
4281 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CreateTransactionStatusTableRequestPB) |
4282 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4283 | 0 | } else { |
4284 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CreateTransactionStatusTableRequestPB) |
4285 | 0 | MergeFrom(*source); |
4286 | 0 | } |
4287 | 0 | } |
4288 | | |
4289 | 0 | void CreateTransactionStatusTableRequestPB::MergeFrom(const CreateTransactionStatusTableRequestPB& from) { |
4290 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CreateTransactionStatusTableRequestPB) |
4291 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4292 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4293 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4294 | 0 | (void) cached_has_bits; |
4295 | |
|
4296 | 0 | if (from.has_table_name()) { |
4297 | 0 | set_has_table_name(); |
4298 | 0 | table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); |
4299 | 0 | } |
4300 | 0 | } |
4301 | | |
4302 | 0 | void CreateTransactionStatusTableRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
4303 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CreateTransactionStatusTableRequestPB) |
4304 | 0 | if (&from == this) return; |
4305 | 0 | Clear(); |
4306 | 0 | MergeFrom(from); |
4307 | 0 | } |
4308 | | |
4309 | 0 | void CreateTransactionStatusTableRequestPB::CopyFrom(const CreateTransactionStatusTableRequestPB& from) { |
4310 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CreateTransactionStatusTableRequestPB) |
4311 | 0 | if (&from == this) return; |
4312 | 0 | Clear(); |
4313 | 0 | MergeFrom(from); |
4314 | 0 | } |
4315 | | |
4316 | 0 | bool CreateTransactionStatusTableRequestPB::IsInitialized() const { |
4317 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
4318 | 0 | return true; |
4319 | 0 | } |
4320 | | |
4321 | 0 | void CreateTransactionStatusTableRequestPB::Swap(CreateTransactionStatusTableRequestPB* other) { |
4322 | 0 | if (other == this) return; |
4323 | 0 | InternalSwap(other); |
4324 | 0 | } |
4325 | 0 | void CreateTransactionStatusTableRequestPB::InternalSwap(CreateTransactionStatusTableRequestPB* other) { |
4326 | 0 | using std::swap; |
4327 | 0 | table_name_.Swap(&other->table_name_); |
4328 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4329 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4330 | 0 | swap(_cached_size_, other->_cached_size_); |
4331 | 0 | } |
4332 | | |
4333 | 0 | ::google::protobuf::Metadata CreateTransactionStatusTableRequestPB::GetMetadata() const { |
4334 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4335 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
4336 | 0 | } |
4337 | | |
4338 | | |
4339 | | // =================================================================== |
4340 | | |
4341 | 15.8k | void CreateTransactionStatusTableResponsePB::InitAsDefaultInstance() { |
4342 | 15.8k | ::yb::master::_CreateTransactionStatusTableResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
4343 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
4344 | 15.8k | } |
4345 | 0 | void CreateTransactionStatusTableResponsePB::clear_error() { |
4346 | 0 | if (error_ != NULL) error_->Clear(); |
4347 | 0 | clear_has_error(); |
4348 | 0 | } |
4349 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4350 | | const int CreateTransactionStatusTableResponsePB::kErrorFieldNumber; |
4351 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4352 | | |
4353 | | CreateTransactionStatusTableResponsePB::CreateTransactionStatusTableResponsePB() |
4354 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4355 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4356 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCreateTransactionStatusTableResponsePB(); |
4357 | 0 | } |
4358 | 15.8k | SharedCtor(); |
4359 | | // @@protoc_insertion_point(constructor:yb.master.CreateTransactionStatusTableResponsePB) |
4360 | 15.8k | } |
4361 | | CreateTransactionStatusTableResponsePB::CreateTransactionStatusTableResponsePB(const CreateTransactionStatusTableResponsePB& from) |
4362 | | : ::google::protobuf::Message(), |
4363 | | _internal_metadata_(NULL), |
4364 | | _has_bits_(from._has_bits_), |
4365 | 0 | _cached_size_(0) { |
4366 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4367 | 0 | if (from.has_error()) { |
4368 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
4369 | 0 | } else { |
4370 | 0 | error_ = NULL; |
4371 | 0 | } |
4372 | | // @@protoc_insertion_point(copy_constructor:yb.master.CreateTransactionStatusTableResponsePB) |
4373 | 0 | } |
4374 | | |
4375 | 15.8k | void CreateTransactionStatusTableResponsePB::SharedCtor() { |
4376 | 15.8k | _cached_size_ = 0; |
4377 | 15.8k | error_ = NULL; |
4378 | 15.8k | } |
4379 | | |
4380 | 0 | CreateTransactionStatusTableResponsePB::~CreateTransactionStatusTableResponsePB() { |
4381 | | // @@protoc_insertion_point(destructor:yb.master.CreateTransactionStatusTableResponsePB) |
4382 | 0 | SharedDtor(); |
4383 | 0 | } |
4384 | | |
4385 | 0 | void CreateTransactionStatusTableResponsePB::SharedDtor() { |
4386 | 0 | if (this != internal_default_instance()) delete error_; |
4387 | 0 | } |
4388 | | |
4389 | 0 | void CreateTransactionStatusTableResponsePB::SetCachedSize(int size) const { |
4390 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4391 | 0 | _cached_size_ = size; |
4392 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4393 | 0 | } |
4394 | 0 | const ::google::protobuf::Descriptor* CreateTransactionStatusTableResponsePB::descriptor() { |
4395 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4396 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4397 | 0 | } |
4398 | | |
4399 | 0 | const CreateTransactionStatusTableResponsePB& CreateTransactionStatusTableResponsePB::default_instance() { |
4400 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsCreateTransactionStatusTableResponsePB(); |
4401 | 0 | return *internal_default_instance(); |
4402 | 0 | } |
4403 | | |
4404 | 0 | CreateTransactionStatusTableResponsePB* CreateTransactionStatusTableResponsePB::New(::google::protobuf::Arena* arena) const { |
4405 | 0 | CreateTransactionStatusTableResponsePB* n = new CreateTransactionStatusTableResponsePB; |
4406 | 0 | if (arena != NULL) { |
4407 | 0 | arena->Own(n); |
4408 | 0 | } |
4409 | 0 | return n; |
4410 | 0 | } |
4411 | | |
4412 | 0 | void CreateTransactionStatusTableResponsePB::Clear() { |
4413 | | // @@protoc_insertion_point(message_clear_start:yb.master.CreateTransactionStatusTableResponsePB) |
4414 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4415 | | // Prevent compiler warnings about cached_has_bits being unused |
4416 | 0 | (void) cached_has_bits; |
4417 | |
|
4418 | 0 | cached_has_bits = _has_bits_[0]; |
4419 | 0 | if (cached_has_bits & 0x00000001u) { |
4420 | 0 | GOOGLE_DCHECK(error_ != NULL); |
4421 | 0 | error_->Clear(); |
4422 | 0 | } |
4423 | 0 | _has_bits_.Clear(); |
4424 | 0 | _internal_metadata_.Clear(); |
4425 | 0 | } |
4426 | | |
4427 | | bool CreateTransactionStatusTableResponsePB::MergePartialFromCodedStream( |
4428 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4429 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4430 | 0 | ::google::protobuf::uint32 tag; |
4431 | | // @@protoc_insertion_point(parse_start:yb.master.CreateTransactionStatusTableResponsePB) |
4432 | 0 | for (;;) { |
4433 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4434 | 0 | tag = p.first; |
4435 | 0 | if (!p.second) goto handle_unusual; |
4436 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4437 | | // optional .yb.master.MasterErrorPB error = 1; |
4438 | 0 | case 1: { |
4439 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4440 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4441 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4442 | 0 | input, mutable_error())); |
4443 | 0 | } else { |
4444 | 0 | goto handle_unusual; |
4445 | 0 | } |
4446 | 0 | break; |
4447 | 0 | } |
4448 | | |
4449 | 0 | default: { |
4450 | 0 | handle_unusual: |
4451 | 0 | if (tag == 0) { |
4452 | 0 | goto success; |
4453 | 0 | } |
4454 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4455 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4456 | 0 | break; |
4457 | 0 | } |
4458 | 0 | } |
4459 | 0 | } |
4460 | 0 | success: |
4461 | | // @@protoc_insertion_point(parse_success:yb.master.CreateTransactionStatusTableResponsePB) |
4462 | 0 | return true; |
4463 | 0 | failure: |
4464 | | // @@protoc_insertion_point(parse_failure:yb.master.CreateTransactionStatusTableResponsePB) |
4465 | 0 | return false; |
4466 | 0 | #undef DO_ |
4467 | 0 | } |
4468 | | |
4469 | | void CreateTransactionStatusTableResponsePB::SerializeWithCachedSizes( |
4470 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4471 | | // @@protoc_insertion_point(serialize_start:yb.master.CreateTransactionStatusTableResponsePB) |
4472 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4473 | 0 | (void) cached_has_bits; |
4474 | |
|
4475 | 0 | cached_has_bits = _has_bits_[0]; |
4476 | | // optional .yb.master.MasterErrorPB error = 1; |
4477 | 0 | if (cached_has_bits & 0x00000001u) { |
4478 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4479 | 0 | 1, *this->error_, output); |
4480 | 0 | } |
4481 | |
|
4482 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4483 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4484 | 0 | _internal_metadata_.unknown_fields(), output); |
4485 | 0 | } |
4486 | | // @@protoc_insertion_point(serialize_end:yb.master.CreateTransactionStatusTableResponsePB) |
4487 | 0 | } |
4488 | | |
4489 | | ::google::protobuf::uint8* CreateTransactionStatusTableResponsePB::InternalSerializeWithCachedSizesToArray( |
4490 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4491 | 0 | (void)deterministic; // Unused |
4492 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CreateTransactionStatusTableResponsePB) |
4493 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4494 | 0 | (void) cached_has_bits; |
4495 | |
|
4496 | 0 | cached_has_bits = _has_bits_[0]; |
4497 | | // optional .yb.master.MasterErrorPB error = 1; |
4498 | 0 | if (cached_has_bits & 0x00000001u) { |
4499 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4500 | 0 | InternalWriteMessageToArray( |
4501 | 0 | 1, *this->error_, deterministic, target); |
4502 | 0 | } |
4503 | |
|
4504 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4505 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4506 | 0 | _internal_metadata_.unknown_fields(), target); |
4507 | 0 | } |
4508 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CreateTransactionStatusTableResponsePB) |
4509 | 0 | return target; |
4510 | 0 | } |
4511 | | |
4512 | 0 | size_t CreateTransactionStatusTableResponsePB::ByteSizeLong() const { |
4513 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CreateTransactionStatusTableResponsePB) |
4514 | 0 | size_t total_size = 0; |
4515 | |
|
4516 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4517 | 0 | total_size += |
4518 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4519 | 0 | _internal_metadata_.unknown_fields()); |
4520 | 0 | } |
4521 | | // optional .yb.master.MasterErrorPB error = 1; |
4522 | 0 | if (has_error()) { |
4523 | 0 | total_size += 1 + |
4524 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4525 | 0 | *this->error_); |
4526 | 0 | } |
4527 | |
|
4528 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4529 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4530 | 0 | _cached_size_ = cached_size; |
4531 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4532 | 0 | return total_size; |
4533 | 0 | } |
4534 | | |
4535 | 0 | void CreateTransactionStatusTableResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
4536 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CreateTransactionStatusTableResponsePB) |
4537 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4538 | 0 | const CreateTransactionStatusTableResponsePB* source = |
4539 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CreateTransactionStatusTableResponsePB>( |
4540 | 0 | &from); |
4541 | 0 | if (source == NULL) { |
4542 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CreateTransactionStatusTableResponsePB) |
4543 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4544 | 0 | } else { |
4545 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CreateTransactionStatusTableResponsePB) |
4546 | 0 | MergeFrom(*source); |
4547 | 0 | } |
4548 | 0 | } |
4549 | | |
4550 | 0 | void CreateTransactionStatusTableResponsePB::MergeFrom(const CreateTransactionStatusTableResponsePB& from) { |
4551 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CreateTransactionStatusTableResponsePB) |
4552 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4553 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4554 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4555 | 0 | (void) cached_has_bits; |
4556 | |
|
4557 | 0 | if (from.has_error()) { |
4558 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
4559 | 0 | } |
4560 | 0 | } |
4561 | | |
4562 | 0 | void CreateTransactionStatusTableResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
4563 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CreateTransactionStatusTableResponsePB) |
4564 | 0 | if (&from == this) return; |
4565 | 0 | Clear(); |
4566 | 0 | MergeFrom(from); |
4567 | 0 | } |
4568 | | |
4569 | 0 | void CreateTransactionStatusTableResponsePB::CopyFrom(const CreateTransactionStatusTableResponsePB& from) { |
4570 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CreateTransactionStatusTableResponsePB) |
4571 | 0 | if (&from == this) return; |
4572 | 0 | Clear(); |
4573 | 0 | MergeFrom(from); |
4574 | 0 | } |
4575 | | |
4576 | 0 | bool CreateTransactionStatusTableResponsePB::IsInitialized() const { |
4577 | 0 | if (has_error()) { |
4578 | 0 | if (!this->error_->IsInitialized()) return false; |
4579 | 0 | } |
4580 | 0 | return true; |
4581 | 0 | } |
4582 | | |
4583 | 0 | void CreateTransactionStatusTableResponsePB::Swap(CreateTransactionStatusTableResponsePB* other) { |
4584 | 0 | if (other == this) return; |
4585 | 0 | InternalSwap(other); |
4586 | 0 | } |
4587 | 0 | void CreateTransactionStatusTableResponsePB::InternalSwap(CreateTransactionStatusTableResponsePB* other) { |
4588 | 0 | using std::swap; |
4589 | 0 | swap(error_, other->error_); |
4590 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4591 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4592 | 0 | swap(_cached_size_, other->_cached_size_); |
4593 | 0 | } |
4594 | | |
4595 | 0 | ::google::protobuf::Metadata CreateTransactionStatusTableResponsePB::GetMetadata() const { |
4596 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4597 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
4598 | 0 | } |
4599 | | |
4600 | | |
4601 | | // =================================================================== |
4602 | | |
4603 | 15.8k | void DeleteNotServingTabletRequestPB::InitAsDefaultInstance() { |
4604 | 15.8k | } |
4605 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4606 | | const int DeleteNotServingTabletRequestPB::kTabletIdFieldNumber; |
4607 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4608 | | |
4609 | | DeleteNotServingTabletRequestPB::DeleteNotServingTabletRequestPB() |
4610 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4611 | 16 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4612 | 16 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDeleteNotServingTabletRequestPB(); |
4613 | 16 | } |
4614 | 15.8k | SharedCtor(); |
4615 | | // @@protoc_insertion_point(constructor:yb.master.DeleteNotServingTabletRequestPB) |
4616 | 15.8k | } |
4617 | | DeleteNotServingTabletRequestPB::DeleteNotServingTabletRequestPB(const DeleteNotServingTabletRequestPB& from) |
4618 | | : ::google::protobuf::Message(), |
4619 | | _internal_metadata_(NULL), |
4620 | | _has_bits_(from._has_bits_), |
4621 | 0 | _cached_size_(0) { |
4622 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4623 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4624 | 0 | if (from.has_tablet_id()) { |
4625 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4626 | 0 | } |
4627 | | // @@protoc_insertion_point(copy_constructor:yb.master.DeleteNotServingTabletRequestPB) |
4628 | 0 | } |
4629 | | |
4630 | 15.8k | void DeleteNotServingTabletRequestPB::SharedCtor() { |
4631 | 15.8k | _cached_size_ = 0; |
4632 | 15.8k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4633 | 15.8k | } |
4634 | | |
4635 | 16 | DeleteNotServingTabletRequestPB::~DeleteNotServingTabletRequestPB() { |
4636 | | // @@protoc_insertion_point(destructor:yb.master.DeleteNotServingTabletRequestPB) |
4637 | 16 | SharedDtor(); |
4638 | 16 | } |
4639 | | |
4640 | 16 | void DeleteNotServingTabletRequestPB::SharedDtor() { |
4641 | 16 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4642 | 16 | } |
4643 | | |
4644 | 0 | void DeleteNotServingTabletRequestPB::SetCachedSize(int size) const { |
4645 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4646 | 0 | _cached_size_ = size; |
4647 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4648 | 0 | } |
4649 | 0 | const ::google::protobuf::Descriptor* DeleteNotServingTabletRequestPB::descriptor() { |
4650 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4651 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4652 | 0 | } |
4653 | | |
4654 | 0 | const DeleteNotServingTabletRequestPB& DeleteNotServingTabletRequestPB::default_instance() { |
4655 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDeleteNotServingTabletRequestPB(); |
4656 | 0 | return *internal_default_instance(); |
4657 | 0 | } |
4658 | | |
4659 | 0 | DeleteNotServingTabletRequestPB* DeleteNotServingTabletRequestPB::New(::google::protobuf::Arena* arena) const { |
4660 | 0 | DeleteNotServingTabletRequestPB* n = new DeleteNotServingTabletRequestPB; |
4661 | 0 | if (arena != NULL) { |
4662 | 0 | arena->Own(n); |
4663 | 0 | } |
4664 | 0 | return n; |
4665 | 0 | } |
4666 | | |
4667 | 8 | void DeleteNotServingTabletRequestPB::Clear() { |
4668 | | // @@protoc_insertion_point(message_clear_start:yb.master.DeleteNotServingTabletRequestPB) |
4669 | 8 | ::google::protobuf::uint32 cached_has_bits = 0; |
4670 | | // Prevent compiler warnings about cached_has_bits being unused |
4671 | 8 | (void) cached_has_bits; |
4672 | | |
4673 | 8 | cached_has_bits = _has_bits_[0]; |
4674 | 8 | if (cached_has_bits & 0x00000001u) { |
4675 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4676 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
4677 | 0 | } |
4678 | 8 | _has_bits_.Clear(); |
4679 | 8 | _internal_metadata_.Clear(); |
4680 | 8 | } |
4681 | | |
4682 | | bool DeleteNotServingTabletRequestPB::MergePartialFromCodedStream( |
4683 | 8 | ::google::protobuf::io::CodedInputStream* input) { |
4684 | 8 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4685 | 8 | ::google::protobuf::uint32 tag; |
4686 | | // @@protoc_insertion_point(parse_start:yb.master.DeleteNotServingTabletRequestPB) |
4687 | 16 | for (;;) { |
4688 | 16 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4689 | 16 | tag = p.first; |
4690 | 16 | if (!p.second) goto handle_unusual; |
4691 | 8 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4692 | | // required bytes tablet_id = 1; |
4693 | 8 | case 1: { |
4694 | 8 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4695 | 8 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4696 | 8 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4697 | 8 | input, this->mutable_tablet_id())); |
4698 | 0 | } else { |
4699 | 0 | goto handle_unusual; |
4700 | 0 | } |
4701 | 8 | break; |
4702 | 8 | } |
4703 | | |
4704 | 0 | default: { |
4705 | 8 | handle_unusual: |
4706 | 8 | if (tag == 0) { |
4707 | 8 | goto success; |
4708 | 8 | } |
4709 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4710 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4711 | 0 | break; |
4712 | 0 | } |
4713 | 8 | } |
4714 | 8 | } |
4715 | 8 | success: |
4716 | | // @@protoc_insertion_point(parse_success:yb.master.DeleteNotServingTabletRequestPB) |
4717 | 8 | return true; |
4718 | 0 | failure: |
4719 | | // @@protoc_insertion_point(parse_failure:yb.master.DeleteNotServingTabletRequestPB) |
4720 | 0 | return false; |
4721 | 8 | #undef DO_ |
4722 | 8 | } |
4723 | | |
4724 | | void DeleteNotServingTabletRequestPB::SerializeWithCachedSizes( |
4725 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4726 | | // @@protoc_insertion_point(serialize_start:yb.master.DeleteNotServingTabletRequestPB) |
4727 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4728 | 0 | (void) cached_has_bits; |
4729 | |
|
4730 | 0 | cached_has_bits = _has_bits_[0]; |
4731 | | // required bytes tablet_id = 1; |
4732 | 0 | if (cached_has_bits & 0x00000001u) { |
4733 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4734 | 0 | 1, this->tablet_id(), output); |
4735 | 0 | } |
4736 | |
|
4737 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4738 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4739 | 0 | _internal_metadata_.unknown_fields(), output); |
4740 | 0 | } |
4741 | | // @@protoc_insertion_point(serialize_end:yb.master.DeleteNotServingTabletRequestPB) |
4742 | 0 | } |
4743 | | |
4744 | | ::google::protobuf::uint8* DeleteNotServingTabletRequestPB::InternalSerializeWithCachedSizesToArray( |
4745 | 8 | bool deterministic, ::google::protobuf::uint8* target) const { |
4746 | 8 | (void)deterministic; // Unused |
4747 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteNotServingTabletRequestPB) |
4748 | 8 | ::google::protobuf::uint32 cached_has_bits = 0; |
4749 | 8 | (void) cached_has_bits; |
4750 | | |
4751 | 8 | cached_has_bits = _has_bits_[0]; |
4752 | | // required bytes tablet_id = 1; |
4753 | 8 | if (cached_has_bits & 0x00000001u) { |
4754 | 8 | target = |
4755 | 8 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4756 | 8 | 1, this->tablet_id(), target); |
4757 | 8 | } |
4758 | | |
4759 | 8 | if (_internal_metadata_.have_unknown_fields()) { |
4760 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4761 | 0 | _internal_metadata_.unknown_fields(), target); |
4762 | 0 | } |
4763 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteNotServingTabletRequestPB) |
4764 | 8 | return target; |
4765 | 8 | } |
4766 | | |
4767 | 16 | size_t DeleteNotServingTabletRequestPB::ByteSizeLong() const { |
4768 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteNotServingTabletRequestPB) |
4769 | 16 | size_t total_size = 0; |
4770 | | |
4771 | 16 | if (_internal_metadata_.have_unknown_fields()) { |
4772 | 0 | total_size += |
4773 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4774 | 0 | _internal_metadata_.unknown_fields()); |
4775 | 0 | } |
4776 | | // required bytes tablet_id = 1; |
4777 | 16 | if (has_tablet_id()) { |
4778 | 16 | total_size += 1 + |
4779 | 16 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4780 | 16 | this->tablet_id()); |
4781 | 16 | } |
4782 | 16 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4783 | 16 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4784 | 16 | _cached_size_ = cached_size; |
4785 | 16 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4786 | 16 | return total_size; |
4787 | 16 | } |
4788 | | |
4789 | 0 | void DeleteNotServingTabletRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
4790 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteNotServingTabletRequestPB) |
4791 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4792 | 0 | const DeleteNotServingTabletRequestPB* source = |
4793 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteNotServingTabletRequestPB>( |
4794 | 0 | &from); |
4795 | 0 | if (source == NULL) { |
4796 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteNotServingTabletRequestPB) |
4797 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4798 | 0 | } else { |
4799 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteNotServingTabletRequestPB) |
4800 | 0 | MergeFrom(*source); |
4801 | 0 | } |
4802 | 0 | } |
4803 | | |
4804 | 0 | void DeleteNotServingTabletRequestPB::MergeFrom(const DeleteNotServingTabletRequestPB& from) { |
4805 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteNotServingTabletRequestPB) |
4806 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4807 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4808 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4809 | 0 | (void) cached_has_bits; |
4810 | |
|
4811 | 0 | if (from.has_tablet_id()) { |
4812 | 0 | set_has_tablet_id(); |
4813 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4814 | 0 | } |
4815 | 0 | } |
4816 | | |
4817 | 0 | void DeleteNotServingTabletRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
4818 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteNotServingTabletRequestPB) |
4819 | 0 | if (&from == this) return; |
4820 | 0 | Clear(); |
4821 | 0 | MergeFrom(from); |
4822 | 0 | } |
4823 | | |
4824 | 0 | void DeleteNotServingTabletRequestPB::CopyFrom(const DeleteNotServingTabletRequestPB& from) { |
4825 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteNotServingTabletRequestPB) |
4826 | 0 | if (&from == this) return; |
4827 | 0 | Clear(); |
4828 | 0 | MergeFrom(from); |
4829 | 0 | } |
4830 | | |
4831 | 16 | bool DeleteNotServingTabletRequestPB::IsInitialized() const { |
4832 | 16 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
4833 | 16 | return true; |
4834 | 16 | } |
4835 | | |
4836 | 0 | void DeleteNotServingTabletRequestPB::Swap(DeleteNotServingTabletRequestPB* other) { |
4837 | 0 | if (other == this) return; |
4838 | 0 | InternalSwap(other); |
4839 | 0 | } |
4840 | 0 | void DeleteNotServingTabletRequestPB::InternalSwap(DeleteNotServingTabletRequestPB* other) { |
4841 | 0 | using std::swap; |
4842 | 0 | tablet_id_.Swap(&other->tablet_id_); |
4843 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4844 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4845 | 0 | swap(_cached_size_, other->_cached_size_); |
4846 | 0 | } |
4847 | | |
4848 | 8 | ::google::protobuf::Metadata DeleteNotServingTabletRequestPB::GetMetadata() const { |
4849 | 8 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4850 | 8 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
4851 | 8 | } |
4852 | | |
4853 | | |
4854 | | // =================================================================== |
4855 | | |
4856 | 15.8k | void DeleteNotServingTabletResponsePB::InitAsDefaultInstance() { |
4857 | 15.8k | ::yb::master::_DeleteNotServingTabletResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
4858 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
4859 | 15.8k | } |
4860 | 0 | void DeleteNotServingTabletResponsePB::clear_error() { |
4861 | 0 | if (error_ != NULL) error_->Clear(); |
4862 | 0 | clear_has_error(); |
4863 | 0 | } |
4864 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4865 | | const int DeleteNotServingTabletResponsePB::kErrorFieldNumber; |
4866 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4867 | | |
4868 | | DeleteNotServingTabletResponsePB::DeleteNotServingTabletResponsePB() |
4869 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4870 | 16 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4871 | 16 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDeleteNotServingTabletResponsePB(); |
4872 | 16 | } |
4873 | 15.8k | SharedCtor(); |
4874 | | // @@protoc_insertion_point(constructor:yb.master.DeleteNotServingTabletResponsePB) |
4875 | 15.8k | } |
4876 | | DeleteNotServingTabletResponsePB::DeleteNotServingTabletResponsePB(const DeleteNotServingTabletResponsePB& from) |
4877 | | : ::google::protobuf::Message(), |
4878 | | _internal_metadata_(NULL), |
4879 | | _has_bits_(from._has_bits_), |
4880 | 0 | _cached_size_(0) { |
4881 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4882 | 0 | if (from.has_error()) { |
4883 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
4884 | 0 | } else { |
4885 | 0 | error_ = NULL; |
4886 | 0 | } |
4887 | | // @@protoc_insertion_point(copy_constructor:yb.master.DeleteNotServingTabletResponsePB) |
4888 | 0 | } |
4889 | | |
4890 | 15.8k | void DeleteNotServingTabletResponsePB::SharedCtor() { |
4891 | 15.8k | _cached_size_ = 0; |
4892 | 15.8k | error_ = NULL; |
4893 | 15.8k | } |
4894 | | |
4895 | 16 | DeleteNotServingTabletResponsePB::~DeleteNotServingTabletResponsePB() { |
4896 | | // @@protoc_insertion_point(destructor:yb.master.DeleteNotServingTabletResponsePB) |
4897 | 16 | SharedDtor(); |
4898 | 16 | } |
4899 | | |
4900 | 16 | void DeleteNotServingTabletResponsePB::SharedDtor() { |
4901 | 16 | if (this != internal_default_instance()) delete error_; |
4902 | 16 | } |
4903 | | |
4904 | 0 | void DeleteNotServingTabletResponsePB::SetCachedSize(int size) const { |
4905 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4906 | 0 | _cached_size_ = size; |
4907 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4908 | 0 | } |
4909 | 0 | const ::google::protobuf::Descriptor* DeleteNotServingTabletResponsePB::descriptor() { |
4910 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
4911 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4912 | 0 | } |
4913 | | |
4914 | 0 | const DeleteNotServingTabletResponsePB& DeleteNotServingTabletResponsePB::default_instance() { |
4915 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDeleteNotServingTabletResponsePB(); |
4916 | 0 | return *internal_default_instance(); |
4917 | 0 | } |
4918 | | |
4919 | 0 | DeleteNotServingTabletResponsePB* DeleteNotServingTabletResponsePB::New(::google::protobuf::Arena* arena) const { |
4920 | 0 | DeleteNotServingTabletResponsePB* n = new DeleteNotServingTabletResponsePB; |
4921 | 0 | if (arena != NULL) { |
4922 | 0 | arena->Own(n); |
4923 | 0 | } |
4924 | 0 | return n; |
4925 | 0 | } |
4926 | | |
4927 | 8 | void DeleteNotServingTabletResponsePB::Clear() { |
4928 | | // @@protoc_insertion_point(message_clear_start:yb.master.DeleteNotServingTabletResponsePB) |
4929 | 8 | ::google::protobuf::uint32 cached_has_bits = 0; |
4930 | | // Prevent compiler warnings about cached_has_bits being unused |
4931 | 8 | (void) cached_has_bits; |
4932 | | |
4933 | 8 | cached_has_bits = _has_bits_[0]; |
4934 | 8 | if (cached_has_bits & 0x00000001u) { |
4935 | 0 | GOOGLE_DCHECK(error_ != NULL); |
4936 | 0 | error_->Clear(); |
4937 | 0 | } |
4938 | 8 | _has_bits_.Clear(); |
4939 | 8 | _internal_metadata_.Clear(); |
4940 | 8 | } |
4941 | | |
4942 | | bool DeleteNotServingTabletResponsePB::MergePartialFromCodedStream( |
4943 | 8 | ::google::protobuf::io::CodedInputStream* input) { |
4944 | 1 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4945 | 8 | ::google::protobuf::uint32 tag; |
4946 | | // @@protoc_insertion_point(parse_start:yb.master.DeleteNotServingTabletResponsePB) |
4947 | 9 | for (;;) { |
4948 | 9 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4949 | 9 | tag = p.first; |
4950 | 9 | if (!p.second) goto handle_unusual; |
4951 | 1 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4952 | | // optional .yb.master.MasterErrorPB error = 1; |
4953 | 1 | case 1: { |
4954 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4955 | 1 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4956 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4957 | 1 | input, mutable_error())); |
4958 | 0 | } else { |
4959 | 0 | goto handle_unusual; |
4960 | 0 | } |
4961 | 1 | break; |
4962 | 8 | } |
4963 | | |
4964 | 0 | default: { |
4965 | 8 | handle_unusual: |
4966 | 8 | if (tag == 0) { |
4967 | 8 | goto success; |
4968 | 8 | } |
4969 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4970 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4971 | 0 | break; |
4972 | 0 | } |
4973 | 1 | } |
4974 | 1 | } |
4975 | 8 | success: |
4976 | | // @@protoc_insertion_point(parse_success:yb.master.DeleteNotServingTabletResponsePB) |
4977 | 8 | return true; |
4978 | 0 | failure: |
4979 | | // @@protoc_insertion_point(parse_failure:yb.master.DeleteNotServingTabletResponsePB) |
4980 | 0 | return false; |
4981 | 8 | #undef DO_ |
4982 | 8 | } |
4983 | | |
4984 | | void DeleteNotServingTabletResponsePB::SerializeWithCachedSizes( |
4985 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4986 | | // @@protoc_insertion_point(serialize_start:yb.master.DeleteNotServingTabletResponsePB) |
4987 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4988 | 0 | (void) cached_has_bits; |
4989 | |
|
4990 | 0 | cached_has_bits = _has_bits_[0]; |
4991 | | // optional .yb.master.MasterErrorPB error = 1; |
4992 | 0 | if (cached_has_bits & 0x00000001u) { |
4993 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4994 | 0 | 1, *this->error_, output); |
4995 | 0 | } |
4996 | |
|
4997 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4998 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4999 | 0 | _internal_metadata_.unknown_fields(), output); |
5000 | 0 | } |
5001 | | // @@protoc_insertion_point(serialize_end:yb.master.DeleteNotServingTabletResponsePB) |
5002 | 0 | } |
5003 | | |
5004 | | ::google::protobuf::uint8* DeleteNotServingTabletResponsePB::InternalSerializeWithCachedSizesToArray( |
5005 | 8 | bool deterministic, ::google::protobuf::uint8* target) const { |
5006 | 8 | (void)deterministic; // Unused |
5007 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteNotServingTabletResponsePB) |
5008 | 8 | ::google::protobuf::uint32 cached_has_bits = 0; |
5009 | 8 | (void) cached_has_bits; |
5010 | | |
5011 | 8 | cached_has_bits = _has_bits_[0]; |
5012 | | // optional .yb.master.MasterErrorPB error = 1; |
5013 | 8 | if (cached_has_bits & 0x00000001u) { |
5014 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
5015 | 1 | InternalWriteMessageToArray( |
5016 | 1 | 1, *this->error_, deterministic, target); |
5017 | 1 | } |
5018 | | |
5019 | 8 | if (_internal_metadata_.have_unknown_fields()) { |
5020 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5021 | 0 | _internal_metadata_.unknown_fields(), target); |
5022 | 0 | } |
5023 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteNotServingTabletResponsePB) |
5024 | 8 | return target; |
5025 | 8 | } |
5026 | | |
5027 | 16 | size_t DeleteNotServingTabletResponsePB::ByteSizeLong() const { |
5028 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteNotServingTabletResponsePB) |
5029 | 16 | size_t total_size = 0; |
5030 | | |
5031 | 16 | if (_internal_metadata_.have_unknown_fields()) { |
5032 | 0 | total_size += |
5033 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5034 | 0 | _internal_metadata_.unknown_fields()); |
5035 | 0 | } |
5036 | | // optional .yb.master.MasterErrorPB error = 1; |
5037 | 16 | if (has_error()) { |
5038 | 2 | total_size += 1 + |
5039 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5040 | 2 | *this->error_); |
5041 | 2 | } |
5042 | | |
5043 | 16 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5044 | 16 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5045 | 16 | _cached_size_ = cached_size; |
5046 | 16 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5047 | 16 | return total_size; |
5048 | 16 | } |
5049 | | |
5050 | 0 | void DeleteNotServingTabletResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
5051 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteNotServingTabletResponsePB) |
5052 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5053 | 0 | const DeleteNotServingTabletResponsePB* source = |
5054 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteNotServingTabletResponsePB>( |
5055 | 0 | &from); |
5056 | 0 | if (source == NULL) { |
5057 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteNotServingTabletResponsePB) |
5058 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5059 | 0 | } else { |
5060 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteNotServingTabletResponsePB) |
5061 | 0 | MergeFrom(*source); |
5062 | 0 | } |
5063 | 0 | } |
5064 | | |
5065 | 0 | void DeleteNotServingTabletResponsePB::MergeFrom(const DeleteNotServingTabletResponsePB& from) { |
5066 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteNotServingTabletResponsePB) |
5067 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5068 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5069 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5070 | 0 | (void) cached_has_bits; |
5071 | |
|
5072 | 0 | if (from.has_error()) { |
5073 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
5074 | 0 | } |
5075 | 0 | } |
5076 | | |
5077 | 0 | void DeleteNotServingTabletResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
5078 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteNotServingTabletResponsePB) |
5079 | 0 | if (&from == this) return; |
5080 | 0 | Clear(); |
5081 | 0 | MergeFrom(from); |
5082 | 0 | } |
5083 | | |
5084 | 0 | void DeleteNotServingTabletResponsePB::CopyFrom(const DeleteNotServingTabletResponsePB& from) { |
5085 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteNotServingTabletResponsePB) |
5086 | 0 | if (&from == this) return; |
5087 | 0 | Clear(); |
5088 | 0 | MergeFrom(from); |
5089 | 0 | } |
5090 | | |
5091 | 16 | bool DeleteNotServingTabletResponsePB::IsInitialized() const { |
5092 | 16 | if (has_error()) { |
5093 | 2 | if (!this->error_->IsInitialized()) return false; |
5094 | 16 | } |
5095 | 16 | return true; |
5096 | 16 | } |
5097 | | |
5098 | 0 | void DeleteNotServingTabletResponsePB::Swap(DeleteNotServingTabletResponsePB* other) { |
5099 | 0 | if (other == this) return; |
5100 | 0 | InternalSwap(other); |
5101 | 0 | } |
5102 | 0 | void DeleteNotServingTabletResponsePB::InternalSwap(DeleteNotServingTabletResponsePB* other) { |
5103 | 0 | using std::swap; |
5104 | 0 | swap(error_, other->error_); |
5105 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5106 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5107 | 0 | swap(_cached_size_, other->_cached_size_); |
5108 | 0 | } |
5109 | | |
5110 | 0 | ::google::protobuf::Metadata DeleteNotServingTabletResponsePB::GetMetadata() const { |
5111 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
5112 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
5113 | 0 | } |
5114 | | |
5115 | | |
5116 | | // =================================================================== |
5117 | | |
5118 | 15.8k | void DdlLogRequestPB::InitAsDefaultInstance() { |
5119 | 15.8k | } |
5120 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5121 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5122 | | |
5123 | | DdlLogRequestPB::DdlLogRequestPB() |
5124 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5125 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5126 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDdlLogRequestPB(); |
5127 | 0 | } |
5128 | 15.8k | SharedCtor(); |
5129 | | // @@protoc_insertion_point(constructor:yb.master.DdlLogRequestPB) |
5130 | 15.8k | } |
5131 | | DdlLogRequestPB::DdlLogRequestPB(const DdlLogRequestPB& from) |
5132 | | : ::google::protobuf::Message(), |
5133 | | _internal_metadata_(NULL), |
5134 | | _has_bits_(from._has_bits_), |
5135 | 0 | _cached_size_(0) { |
5136 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5137 | | // @@protoc_insertion_point(copy_constructor:yb.master.DdlLogRequestPB) |
5138 | 0 | } |
5139 | | |
5140 | 15.8k | void DdlLogRequestPB::SharedCtor() { |
5141 | 15.8k | _cached_size_ = 0; |
5142 | 15.8k | } |
5143 | | |
5144 | 0 | DdlLogRequestPB::~DdlLogRequestPB() { |
5145 | | // @@protoc_insertion_point(destructor:yb.master.DdlLogRequestPB) |
5146 | 0 | SharedDtor(); |
5147 | 0 | } |
5148 | | |
5149 | 0 | void DdlLogRequestPB::SharedDtor() { |
5150 | 0 | } |
5151 | | |
5152 | 0 | void DdlLogRequestPB::SetCachedSize(int size) const { |
5153 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5154 | 0 | _cached_size_ = size; |
5155 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5156 | 0 | } |
5157 | 0 | const ::google::protobuf::Descriptor* DdlLogRequestPB::descriptor() { |
5158 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
5159 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5160 | 0 | } |
5161 | | |
5162 | 0 | const DdlLogRequestPB& DdlLogRequestPB::default_instance() { |
5163 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDdlLogRequestPB(); |
5164 | 0 | return *internal_default_instance(); |
5165 | 0 | } |
5166 | | |
5167 | 0 | DdlLogRequestPB* DdlLogRequestPB::New(::google::protobuf::Arena* arena) const { |
5168 | 0 | DdlLogRequestPB* n = new DdlLogRequestPB; |
5169 | 0 | if (arena != NULL) { |
5170 | 0 | arena->Own(n); |
5171 | 0 | } |
5172 | 0 | return n; |
5173 | 0 | } |
5174 | | |
5175 | 0 | void DdlLogRequestPB::Clear() { |
5176 | | // @@protoc_insertion_point(message_clear_start:yb.master.DdlLogRequestPB) |
5177 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5178 | | // Prevent compiler warnings about cached_has_bits being unused |
5179 | 0 | (void) cached_has_bits; |
5180 | |
|
5181 | 0 | _has_bits_.Clear(); |
5182 | 0 | _internal_metadata_.Clear(); |
5183 | 0 | } |
5184 | | |
5185 | | bool DdlLogRequestPB::MergePartialFromCodedStream( |
5186 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5187 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5188 | 0 | ::google::protobuf::uint32 tag; |
5189 | | // @@protoc_insertion_point(parse_start:yb.master.DdlLogRequestPB) |
5190 | 0 | for (;;) { |
5191 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5192 | 0 | tag = p.first; |
5193 | 0 | if (!p.second) goto handle_unusual; |
5194 | 0 | handle_unusual: |
5195 | 0 | if (tag == 0) { |
5196 | 0 | goto success; |
5197 | 0 | } |
5198 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5199 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5200 | 0 | } |
5201 | 0 | success: |
5202 | | // @@protoc_insertion_point(parse_success:yb.master.DdlLogRequestPB) |
5203 | 0 | return true; |
5204 | 0 | failure: |
5205 | | // @@protoc_insertion_point(parse_failure:yb.master.DdlLogRequestPB) |
5206 | 0 | return false; |
5207 | 0 | #undef DO_ |
5208 | 0 | } |
5209 | | |
5210 | | void DdlLogRequestPB::SerializeWithCachedSizes( |
5211 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5212 | | // @@protoc_insertion_point(serialize_start:yb.master.DdlLogRequestPB) |
5213 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5214 | 0 | (void) cached_has_bits; |
5215 | |
|
5216 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5217 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5218 | 0 | _internal_metadata_.unknown_fields(), output); |
5219 | 0 | } |
5220 | | // @@protoc_insertion_point(serialize_end:yb.master.DdlLogRequestPB) |
5221 | 0 | } |
5222 | | |
5223 | | ::google::protobuf::uint8* DdlLogRequestPB::InternalSerializeWithCachedSizesToArray( |
5224 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
5225 | 0 | (void)deterministic; // Unused |
5226 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DdlLogRequestPB) |
5227 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5228 | 0 | (void) cached_has_bits; |
5229 | |
|
5230 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5231 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5232 | 0 | _internal_metadata_.unknown_fields(), target); |
5233 | 0 | } |
5234 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DdlLogRequestPB) |
5235 | 0 | return target; |
5236 | 0 | } |
5237 | | |
5238 | 0 | size_t DdlLogRequestPB::ByteSizeLong() const { |
5239 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DdlLogRequestPB) |
5240 | 0 | size_t total_size = 0; |
5241 | |
|
5242 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5243 | 0 | total_size += |
5244 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5245 | 0 | _internal_metadata_.unknown_fields()); |
5246 | 0 | } |
5247 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5248 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5249 | 0 | _cached_size_ = cached_size; |
5250 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5251 | 0 | return total_size; |
5252 | 0 | } |
5253 | | |
5254 | 0 | void DdlLogRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
5255 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DdlLogRequestPB) |
5256 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5257 | 0 | const DdlLogRequestPB* source = |
5258 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DdlLogRequestPB>( |
5259 | 0 | &from); |
5260 | 0 | if (source == NULL) { |
5261 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DdlLogRequestPB) |
5262 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5263 | 0 | } else { |
5264 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DdlLogRequestPB) |
5265 | 0 | MergeFrom(*source); |
5266 | 0 | } |
5267 | 0 | } |
5268 | | |
5269 | 0 | void DdlLogRequestPB::MergeFrom(const DdlLogRequestPB& from) { |
5270 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DdlLogRequestPB) |
5271 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5272 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5273 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5274 | 0 | (void) cached_has_bits; |
5275 | |
|
5276 | 0 | } |
5277 | | |
5278 | 0 | void DdlLogRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
5279 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DdlLogRequestPB) |
5280 | 0 | if (&from == this) return; |
5281 | 0 | Clear(); |
5282 | 0 | MergeFrom(from); |
5283 | 0 | } |
5284 | | |
5285 | 0 | void DdlLogRequestPB::CopyFrom(const DdlLogRequestPB& from) { |
5286 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DdlLogRequestPB) |
5287 | 0 | if (&from == this) return; |
5288 | 0 | Clear(); |
5289 | 0 | MergeFrom(from); |
5290 | 0 | } |
5291 | | |
5292 | 0 | bool DdlLogRequestPB::IsInitialized() const { |
5293 | 0 | return true; |
5294 | 0 | } |
5295 | | |
5296 | 0 | void DdlLogRequestPB::Swap(DdlLogRequestPB* other) { |
5297 | 0 | if (other == this) return; |
5298 | 0 | InternalSwap(other); |
5299 | 0 | } |
5300 | 0 | void DdlLogRequestPB::InternalSwap(DdlLogRequestPB* other) { |
5301 | 0 | using std::swap; |
5302 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5303 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5304 | 0 | swap(_cached_size_, other->_cached_size_); |
5305 | 0 | } |
5306 | | |
5307 | 0 | ::google::protobuf::Metadata DdlLogRequestPB::GetMetadata() const { |
5308 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
5309 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
5310 | 0 | } |
5311 | | |
5312 | | |
5313 | | // =================================================================== |
5314 | | |
5315 | 15.8k | void DdlLogResponsePB::InitAsDefaultInstance() { |
5316 | 15.8k | ::yb::master::_DdlLogResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
5317 | 15.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
5318 | 15.8k | } |
5319 | 0 | void DdlLogResponsePB::clear_error() { |
5320 | 0 | if (error_ != NULL) error_->Clear(); |
5321 | 0 | clear_has_error(); |
5322 | 0 | } |
5323 | 0 | void DdlLogResponsePB::clear_entries() { |
5324 | 0 | entries_.Clear(); |
5325 | 0 | } |
5326 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5327 | | const int DdlLogResponsePB::kErrorFieldNumber; |
5328 | | const int DdlLogResponsePB::kEntriesFieldNumber; |
5329 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5330 | | |
5331 | | DdlLogResponsePB::DdlLogResponsePB() |
5332 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5333 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5334 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDdlLogResponsePB(); |
5335 | 0 | } |
5336 | 15.8k | SharedCtor(); |
5337 | | // @@protoc_insertion_point(constructor:yb.master.DdlLogResponsePB) |
5338 | 15.8k | } |
5339 | | DdlLogResponsePB::DdlLogResponsePB(const DdlLogResponsePB& from) |
5340 | | : ::google::protobuf::Message(), |
5341 | | _internal_metadata_(NULL), |
5342 | | _has_bits_(from._has_bits_), |
5343 | | _cached_size_(0), |
5344 | 0 | entries_(from.entries_) { |
5345 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5346 | 0 | if (from.has_error()) { |
5347 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
5348 | 0 | } else { |
5349 | 0 | error_ = NULL; |
5350 | 0 | } |
5351 | | // @@protoc_insertion_point(copy_constructor:yb.master.DdlLogResponsePB) |
5352 | 0 | } |
5353 | | |
5354 | 15.8k | void DdlLogResponsePB::SharedCtor() { |
5355 | 15.8k | _cached_size_ = 0; |
5356 | 15.8k | error_ = NULL; |
5357 | 15.8k | } |
5358 | | |
5359 | 0 | DdlLogResponsePB::~DdlLogResponsePB() { |
5360 | | // @@protoc_insertion_point(destructor:yb.master.DdlLogResponsePB) |
5361 | 0 | SharedDtor(); |
5362 | 0 | } |
5363 | | |
5364 | 0 | void DdlLogResponsePB::SharedDtor() { |
5365 | 0 | if (this != internal_default_instance()) delete error_; |
5366 | 0 | } |
5367 | | |
5368 | 0 | void DdlLogResponsePB::SetCachedSize(int size) const { |
5369 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5370 | 0 | _cached_size_ = size; |
5371 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5372 | 0 | } |
5373 | 0 | const ::google::protobuf::Descriptor* DdlLogResponsePB::descriptor() { |
5374 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
5375 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5376 | 0 | } |
5377 | | |
5378 | 0 | const DdlLogResponsePB& DdlLogResponsePB::default_instance() { |
5379 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::InitDefaultsDdlLogResponsePB(); |
5380 | 0 | return *internal_default_instance(); |
5381 | 0 | } |
5382 | | |
5383 | 0 | DdlLogResponsePB* DdlLogResponsePB::New(::google::protobuf::Arena* arena) const { |
5384 | 0 | DdlLogResponsePB* n = new DdlLogResponsePB; |
5385 | 0 | if (arena != NULL) { |
5386 | 0 | arena->Own(n); |
5387 | 0 | } |
5388 | 0 | return n; |
5389 | 0 | } |
5390 | | |
5391 | 0 | void DdlLogResponsePB::Clear() { |
5392 | | // @@protoc_insertion_point(message_clear_start:yb.master.DdlLogResponsePB) |
5393 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5394 | | // Prevent compiler warnings about cached_has_bits being unused |
5395 | 0 | (void) cached_has_bits; |
5396 | |
|
5397 | 0 | entries_.Clear(); |
5398 | 0 | cached_has_bits = _has_bits_[0]; |
5399 | 0 | if (cached_has_bits & 0x00000001u) { |
5400 | 0 | GOOGLE_DCHECK(error_ != NULL); |
5401 | 0 | error_->Clear(); |
5402 | 0 | } |
5403 | 0 | _has_bits_.Clear(); |
5404 | 0 | _internal_metadata_.Clear(); |
5405 | 0 | } |
5406 | | |
5407 | | bool DdlLogResponsePB::MergePartialFromCodedStream( |
5408 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5409 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5410 | 0 | ::google::protobuf::uint32 tag; |
5411 | | // @@protoc_insertion_point(parse_start:yb.master.DdlLogResponsePB) |
5412 | 0 | for (;;) { |
5413 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5414 | 0 | tag = p.first; |
5415 | 0 | if (!p.second) goto handle_unusual; |
5416 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5417 | | // optional .yb.master.MasterErrorPB error = 1; |
5418 | 0 | case 1: { |
5419 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5420 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5421 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5422 | 0 | input, mutable_error())); |
5423 | 0 | } else { |
5424 | 0 | goto handle_unusual; |
5425 | 0 | } |
5426 | 0 | break; |
5427 | 0 | } |
5428 | | |
5429 | | // repeated .yb.master.DdlLogEntryPB entries = 2; |
5430 | 0 | case 2: { |
5431 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5432 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5433 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_entries())); |
5434 | 0 | } else { |
5435 | 0 | goto handle_unusual; |
5436 | 0 | } |
5437 | 0 | break; |
5438 | 0 | } |
5439 | | |
5440 | 0 | default: { |
5441 | 0 | handle_unusual: |
5442 | 0 | if (tag == 0) { |
5443 | 0 | goto success; |
5444 | 0 | } |
5445 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5446 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5447 | 0 | break; |
5448 | 0 | } |
5449 | 0 | } |
5450 | 0 | } |
5451 | 0 | success: |
5452 | | // @@protoc_insertion_point(parse_success:yb.master.DdlLogResponsePB) |
5453 | 0 | return true; |
5454 | 0 | failure: |
5455 | | // @@protoc_insertion_point(parse_failure:yb.master.DdlLogResponsePB) |
5456 | 0 | return false; |
5457 | 0 | #undef DO_ |
5458 | 0 | } |
5459 | | |
5460 | | void DdlLogResponsePB::SerializeWithCachedSizes( |
5461 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5462 | | // @@protoc_insertion_point(serialize_start:yb.master.DdlLogResponsePB) |
5463 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5464 | 0 | (void) cached_has_bits; |
5465 | |
|
5466 | 0 | cached_has_bits = _has_bits_[0]; |
5467 | | // optional .yb.master.MasterErrorPB error = 1; |
5468 | 0 | if (cached_has_bits & 0x00000001u) { |
5469 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5470 | 0 | 1, *this->error_, output); |
5471 | 0 | } |
5472 | | |
5473 | | // repeated .yb.master.DdlLogEntryPB entries = 2; |
5474 | 0 | for (unsigned int i = 0, |
5475 | 0 | n = static_cast<unsigned int>(this->entries_size()); i < n; i++) { |
5476 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5477 | 0 | 2, this->entries(static_cast<int>(i)), output); |
5478 | 0 | } |
5479 | |
|
5480 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5481 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5482 | 0 | _internal_metadata_.unknown_fields(), output); |
5483 | 0 | } |
5484 | | // @@protoc_insertion_point(serialize_end:yb.master.DdlLogResponsePB) |
5485 | 0 | } |
5486 | | |
5487 | | ::google::protobuf::uint8* DdlLogResponsePB::InternalSerializeWithCachedSizesToArray( |
5488 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
5489 | 0 | (void)deterministic; // Unused |
5490 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DdlLogResponsePB) |
5491 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5492 | 0 | (void) cached_has_bits; |
5493 | |
|
5494 | 0 | cached_has_bits = _has_bits_[0]; |
5495 | | // optional .yb.master.MasterErrorPB error = 1; |
5496 | 0 | if (cached_has_bits & 0x00000001u) { |
5497 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5498 | 0 | InternalWriteMessageToArray( |
5499 | 0 | 1, *this->error_, deterministic, target); |
5500 | 0 | } |
5501 | | |
5502 | | // repeated .yb.master.DdlLogEntryPB entries = 2; |
5503 | 0 | for (unsigned int i = 0, |
5504 | 0 | n = static_cast<unsigned int>(this->entries_size()); i < n; i++) { |
5505 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5506 | 0 | InternalWriteMessageToArray( |
5507 | 0 | 2, this->entries(static_cast<int>(i)), deterministic, target); |
5508 | 0 | } |
5509 | |
|
5510 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5511 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5512 | 0 | _internal_metadata_.unknown_fields(), target); |
5513 | 0 | } |
5514 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DdlLogResponsePB) |
5515 | 0 | return target; |
5516 | 0 | } |
5517 | | |
5518 | 0 | size_t DdlLogResponsePB::ByteSizeLong() const { |
5519 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DdlLogResponsePB) |
5520 | 0 | size_t total_size = 0; |
5521 | |
|
5522 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5523 | 0 | total_size += |
5524 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5525 | 0 | _internal_metadata_.unknown_fields()); |
5526 | 0 | } |
5527 | | // repeated .yb.master.DdlLogEntryPB entries = 2; |
5528 | 0 | { |
5529 | 0 | unsigned int count = static_cast<unsigned int>(this->entries_size()); |
5530 | 0 | total_size += 1UL * count; |
5531 | 0 | for (unsigned int i = 0; i < count; i++) { |
5532 | 0 | total_size += |
5533 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5534 | 0 | this->entries(static_cast<int>(i))); |
5535 | 0 | } |
5536 | 0 | } |
5537 | | |
5538 | | // optional .yb.master.MasterErrorPB error = 1; |
5539 | 0 | if (has_error()) { |
5540 | 0 | total_size += 1 + |
5541 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5542 | 0 | *this->error_); |
5543 | 0 | } |
5544 | |
|
5545 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5546 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5547 | 0 | _cached_size_ = cached_size; |
5548 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5549 | 0 | return total_size; |
5550 | 0 | } |
5551 | | |
5552 | 0 | void DdlLogResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
5553 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DdlLogResponsePB) |
5554 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5555 | 0 | const DdlLogResponsePB* source = |
5556 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DdlLogResponsePB>( |
5557 | 0 | &from); |
5558 | 0 | if (source == NULL) { |
5559 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DdlLogResponsePB) |
5560 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5561 | 0 | } else { |
5562 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DdlLogResponsePB) |
5563 | 0 | MergeFrom(*source); |
5564 | 0 | } |
5565 | 0 | } |
5566 | | |
5567 | 0 | void DdlLogResponsePB::MergeFrom(const DdlLogResponsePB& from) { |
5568 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DdlLogResponsePB) |
5569 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5570 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5571 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5572 | 0 | (void) cached_has_bits; |
5573 | |
|
5574 | 0 | entries_.MergeFrom(from.entries_); |
5575 | 0 | if (from.has_error()) { |
5576 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
5577 | 0 | } |
5578 | 0 | } |
5579 | | |
5580 | 0 | void DdlLogResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
5581 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DdlLogResponsePB) |
5582 | 0 | if (&from == this) return; |
5583 | 0 | Clear(); |
5584 | 0 | MergeFrom(from); |
5585 | 0 | } |
5586 | | |
5587 | 0 | void DdlLogResponsePB::CopyFrom(const DdlLogResponsePB& from) { |
5588 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DdlLogResponsePB) |
5589 | 0 | if (&from == this) return; |
5590 | 0 | Clear(); |
5591 | 0 | MergeFrom(from); |
5592 | 0 | } |
5593 | | |
5594 | 0 | bool DdlLogResponsePB::IsInitialized() const { |
5595 | 0 | if (has_error()) { |
5596 | 0 | if (!this->error_->IsInitialized()) return false; |
5597 | 0 | } |
5598 | 0 | return true; |
5599 | 0 | } |
5600 | | |
5601 | 0 | void DdlLogResponsePB::Swap(DdlLogResponsePB* other) { |
5602 | 0 | if (other == this) return; |
5603 | 0 | InternalSwap(other); |
5604 | 0 | } |
5605 | 0 | void DdlLogResponsePB::InternalSwap(DdlLogResponsePB* other) { |
5606 | 0 | using std::swap; |
5607 | 0 | entries_.InternalSwap(&other->entries_); |
5608 | 0 | swap(error_, other->error_); |
5609 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5610 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5611 | 0 | swap(_cached_size_, other->_cached_size_); |
5612 | 0 | } |
5613 | | |
5614 | 0 | ::google::protobuf::Metadata DdlLogResponsePB::GetMetadata() const { |
5615 | 0 | protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::protobuf_AssignDescriptorsOnce(); |
5616 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fadmin_2eproto::file_level_metadata[kIndexInFileMessages]; |
5617 | 0 | } |
5618 | | |
5619 | | |
5620 | | // @@protoc_insertion_point(namespace_scope) |
5621 | | } // namespace master |
5622 | | } // namespace yb |
5623 | | |
5624 | | // @@protoc_insertion_point(global_scope) |